Skip to content

v2.0.0

Compare
Choose a tag to compare
@adelsz adelsz released this 29 Jan 16:06
· 184 commits to master since this release

Features:

  • All packages and code migrated to ES modules πŸ“š (#478)
  • Introduced new @pgtyped/runtime package. πŸƒ (#478)
    It is the only package needed to run pgTyped generated queries and is optimized for package size (ESM & CommonJS compatible).
  • Environment variable DATABASE_URL now supported as an alternative to PGURI (thanks to @msakrejda in #484)
  • Nullable scalar parameter are no longer required when running a query (#482) πŸ₯‚
  • Queries returning anonymous columns are now forbidden and result in an error
  • PgTyped in watch mode warns & exits on config file changes (2515f15) πŸ‘€
  • Migrate to a more modern and performant threadpool Piscina. 🐠

Bug fixes:

  • failOnError config option now kills the threadpool and exits pgTyped with an error code (aada874) πŸ™…

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