Skip to content

Releases: timocov/dts-bundle-generator

3.3.1

11 Nov 16:02
Compare
Choose a tag to compare

Fixed

  • Always set noEmit compiler option to false (see abefe26)

3.3.0

07 Nov 08:26
Compare
Choose a tag to compare

Fixed

  • Always set declaration compiler option to true (see #99)

3.2.0

04 Aug 16:33
Compare
Choose a tag to compare

Changed

  • Do not compile project for d.ts files if all files are d.ts already (see 284ff87).
    This fix might improve speed of generating bundle.
  • incremental and tsBuildInfoFile compiler options now will be removed while generating bundle (see 83a113b)
  • Removing outDir compiler option doesn't write log about it anymore (see 83a113b)
  • Pass path to tsconfig file while parsing it via parseJsonConfigFileContent function (see c506fb1)
  • Updated yargs to 13.3 (see fb13761)

3.1.0

16 May 11:45
Compare
Choose a tag to compare

Added

  • Added yellow color for warning (see f1dee4a)

Fixed

  • Fixed bug with exporting types with keyof typeof variable and adding export keyword for variables (see 782cb87)

3.0.0

12 Apr 16:41
Compare
Choose a tag to compare

Breaking changes

  • declare module of external modules aren't inlined by default. To inline them use --inline-declare-externals cli option (see #75)
  • Dropped support for NodeJS < 8

Added

  • Added basic support of paths compiler option to determine "external" libraries (see #74)
  • Added cli option --inline-declare-externals to inlining declare module statements of global modules (see #75)

Changed

  • Added more logs to an error message when bundling is failed due failOnClass option (see #77)
  • Error messages now colored in red (see 6630db8)
  • export {}; statement is added to each generated dts to avoid importing non-exported nodes from it (see #58 and #81)

Fixed

  • Fixed bug with adding unnecessary export keyword to declare module statements (see 072d3a9)
  • Now nodes are sorted by node's text only (without JSDoc) (see #23)
  • Fixed bug when extends option in tsconfig is set to node_modules (see #82)

Deps updates

  • yargs has been updated to 13.2.2 version (see #87)

Thanks to our contributors:

2.1.0

14 Feb 19:32
Compare
Choose a tag to compare

Changed

  • To check generated output skipLibCheck compiler option will be disabled if it is enabled (see #72)

Fixed

  • Fixed bug with generating path in Windows (see eefb116)
  • Fixed incorrect importing nodes from the default library (see #71)

2.0.0

10 Dec 11:51
Compare
Choose a tag to compare

Breaking changes

  • The config's format is changed (see #55 and #63).
    The new format of the config is described here.
    To migrate your config from previous version you may use this script.
  • API is changed (see #63 (comment) and ab43977)

Added

  • The npm package now contains own TypeScript declaration files (see #49 and #64)
  • Possibility to specify multiple entries, which will be compiled in one compilation (see #55 and #63).
    This change may decrease build time if you generate dts for multiple entries.
  • Added cli option --silent to disable any logging (except errors) (see 63d359c)

Changed

  • By default, if you use API (not from cli), default log level is error now (see 10f51a9)

Fixed

  • Fixed bug with exporting nodes via export = expression (see #42 and #60)
  • Fixed bug with exporting nodes via export default export (see #17 and #61)

1.6.1

31 Jul 07:04
Compare
Choose a tag to compare

Added

  • Added warning if skipLibCheck compiler option is enabled (bd4a011)

Fixed

  • Unlocked TypeScript top version in dependencies (1412ecc)

1.6.0

29 Jun 21:38
Compare
Choose a tag to compare

Breaking changes

Fixed

  • Used Program.isSourceFileDefaultLibrary instead of regex to handle TypeScript's default library files (see #48 and e387abe)

1.5.0

22 Jun 20:34
Compare
Choose a tag to compare

Fixed

  • Fixed importing variables (see #44)
  • Added declare keyword to ClassDeclaration nodes if it is not presented yet (see #43)