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
transform
instead ofload
hook.
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 default
declarations 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
typescript
4.
Thank you:
Features, fixes and improvements in this release have been contributed by:
Released on 2020-08-05
Fixes:
- Correctly add
declare
keyword to any variable statement.
Released on 2020-07-21
Fixes:
- Correctly resolve type-arguments of inline imports.
Released on 2020-07-12
Fixes:
- Make
allowJs
work 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
noEmit
option to correctly generate intermediate artifacts.
- Ignore/Remove
EmptyStatement
s. - 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.ts
extension forentryFileNames
[name]
placeholder.
- Fixes to work with newest rollup.
- Reorder same-named declarations.
- Add support for
export * as foo
declarations.
- Fix renaming of
MemberExpression
s. - Make modifier rewriting more resilient to missing
declare
modifier. - Support TS path-mapping via
compilerOptions
.
- support rollup > 2
- correctly output
declare global
andmodule "foo"
declarations.
- try to correctly resolve
.d.ts
files when building.ts
files - fix using literals for computed properties
- ignore
export as namespace
declarations
- add a new
respectExternal
option, which will not exclude all external dependencies from bundling, but rather respect theexternal
rollup 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
RestType
Nodes
- make it compatible with
[email protected]
- make it compatible with
[email protected]
- further improve computed property handling
- add support for
bigint
type
- 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
.ts
files. - Fix type parameters with
extends
constraints.
- This release focuses on working with pre-generated
.d.ts
files. - Thus, this release drops support for transpiling
.ts
->.js
. - Support for namespace re-exports and dynamic imports of namespaces.