Skip to content

Releases: jsenv/importmap-node-module

Explicit entry points

08 Dec 10:41
0888091
Compare
Choose a tag to compare

What's Changed

  • Many entry points by @dmail in #52
    • Replace checkImportResolution with entryPointsToCheck
    • No more entry point deduction by parsing package.json
    • Better documentation for import resolution warnings and auto mapping
    • More consistency in documentation

Full Changelog: v2.8.1...v3.0.0

Handle browser field with a warning

07 Oct 14:02
515b640
Compare
Choose a tag to compare

What's Changed

Full Changelog: v2.3.3...v2.4.0

Extension automapping

06 Oct 08:51
dbf115d
Compare
Choose a tag to compare

The auto mapping where scoped

{
  "scopes": {
    "./node_modules/lodash/": {
      "lodash/union": "./lodash/union.js"
    }
  }
}

They are now properly put at top level when they should

{
  "imports": {
      "lodash/union": "./lodash/union.js"
  }
}

What's Changed

Full Changelog: v2.3.1...v2.3.2

Support package fields

20 Apr 09:41
36e8f9c
Compare
Choose a tag to compare

Document how to configure VsCode

11 Apr 13:26
c991d1c
Compare
Choose a tag to compare
  • Write documentation showing how to configure VsCode and ESLint
  • Write unit test about jsconfig.json file
  • Update dependencies

v13.0.0

12 Mar 16:56
fe283e2
Compare
Choose a tag to compare
  • Autogenerate mappings for import without extension: Read main file and imported files recursively to find extensionless import and generate the mappings.
  • Update package exports conditions resolution to match Node.js behaviour
  • getImportMapFromNodeModules renamed getImportMapFromProjectFiles
  • generateImportMapForProject renamed writeImportMapFile
  • Add new param: dev
  • Add new param: runtime
  • Add support for importmap field in package.json (can be an object or string leading to a file)
  • Remove param projectPackageDevDependenciesIncluded (replaced by dev)
  • Remove param packageExportsPreference (replaced by dev + runtime)
  • Remove support for imports field in package.json (now it is ignored)
  • Add new param removeUnusedMappings (remove mappings generated from package.json files but not actually used in the codebase)
  • Add new param moduleFormat (no need to document this one, I doubt it will ever be useful to someone)
  • Update documentation