Skip to content

Commit d1f8f2c

Browse files
Version Packages (next) (#35)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent ded938b commit d1f8f2c

3 files changed

Lines changed: 24 additions & 2 deletions

File tree

.changeset/pre.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
},
77
"changesets": [
88
"effect-v4-beta",
9-
"insertable-null-and-jointable-fk"
9+
"insertable-null-and-jointable-fk",
10+
"legacy-customtype-detector"
1011
]
1112
}

CHANGELOG.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,26 @@
11
# Changelog
22

3+
## 6.0.0-next.2
4+
5+
### Patch Changes
6+
7+
- ded938b: Warn on Effect 3 syntax in `@customType` annotations.
8+
9+
`@customType(...)` expressions are emitted verbatim, so an Effect 3 expression
10+
(e.g. `Schema.Number.pipe(Schema.int(), Schema.between(1, 5))` or the variadic
11+
`Schema.Union(A, B)`) compiles against Effect 3 but breaks against Effect 4. The
12+
generator now scans `@customType` strings at `prisma generate` time and prints a
13+
warning that names the field and the v4 replacement — for filters
14+
(`Schema.int()``Schema.check(Schema.isInt())`, `Schema.between(a, b)`
15+
`Schema.check(Schema.isBetween({ minimum, maximum }))`, etc.), variadic
16+
combinators (`Schema.Union(a, b)``Schema.Union([a, b])`), and removed schemas
17+
(`Schema.UUID`, `Schema.DateFromSelf`). It only warns; it never rewrites the
18+
expression (regex-transforming arbitrary user TypeScript is unsafe).
19+
20+
Also bumps the dev/test Effect pin to `4.0.0-beta.70` and documents that
21+
consumers must pin the exact `6.0.0-next.x` version — a `"*"` range resolves to
22+
the stable `5.x` line because npm/pnpm exclude prereleases from version ranges.
23+
324
## 6.0.0-next.1
425

526
### Patch Changes

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "prisma-effect-kysely",
3-
"version": "6.0.0-next.1",
3+
"version": "6.0.0-next.2",
44
"description": "Prisma generator that creates Effect Schema types from Prisma schema compatible with Kysely",
55
"license": "MIT",
66
"author": "Samuel Ho",

0 commit comments

Comments
 (0)