Skip to content

Releases: Interactions-as-a-Service/d1-orm

v0.9.2

01 Sep 12:01
93e8825
Compare
Choose a tag to compare

Patch Changes

v0.9.1

15 Jul 20:40
d39096f
Compare
Choose a tag to compare

Patch Changes

  • #78 9a49134 Thanks @Skye-31! - Fix(deps): move vitest to dev dependency

    Vitest was accidentally installed as a dependency, rather than a devDependency. Closes #77

v0.9.0

29 Oct 11:17
91f5894
Compare
Choose a tag to compare

Minor Changes

  • #71 5c168e9 Thanks @dtbuchholz! - This introduces breaking changes by updating to the latest @cloudflare/workers-types@^4.20231025.0, including compatability changes for the D1Database exec API. Namely, the model methods CreateTable and DropTable now return a D1ExecResult instead of D1Result.

v0.8.0

11 Sep 16:24
2e8dac4
Compare
Choose a tag to compare

Minor Changes

  • #69 2d5cbef Thanks @helloimalastair! - Adds a withRowId option to the Model class, defaulting to false. When not set to true, the Model.createTableDefinition will now include a WITHOUT ROWID line, which can optimise the performance of a majority of tables.

v0.7.2

02 Dec 10:34
e418a4f
Compare
Choose a tag to compare

Patch Changes

  • #61 921aef0 Thanks @Skye-31! - Chore: use single quotes in the create table definition of a model

v0.7.1

29 Nov 18:17
53791b6
Compare
Choose a tag to compare

Patch Changes

  • 30b38c7 Thanks @Skye-31! - Fix: Unnecessary double partial in some Model queries

v0.7.0

19 Nov 21:26
53dfda1
Compare
Choose a tag to compare

Minor Changes

  • #57 75f58c0 Thanks @Skye-31! - Feat: Make new Model() option for ORM optional. Add Model.D1Orm getter & Model.SetOrm() to allow people to provide an orm after the constructor has been initialised

v0.6.0

01 Nov 11:22
37dcf27
Compare
Choose a tag to compare

Minor Changes

  • #55 5e30824 Thanks @Skye-31! - [breaking] Feat: Refactor models to allow multiple unique keys

    This change restructures the way that primary keys, auto increment keys and unique keys are provided. This allows for multiple unique keys to be provided for a model. These fields have been moved from the ModelColumn type to the first parameter in the Model constructor.

    Refer to the docs for more information.

v0.5.5

13 Oct 14:51
65bcbb6
Compare
Choose a tag to compare

Patch Changes

  • fc7cb87 Thanks @Skye-31! - Feat: Allow null items in Infer

    This change checks NOT NULL constraints on the model definition, and allows null when the constraint is not present.

v0.5.4

11 Oct 19:16
b3b4824
Compare
Choose a tag to compare

Patch Changes

  • b8e1ce6 Thanks @Skye-31! - Chore: fix inferred return type for Model.First()