You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Backport of #17656 to 3.x, preserving the existing synchronous tooling-loader API.
Drizzle Kit can enter production dependency traces through SQLite and D1 schema tooling. This change loads it only when a tooling method runs.
SQLite and D1 resolve Drizzle Kit from the owning adapter and load it through Payload's dynamicImport helper. The loader immediately returns method wrappers. Those methods retain their existing promise-based behavior for schema push and migration generation. The helper itself is unchanged.
Postgres and Vercel Postgres retain native loading because snapshot generation and upgrading must remain synchronous in 3.x. They also resolve tooling from the owning adapter.
The public SQLite requireDrizzleKit export and RequireDrizzleKit return type remain synchronous. Existing callers do not need to add await to the loader:
All 13 Drizzle tests passed, including synchronous loader use, lazy adapter-owned SQLite resolution, real migration generation, and SQLite schema push.
The Postgres tooling test verifies synchronous snapshot generation and upgrades a version 6 snapshot to version 7 without awaiting the upgrade.
Database adapter and Next package builds passed.
Bundled schema generation passed under Webpack and Turbopack.
The standalone production fixture built successfully. Seven production traces contained no Drizzle Kit package files.
Worker packaging and the previously reported SQLite libSQL external alias issue are not verified by these checks.
Auto reviews are disabled on base/target branches other than the default branch.
Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.
Run configuration
Source mode: Auto
Repository: Unavailable
Branch: Unavailable
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Repository UI
Review profile: CHILL
Plan: Advanced
Run ID: bb1ede72-da7f-41f0-b9f0-5ed047369066
You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.
Use the checkbox below for a quick retry:
🔍 Trigger review
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Comment @coderabbitai help to get the list of available commands.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport of #17656 to
3.x, preserving the existing synchronous tooling-loader API.Drizzle Kit can enter production dependency traces through SQLite and D1 schema tooling. This change loads it only when a tooling method runs.
SQLite and D1 resolve Drizzle Kit from the owning adapter and load it through Payload's
dynamicImporthelper. The loader immediately returns method wrappers. Those methods retain their existing promise-based behavior for schema push and migration generation. The helper itself is unchanged.Postgres and Vercel Postgres retain native loading because snapshot generation and upgrading must remain synchronous in 3.x. They also resolve tooling from the owning adapter.
The public SQLite
requireDrizzleKitexport andRequireDrizzleKitreturn type remain synchronous. Existing callers do not need to addawaitto the loader:Addresses #16470.
Validation
Worker packaging and the previously reported SQLite libSQL external alias issue are not verified by these checks.