3.4.5 (2023-09-07)
- improve error handling inside transpiler-loader (c36f7e8)
3.4.4 (2023-08-08)
- incorrect type reference directives can sometimes be produced when a type root is a relative path (2fd4bda)
3.4.3 (2023-08-06)
- babel peer dependencies versions (0ac3cea)
- migrate to lint-staged from pretty-quick, which isn't compatible with Prettier v3 (104c28d)
- resolve @babel/plugin-syntax-dynamic-import from @babel/preset-env (66cb727)
3.4.2 (2023-08-04)
3.4.1 (2023-08-03)
- regression on Windows (351bf26)
3.4.0 (2023-08-03)
3.3.1 (2023-08-03)
3.3.0 (2023-08-03)
- add TypeScript v5.1 support. Add support for Node16 and NodeNext Module resolution (0d5aaa0)
3.2.0 (2023-01-23)
- add .js extensions to code splitted declaration chunks to support Node16 and NodeNext ModuleResolution (0b727a0)
3.1.1 (2023-01-09)
3.1.0 (2023-01-09)
- add TypeScript v4.9 support (1bd7601)
3.0.2 (2022-06-07)
- don't call addWatchFile outside of allowed Rollup phase (8b3e7e8)
- add support for ESM-based Babel configs. Closes #167 (15e8edd)
- add support for multiple swc configs. Closes #177. Don't enforce importHelpers: true to avoid a potential tslib error when babel or swc is used for all types of syntax (5ba4c9c)
3.0.1 (2022-05-31)
- use ansi-colors instead of Chalk for better CJS fallback support (eac318e)
3.0.0 (2022-05-30)
- use correct import binding (e693665)
- add TypeScript v4.7 support (aae4588)
2.0.7 (2022-04-15)
- fix a regression when a Rollup cache is being used where unsupported files would be attempted to be added to the CompilerHost and crash the compilation. Fixes #178 (630d5ae)
2.0.6 (2022-04-15)
- correctly add aliased re-exported bindings to lexical environment at all times. Fixes #109 (16d24fa)
- correctly alias re-exported bindings which themselves may be aliased from other source files from the same chunk. Closes #176 (364b50b)
- add support for target ES2022 (6eec842)
- add TypeScript v4.6 support (c387ff7)
- generate correct declarations, diagnostics, and .tsbuildinfo when a Rollup cache is being used. Fixes #140 (afa76ed)
2.0.5 (2022-01-03)
- don't break when another plugin declares an asset that only later receives a source. Fixes #162 (3ec4c86)
- swc reject when set parser to typescript (3770470)
- when using swc and no browserslist could be resolved, pass the ecma version directly as a target instead of generating a browserslist based on it. Closes #163 (a2e88e5)
2.0.4 (2021-11-19)
- regression in v2.0.3 on TypeScript <= 3.7 where ExportDeclarations could be dropped (f56c91c)
2.0.3 (2021-11-18)
- group ExportDeclarations by not just module specifiers but also whether or not they or their individual ExportSpecifiers are 'isTypeOnly'. Fixes #153 (493014c)
2.0.2 (2021-11-17)
- add TypeScript v4.5 support (dffc8b7)
2.0.1 (2021-11-17)
- fix a problem with resolving swc configs (677c928)
2.0.0 (2021-11-16)
- add support for shimming regenerator-runtime when using swc as a transpiler (1513fc5)
- ensure that the drive letter is prefixed to absolute paths on Windows when getSourceFile is called internally from TypeScript (f368af3)
- ensure that the drive letter is prefixed to absolute paths on Windows when getSourceFile is called internally from TypeScript (cf6d3cc)
- when emiting declarations, always use define for class fields to work around limitations introduced in TypeScript 4.3 for when bundling declarations when a subclass overrides a property from the parent class but doesn't provide an initializer (b25a494)
- add support for swc as a transpiler as an alternative to babel. #155 (e84d21c)
- no longer depend on @babel/core types in npm package (d91ec74)
1.4.7 (2021-09-24)
- remove unused dependency (e7a4c83)
1.4.6 (2021-09-21)
1.4.5 (2021-09-21)
1.4.4 (2021-09-21)
1.4.3 (2021-09-21)
- fix an issue where exporting ArrayTypeNodes from other files could lead to corruption of declaration files. Closes #151 (27537be)
1.4.2 (2021-09-16)
- work around incorrect imports in some @babel/runtime/helpers/esm files that may break when using babel as a transpiler without the commonjs plugin or something similar (d3daf35)
1.4.1 (2021-08-31)
1.4.0 (2021-06-03)
- rewrite test runner to always work with virtual files. (3e64a92)
- update signature of the
fileSystem
option to expect a TypeScript System rather than a subset of it.
1.3.14 (2021-04-14)
- declarations: fix TypeScript backwards compatibility (4f09009)
1.3.13 (2021-04-14)
- logging: don't console log ModuleDeclarations (a513caa)
1.3.12 (2021-04-13)
- deconflicting: add support for CallSignatures in deconflicting logic (3699a4e)
- deconflicting: fix issue where ModuleDeclarations could sometimes not be traced back to an original SourceFile, leading to invalid deconflicting. Closes #129 (064b0c7)
- namespace-exports: fix problem where ExportDeclarations- and/or ImportDeclarations are sometimes lost when inlining ModuleDeclarations. Closes #130 (deec007)
- namespace: same import in multiple namespaces (9f69855)
- tree-shaking: Correctly deconflict ExportDeclaration inside module wrappers and add support for deconflicting QualifiedNames. Closes #136 (6623ca2)
1.3.11 (2021-03-25)
1.3.10 (2021-03-16)
- tree-shaking: update ImportEqualsDeclaration visitor to support TypeScript 4.2 (8e899ad)
- typescript: add support for TypeScript 4.2 (5239f59)
1.3.8 (2020-11-06)
1.3.7 (2020-10-26)
1.3.6 (2020-10-21)
- add TypeScript 4.1 support (7292e78)
1.3.5 (2020-09-30)
- declarations: fix issue where Namespace would not be created for ImportTypeNodes with no qualifiers (980e1da)
1.3.4 (2020-09-02)
- declarations: add workaround for TypeScript issue 40361 for older TypeScript versions. Closes #108 (659775f)
1.3.3 (2020-08-23)
1.3.2 (2020-08-05)
1.3.1 (2020-07-31)
- allowJs: don't attempt to include .mjs files in a TypeScript program to align with tsc behavior. Fixes #106 (f567d6c)
1.3.0 (2020-07-31)
- external: respect 'external' option provided to Rollup and don't inline typings from modules matched by it (06f453a)
1.2.34 (2020-07-29)
- hook: fix declarationPaths type signature (b8d6e7e)
1.2.33 (2020-07-29)
1.2.32 (2020-07-29)
- ensure that includedSourceFiles are always empty when allowDuplicate: true is passed as an option to includeSourceFile in moduleMerger. Fixes #90 (796b92a)
1.2.31 (2020-07-28)
- cache: invalidate cached Programs if SourceFiles are added while it is being generated. Closes #83 (d1e9777)
1.2.30 (2020-07-28)
1.2.29 (2020-07-28)
- add missing return statement (ded2524)
- comments: improve bundling and tree-shaking of comments. Fixes #104 (559c420)
- declarations are sometimes empty. Closes #105 (0e41f7c)
1.2.28 (2020-07-09)
- path-mapping: fix an issue where path mapping for other baseUrls than '.' didn't work. Fixes #96 (7f6c429)
1.2.27 (2020-07-01)
- Augment and merge non-namespace ModuleDeclarations. Closes #99 (c78bc52)
- generate new lexical environment for ConstructorDeclaration body. Closes #100 (fe0aa94)
1.2.26 (2020-06-22)
1.2.25 (2020-06-10)
- fix incompatibility with Windows (f3a1045)
- fixed incorrect base path of tsconfig.json if it's inside a subdirectory (0cfbf70)
- test: fixed the glob filter of the virtual file system (46ee07f)
- use
nativeDirname
instead ofdirname
(9efe47d)
1.2.24 (2020-04-06)
- regenerator: update inlined regenerator-runtime code to align with v0.13.5 (ab869f2)
1.2.23 (2020-03-30)
- deconflicting: fix issue where local symbols could conflict with external ones under some circumstances. #88 (1f837f3)
1.2.22 (2020-03-28)
- typescript: add TypeScript v3.9 support (785dfa1)
1.2.21 (2020-03-06)
- type-directive: fix an issue with generating type directives when declaration files are nested inside @types folder (e23a571)
1.2.20 (2020-03-06)
1.2.19 (2020-03-01)
- make sure to respect entryFileNames and chunkFileNames when naming common declaration chunks (a98fe69)
1.2.18 (2020-02-29)
- add 'isTypeOnly' to 'updateImportClause' helpers (9688e0e)
- namespace-export: add support for named namespace exports (8aece24)
1.2.17 (2020-02-13)
- respect declaration merging when identifiers are declared in the same SourceFile. Closes #81 (7e44925)
- use statement merger on nested namespace declarations to remove binding-less imports/exports for prettier declaration output under some circumstances (d23a86e)
1.2.16 (2020-02-08)
- don't force drive letter on relative paths (69350c7)
- ensure that absolute paths on Windows always include the drive letter before passing it on to TypeScript (6713cb1)
- fix bug on windows where paths weren't always normalized (c0b136b)
1.2.15 (2020-01-29)
1.2.14 (2020-01-27)
- babel: unpin babel dependencies (9ea5335)
1.2.13 (2020-01-14)
- stop relying on babel/core internals for finding configs and instead rely on the public API at all times (3b73419)
1.2.12 (2020-01-13)
- Ensure that the Qualifier for ImportTypeNodes preserve the original binding name from external modules (c7db633)
1.2.11 (2020-01-13)
- fix bug where ImportTypeNodes inside other ImportTypeNodes weren't tracked correctly (4369f0c)
- fix bug where ImportTypeNodes would lose their type arguments (8ced5c9)
1.2.10 (2020-01-13)
- json: improve interoperability with @rollup/plugin-json (e9a64a7)
1.2.9 (2020-01-13)
1.2.8 (2020-01-12)
1.2.7 (2020-01-12)
1.2.6 (2020-01-11)
- tree-shaking: fix issue where computed property names inside Property- and MethodSignatures would not count as a reference to a symbol. Make sure to create a new lexical environment for FunctionTypeNodes. Closes #69. (b7a0bd1)
1.2.5 (2020-01-10)
- fix bug where ambient sources were mistakenly added to the Rollup graph. Closes #71. Improve JSDoc support. Closes #64 (5b9e7d7)
- fix core-js self-referencing transformations when preset-env is combined with useBuiltIns: 'usage'. Closes #55 (b31478c)
1.2.4 (2020-01-07)
1.2.3 (2020-01-05)
- allow generating SourceFiles for files matched by a user-provided 'exclude' glob. Closes #65 (c54c1e6)
1.2.2 (2020-01-05)
- improve performance (9fa2756)
1.2.1 (2020-01-03)
- improve performance (7ee2422)
1.2.0 (2019-12-31)
- babel: add @babel/plugin-syntax-dynamic-import as top-level dependency to improve pnpm support that relies on a nested dependency tree (387d4d1)
- spread out tests to avoid memory issues on Node 8 on CI (ebec44c)
- spread out tests to avoid memory issues on Node 8 on CI (3cc8021)
1.1.83 (2019-11-28)
- bug: fix multiple aliased exports from same module (db29b86)
1.1.82 (2019-11-28)
- bug: fix multiple aliased exports from same module (d7e7ec5)
1.1.81 (2019-11-28)
- bug: fix with multiple duplicate reexports (294d7c5)
1.1.80 (2019-11-17)
- builtins: fix issue where packages with identical names to built in modules wasn't resolvable. Closes #46 (fe266f6)
1.1.79 (2019-11-17)
1.1.78 (2019-11-13)
- bug: always use LF line endings when formatting with Prettier inside test runner (1a98dff)
- bug: fix bug where paths could be POSIX on Windows in the modularizing phase (6401151)
- bug: fix issue on Windows with generating declaration maps (3e971bc)
- bug: support multiple environments inside code splitting tests (ca5aa78)
1.1.77 (2019-11-13)
1.1.76 (2019-11-11)
- statement merging: add support for merging type- and lib reference directives (92122b1)
1.1.75 (2019-11-11)
- bug: fix bug that could lead to conflicting local symbols (de41822)
- bug: fix bug where multiple rollup configs inside a compilation unit could lead to faulty cashes (2ad464b)
1.1.74 (2019-11-09)
- ensure no needless identical propertyNames and names in ExportSpecifiers (eb448ec)
- allow to override the search base of the LIB_DIRECTORY lookup (26326a4)
- declarations: declaration generation refactoring (ee3bfa0)
- declarations: more refactoring work (25b21cb)
1.1.73 (2019-10-19)
- bug: fix issue with generating declarations for files containing '.' in their file names (f1be238)
- bug: fix issues with directory imports (implicit /index files) (5d329cd)
1.1.72 (2019-10-16)
- bug: add missing TypeQueryNode wrapper when reassigning imported bindings to VariableDeclarations when bundling declarations. Fixes #36 (dcd2be4)
1.1.71 (2019-10-15)
- bug: fix issue where exporting bindings from external libraries could lead to issues. Fixes #33 (7520fcf)
1.1.70 (2019-10-15)
1.1.69 (2019-10-15)
1.1.68 (2019-10-15)
1.1.67 (2019-10-15)
1.1.66 (2019-10-10)
- declarations: makes sure to use 'declare' keyword where required, and to never use it for declarations within a namespace in an already ambient context. Fixes #24. Fixes #32 (b71e594)
1.1.65 (2019-09-30)
- hook: add hook that can rewrite output paths before files are emitted. (4ec63ba)
1.1.64 (2019-08-29)
1.1.63 (2019-08-12)
- declarations: mark export-less declaration files as modules (26ffe4b)
1.1.62 (2019-07-15)
- bug: fixes an issue with resolving .babelrc files when no explicit path has been given. Closes #25 (be1c80b)
1.1.61 (2019-07-10)
1.1.60 (2019-07-09)
1.1.59 (2019-06-21)
- declaration maps: fixes issue with generating declaration maps (d45e5e1)
1.1.58 (2019-06-21)
1.1.57 (2019-06-20)
- bug: rollback on Caniuse version to 4.6.2 which doesn't include a dependency on the bad version of caniuse-lite (78cbca4)
- bug: rollback on Caniuse version to 4.6.2 which doesn't include a dependency on the bad version of caniuse-lite (0160ea9)
1.1.56 (2019-06-20)
- bug: updates dependencies (15ed99c)
1.1.55 (2019-06-06)
- windows: fixes issues with building and generating declarations on Windows. Fixes #19, #21. Fixes issue with transitive barrel exports. Fixes #10 (d41f915)
1.1.54 (2019-05-29)
- bug: fixes regression with find-up (b2ef2de)
1.1.53 (2019-05-29)
- tsconfig: adds support for providing a function as argument to 'tsconfig' which receives CompilerOptions and allows you to override them. (6ff8fed)
1.1.52 (2019-04-26)
1.1.51 (2019-04-23)
- bug: fixes a bug that could lead to infinite recursion when some runtime babel helpers would transform themselves (4f2eb9e)
1.1.50 (2019-04-22)
- options: makes it possible to pass in both proper CompilerOptions as well as raw, JSON-esque compiler options when giving the tsconfig as an option (0607b6d)
1.1.49 (2019-04-22)
- bug: fixes a bug that could lead to missing exports (b52a245)
1.1.48 (2019-04-22)
- bug: fixes a bug where the 'transpileOnly' option would never be respected (7bfe829)
1.1.47 (2019-04-17)
- bug: fixes bug when producing declaration with namespace imports (808e59e)
- bug: fixes issue with default exports of varying types (d9bdd2a)
- bug: fixes issue with default exports of varying types (b01f4be)
- bug: fixes issues where aliased imports could cause conflicts with merged symbols with name clashes (c5c97cb)
- bug: fixes issues with aliased types with type parameters (702e108)
- bug: refined handling of default exports of unnamed classes (0782f57)
- bug: refined handling of default exports of unnamed functions (8efdaf7)
1.1.46 (2019-04-11)
- bug: fixes issue where babel helpers would force ESM variants even though they were marked as external. Fixes #15 (f981b17)
- format: adds support for 'commonjs' and 'module' aliases for 'cjs' and 'esm' respectively (16153b9)
1.1.45 (2019-03-30)
1.1.44 (2019-03-30)
- bug: fixes an issue with an injected identifier not being found at all times (1381c5e)
- EcmaVersion: adds support for generating browserslists for browsers with support for ES2019 (2c8ea0c)
- typescript: makes it possible to detect and Ecma version for the ScriptTarget ES2019 (b336547)
1.1.43 (2019-03-28)
- multi-entry: fixes an interoperability issue with rollup-plugin-multi-entry where declarations wouldn't be able to detect the entry modules for multi entry chunks (5c9c244)
1.1.42 (2019-03-28)
- babel: fixes various issues with applying babel configs with glob/RegExp matching patterns as well as deduping and merging of config options. #13 (1b8f2ee)
1.1.41 (2019-03-27)
- bug: fixes an issue with resolving regenerator-runtime (a7039ca)
- bug: fixes bugs when 'allowJs' is true. Fixes bugs with providing tsconfig options directly (40d2152)
1.1.40 (2019-03-19)
- bug: removes a console.log (1450fa7)
1.1.39 (2019-03-19)
- bug: fixes an issue with babel where applying minification-related plugins could lead to syntax errors (2a91b7f)
1.1.38 (2019-03-19)
- babel: made it possible to babel to use the 'target' of a tsconfig without a browserslist. Made it possible to resolve tslib and babel helpers without additional resolver plugins (76fd8a3)
1.1.37 (2019-03-18)
1.1.36 (2019-03-18)
- option: adds a new option 'transpileOnly' that can be toggled on to skip emitting (and checking for) diagnostics (1a916d5)
- option: adds a new option 'transpileOnly' that can be toggled on to skip emitting (and checking for) diagnostics (90aaf8d)
1.1.35 (2019-03-14)
1.1.34 (2019-02-26)
1.1.33 (2019-02-26)
- bug: fixes a bug where files with identical basenames, but varying extensions could lead to false positives when matching the cache under some circumstances (28f7a09)
1.1.32 (2019-02-26)
- bug: fixes a bug where files with identical basenames, but varying extensions could lead to false positives when matching the cache under some circumstances (b560c03)
1.1.31 (2019-02-25)
1.1.30 (2019-02-25)
1.1.29 (2019-02-25)
- bug: adds support for missing node types (b5de5ee)
- bug: adds support for missing node types (608d38d)
- bug: adds support for missing node types (9079f2d)
- bug: adds support for missing node types (6a90228)
- bug: fixes an issue where named exports could be removed under some circumstances (322df0c)
- bug: fixes an issue with ExportAssignmens (cafa7ad)
- declarations: far improved support for default exports/imports while bundling declarations across chunks (4ad18d2)
1.1.28 (2019-02-06)
- declarations: fixes an issue with generating declarations (1f93b05)
1.1.27 (2019-02-06)
1.1.26 (2019-02-06)
- declarations: fixes an issue with detecting the entry file name for a chunk (7786000)
1.1.25 (2019-02-06)
- declarations: fixes an issue with detecting the entry file name for a chunk (01cc892)
1.1.24 (2019-02-06)
- bug: fixes a bug that could lead to misaligned content replacements (d40ddbf)
1.1.23 (2019-02-06)
- declarations: fixes a variety of issues with generating declarations related to type-only files not being parsed in the declaration-emition phase (50310ae)
- declarations: fixes an issue that arose with Rollup v1 where type-only files would not be part of the modules of emitted chunks. (043ae50)
1.1.22 (2019-02-04)
- declarations: fixes an issue with generating declarations when ImportTypeNodes are being used (493d8b1)
- dependencies: updates dependencies (ff72436)
1.1.21 (2019-01-27)
- package: adds back tslib as a hard dependency (e6bcf1c)
1.1.20 (2019-01-24)
- package: removes unneeded scripts (43a4c0d)
1.1.19 (2019-01-24)
- bug: fixes an issue where default exports would be removed from declaration files (c2c18ed)
- package: adds pretty-quick to commit hooks (c07c616)
- package: removes unneeded scripts (4275919)
1.1.18 (2019-01-17)
- bug: fixes an issue where 'default' keywords would not be stripped from nodes for which the 'export' keyword had been removed (ff0233e)
1.1.17 (2019-01-02)
1.1.16 (2018-12-30)
1.1.15 (2018-12-30)
- chore: updated to Rollup v1.0.0 (e20e5b0)
1.1.14 (2018-12-21)
1.1.13 (2018-12-21)
1.1.12 (2018-12-20)
1.1.11 (2018-12-17)
1.1.10 (2018-12-13)
1.1.9 (2018-12-06)
1.1.8 (2018-12-05)
1.1.7 (2018-11-29)
1.1.6 (2018-11-28)
1.1.5 (2018-11-28)
1.1.4 (2018-11-14)
1.1.3 (2018-11-14)
1.1.2 (2018-11-13)
1.1.1 (2018-11-13)
1.1.0 (2018-11-12)
- performance and interoperability: improves performance and interoperability (53e1eba)
1.0.12 (2018-10-28)
1.0.11 (2018-10-28)
- declarations: improves declaration (.d.ts) generation by a huge margin. (348ff9f)
1.0.10 (2018-10-24)
1.0.9 (2018-10-23)
1.0.8 (2018-10-18)
1.0.7 (2018-10-18)
1.0.6 (2018-10-18)
- release: Added 'files' array to package.json (b5f16bf)
1.0.5 (2018-10-18)
- bug: Fixed an issue where declaration files found within a project directory wouldn't be discovered. (719d5bd)
1.0.4 (2018-10-18)
- interface: Interfaces for Plugin input options are now exported (b50683d)
1.0.3 (2018-10-18)
- interface: Interfaces for Plugin input options are now exported (a594de5)
1.0.2 (2018-10-18)
- interface: Interfaces for Plugin input options are now exported (9a93738)
1.0.1 (2018-10-17)
- lint: Fixed linting issues (178499c)
1.0.0 (2018-10-17)
- Made JavaScript files resolved from the paths property inside a tsconfig be passed on to Rollup (a1c990c)
- release: ground-up rewrite and some changes to the public API (e43045c), closes #2
- release: The 'babel' config option has been removed in favor of 'babelConfig' which may point to a file on disk (such as a '.babelrc' or a 'babel.config.js') or be a dictionary of Babel options.
- release: The 'parseExternalModules' config option has been removed.