fixclosure

JavaScript dependency checker/fixer for Closure Library based on ECMAScript AST

MIT License

Downloads
605
Stars
13
Committers
8
fixclosure -

Published by teppeis over 5 years ago

  • feat: add --depsJs to load namespace methods from deps.js (#139) 90f23b7

https://github.com/teppeis/fixclosure/compare/2.0.0-alpha.1...2.0.0-alpha.2

fixclosure -

Published by teppeis over 5 years ago

Features

  • feat: support goog.requireType() and goog.forwardDeclare() (#138) bc4b486
    • report required types used only in JSDoc as errors
    • handle goog.requireType() and goog.forwardDeclare()
    • fix errors around them
    • add --useForwardDeclare CLI option
    • remove two or more blank lines between declaration headers and body

BREAKING CHANGE

Types used only in JSDoc are reported as errors.
Previously only types of @extends in @interface are reported.

https://github.com/teppeis/fixclosure/compare/2.0.0-alpha.0...2.0.0-alpha.1

fixclosure -

Published by teppeis over 5 years ago

BREAKING CHANGE

  • drop old Node.js, support only Node v10+

Fixes

  • fix: cleanup old code (#136) c5936ce
    • use @babel/parser instead of espree (that no longer supports attachComment)
    • decaffeinate (previously coffee script is used only for testing)
    • use prettier
    • update deps and devDeps

Internals

  • test: fix coverage in CI job (#137) e681467

https://github.com/teppeis/fixclosure/compare/1.5.4...2.0.0-alpha.0

fixclosure -

Published by teppeis over 8 years ago

  • Update dependencies
  • Use ESLint and eslint-config-teppeis
  • Testing in Node v0.12, v4 and v6 on Travis.CI (v0.10 and v5 are removed)
fixclosure - 1.3.3

Published by ama-ch almost 9 years ago

Add check for @extends using with @interface #49

fixclosure - 1.3.2

Published by teppeis over 10 years ago

  • Bugfix: Add goog.dom.BufferedViewportSizeMonitor.EventType to default replace map #47
fixclosure - 1.3.1

Published by teppeis over 10 years ago

  • Bugfix: Don't remove ignored provides #46
fixclosure - 1.3.0

Published by teppeis over 10 years ago

  • Add --provideRoots and --requireRoots and make --roots deprecated.
  • Add "fixclosure: ignore" and make "fixclosure: suppressUnused" deprecated #44
  • Add "fixclosure: suppressProvide" #43
fixclosure - 1.2.2

Published by teppeis over 10 years ago

  • Improve default namespace methods #45
fixclosure - 1.2.1

Published by teppeis over 10 years ago

  • Allow comment after an inline hint #41
  • Use attachComment of Esprima 1.2 internaly #40
fixclosure - 1.2.0: bugfix and esprima-1.2.0

Published by teppeis over 10 years ago

  • Don't insert a blank line with --fix-in-place #38
  • Update esprima 1.2.0
fixclosure - 1.1.0 Update dependencies

Published by teppeis over 10 years ago

  • Update dependencies #39
fixclosure - 1.0.1

Published by teppeis over 10 years ago

  • Fix --no-color #37
fixclosure - Release 1.0.0!

Published by teppeis over 10 years ago

Features

  • Inline hint: suppressUnused and suppressRequire. See README.
  • Support for @typedef annotaion (#18)
  • Add default roots used in Clsoure Library like "soy" (#25)
  • .fixclosurerc will be searched from current directory up to filesystem root (#35)
  • Add --showSuccess option that enables to output passed file info.

Bug Fixes

  • Allow a single root packages like goog.require('soy') (#31)
  • Require a parent namespace of a private property used in the file (#19)

Breaking changes

  • Rename --packageMethods to --namespaceMethods (#36)
  • Output messages are changed (#30)
  • Don't show messages abount passed files by default. Use --showSuccess option to show it.

Core

  • Update dependencies
  • Use JSHint
  • Use ES5 strict mode