Skip to content

Releases: adelsz/pgtyped

v0.11.0

12 May 20:28
Compare
Choose a tag to compare

New features:

  • Only write files if the content differs (thanks @bradleyayers ) ๐Ÿ’พ
  • More informative CLI with help and version flags ๐Ÿ–ฅ๏ธ
  • New database connection URI CLI flag ๐Ÿ”—

v0.10.2

26 Mar 13:57
Compare
Choose a tag to compare

New features:

  • Deterministic sorting for generated types (thanks @carlpeaslee ) ๐Ÿ”ข
  • SSL support (thanks @water-a ) ๐Ÿ”‘
  • New DB URL config option (thanks @mako-taco ) ๐Ÿ”Œ
  • Make generated array types readonly (thanks @mako-taco ) ๐Ÿ”’

v0.9.0

20 Nov 22:15
Compare
Choose a tag to compare

New features:

  • Array types now supported (thanks @steelbrain) ๐Ÿš€
  • Command line option to generate type definitions only for a particular file (thanks @golergka) ๐Ÿงท

Bug fixes:

  • Config parser now accepts absolute file paths (thanks @golergka)
  • Fixed existing npm audit issues and vulnerabilities ๐Ÿ”
  • Multi line comments inside SQL statements are now ignored

v0.8.2

25 Jul 08:18
Compare
Choose a tag to compare

Bug fixes:

  • Fixed column nullability when no nullability info is available (thanks @darky) ๐Ÿ”ฅ
  • Fixed char parsing (thanks @mudrz) ๐Ÿฌ
  • Removed stub dependencies (thanks @mudrz)
  • All dependencies updated

v0.8.1

29 Jun 21:00
Compare
Choose a tag to compare

Bug fixes:

  • Fixed parsing for param names and keys that contain underscores
  • Fixed int8 type map (thanks @darky)
  • Fixed object array spread queries when passed empty params

v0.8.0

24 Jun 22:55
Compare
Choose a tag to compare

New features:

  • New and more efficient TS query parsing engine
  • Experimental field camel casing support (thanks @darky) ๐Ÿซ

Bug fixes:

  • Fix TS query parameter binding issues
  • Fix bigint and bigserial parsing
  • Fix query package dependency issues

v0.7.3

09 Jun 20:24
Compare
Choose a tag to compare

New features:

  • Support both JS and JSON config formats (thanks @mmiszy) ๐Ÿ”ฎ
  • New types support: citext, network, void and interval (thanks @davecardwell and @silasdavis ) ๐Ÿ”ข
  • Ignore irrelevant comments in SQL files ๐Ÿ™ˆ

Bug fixes:

  • Fix SQL and SQL-in-TS queries in which parameters were used multiple times #101 #99 ๐Ÿž
  • Fix query param identifier parsing bug ๐Ÿ›
  • Add TS as peer dependency #87

v0.7.2

22 May 22:06
Compare
Choose a tag to compare

New features:

  • Added an exit-on-error CLI flag failOnError (thanks @silasdavis) ๐Ÿด

Bug fixes:

  • Fixed object key sorting bug for TS based queries #79 ๐Ÿ›

v0.7.0

11 May 22:38
Compare
Choose a tag to compare

New features:

  • Support Postgres types json, jsonb and bytea (thanks @silasdavis) ๐Ÿท๏ธ
  • Support Postgres enum types (thanks @silasdavis) ๐Ÿ„โ€โ™‚๏ธ

Bug fixes:

  • Fixed parsing for queries that use the Postgres type-cast operator :: โ„๏ธ

v0.6.1

01 May 23:50
Compare
Choose a tag to compare

New features:

  • Support customizing generated file paths using emitTemplate ๐Ÿ› ๏ธ
  • Nullable query params can now be passed as both null and undefined ๐ŸŒ—