Releases: denoland/dnt
Releases · denoland/dnt
0.21.2
What's Changed
- fix: support custom shim w/ node scheme by @hyp3rflow in #144
Full Changelog: 0.21.1...0.21.2
0.21.1
What's Changed
- fix: do not panic getting declaration file when code specifier was already mapped by @hyp3rflow in #141
- Upgrade dependencies and Rust version
Full Changelog: 0.21.0...0.21.1
0.21.0
0.20.1
0.20.0
- feat: combine mappings and redirects (#129)
- feat: inject import declarations after leading trivia (#130)
This release combines the concept of "redirects" and "mappings" into just "mappings".
Before:
await build({
// ...etc...
mappings: {
"https://deno.land/x/code_block_writer@11.0.0/mod.ts": {
name: "code-block-writer",
version: "^11.0.0",
},
},
redirects: {
"./file.deno.ts": "./file.node.ts",
},
});
After:
await build({
// ...etc...
mappings: {
"https://deno.land/x/code_block_writer@11.0.0/mod.ts": {
name: "code-block-writer",
version: "^11.0.0",
},
"./file.deno.ts": "./file.node.ts",
},
});
0.19.0
0.18.1
0.18.0
0.17.0
- feat: ability to specify to use cjs or umd for the script module output #114
- feat: update to @deno/shim-deno 0.3.0 #115
- feat: add emptyDir re-export and recommend using it #116
Breaking Changes
- dnt now outputs a CommonJS module by default, instead of UMD
- The poorly named
cjs
setting is nowscriptModule
and you may specify"umd"
,"cjs"
orfalse
. So to get the old behavior, usescriptModule: "umd"
. - The output sub folder name of the CommonJS/UMD module is now "script" instead of "umd".