Releases: jsenv/importmap-node-module
Releases · jsenv/importmap-node-module
Explicit entry points
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
Extension automapping
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
Generate proper mappings for package.json
fields documented in https://nodejs.org/api/packages.html#packages_node_js_package_json_field_definitions.
- Add mappings for package imports (https://nodejs.org/docs/latest-v15.x/api/packages.html#packages_imports)
- Add mappings self reference (https://nodejs.org/docs/latest-v15.x/api/packages.html#packages_name)
- Follow spec for nested conditions (retry from parent branch as specified in https://nodejs.org/docs/latest-v15.x/api/packages.html#packages_nested_conditions)
Document how to configure VsCode
- Write documentation showing how to configure VsCode and ESLint
- Write unit test about
jsconfig.json
file - Update dependencies
v13.0.0
- 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
renamedgetImportMapFromProjectFiles
generateImportMapForProject
renamedwriteImportMapFile
- 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 bydev
) - Remove param
packageExportsPreference
(replaced bydev
+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