pgtyped

pgTyped - Typesafe SQL in TypeScript

MIT License

Downloads
420.6K
Stars
2.8K
Committers
48

Bot releases are visible (Hide)

pgtyped - v2.3.0 Latest Release

Published by adelsz about 1 year ago

New features

  • Experimental mode to generate a unique typed SQL tag by @JesseVelden in https://github.com/adelsz/pgtyped/pull/520
  • Generated imports are forced to be type-only where possible
  • Introduced a config variable to limit the max number of worker threads

Bug fixes

New Contributors

Full Changelog: https://github.com/adelsz/pgtyped/compare/v2.2.1...v2.3.0

pgtyped - v2.2.0

Published by adelsz over 1 year ago

What's Changed

New Contributors

Full Changelog: https://github.com/adelsz/pgtyped/compare/v2.1.0...v2.2.0

pgtyped - v2.1.0

Published by adelsz over 1 year ago

New features

Bug fixes

New Contributors

Full Changelog: https://github.com/adelsz/pgtyped/compare/v2.0.1...v2.1.0

pgtyped - v2.0.1

Published by adelsz over 1 year ago

Bug fixes

Full Changelog: https://github.com/adelsz/pgtyped/compare/v2.0.0...v2.0.1

pgtyped - v2.0.0

Published by adelsz over 1 year ago

Features:

Bug fixes:

Development changes:

  • Lerna upgraded to latest version, meaning we now use native npm workspaces.
  • Jest upgraded to latest version, number of tests rewritten to work with ESM and latest Jest. Mocking no longer supported.
  • `@pgtyped/example" Integration tests now using Jest.
  • Docs upgraded to Docusaurus 2.

Funding

New Contributors

pgtyped - v1.1.0

Published by adelsz over 1 year ago

Features:

  • Support type overrides (thanks @nick-keller) ๐Ÿ› ๏ธ
  • Hungarian notation in interface names is now opt-in (thanks @snarky-puppy) ๐Ÿ‡ญ๐Ÿ‡บ

Bug fixes:

  • Fixed the parser to support Unicode characters that were breaking some queries ๐ŸŒ
pgtyped - v1.0.2

Published by adelsz about 2 years ago

Bug fixes:

  • Adding a query with a JsonArray type now correctly emits a Json type as well (thanks @logan12358) ๐Ÿ“š
  • Fixed the bug where pgTyped would leave orphan worker processes after shutdown ๐Ÿšธ
  • Fixed invalid dbUrl in the example config file ๐Ÿ”—
pgtyped - v1.0.0

Published by adelsz over 2 years ago

New features:

  • File processing logic is now parallelized, meaning much faster runs on large codebases (thanks @golergka) ๐ŸŽ๏ธ
  • Output nullability overriding that provides a workaround for Postgres type inference quirks (thanks @JesseVelden) ๐ŸŽ‰
  • Column comments are now included in generated types (thanks @danvk) ๐Ÿ’ฌ
  • Stable SQL query IR preventing git diffs on irrelevant query file changes (thanks @bradleyayers) ๐Ÿ›๏ธ
  • Postgres tsvector datatype now supported (thanks @bradleyayers) ๐Ÿ”–

Bug fixes:

  • Improved parsing of SQL comments (thanks @bradleyayers)
  • Lexer bug for params with specials chars preceding
  • Multiline comments parsing bug fixed
  • More verbose file processing messages
pgtyped - v0.13.0

Published by adelsz almost 3 years ago

New features:

  • Support enum array types (thanks @maylukas ) ๐Ÿ“š
  • Support SCRAM-SHA-256 authentication (thanks @JesseVelden) ๐Ÿ”‘
  • Introduce deterministic field ordering (thanks @fmmoret) ๐Ÿ”ข

Bug fixes:

  • Fix non-nullable parameters parsing edgecase ๐Ÿž
  • Use unknown instead of never for unsupported types (thanks @theswerd) โ”
pgtyped - v0.12.0

Published by adelsz about 3 years ago

New features:

  • Allow to specify param nullability as :paramName! (thanks @JohnnyCrazy) ๐Ÿฅ‡
  • Postgis point type support (thanks @joecarver ) โšช

Bug fixes:

  • esModuleInterop: false compatibility fix (thanks @bag-man) ๐Ÿ“ฆ
  • Cast numeric/decimal/money as a string (thanks @jgonera) ๐Ÿ’ต
pgtyped - v0.11.0

Published by adelsz over 3 years ago

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 ๐Ÿ”—
pgtyped - v0.10.2

Published by adelsz over 3 years ago

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 ) ๐Ÿ”’
pgtyped - v0.9.0

Published by adelsz almost 4 years ago

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
pgtyped - v0.8.2

Published by adelsz about 4 years ago

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
pgtyped - v0.8.1

Published by adelsz over 4 years ago

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
pgtyped - v0.8.0

Published by adelsz over 4 years ago

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
pgtyped - v0.7.3

Published by adelsz over 4 years ago

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
pgtyped - v0.7.2

Published by adelsz over 4 years ago

New features:

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

Bug fixes:

  • Fixed object key sorting bug for TS based queries #79 ๐Ÿ›
pgtyped - v0.7.0

Published by adelsz over 4 years ago

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 :: โ„๏ธ
pgtyped - v0.6.1

Published by adelsz over 4 years ago

New features:

  • Support customizing generated file paths using emitTemplate ๐Ÿ› ๏ธ
  • Nullable query params can now be passed as both null and undefined ๐ŸŒ—
Package Rankings
Top 2.18% on Npmjs.org
Badges
Extracted from project README
Actions Status Join the chat at https://gitter.im/pgtyped/community