Skip to content

Latest commit

 

History

History
614 lines (218 loc) · 22.3 KB

CHANGELOG.md

File metadata and controls

614 lines (218 loc) · 22.3 KB

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

0.39.0 (2024-11-21)

Features

  • add function to get authorization results for canViewerUpdateAsync/canViewerDeleteAsync (#249) (27a358d)

0.38.0 (2024-06-27)

Features

  • add EntityEdgeDeletionAuthorizationInferenceBehavior for canViewerDeleteAsync (#243) (162b192)

0.37.0 (2024-06-12)

Bug Fixes

0.36.0 (2024-06-12)

Breaking Changes

  • make using non-enforcing entity loader explicit (#238) (2edc7af)

Bug Fixes

  • always reload entity after update since cascading changes may have changed it since commit (#233) (7c3c985)
  • constrain entity fields type to string-keyed object (#235) (7e2cea1)
  • disallow keys of JS Object prototype for safety (#236) (05726d4)

Features

  • Add global mutation trigger field to EntityCompanionProvider (#215) (6569486)
  • add previousValue to privacy policy context for updates (#232) (af495a9)
  • Add StrictEnumField with better validation (#222) (8753252)
  • make canViewerDeleteAsync recursive (#224) (60fc9a4)
  • Use uuid v7 in stub database adapter (#234) (1e8ea64)
  • move entity loader utils into their own object (#239)(93905be)

0.35.0 (2024-04-11)

Bug Fixes

  • Revert: require explicit query context specification (#219) (1bdfbd6)

0.34.0 (2024-04-11)

Features

  • Allow UUIDv6/7/8 in UUIDField validation (#221) (cc6f3dc)
  • require explicit query context specification (#219) (8b0b31f)

0.33.0 (2023-10-06)

Features

  • add loadManyByIDsNullableAsync loader method (#214) (aad94ac)

0.32.0 (2023-06-10)

Bug Fixes

  • remove unused field from redis configuration (#213) (503a2fb)

Features

  • add ability to specify knex transaction config (#207) (2069a0d)
  • entity companion definition static thunk (#210) (4b18010)

0.31.1 (2023-03-06)

Features

  • add loadFirstByFieldEqualityConjunction, a convenience method (#206) (1934216)

0.31.0 (2023-01-19)

Note: Version bump only for package root

0.30.0 (2022-12-23)

Note: Version bump only for package root

0.29.0 (2022-10-06)

Features

  • add example of redis mget batching using @expo/batcher (#199) (684f91b)
  • change redis cache adapter to use redis-like interface (#200) (e381f5b)

0.28.0 (2022-09-13)

Features

0.27.0 (2022-08-09)

Features

  • add orderByRaw to loadManyByRawWhereClauseAsync (#185) (2817d78)

0.26.1 (2022-07-28)

Features

  • recache to higher cache levels when loading from a composed cache (#182)

0.26.0 (2022-07-14)

Bug Fixes

Features

  • add EntityEdgeDeletionBehavior.SET_NULL_INVALIDATE_CACHE_ONLY (#178) (a0c35dd)
  • update ioredis to v5, make it a devDependency of the cache packages (#172) (9fcfbf7)

0.25.3 (2022-03-12)

Bug Fixes

0.25.2 (2022-03-12)

Bug Fixes

  • lru-cache yarn workspace version resolution (#168) (e76ca8c)

0.25.1 (2022-03-10)

Bug Fixes

0.25.0 (2022-03-10)

Features

  • composed cache adapter, composed secondary cache, local memory secondary cache (#164) (6b6e70e)
  • privacy policy evaluation context (#162) (3a81a4c)

0.24.0 (2022-02-16)

Features

Chores

  • Refactor cachers to use an abstract class and interface (#157)

0.23.0 (2022-02-09)

Breaking changes

  • Move data transforming responsibilities to the CacheAdapter instead of the ReadThroughEntityCache. Affects any classes extending the EntityCacheAdapter and relying on the transformation behavior of the ReadThroughEntityCache. (#153)

0.22.0 (2022-02-04)

Features

  • Upgrade knex to 1.x in @expo/entity-database-adapter-knex (#150) (e1b0ee5)

0.21.0 (2022-01-03)

Features

  • add pre-commit callbacks on EntityQueryContext (#147) (f1d9847)

0.20.0 (2021-12-29)

Bug Fixes

  • separate post-commit invalidation callbacks from trigger and user callbacks (#144) (efa131e)

Features

0.19.0 (2021-10-28)

Features

0.18.0 (2021-10-14)

Features

  • enable noImplicitOverride tsc setting (#135) (4263cb9)
  • expose describeFieldTestCase for use in other packages (#139) (1220477)
  • upgrade TypeScript to 4.4 (#134) (7612392)
  • use better QueryContext types for transactional triggers and validators (#136) (5c7efe1)

0.17.0 (2021-08-16)

Features

  • Add IntField and FloatField, deprecate NumberField (#131) (2f2d963)

0.16.0 (2021-07-07)

Features

  • allow null field values in loadManyByFieldEqualityConjunctionAsync (#130) (2f37dc6)

0.15.0 (2021-05-26)

Bug Fixes

  • upgrade ioredis, knex, and pg (#125) (7c43edf)
  • upgrade some other packages to fix dependabot alerts (#126) (226bffe)
  • use column name instead of field name for redis cache key (#124) (d78f452)

Features

0.14.1 (2021-03-24)

Bug Fixes

  • typescript typedef of EntityMutationInfo (#121) (8e8f0dc)

0.14.0 (2021-03-24)

Bug Fixes

  • mutation validator and trigger cyclic import structure (#118) (b11dbc0)

Features

  • add mutation type to validator and trigger execute functions (#119) (ef40fa5)

0.13.0 (2021-02-12)

Bug Fixes

  • allow undefined value for all fields (#114) (022e0e9)

Features

  • add basic field type runtime validators (#113) (6c4d4b0)

0.12.0 (2021-01-22)

Bug Fixes

  • move runInTransaction to ViewerContext (#108) (b7309e1)
  • remove cache and database adaptor flavor enums (#109) (72a77f8)

Features

  • better typing on filterMap for use with predicates (#106) (01b3bfe)

0.11.0 (2020-12-24)

Bug Fixes

  • add type generic default in test utils (#104) (fe2917e)
  • maps utils invariants for collections containing undefined values (#103) (29c1a43)
  • remove any cast from EntityLoader (#100) (b8e07f9)

Features

  • better cache adapter error handling (#102) (15546aa)
  • better database adapter error handling (#101) (5208aee)

0.10.0 (2020-11-17)

Bug Fixes

  • fix null handling in load paths (try 2) (#96) (d960329)

0.9.1 (2020-11-06)

Bug Fixes

  • edge deletion behavior cyclic import structure again (#93) (012c05d)

0.9.0 (2020-11-05)

Bug Fixes

  • edge deletion behavior cyclic import structure (#89) (cca8fc1)

Features

  • add ability to invalidate an entity manually (#91) (d1a6f13)

0.8.1 (2020-10-09)

Note: Version bump only for package root

0.8.0 (2020-10-09)

Features

  • add entityClassName to metrics adapter events (#83) (f4cdc01)

0.7.1 (2020-10-01)

Bug Fixes

  • correct type of runInTransactionAsync (#81) (f98f7d1)

0.7.0 (2020-10-01)

Bug Fixes

  • fix incorrect loader types for field selecitons (#72) (cd2df8d)
  • fix index export for EntityMutationTrigger and EntityMutationValidator (#73) (7e829f3)
  • move cache invalidation to after transaction commit (#77) (dbc3c81)
  • upgrade packages (#78) (9891e74)

0.6.0 (2020-07-23)

Bug Fixes

  • ensure transitive deletion triggers are run for CASCADE_DELETE_INVALIDATE_CACHE (#66) (5744c51)
  • separate out EntityMutationValidator (#68) (547a1ef)
  • update setField to correct typing (#62) (7a77afc)

Features

0.5.2 (2020-07-02)

Bug Fixes

  • fix stub cache key generation for global cache (#59) (7c180e8)

0.5.1 (2020-07-01)

Bug Fixes

  • correct some typing issues and exports (#57) (e91cfba)

0.5.0 (2020-07-01)

Bug Fixes

  • support number ID field generation in StubDatabaseAdapter (#43) (60cc0fb)
  • upgrade Apollo server for security advisory (#38) (d25c1e1)

Features

  • add two fan out methods to association loader (#52) (89cfb3d)
  • support entity fields subset of db fields (#49) (4e40b2e)

0.4.0 (2020-06-03)

  • All Packages
    • Documentation Improvements
    • CI & Coverage
    • TypeScript 3.9 (#18)
  • @expo/entity
    • Enforcing mutator convenience functions (#5)
    • loadByIDNullable loader method (#28)
    • Add ability to check update and delete policies outside of mutation (#30)
  • @expo/entity-cache-adapter-redis
  • @expo/entity-database-adapter-knex
    • Throw when database adapter receives unexpected mutation results (#31)
  • @expo/entity-example
    • Initial Version

0.3.0 (2020-04-28)

  • @expo/entity
    • Initial Version
  • @expo/entity-cache-adapter-redis
    • Initial Version
  • @expo/entity-database-adapter-knex
    • Initial Version