Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 0 additions & 15 deletions .changeset/filter-condition-logic.md

This file was deleted.

16 changes: 16 additions & 0 deletions packages/drizzle/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/drizzle/package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
Loading