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

chore: update Drizzle #538

Merged
merged 8 commits into from
Apr 16, 2024
Merged

chore: update Drizzle #538

merged 8 commits into from
Apr 16, 2024

Conversation

EvanHahn
Copy link
Contributor

@EvanHahn EvanHahn commented Apr 1, 2024

This updates drizzle-orm and drizzle-kit to the latest versions.

Notably, a drizzle-orm change required a workaround to avoid resolving a promise with something awaitable.

I think this is a useful change on its own, but it also blocks upgrading TypeScript to the latest version.

This updates drizzle-orm and drizzle-kit to the latest versions.

Notably, [a drizzle-orm change][0] required a workaround to avoid
resolving a promise with something awaitable.

[0]: drizzle-team/drizzle-orm@c063144
Comment on lines -242 to -244
/**
* @param {Parameters<import('drizzle-orm/better-sqlite3').BetterSQLite3Database['select']>[0]} fields
*/
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This parameter (1) isn't in our type definitions (2) isn't used, so I removed it for simplicity.

src/datatype/index.js Outdated Show resolved Hide resolved
@EvanHahn EvanHahn removed the request for review from gmaclennan April 4, 2024 16:58
Copy link
Member

@achou11 achou11 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couple of non-blocking suggestions:

  1. Update to latest drizzle-orm (v0.30.8)

  2. Getting a deprecation warning about the placeholder export (think the notice was introduced somewhere in v0.29.x):

    image

    Might be worth including an update to the import in this PR, as there are only a couple of callsites.

src/datatype/index.js Outdated Show resolved Hide resolved
@EvanHahn
Copy link
Contributor Author

Update to latest drizzle-orm (v0.30.8)

Done in 0f22b0d.

Getting a deprecation warning about the placeholder export (think the notice was introduced somewhere in v0.29.x):

Fixed in 3a78872.

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.

2 participants