Skip to content

v5.1.0

Latest
Compare
Choose a tag to compare
@samhuk samhuk released this 10 Oct 23:48
· 22 commits to master since this release
4d8f1f9

Summary

This version contains breaking changes. This minor version bump had 4 primary goals:

  1. Create a public API for the package so that users don't have to import from nested directories within ts-pg-orm/dist/...
  2. Fix bug with related data properties not showing for get() and getMany() store functions.
  3. Support for circular relations when provisioning and unprovisioning stores.
  4. Incremental quality improvements, e.g. less reliance on @ts-ignore' and better createRelation()` code.

New Features:

  • Support for circular relations (this required a lot of changes to the store provisioning code).

Improvements:

  • Reduce dependence on @ts-ignore and instead use Access<T> and Cast<T> "forcer generics".
  • Providing a simplified single-level public API for all of the functions, enums, types, etc. that are required to use the package. This is at the root level index.ts file, so they are all easily accessible.
  • Fix a bug with 5.0.x where related data props were not included in get() and getMany() store functions due to how the name property of the Relation type was declared.
  • Ensure only absolutely required typescript is included in typescript dist directory (for npm publishing)
  • Improve ts build npm commands
  • Improvement in the createRelation() code.
  • Etc.