Skip to content

Releases: denoland/dnt

0.21.2

06 Mar 22:42
7f16c29
Compare
Choose a tag to compare

What's Changed

Full Changelog: 0.21.1...0.21.2

0.21.1

03 Mar 20:01
0324b24
Compare
Choose a tag to compare

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

28 Feb 14:53
abb6bfe
Compare
Choose a tag to compare
  • feat: upgrade deno shim for Deno 1.19 (#135)

0.20.1

23 Feb 02:35
92f1b8b
Compare
Choose a tag to compare
  • fix: complete logic in getTopLevelAwait function by @ah-yu in #132
  • feat: replace import.meta.main in CJS by @kt3k in #133

0.20.0

18 Feb 20:36
1e8411b
Compare
Choose a tag to compare
  • 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

18 Feb 00:16
aa75e18
Compare
Choose a tag to compare
  • feat: local and remote shim modules (#128)

Read more: https://github.com/denoland/dnt#local-or-remote-shim-modules

0.18.1

16 Feb 01:36
c9fbfa7
Compare
Choose a tag to compare
  • fix: win path length truncation should not panic on .d.ts files (#126)

0.18.0

16 Feb 01:13
9564643
Compare
Choose a tag to compare
  • fix: test runner was not respecting ignore (#124)
  • feat: better specifier to path mapping (#109)
  • feat: windows 260 char path truncation (#125)

0.17.0

05 Feb 19:32
5645b45
Compare
Choose a tag to compare
  • 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

  1. dnt now outputs a CommonJS module by default, instead of UMD
  2. The poorly named cjs setting is now scriptModule and you may specify "umd", "cjs" or false. So to get the old behavior, use scriptModule: "umd".
  3. The output sub folder name of the CommonJS/UMD module is now "script" instead of "umd".

0.16.1

20 Jan 16:15
30e23c2
Compare
Choose a tag to compare
  • fix: do not crash when a non-declaration file module is referenced as both a code and types dependency (#105)