Skip to content

Releases: rmp135/sql-ts

2.1.0

05 Apr 18:31
748de3e
Compare
Choose a tag to compare

New

  • Add support for node 18. Thanks to @hhanesand for the contribution.

2.0.1

24 Mar 09:35
b5ef187
Compare
Choose a tag to compare

Fixes

  • Fix #138 - Table enums are now ordered by key.

2.0.0

16 Mar 20:20
3589702
Compare
Choose a tag to compare

A complete overhaul of the API, modernised testing and improvements galore.

Breaking

  • Exports as an ES module so consumers must also be a module.
  • folder config option removed in favour of specifying the folder in the filename option.
  • The data passed into the template has been modified slightly. A database object of schemas and the entire config is now available.

New

  • Support for MySQL enums (converts to string union)
  • Fluent API for node
  • Mapping functions for cleaner customisation

Changes

  • Very slight change to the output TS file. Apologies in advance for those checking the diffs.
  • Minor optionality fixes with integrations found during testing.

1.18.1

18 Nov 16:26
ca523ba
Compare
Choose a tag to compare

Fixes

  • MySQL explicitly uses ordinal position by default. Thanks to @zydmayday for PR #134

1.18.0

25 Jun 08:00
0aec60c
Compare
Choose a tag to compare

New

  • #127 - New "columnSortOrder" option for determining the column order. Thanks to @zydmayday for the pull request.

1.17.0

25 May 19:00
3639abc
Compare
Choose a tag to compare

Fixes

Fix #129 - Updated MSSQL adapter to use positional arguments for filtering schemas.

Maintenance

#126 - Updated all peer dependencies.

1.16.0

17 Jan 21:38
c7240b5
Compare
Choose a tag to compare

Fixes

  • Fix #118 - XML characters are no longer escaped and can be used in column and table names.

Improvements

  • Merge #117 - MySQL performance improvements when fetching columns.

Maintenance

  • Merge #114 - Updated knex to version 2.x and updated other dependencies as well.

1.15.1

01 Oct 14:22
50707fd
Compare
Choose a tag to compare

Fixes

  • #112 - Fixes duplicate fields appearing when generating postgres schemas.

1.15.0

27 Sep 12:22
babc767
Compare
Choose a tag to compare

New

  • MIT license has been added. Thanks to @VanTanev for bringing this to my attention.

  • Merge #103 - Adds support for pulling the default value of a column from all providers. The value in this field is the raw value that the provider stores the default as and may require additional parsing. Thanks to @laurent22 for the initial merge.

1.14.0

10 Sep 20:48
eb787ea
Compare
Choose a tag to compare

Breaking

  • Fix 104 Trailing numbers are now merged when converting to case. Although technically a regression it does impact the generated names.

New

Fixes

  • Fix 107. Enum names of 0 are now correctly converted to TS safe values.

(Not sure why but the linking to issues / pull requests are broken in the editor.)