Skip to content

Commit

Permalink
Merge pull request #73 from jsenv/api_updates
Browse files Browse the repository at this point in the history
Api updates
  • Loading branch information
dmail authored Jan 3, 2024
2 parents de9c131 + be9417e commit 4ab532e
Show file tree
Hide file tree
Showing 115 changed files with 1,130 additions and 888 deletions.
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

0 comments on commit 4ab532e

Please sign in to comment.