Skip to content

Latest commit

 

History

History
101 lines (54 loc) · 4.71 KB

CHANGELOG.md

File metadata and controls

101 lines (54 loc) · 4.71 KB

1.14.1 (2024-12-30)

Bug Fixes
  • Suppress rate limiting errors thrown by the getCachedOrFetch() method when many calls are made within 1 second to the cache. The cache should not preclude the fetched item from returning. This can happen, for example, when trying to get a user from the DB and cache it for subsequent calls. If too many calls come in at once, the first may not have time to cache its result before the next call comes in. Cloudflare KV will throw a 429 as it sees multiple writes to the same key within 1s. (5e4b1aa7)

1.14.0 (2024-12-29)

New Features
  • Support bulk deletes in BaseCache using the KV API in favor of bindings (326fccae)

1.13.2 (2024-12-15)

Bug Fixes
  • Fixed bug where privacy masking would throw an error if the field targeted was undefined (c9d71505)

1.13.1 (2024-12-15)

1.13.0 (2024-12-15)

New Features
  • New base middleware class provides utilities to traverse a model's ancestors looking for a particular condition to be met. (4acbdfd1)
  • "Private" and "System" flags in the prop decorator now support functions. (427f00bb)
Other Changes
  • //github.com/cloudflare-extension/unconventional (2665970a)

1.12.0 (2024-12-10)

New Features
  • "Private" and "System" flags in the prop decorator now support functions. (427f00bb)
Other Changes
  • //github.com/cloudflare-extension/unconventional (2665970a)

1.12.0 (2024-12-10)

New Features
  • "Private" and "System" flags in the prop decorator now support functions. (427f00bb)
Other Changes
  • //github.com/cloudflare-extension/unconventional (2665970a)

1.10.0 (2024-10-09)

New Features
  • Add maskPrivate method to Base Model, which can be used by the BaseController's maskPrivateFields method (5099e232)

1.9.1 (2024-09-25)

  • Fix timestamp pollution of parent models. (e443297)

1.8.0 (2024-09-23)

  • Make createdAt and updatedAt field names customizable (e.g. created_at and updated_at). (d05b6bf)

1.7.0 (2024-09-22)

  • Add Truncate and Increment/Decrement methods to BaseModel. (de7020e)

1.5.0 (2024-09-16)

New Features
  • Allow BaseModel.id to be either a number or a UUID. (980a8200)

1.4.2 (2024-09-16)

Other Changes
  • BaseService.getAll() will now return all records if limit < 0 (6f048439)

1.3.2 (2024-09-16)

Feature
  • BaseModel can now support circular dependencies in its relations, e.g. if User HasOne Animal and Animal BelongsToOne User. (7a0ed60)

Example:

Set the model field to () => User instead of User.

@prop<typeof User>({ relation: { type: RelationType.BelongsTo, model: () => User, from: "user_id", to: "id" } })
  public owner?: User;

1.1.0 (2024-08-08)

Breaking Changes
  • The type of BaseModel.id changed from number to string | number to allow for GUIDs as primary keys. (23a70a6 )