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

Api updates #73

Merged
merged 19 commits into from
Jan 3, 2024
52 changes: 52 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,55 @@
# 7.0.0

- breaking: change params signature
- `mappingsForNodeResolution`, `mappingsForDevDependencies` and `packageUserConditions` moves to `nodeMappings`
- `entryPoints`, `runtime`, `magicExtensions` moves to `importResolution`
- node mappings enabled by default
- removeUnusedMappings enabled by default

**6.0.0**

```js
import { writeImportmaps } from "@jsenv/importmap-node-module";

await writeImportmaps({
projectDirectoryUrl: new URL("./", import.meta.url),
importmaps: {
"demo.importmap": {
mappingsForNodeResolution: true,
mappingsForDevDependencies: true,
runtime: "browser",
packageUserConditions: ["browser"],
entryPoints: ["index.html"],
magicExtensions: [".js", "inherit"],
removeUnusedMappings: true,
},
},
});
```

**7.0.0**

```js
import { writeImportmaps } from "@jsenv/importmap-node-module";

await writeImportmaps({
projectDirectoryUrl: new URL("./", import.meta.url),
importmaps: {
"demo.importmap": {
nodeMappings: {
devDependencies: true,
packageUserConditions: ["browser"],
},
importResolution: {
runtime: "browser",
entryPoints: ["index.html"],
magicExtensions: [".js", "inherit"],
},
},
},
});
```

# 6.0.0

- major: `writeImportMapFiles` function renamed `writeImportmaps`
Expand Down
Loading
Loading