Fixes:
- Revert
magic-stringupgrade to restore cjs compatibility
Compatibility Notice:
This release adds compatibility with TypeScript versions 6 and 7.
Fixes:
- Fixes to
export typehandling - Fixes to
declare modulehandling - Improve shared chunks imports
- Support literal export specifiers
Thank you:
Features, fixes and improvements in this release have been contributed by:
Fixes:
- Fixed regression related to new SourceMap handling
Thank you:
Features, fixes and improvements in this release have been contributed by:
Features:
- Implement proper SourceMap support with goto-definition granularity
- Support dotted namespace syntax
Fixes:
- Better naming for
declare modulepaths - Add compatibility with TS6
Thank you:
Features, fixes and improvements in this release have been contributed by:
Features:
- Support default export of object/array literals
- Add support for child imports and nesting in namespaces
Fixes:
- Rewrite names of module declarations with relative paths
- Remove unused reference tracking
Thank you:
Features, fixes and improvements in this release have been contributed by:
Fixes:
- Preserve imports for types used in typeof generic
Thank you:
Features, fixes and improvements in this release have been contributed by:
Features:
- Add
includeExternaloption
Thank you:
Features, fixes and improvements in this release have been contributed by:
Fixes:
- Disable problematic type-only import/export changes
Thank you:
Features, fixes and improvements in this release have been contributed by:
Features:
- Support importing json modules
- Return Source Map Differences to Rollup
Fixes:
- Unable to find the program when entry points exist intersection dependency
- Create program for
importsinput file - Force emit types even when there's errors
- Preserve type members of namespace in re-exported module
- Imports and exports follows type-only
- Import "local types" from "global modules"
- Correctly restore type-only import/export names
Thank you:
Features, fixes and improvements in this release have been contributed by:
Fixes:
- Fix missing whitespace related to generic arguments.
Thank you:
Features, fixes and improvements in this release have been contributed by:
Compatibility Notice:
This release adds compatibility with Rollup version 4.
Fixes:
- Fix fallback path generation.
Thank you:
Features, fixes and improvements in this release have been contributed by:
Fixes:
- Fix
typeof thisbeing wrongly renamed.
Thank you:
Features, fixes and improvements in this release have been contributed by:
Compatibility Notice:
This release lowers the minimum required node.js version to 16.
Fixes:
- Fix namespace declarations being exported as
export { type T }.
Thank you:
Features, fixes and improvements in this release have been contributed by:
Compatibility Notice:
This release raises the minimum required Rollup version to 3.25, the minimum required TypeScript version to 4.5 and the minimum required node.js version to 18.
Fixes:
- Export types with
export { type T }syntax.
Thank you:
Features, fixes and improvements in this release have been contributed by:
Fixes:
- Export the plugin as a named
dtsexport as well. - Export both
cjsandmjstype definitions.
Thank you:
Features, fixes and improvements in this release have been contributed by:
Compatibility Notice:
This release supports TypeScript 5.0.
Fixes:
- Allow to use same resolve method as defined in
tsconfig. - Add support for
.d.ctsand.d.mtsfiles. - Fix
declaremodifiers of enums.
Thank you:
Features, fixes and improvements in this release have been contributed by:
Fixes:
- Properly support watch mode when transforming
.tsfiles.
Thank you:
Features, fixes and improvements in this release have been contributed by:
Fixes:
- Resolve
tsconfig.jsoncorrectly for relative imports.
Thank you:
Features, fixes and improvements in this release have been contributed by:
Features:
- Add support for
.mtsand.ctsfiles. - Allow supplying a custom
tsconfig.json.
Fixes:
- Add an
export {}for empty files without exports.
Thank you:
Features, fixes and improvements in this release have been contributed by:
Compatibility Notice:
This release targets Rollup 3.0 and requires Node 14.
Features:
- Support reference path directives.
Thank you:
Features, fixes and improvements in this release have been contributed by:
Fixes:
- Add
typestoexports. - Fix handling of class property initializers.
Thank you:
Features, fixes and improvements in this release have been contributed by:
Fixes:
- Add support for TS 4.7 infer type constraints.
Fixes:
- Add support for prefix unary expressions.
Compatibility Notice:
Relaxed TypeScript version compatibility, to be forward compatible to newer releases.
Features:
- Add support for
.d.cts/.d.mtsfiles.
Thank you:
Features, fixes and improvements in this release have been contributed by:
Compatibility Notice:
The peer dependency requirements were actually lowered to TypeScript 4.1 and Rollup 2.55.
Features:
- Support reference path directives.
Fixes:
- Correctly forward generic type bounds.
- Fix inheritance from
null.
Thank you:
Features, fixes and improvements in this release have been contributed by:
Fixes:
- Write output files to the correct directly corresponding to the input file.
- Allow overriding default compiler options.
Thank you:
Features, fixes and improvements in this release have been contributed by:
Compatibility Notice:
This release targets TypeScript 4.4 and Rollup 2.56.
Fixes:
- Add preliminary support for nested namespace declarations.
- Fix renaming of exports from namespaces declarations.
Fixes:
- Fix undefined Error in post-processing.
- Support using keywords as exports.
Internal:
- Restructure internals, splitting transformer from the Rest of the Plugin.
Thank you:
Features, fixes and improvements in this release have been contributed by:
Fixes:
- Make dual-use as ESM / CommonJS possible again.
Compatibility Notice:
This release targets TypeScript 4.2, Rollup 2.40 and requires Node 12.
Internal:
- Switch Package to native ES modules, requiring Node 12.
- Modernize internal tooling.
- Circular import warnings are suppressed.
- Use
transforminstead ofloadhook.
Thank you:
Features, fixes and improvements in this release have been contributed by:
Fixes:
- When using code-splitting with multiple input files, type references directives will be correctly attached only to the output files that reference them.
Compatibility Notice:
This release targets TypeScript 4.1 and support for previous versions was dropped.
Features:
- The plugin gained a new pre-processing step that added support for unnamed
export defaultdeclarations and splitting up variable declarations that were previously rejected.
Released on 2020-11-14
- Better support for monorepos.
Features, fixes and improvements in this release have been contributed by:
Released on 2020-09-05
Fixes:
- Correctly update ranges when merging declarations.
Released on 2020-08-23
Fixes:
- Add support for variadic tuple types and named tuple members that were added in
typescript@4.
Thank you:
Features, fixes and improvements in this release have been contributed by:
Released on 2020-08-21
Fixes:
- Make the plugin compatible with
typescript4.
Thank you:
Features, fixes and improvements in this release have been contributed by:
Released on 2020-08-05
Fixes:
- Correctly add
declarekeyword to any variable statement.
Released on 2020-07-21
Fixes:
- Correctly resolve type-arguments of inline imports.
Released on 2020-07-12
Fixes:
- Make
allowJswork correctly. - Make type-aliases and generics work in namespace exports.
Thank you:
Features, fixes and improvements in this release have been contributed by:
- Fix AST incompatibility with rollup.
- Override
noEmitoption to correctly generate intermediate artifacts.
- Ignore/Remove
EmptyStatements. - Strip file extensions for import/re-export statements when using multiple entry points.
- Add support for ImportEquals (
import foo = require("bar");). - Work around rollup not stripping the complete
.d.tsextension forentryFileNames[name]placeholder.
- Fixes to work with newest rollup.
- Reorder same-named declarations.
- Add support for
export * as foodeclarations.
- Fix renaming of
MemberExpressions. - Make modifier rewriting more resilient to missing
declaremodifier. - Support TS path-mapping via
compilerOptions.
- support rollup > 2
- correctly output
declare globalandmodule "foo"declarations.
- try to correctly resolve
.d.tsfiles when building.tsfiles - fix using literals for computed properties
- ignore
export as namespacedeclarations
- add a new
respectExternaloption, which will not exclude all external dependencies from bundling, but rather respect theexternalrollup option.
- add support for optional type nodes
- add support for getters / setters as generated by TypeScript 3.7
- fix generic type parameters of inline-imports
- fix leading comments being removed from rendered chunks
- fix issues with multiple inline-imports
- support
RestTypeNodes
- make it compatible with
rollup@1.22
- make it compatible with
rollup@1.21
- further improve computed property handling
- add support for
biginttype
- properly handle computed properties
- fix issues around default exports and overrides
- fix duplicated definitions when having circular imports on windows
- normalize directory separators on windows
- correctly preserve tripleslash reference directives
- Re-add support for directly using
.tsfiles. - Fix type parameters with
extendsconstraints.
- This release focuses on working with pre-generated
.d.tsfiles. - Thus, this release drops support for transpiling
.ts->.js. - Support for namespace re-exports and dynamic imports of namespaces.