tag:github.com,2008:https://github.com/Galooshi/import-js/releases Release notes from import-js 2024-06-17T20:47:27Z tag:github.com,2008:Repository/27005321/v6.0.0 2024-06-17T20:50:21Z v6.0.0 <h2>What's Changed</h2> <h3>Breaking</h3> <ul> <li>No more implicit React identifiers by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mikabytes/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mikabytes">@mikabytes</a> in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2098034226" data-permission-text="Title is private" data-url="https://github.com/Galooshi/import-js/issues/609" data-hovercard-type="pull_request" data-hovercard-url="/Galooshi/import-js/pull/609/hovercard" href="https://github.com/Galooshi/import-js/pull/609">#609</a></li> <li>Add configuration validation and refactor handling of unknown identifiers by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mikabytes/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mikabytes">@mikabytes</a> in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2104193114" data-permission-text="Title is private" data-url="https://github.com/Galooshi/import-js/issues/612" data-hovercard-type="pull_request" data-hovercard-url="/Galooshi/import-js/pull/612/hovercard" href="https://github.com/Galooshi/import-js/pull/612">#612</a></li> </ul> <h3>Features</h3> <ul> <li>Provide the option to override parser plugins in configuration by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mikabytes/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mikabytes">@mikabytes</a> in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2102268407" data-permission-text="Title is private" data-url="https://github.com/Galooshi/import-js/issues/611" data-hovercard-type="pull_request" data-hovercard-url="/Galooshi/import-js/pull/611/hovercard" href="https://github.com/Galooshi/import-js/pull/611">#611</a></li> </ul> <h3>Other</h3> <ul> <li>Replace Travis with GitHub Actions, support node 18 + 20 by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/trotzig/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/trotzig">@trotzig</a> in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2088129850" data-permission-text="Title is private" data-url="https://github.com/Galooshi/import-js/issues/599" data-hovercard-type="pull_request" data-hovercard-url="/Galooshi/import-js/pull/599/hovercard" href="https://github.com/Galooshi/import-js/pull/599">#599</a></li> <li>Update all dependencies by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/trotzig/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/trotzig">@trotzig</a> in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2088178990" data-permission-text="Title is private" data-url="https://github.com/Galooshi/import-js/issues/603" data-hovercard-type="pull_request" data-hovercard-url="/Galooshi/import-js/pull/603/hovercard" href="https://github.com/Galooshi/import-js/pull/603">#603</a></li> <li>Update jest to latest version by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/trotzig/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/trotzig">@trotzig</a> in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2088194500" data-permission-text="Title is private" data-url="https://github.com/Galooshi/import-js/issues/607" data-hovercard-type="pull_request" data-hovercard-url="/Galooshi/import-js/pull/607/hovercard" href="https://github.com/Galooshi/import-js/pull/607">#607</a></li> <li>594 move to prettier abandon eslint by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mikabytes/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mikabytes">@mikabytes</a> in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2088118444" data-permission-text="Title is private" data-url="https://github.com/Galooshi/import-js/issues/598" data-hovercard-type="pull_request" data-hovercard-url="/Galooshi/import-js/pull/598/hovercard" href="https://github.com/Galooshi/import-js/pull/598">#598</a></li> <li>Move prettier to devDependency, don't run prettier on package-lock.json by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mikabytes/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mikabytes">@mikabytes</a> in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2099948938" data-permission-text="Title is private" data-url="https://github.com/Galooshi/import-js/issues/610" data-hovercard-type="pull_request" data-hovercard-url="/Galooshi/import-js/pull/610/hovercard" href="https://github.com/Galooshi/import-js/pull/610">#610</a></li> <li>README to stop lying about react imports by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mikabytes/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mikabytes">@mikabytes</a> in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2104947033" data-permission-text="Title is private" data-url="https://github.com/Galooshi/import-js/issues/613" data-hovercard-type="pull_request" data-hovercard-url="/Galooshi/import-js/pull/613/hovercard" href="https://github.com/Galooshi/import-js/pull/613">#613</a></li> <li>README: sort config options by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mikabytes/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mikabytes">@mikabytes</a> in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2104977682" data-permission-text="Title is private" data-url="https://github.com/Galooshi/import-js/issues/614" data-hovercard-type="pull_request" data-hovercard-url="/Galooshi/import-js/pull/614/hovercard" href="https://github.com/Galooshi/import-js/pull/614">#614</a></li> <li>Bump ip from 2.0.0 to 2.0.1 by <a class="user-mention notranslate" data-hovercard-type="organization" data-hovercard-url="/orgs/dependabot/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/dependabot">@dependabot</a> in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2145723439" data-permission-text="Title is private" data-url="https://github.com/Galooshi/import-js/issues/618" data-hovercard-type="pull_request" data-hovercard-url="/Galooshi/import-js/pull/618/hovercard" href="https://github.com/Galooshi/import-js/pull/618">#618</a></li> <li>Disable codeclimate when env var is missing by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/trotzig/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/trotzig">@trotzig</a> in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2149081373" data-permission-text="Title is private" data-url="https://github.com/Galooshi/import-js/issues/620" data-hovercard-type="pull_request" data-hovercard-url="/Galooshi/import-js/pull/620/hovercard" href="https://github.com/Galooshi/import-js/pull/620">#620</a></li> <li>Bump tar from 6.2.0 to 6.2.1 by <a class="user-mention notranslate" data-hovercard-type="organization" data-hovercard-url="/orgs/dependabot/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/dependabot">@dependabot</a> in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2237823733" data-permission-text="Title is private" data-url="https://github.com/Galooshi/import-js/issues/621" data-hovercard-type="pull_request" data-hovercard-url="/Galooshi/import-js/pull/621/hovercard" href="https://github.com/Galooshi/import-js/pull/621">#621</a></li> <li>Remove flow type annotations, set up ESLint by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/lencioni/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/lencioni">@lencioni</a> in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2341063769" data-permission-text="Title is private" data-url="https://github.com/Galooshi/import-js/issues/623" data-hovercard-type="pull_request" data-hovercard-url="/Galooshi/import-js/pull/623/hovercard" href="https://github.com/Galooshi/import-js/pull/623">#623</a></li> <li>Bump braces and babel-jest by <a class="user-mention notranslate" data-hovercard-type="organization" data-hovercard-url="/orgs/dependabot/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/dependabot">@dependabot</a> in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2351937607" data-permission-text="Title is private" data-url="https://github.com/Galooshi/import-js/issues/624" data-hovercard-type="pull_request" data-hovercard-url="/Galooshi/import-js/pull/624/hovercard" href="https://github.com/Galooshi/import-js/pull/624">#624</a></li> </ul> <h2>New Contributors</h2> <ul> <li><a class="user-mention notranslate" data-hovercard-type="organization" data-hovercard-url="/orgs/dependabot/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/dependabot">@dependabot</a> made their first contribution in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2145723439" data-permission-text="Title is private" data-url="https://github.com/Galooshi/import-js/issues/618" data-hovercard-type="pull_request" data-hovercard-url="/Galooshi/import-js/pull/618/hovercard" href="https://github.com/Galooshi/import-js/pull/618">#618</a></li> </ul> <p><strong>Full Changelog</strong>: <a class="commit-link" href="https://github.com/Galooshi/import-js/compare/v5.1.0...v6.0.0"><tt>v5.1.0...v6.0.0</tt></a></p> lencioni tag:github.com,2008:Repository/27005321/v5.1.0 2024-01-12T16:45:54Z v5.1.0 <h2>Features</h2> <ul> <li>Configuration to also look for .importjs.cjs and .importjs.mjs (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2076570018" data-permission-text="Title is private" data-url="https://github.com/Galooshi/import-js/issues/589" data-hovercard-type="pull_request" data-hovercard-url="/Galooshi/import-js/pull/589/hovercard" href="https://github.com/Galooshi/import-js/pull/589">#589</a>, thanks <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mikabytes/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mikabytes">@mikabytes</a>!)</li> </ul> <h2>Dev</h2> <ul> <li>Updated eslint dependencies</li> </ul> lencioni tag:github.com,2008:Repository/27005321/v5.0.0 2021-12-01T16:30:24Z v5.0.0 <p>Breaking changes:</p> <ul> <li><code>importjsd</code> command has been removed. Use <code>importjs</code> instead.</li> </ul> <p>Other changes:</p> <ul> <li>Updated sqlite to v5. This fixes installation issues (see <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="926086129" data-permission-text="Title is private" data-url="https://github.com/Galooshi/import-js/issues/574" data-hovercard-type="pull_request" data-hovercard-url="/Galooshi/import-js/pull/574/hovercard" href="https://github.com/Galooshi/import-js/pull/574">#574</a>)</li> </ul> trotzig tag:github.com,2008:Repository/27005321/v4.0.2 2019-12-10T15:53:39Z v4.0.2 <p>This release contains a bug fix for files using array destructuring with omitted variables. E.g.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="const [, bar] = foo();"><pre class="notranslate"><code>const [, bar] = foo(); </code></pre></div> <p>Before this release, we would throw an error when parsing this code.</p> trotzig tag:github.com,2008:Repository/27005321/v4.0.1 2019-12-09T12:05:34Z v4.0.1 <p>Fix missing <code>@babel/runtime</code> dependency in published npm lib.</p> trotzig tag:github.com,2008:Repository/27005321/v4.0.0 2019-12-09T12:04:55Z v4.0.0 <p>The main breaking change in this release is that we no longer officially support Node v6 and v7. We've also updated <code>@babel</code> dependencies, which could also cause different behavior (plus fix a few bugs).</p> <p>New feature:<br> If you don't have a <code>package.json</code> file in your project, you can drop an <code>.importjs-root</code> file in the root of the project to indicate to import-js where to resolve imports from. (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="533301107" data-permission-text="Title is private" data-url="https://github.com/Galooshi/import-js/issues/547" data-hovercard-type="pull_request" data-hovercard-url="/Galooshi/import-js/pull/547/hovercard" href="https://github.com/Galooshi/import-js/pull/547">#547</a> by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mikabytes/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mikabytes">@mikabytes</a>)</p> trotzig tag:github.com,2008:Repository/27005321/v3.2.0 2018-09-12T07:58:35Z v3.2.0 <p>Adds support for <code>isRoot</code> in package.json files. From the <a href="https://github.com/Galooshi/import-js#specifying-alternate-package-directory">README</a>:</p> <h2>Specifying alternate package directory</h2> <p>ImportJS looks for the <code>package.json</code> file in the closest ancestor directory for the file you're editing to find node modules to import. However, sometimes it might pull dependencies from a directory further up the chain. For example, your directory structure might look like this:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=". |-- package.json |-- components | |-- button.js | |-- icon.js |-- node_modules | |-- react |-- subpackage | |-- package.json | |-- components | |-- bulletin.js"><pre class="notranslate"><code>. |-- package.json |-- components | |-- button.js | |-- icon.js |-- node_modules | |-- react |-- subpackage | |-- package.json | |-- components | |-- bulletin.js </code></pre></div> <p>If you were to use ImportJS on <code>subpackage/components/bulletin.js</code> which imports React, ImportJS would not know that <code>react</code> is a valid dependency.</p> <p>To tell ImportJS to skip a directory and keep searching upwards to find the root package directory, specify <code>"importjs": { "isRoot": false }</code> in the <code>package.json</code> of the directory to ignore. In this case, you would want something like this:</p> <div class="highlight highlight-source-json notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{ &quot;name&quot;: &quot;subpackage&quot;, ... &quot;importjs&quot;: { &quot;isRoot&quot;: false } }"><pre>{ <span class="pl-ent">"name"</span>: <span class="pl-s"><span class="pl-pds">"</span>subpackage<span class="pl-pds">"</span></span>, <span class="pl-ii">...</span> <span class="pl-ent">"importjs"</span>: { <span class="pl-ent">"isRoot"</span>: <span class="pl-c1">false</span> } }</pre></div> trotzig tag:github.com,2008:Repository/27005321/v3.1.1 2018-09-10T20:26:19Z v3.1.1 <p>This patch release should fix issues people have been seeing related to a <code>'decorators'</code> plugin.</p> trotzig tag:github.com,2008:Repository/27005321/v3.1.0 2018-08-13T09:12:51Z v3.1.0 <p>This version adds support for Typescript files. As a result of that, we're now also on Babel 7. Even though this is a big change for the project, we believe it should be backwards compatible. That's why this version is a minor version bump and not a major.</p> trotzig tag:github.com,2008:Repository/27005321/v3.0.0 2018-05-02T13:02:54Z v3.0.0 <p>Breaking changes:</p> <ul> <li>Drop support for Node v4 and v5.</li> </ul> <p>(hopefully) Non-breaking changes:</p> <ul> <li>Add <code>util</code> to node environment's <code>namedExports</code></li> <li>Upgrade to sqlite3 v4</li> </ul> <p>Bug fixes:</p> <ul> <li>Resolving "toString" name causes a crash (<a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/Galooshi/import-js/commit/0024cdceddffdcec74f5a198e82ce18669ac29d4/hovercard" href="https://github.com/Galooshi/import-js/commit/0024cdceddffdcec74f5a198e82ce18669ac29d4"><tt>0024cdc</tt></a>)</li> </ul> trotzig