Skip to content

v2.0.0

Choose a tag to compare

@github-actions github-actions released this 27 Apr 15:49
· 2 commits to main since this release

Major Changes

  • #28 180e511 Thanks @Floffah! - refactor: only export plugin itself & options type

  • #27 5062d5c Thanks @Floffah! - refactor: remove default export

    Default export + named exports causes interop issues in cjs consumers

    - import dtsPlugin from "esbuild-plugin-d.ts";
    + import { dtsPlugin } from "esbuild-plugin-d.ts";
  • #31 ebcc410 Thanks @Floffah! - Remove the deprecated outDir plugin option from the public options type.

    Passing outDir from JavaScript now emits a warning that the option has been
    removed and is ignored. Use compilerOptions.declarationDir in tsconfig, or
    esbuild outdir, instead.

  • #26 9270bd2 Thanks @Floffah! - chore: raise the minimum supported Node.js version to 20

  • #30 4e1315f Thanks @Floffah! - chore: narrow the supported TypeScript peer range to 5.5 through current 6.x

    This package uses the TypeScript compiler API directly and is now only supported
    with typescript >=5.5.0 <7.

Minor Changes

  • #28 180e511 Thanks @Floffah! - fix: use real typescript compiler options resolution rather than merging

Patch Changes

  • #25 1aba9c8 Thanks @Floffah! - ci: update lint tooling & build tooling

  • #31 ebcc410 Thanks @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.cts are preserved as-is. Bundled declaration logs now report
    the final written declaration files instead of temporary prebundle paths.

  • ee6fd1b Thanks @Floffah! - fix: recover incremental declaration output after the output directory is deleted

    When no tsBuildInfoFile is 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.ts files.

  • #23 4551f6d Thanks @Floffah! - Replace semantic versioning with changesets