Skip to content

Releases: Galooshi/import-js

v2.10.0

19 Dec 19:15
Compare
Choose a tag to compare
  • add danglingCommas option
  • add emptyLinesBetweenGroups option

v2.9.0

28 Nov 10:02
Compare
Choose a tag to compare

v2.8.0

31 Oct 16:51
Compare
Choose a tag to compare

v2.7.1

11 Sep 07:42
Compare
Choose a tag to compare
  • Fixes to make goto more robust

v2.7.0

02 Aug 18:40
Compare
Choose a tag to compare

Changes:

  • Support flow type imports (including finding the exports) (@rndmerle)
  • Improve messaging when imports are added
  • Update Meteor environment to support api.mainModule (@coagmano)
  • Allow coexistence of homonymous named and default exports in same module (@rndmerle) (requires updates to editor plugins, which will come later)
  • Take variable hoisting into account when finding undefined variables
  • Add sortImports to known configuration options (@dabbott)

v2.6.0

23 Jun 21:14
Compare
Choose a tag to compare
  • Add sortImports option to enable or disable import sorting
  • Added support for:
    • Recursive export from file export * from './foo'
    • namespace exports export * as ns from './foo' (uses babylon exportExtensions plugin)
    • Renaming as default export { foo, bar as default }
    • Renaming during destructure export const { foo, bar: baz } = someObject
    • Default values export const { foo, bar = {a:1, b:2} } = someObject
    • Rename during destructure with defaults:
      export const {
        foo,
        bar: baz = {a: 1, b: 2}
      } = someObject
    • Rest parameter export const { foo, ...bar } = someObject
    • Array destructure export const [ foo, bar ] = someObject
    • Array rest parameter export const [ foo, ...bar ] = someObject

Big thanks to @dabbott and @coagmano for their work that went into this release!

v2.5.0

14 Jun 16:17
Compare
Choose a tag to compare
  • Recognize default parameter assignment (e.g. function foo(bar = 123) {}) and array destructuring (e.g. const [foo] = bar;) when finding undefined identifiers.
  • The list of unresolved imports now uses the import statement (e.g. import foo from 'foo'; instead of the module name and full absolute path (e.g. foo /Users/someone/path/to/repo/node_modules/foo).
  • The list of unresolved imports is now sorted by path distance to the current file.
  • The excludes configuration can now be used to exclude packages in the node_modules directory.
  • Fixed crash when encountering dynamic import syntax.

Thanks to @dabbott for most of the work that went into this release!

v2.4.0

07 Jun 20:37
Compare
Choose a tag to compare

Because the schema was changed for the exports storage, you'll see a message (once) after installing this version:

ImportJS is initializing for /path/to/project. Results will be more accurate in a few moments. 

The storage will then be re-initialized, but you'll be good to go soon after.

v2.3.1

04 Jun 19:59
Compare
Choose a tag to compare
  • Fix incorrectly removing local names for named imports (import { a as b } from 'c'; became import { b } from 'c';)

v2.3.0

31 May 09:15
Compare
Choose a tag to compare
  • Improve support for packages that are npm linked (or symlinked in some other way)
  • Support scoped packages (e.g. @company-name/foobar
  • Improve recursive finding of exports from package dependencies

Thanks to @dcporter for providing all the context needed to make this release happen, and in general for always providing us with important findings and words of encouragement. ❤️