# What changed in dts-bundle-generator

> 42 changes in dts-bundle-generator 7 to 10 from its official release notes, upgrade guides and advisories: 12 breaking, 5 new APIs and options. Each one cited. Sources checked 2026-11-30. HTML: https://unstale.sh/npm/dts-bundle-generator/

To see which of these apply to a repository, run `npx @unstale/cli init` in it.

## dts-bundle-generator 10

### Breaking changes

- Boolean options no longer accept values; for example, --sort=false is now an error. (10.0.0) — [release notes](https://github.com/timocov/dts-bundle-generator/releases/tag/v10.0.0)
- Invalid options are now reported in commander’s format. (10.0.0) — [release notes](https://github.com/timocov/dts-bundle-generator/releases/tag/v10.0.0)
- The package is now an ES module. It can still be loaded with require() from CommonJS on Node.js 24. (10.0.0) — [release notes](https://github.com/timocov/dts-bundle-generator/releases/tag/v10.0.0)
- Deep imports of package files no longer work; only the main entry point and config schema types can be imported. (10.0.0) — [release notes](https://github.com/timocov/dts-bundle-generator/releases/tag/v10.0.0)
- This option is disabled by default, so a node is exported only if it is exported from the root source file. (10.0.0) — [release notes](https://github.com/timocov/dts-bundle-generator/releases/tag/v10.0.0)
- The minimum supported Node.js version is now 24. (10.0.0) — [release notes](https://github.com/timocov/dts-bundle-generator/releases/tag/v10.0.0)
- The minimum supported TypeScript version is now 5.4, and the supported range is capped at <7. (10.0.0) — [release notes](https://github.com/timocov/dts-bundle-generator/releases/tag/v10.0.0)

### New APIs and options

- Keep unresolved import() types as-is and print a warning instead of failing; the config-file equivalent is compilationOptions.allowUnresolvedImportTypes. (10.0.0) — [release notes](https://github.com/timocov/dts-bundle-generator/releases/tag/v10.0.0)
- Use a separate tsconfig to validate generated files; the config-file equivalent is checkConfigPath. (10.0.0) — [release notes](https://github.com/timocov/dts-bundle-generator/releases/tag/v10.0.0)
- When enabled, generation fails if a referenced type cannot be exported because it was renamed to avoid a name collision. (10.0.0) — [release notes](https://github.com/timocov/dts-bundle-generator/releases/tag/v10.0.0)
- A short flag for --help is now available. (10.0.0) — [release notes](https://github.com/timocov/dts-bundle-generator/releases/tag/v10.0.0)
- A short flag for --version is now available. (10.0.0) — [release notes](https://github.com/timocov/dts-bundle-generator/releases/tag/v10.0.0)

### Performance

- Performance is improved for projects with many exports. (10.0.0) — [release notes](https://github.com/timocov/dts-bundle-generator/releases/tag/v10.0.0)

### Behavior and default changes

- Config files can now be ES modules with a default export, in addition to CommonJS. (10.0.0) — [release notes](https://github.com/timocov/dts-bundle-generator/releases/tag/v10.0.0)
- Namespaces declared with the module keyword are now printed as namespace. (10.0.0) — [release notes](https://github.com/timocov/dts-bundle-generator/releases/tag/v10.0.0)
- JSDoc comments are stripped from top-level exports that aren't exported directly. (10.0.0) — [release notes](https://github.com/timocov/dts-bundle-generator/releases/tag/v10.0.0)

### Tooling

- The help layout changed slightly. (10.0.0) — [release notes](https://github.com/timocov/dts-bundle-generator/releases/tag/v10.0.0)
- TypeScript 6 is now supported. (10.0.0) — [release notes](https://github.com/timocov/dts-bundle-generator/releases/tag/v10.0.0)

### Fixes and other changes

- Duplicated augmented types are handled correctly; interfaces, classes, and augmented enums or namespaces in ambient modules are no longer incorrectly renamed. (10.0.0) — [release notes](https://github.com/timocov/dts-bundle-generator/releases/tag/v10.0.0)
- An error bundling with axios 1.7.8 involving named imports of export = module members is fixed. (10.0.0) — [release notes](https://github.com/timocov/dts-bundle-generator/releases/tag/v10.0.0)
- A TS5055 regression with checkJs enabled and declarations of JS files is fixed. (10.0.0) — [release notes](https://github.com/timocov/dts-bundle-generator/releases/tag/v10.0.0)
- Compatibility with the esModuleInterop compiler flag is fixed. (10.0.0) — [release notes](https://github.com/timocov/dts-bundle-generator/releases/tag/v10.0.0)
- References now point to the correct variable when names declared in nested scopes shadow them. (10.0.0) — [release notes](https://github.com/timocov/dts-bundle-generator/releases/tag/v10.0.0)
- Incorrect renaming of express's Request and Response types is fixed. (10.0.0) — [release notes](https://github.com/timocov/dts-bundle-generator/releases/tag/v10.0.0)

## dts-bundle-generator 9

### Behavior and default changes

- Declarations originally exported with default are emitted via a re-export, such as export { name as default }, rather than directly. (9.0.0) — [release notes](https://github.com/timocov/dts-bundle-generator/releases/tag/v9.0.0)

### Fixes and other changes

- Handling of double-underscored names in exports was fixed. (9.0.0) — [release notes](https://github.com/timocov/dts-bundle-generator/releases/tag/v9.0.0)
- Bundles are no longer invalid when the code uses import as statements. (9.0.0) — [release notes](https://github.com/timocov/dts-bundle-generator/releases/tag/v9.0.0)
- Nodes with the same name in a bundle are automatically renamed with a $NUM suffix to avoid clashing and accidental declaration merging. (9.0.0) — [release notes](https://github.com/timocov/dts-bundle-generator/releases/tag/v9.0.0)
- Handling of re-exports with a namespace was corrected. (9.0.0) — [release notes](https://github.com/timocov/dts-bundle-generator/releases/tag/v9.0.0)
- Inlining a library with namespaced imports/exports now inlines export statements. (9.0.0) — [release notes](https://github.com/timocov/dts-bundle-generator/releases/tag/v9.0.0)
- Incorrect handling of namespaced imports/exports was fixed. (9.0.0) — [release notes](https://github.com/timocov/dts-bundle-generator/releases/tag/v9.0.0)

## dts-bundle-generator 8

### Breaking changes

- The minimum supported TypeScript version changed from 4.0 to 5.0. (8.0.0) — [release notes](https://github.com/timocov/dts-bundle-generator/releases/tag/v8.0.0)
- The default behavior changed for unquoted `module ModuleName` statements. (8.0.0) — [release notes](https://github.com/timocov/dts-bundle-generator/releases/tag/v8.0.0)

### Fixes and other changes

- Fixed removal of some types when they are used in an ambient context. (8.0.0) — [release notes](https://github.com/timocov/dts-bundle-generator/releases/tag/v8.0.0)
- Fixed statements not being inlined when they are used only in declare global statements. (8.0.0) — [release notes](https://github.com/timocov/dts-bundle-generator/releases/tag/v8.0.0)
- Fixed incorrect output when renaming while re-exporting the default export without a name. (8.0.0) — [release notes](https://github.com/timocov/dts-bundle-generator/releases/tag/v8.0.0)
- Fixed the export state of referenced namespaces and modules. (8.0.0) — [release notes](https://github.com/timocov/dts-bundle-generator/releases/tag/v8.0.0)
- Fixed imports being lost when importing ESM-like modules without a default export using commonjs import or esm import default. (8.0.0) — [release notes](https://github.com/timocov/dts-bundle-generator/releases/tag/v8.0.0)

## dts-bundle-generator 7

### Breaking changes

- The minimum supported NodeJS version changed from 12 to 14. (7.0.0) — [release notes](https://github.com/timocov/dts-bundle-generator/releases/tag/v7.0.0)
- The minimum supported TypeScript version changed from 3.0 to 4.5. (7.0.0) — [release notes](https://github.com/timocov/dts-bundle-generator/releases/tag/v7.0.0)
- The compilation target changed from es5 to es2020; modules remain commonjs. (7.0.0) — [release notes](https://github.com/timocov/dts-bundle-generator/releases/tag/v7.0.0)

### Fixes and other changes

- Support for non-relative imports was improved in projects with a baseUrl. (7.0.0) — [release notes](https://github.com/timocov/dts-bundle-generator/releases/tag/v7.0.0)
