Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps-dev): bump eslint-plugin-import-x from 4.3.1 to 4.6.0 #1128

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Dec 19, 2024

Bumps eslint-plugin-import-x from 4.3.1 to 4.6.0.

Release notes

Sourced from eslint-plugin-import-x's releases.

v4.6.0

Minor Changes

  • #209 46d2360 Thanks @​SukkaW! - When eslint-plugin-import-x was forked from eslint-plugin-import, we copied over the default resolver (which is eslint-import-resolver-node) as well. However, this resolver doesn't supports exports in the package.json file, and the current maintainer of the eslint-import-resolver-node (ljharb) doesn't have the time implementing this feature and he locked the issue import-js/eslint-plugin-import#1810.

    So we decided to implement our own resolver that "just works". The new resolver is built upon the enhanced-resolve that implements the full Node.js Resolver Algorithm. The new resolver only implements the import resolver interface v3, which means you can only use it with ESLint Flat config. For more details about the import resolver interface v3, please check out #192.

    In the next major version of eslint-plugin-import-x, we will remove the eslint-import-resolver-node and use this new resolver by default. In the meantime, you can try out this new resolver by setting the import-x/resolver-next option in your eslint.config.js file:

    // eslint.config.js
    const eslintPluginImportX = require('eslint-plugin-import-x');
    const { createNodeResolver } = eslintPluginImportX;
    module.exports = {
    plugins: {
    'import-x': eslintPluginImportX,
    },
    settings: {
    'import-x/resolver-next': [
    // This is the new resolver we are introducing
    createNodeResolver({
    /**
    * The allowed extensions the resolver will attempt to find when resolving a module
    * By default it uses a relaxed extension list to search for both ESM and CJS modules
    * You can customize this list to fit your needs
    *
    * @​default ['.mjs', '.cjs', '.js', '.json', '.node']
    /
    extensions?: string[];
    /*
    * Optional, the import conditions the resolver will used when reading the exports map from "package.json"
    * By default it uses a relaxed condition list to search for both ESM and CJS modules
    * You can customize this list to fit your needs
    *
    * @​default ['default', 'module', 'import', 'require']
    /
    conditions: ['default', 'module', 'import', 'require'],
    // You can pass more options here, see the enhanced-resolve documentation for more details
    // https://github.com/webpack/enhanced-resolve/tree/v5.17.1?tab=readme-ov-file#resolver-options
    }),
    // you can add more resolvers down below
    require('eslint-import-resolver-typescript').createTypeScriptImportResolver(
    /* options of eslint-import-resolver-typescript */
    )
    ],
    },
    };

... (truncated)

Changelog

Sourced from eslint-plugin-import-x's changelog.

4.6.0

Minor Changes

  • #209 46d2360 Thanks @​SukkaW! - When eslint-plugin-import-x was forked from eslint-plugin-import, we copied over the default resolver (which is eslint-import-resolver-node) as well. However, this resolver doesn't supports exports in the package.json file, and the current maintainer of the eslint-import-resolver-node (ljharb) doesn't have the time implementing this feature and he locked the issue import-js/eslint-plugin-import#1810.

    So we decided to implement our own resolver that "just works". The new resolver is built upon the enhanced-resolve that implements the full Node.js Resolver Algorithm. The new resolver only implements the import resolver interface v3, which means you can only use it with ESLint Flat config. For more details about the import resolver interface v3, please check out #192.

    In the next major version of eslint-plugin-import-x, we will remove the eslint-import-resolver-node and use this new resolver by default. In the meantime, you can try out this new resolver by setting the import-x/resolver-next option in your eslint.config.js file:

    // eslint.config.js
    const eslintPluginImportX = require('eslint-plugin-import-x');
    const { createNodeResolver } = eslintPluginImportX;
    module.exports = {
    plugins: {
    'import-x': eslintPluginImportX,
    },
    settings: {
    'import-x/resolver-next': [
    // This is the new resolver we are introducing
    createNodeResolver({
    /**
    * The allowed extensions the resolver will attempt to find when resolving a module
    * By default it uses a relaxed extension list to search for both ESM and CJS modules
    * You can customize this list to fit your needs
    *
    * @​default ['.mjs', '.cjs', '.js', '.json', '.node']
    /
    extensions?: string[];
    /*
    * Optional, the import conditions the resolver will used when reading the exports map from "package.json"
    * By default it uses a relaxed condition list to search for both ESM and CJS modules
    * You can customize this list to fit your needs
    *
    * @​default ['default', 'module', 'import', 'require']
    /
    conditions: ['default', 'module', 'import', 'require'],
    // You can pass more options here, see the enhanced-resolve documentation for more details
    // https://github.com/webpack/enhanced-resolve/tree/v5.17.1?tab=readme-ov-file#resolver-options
    }),
    // you can add more resolvers down below
    require('eslint-import-resolver-typescript').createTypeScriptImportResolver(
    /* options of eslint-import-resolver-typescript */
    )
    ],
    },
    };

... (truncated)

Commits
  • c3950d4 chore: release eslint-plugin-import-x (#207)
  • 46d2360 feat: implement a resolver that supports exports (#209)
  • 449738f fix(no-duplicates): autofix insert type prefix without new line (#206)
  • af711e5 chore: release eslint-plugin-import-x (#202)
  • 32e9b55 fix(no-duplicates): merge type import as with value import (#204)
  • ac6d2e1 fix: include @types/doctrine to dependencies (#198)
  • f22eaa9 chore: release eslint-plugin-import-x (#190)
  • 739e22c chore: fix changeset (#193)
  • fbf639b feat: implement custom resolver interface v3 (#192)
  • bc4de89 test: migrate to type-friendly createRuleTestCaseFunction (#184)
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [eslint-plugin-import-x](https://github.com/un-ts/eslint-plugin-import-x) from 4.3.1 to 4.6.0.
- [Release notes](https://github.com/un-ts/eslint-plugin-import-x/releases)
- [Changelog](https://github.com/un-ts/eslint-plugin-import-x/blob/master/CHANGELOG.md)
- [Commits](un-ts/eslint-plugin-import-x@v4.3.1...v4.6.0)

---
updated-dependencies:
- dependency-name: eslint-plugin-import-x
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Dec 19, 2024
Copy link
Contributor Author

dependabot bot commented on behalf of github Dec 20, 2024

Superseded by #1130.

@dependabot dependabot bot closed this Dec 20, 2024
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/master/eslint-plugin-import-x-4.6.0 branch December 20, 2024 10:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants