Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: remove db.transaction() from types until supported #10501

Merged
merged 3 commits into from
Mar 20, 2024

Conversation

bholmesdev
Copy link
Contributor

Changes

Users can call db.transaction() today, even though it is not supported by our remote DB adapter. This removes db.transaction() from our type definitions until this is supported, and raises a runtime error if called.

Testing

Manual pnpm pack to ensure types work.

Docs

N/A

Copy link

changeset-bot bot commented Mar 19, 2024

🦋 Changeset detected

Latest commit: c9299d7

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@Fryuni
Copy link
Member

Fryuni commented Mar 19, 2024

Sad, but better than failing weirdly at runtime!

@ematipico ematipico merged commit 4831051 into main Mar 20, 2024
13 checks passed
@ematipico ematipico deleted the fix/db-transaction-type branch March 20, 2024 08:27
@astrobot-houston astrobot-houston mentioned this pull request Mar 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants