diff --git a/.changeset/filter-condition-logic.md b/.changeset/filter-condition-logic.md deleted file mode 100644 index df5e097..0000000 --- a/.changeset/filter-condition-logic.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -"@softzweig/spindle-drizzle": minor ---- - -Conditions compose. `and(...)` and `or(...)` take filter conditions and apply them to the -column their filter key resolved to, reusing drizzle's own `and` and `or`, so one key can -express several operators (#28): - -```ts -await assets.findMany({ key: or(ilike("%.png"), like("%.jpg")) }); -// ... where ("key" ilike $1 or "key" like $2) -``` - -An empty `and` is true and an empty `or` is false, the identities drizzle's own functions -give them. diff --git a/packages/drizzle/CHANGELOG.md b/packages/drizzle/CHANGELOG.md index 2bfb8c2..475ece2 100644 --- a/packages/drizzle/CHANGELOG.md +++ b/packages/drizzle/CHANGELOG.md @@ -1,5 +1,21 @@ # @softzweig/spindle-drizzle +## 0.4.0 + +### Minor Changes + +- [#29](https://github.com/softzweig/spindle/pull/29) [`fd5506b`](https://github.com/softzweig/spindle/commit/fd5506bcf43f9bc2e4572a150f552cf82f14d142) Thanks [@vinznt](https://github.com/vinznt)! - Conditions compose. `and(...)` and `or(...)` take filter conditions and apply them to the + column their filter key resolved to, reusing drizzle's own `and` and `or`, so one key can + express several operators ([#28](https://github.com/softzweig/spindle/issues/28)): + + ```ts + await assets.findMany({ key: or(ilike("%.png"), like("%.jpg")) }); + // ... where ("key" ilike $1 or "key" like $2) + ``` + + An empty `and` is true and an empty `or` is false, the identities drizzle's own functions + give them. + ## 0.3.0 ### Minor Changes diff --git a/packages/drizzle/package.json b/packages/drizzle/package.json index 40c2a4d..9b2e80c 100644 --- a/packages/drizzle/package.json +++ b/packages/drizzle/package.json @@ -1,6 +1,6 @@ { "name": "@softzweig/spindle-drizzle", - "version": "0.3.0", + "version": "0.4.0", "description": "Drizzle ORM repository bindings for Spindle.", "license": "MIT", "repository": {