drizzle-orm icon indicating copy to clipboard operation
drizzle-orm copied to clipboard

[BUG]:Deprecated TaggedErrorClass syntax incompatible with Effect v4 release candidates

Open lotap opened this issue 3 months ago • 4 comments

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

lotap avatar Aug 21 '26 22:08 lotap

I would like to work on this

SayantanDutt avatar Aug 24 '26 03:08 SayantanDutt

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.

SayantanDutt avatar Aug 24 '26 03:08 SayantanDutt

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

lotap avatar Aug 25 '26 17:08 lotap

Fixed in 1.0.0-rc.5. Use drizzle-orm@rc.

Sukairo-02 avatar Oct 21 '26 18:10 Sukairo-02