Skip to content

Releases: juanluispaz/ts-sql-query

1.37.0

22 Sep 23:56
Compare
Choose a tag to compare

Changes:

  • Implement allowWhen and disallowWhen that throws an error if the expression is used in the final query

Documentation changes:

  • Fix copy&paste on update documentation refering delete

Bug fixes:

  • Fix minValue and maxValue returning wrong value
  • Fix missing with query when a query in a with clause depends on another with query

1.36.0

31 Aug 20:47
Compare
Choose a tag to compare

Bug fixes:

  • Fix invalid uuid type in a reusable fragment

1.35.0

29 Aug 20:11
Compare
Choose a tag to compare

Bug fixes:

  • Fix wrong return type of min and max functions in the connection

1.34.0

17 Aug 12:31
Compare
Choose a tag to compare

Changes:

  • Add valueWhenNoValue function that allows to return a value when null or undefined were provided to the *IfValue function

1.33.0

16 Aug 11:07
Compare
Choose a tag to compare

Bug fixes:

  • Fix "Invalid double value received from the db" when the database send a number as string with trailing 0

1.32.0

15 Aug 14:52
Compare
Choose a tag to compare

Changes:

  • Implement onlyWhen and ignoreWhen function that allows ignoring a boolean expression under a condition
  • Add support to virtual columns on tables and views
  • Implement the types InsertableValues, UpdatableValues and SelectedValues that allows to get the types for an insert, update and select with the proper types defined in the table without the other sql objects

1.31.0

08 Aug 05:46
Compare
Choose a tag to compare

Bug fixes:

  • Fix misspelling in left outer join

1.30.0

20 Jul 23:08
Compare
Choose a tag to compare

Bug fixes:

  • Fix optional join not omitted when an IfValue is used and there is no value

1.29.0

27 Jun 23:07
Compare
Choose a tag to compare

Changes:

  • Export helper types in extras to retrieve row types when insert, update and select
  • Include timestamps in LoggingQueryRunner callbacks
  • Make the ConsoleLogQueryRunner more configurable so that it can output results, timestamps and durations as well

Bug fixes:

  • Fix insert default values on TypeScript 3.5 or higher
  • Unable to compile ts-sql-query with TypeScript 4.7

1.28.0

23 May 01:39
Compare
Choose a tag to compare

Changes:

  • Add compatibility mode to MySql to avoid use the with clause not supported by MySql 5
  • Add support to reference current value and value to insert in an insert on conflict do update