-
Notifications
You must be signed in to change notification settings - Fork 13
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
Update to latest D1 API #16
Update to latest D1 API #16
Conversation
What really confused me is that there is a bug in |
I'm not sure, so is this broken or not? 👀 It sounds like you fixed the issue? |
@aidenwallis haha the branch is now correct and is working, it targets the latest D1 API. Need to merge this PR to continue using D1 with Kysely 😄 |
Ah got it, thanks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just one question about the example change
Also, this will be a major release (0.2.0), given we're changing the meta object structure changes and we don't provide fallbacks for the old version. |
Sounds ok, I don't think there's any point maintaining backwards compatibility while D1 is in alpha. |
Thanks for the contribution! I'll cut a 0.2.0 release now. |
Cut the release on NPM and Github: https://github.com/aidenwallis/kysely-d1/releases/tag/0.2.0 |
* Update to latest D1 API * Bump compat date * Use correct compat date 🤦♂️ * Update wrangler * Add better error logging * Revert DB ID and add preview
example
project.Description
D1 API has changed: https://github.com/cloudflare/workerd/blob/42d45ba4cd41ed714b737a605a1022cc8d24cdde/types/defines/d1.d.ts#L1-L6
I have no idea if this is a bug or not lolI also can't get this to work on the example project (can't get it to return the new result shape), which is leading me to think this is some sort of bug???? I am seeing the new shape in my Pages builds tho...I'll leave this in draft for now while I hear wait to hear something in the cloudflare discord.I had the wrong compat date and wrangler version lol