v2.0.0
Major Changes
-
#28
180e511Thanks @Floffah! - refactor: only export plugin itself & options type -
#27
5062d5cThanks @Floffah! - refactor: remove default exportDefault export + named exports causes interop issues in cjs consumers
- import dtsPlugin from "esbuild-plugin-d.ts"; + import { dtsPlugin } from "esbuild-plugin-d.ts";
-
#31
ebcc410Thanks @Floffah! - Remove the deprecatedoutDirplugin option from the public options type.Passing
outDirfrom JavaScript now emits a warning that the option has been
removed and is ignored. UsecompilerOptions.declarationDirin tsconfig, or
esbuildoutdir, instead. -
#26
9270bd2Thanks @Floffah! - chore: raise the minimum supported Node.js version to 20 -
#30
4e1315fThanks @Floffah! - chore: narrow the supported TypeScript peer range to 5.5 through current 6.xThis package uses the TypeScript compiler API directly and is now only supported
withtypescript >=5.5.0 <7.
Minor Changes
- #28
180e511Thanks @Floffah! - fix: use real typescript compiler options resolution rather than merging
Patch Changes
-
#25
1aba9c8Thanks @Floffah! - ci: update lint tooling & build tooling -
#31
ebcc410Thanks @Floffah! - Improve experimental declaration bundling path handling.Bundling now supports esbuild object entry points and
{ in, out }entry point
arrays, writes declarations to matching custom output paths, and creates nested
output directories when needed. Custom outputs that already end in.d.ts,
.d.mts, or.d.ctsare preserved as-is. Bundled declaration logs now report
the final written declaration files instead of temporary prebundle paths. -
ee6fd1bThanks @Floffah! - fix: recover incremental declaration output after the output directory is deletedWhen no
tsBuildInfoFileis configured, the plugin now stores incremental build
info in the OS temp directory by default. If incremental metadata exists but the
declaration outputs have been removed, the next build will invalidate the stale
build info and recreate the missing.d.tsfiles. -
#23
4551f6dThanks @Floffah! - Replace semantic versioning with changesets