[BUG]:Deprecated TaggedErrorClass syntax incompatible with Effect v4 release candidates
Report hasn't been filed before.
- [x] I have verified that the bug I'm about to report hasn't been filed before.
What version of drizzle-orm are you using?
1.0.0-rc.4
What version of drizzle-kit are you using?
1.0.0-rc.4
Other packages
No response
Describe the Bug
effect-core/errors.js calls Schema.TaggedErrorClass but it was renamed to Schema.TaggedError in a recent release.
Effect Changelog: https://github.com/Effect-TS/effect/blob/main/packages/effect/CHANGELOG.md#400-beta104 PR for the name change: https://github.com/Effect-TS/effect/pull/6732
I would like to work on this
Thanks for the report. I checked this against drizzle-team/drizzle-orm on main and can't find anything matching what's described:
- No effect-core directory exists anywhere in this repo.
- No match for Schema.TaggedErrorClass (or TaggedErrorClass) anywhere in the codebase.
- No package.json in this repo declares a dependency on "effect".
- The version cited (1.0.0-rc.4) doesn't match this repo's current version on main (0.45.3).
Could you confirm this was filed against the correct repository? Happy to help further once that's sorted out.
The issue is with 1.0.0-rc.4. It's on that branch: https://github.com/drizzle-team/drizzle-orm/blob/v1.0.0-rc.4/drizzle-orm/src/effect-core/errors.ts
Fixed in 1.0.0-rc.5. Use drizzle-orm@rc.