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

build(deps-dev): bump the drizzle group with 2 updates #1450

Closed

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Dec 9, 2024

Bumps the drizzle group with 2 updates: drizzle-kit and drizzle-orm.

Updates drizzle-kit from 0.29.1 to 0.30.0

Release notes

Sourced from drizzle-kit's releases.

[email protected]

Starting from this update, the PostgreSQL dialect will align with the behavior of all other dialects. It will no longer include IF NOT EXISTS, $DO, or similar statements, which could cause incorrect DDL statements to not fail when an object already exists in the database and should actually fail.

This change marks our first step toward several major upgrades we are preparing:

  • An updated and improved migration workflow featuring commutative migrations, a revised folder structure, and enhanced collaboration capabilities for migrations.
  • Better support for Xata migrations.
  • Compatibility with CockroachDB (achieving full compatibility will only require removing serial fields from the migration folder).
Commits
  • c18f224 Merge pull request #3724 from drizzle-team/beta
  • 74a51ae dprint
  • b4ec3ac Merge branch 'main' of github.com:drizzle-team/drizzle-orm into beta
  • 2d149cd Merge pull request #3717 from drizzle-team/postgres-js-mock-fix
  • 29eb63c Make introspect not use deprecated third param option as object
  • 3256029 Update 3rd param for all dialects
  • 734021d Fixed .mock in postgres-js
  • 6dabeb2 Up versions
  • 7525e49 Overhaul validator packages (#3508)
  • a44af76 Drizzle kit/remove-non-strict-postgres (#3403)
  • Additional commits viewable in compare view

Updates drizzle-orm from 0.37.0 to 0.38.0

Release notes

Sourced from drizzle-orm's releases.

0.38.0

Types breaking changes

A few internal types were changed and extra generic types for length of column types were added in this release. It won't affect anyone, unless you are using those internal types for some custom wrappers, logic, etc. Here is a list of all types that were changed, so if you are relying on those, please review them before upgrading

  • MySqlCharBuilderInitial
  • MySqlVarCharBuilderInitial
  • PgCharBuilderInitial
  • PgArrayBuilder
  • PgArray
  • PgVarcharBuilderInitial
  • PgBinaryVectorBuilderInitial
  • PgBinaryVectorBuilder
  • PgBinaryVector
  • PgHalfVectorBuilderInitial
  • PgHalfVectorBuilder
  • PgHalfVector
  • PgVectorBuilderInitial
  • PgVectorBuilder
  • PgVector
  • SQLiteTextBuilderInitial

New Features

  • Added new function getViewSelectedFields
  • Added $inferSelect function to views
  • Added InferSelectViewModel type for views
  • Added isView function

Validator packages updates

  • drizzle-zod has been completely rewritten. You can find detailed information about it here
  • drizzle-valibot has been completely rewritten. You can find detailed information about it here
  • drizzle-typebox has been completely rewritten. You can find detailed information about it here

Thanks to @​L-Mario564 for making more updates than we expected to be shipped in this release. We'll copy his message from a PR regarding improvements made in this release:

  • Output for all packages are now unminified, makes exploring the compiled code easier when published to npm.
  • Smaller footprint. Previously, we imported the column types at runtime for each dialect, meaning that for example, if you're just using Postgres then you'd likely only have drizzle-orm and drizzle-orm/pg-core in the build output of your app; however, these packages imported all dialects which could lead to mysql-core and sqlite-core being bundled as well even if they're unused in your app. This is now fixed.
  • Slight performance gain. To determine the column data type we used the is function which performs a few checks to ensure the column data type matches. This was slow, as these checks would pile up every quickly when comparing all data types for many fields in a table/view. The easier and faster alternative is to simply go off of the column's columnType property.
  • Some changes had to be made at the type level in the ORM package for better compatibility with drizzle-valibot.

And a set of new features

  • createSelectSchema function now also accepts views and enums.
  • New function: createUpdateSchema, for use in updating queries.
  • New function: createSchemaFactory, to provide more advanced options and to avoid bloating the parameters of the other schema functions

Bug fixes

... (truncated)

Commits
  • c18f224 Merge pull request #3724 from drizzle-team/beta
  • 74a51ae dprint
  • b4ec3ac Merge branch 'main' of github.com:drizzle-team/drizzle-orm into beta
  • 2d149cd Merge pull request #3717 from drizzle-team/postgres-js-mock-fix
  • 29eb63c Make introspect not use deprecated third param option as object
  • 3256029 Update 3rd param for all dialects
  • 734021d Fixed .mock in postgres-js
  • 6dabeb2 Up versions
  • 7525e49 Overhaul validator packages (#3508)
  • a44af76 Drizzle kit/remove-non-strict-postgres (#3403)
  • Additional commits viewable in compare view

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore <dependency name> major version will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
  • @dependabot ignore <dependency name> minor version will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
  • @dependabot ignore <dependency name> will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
  • @dependabot unignore <dependency name> will remove all of the ignore conditions of the specified dependency
  • @dependabot unignore <dependency name> <ignore condition> will remove the ignore condition of the specified dependency and ignore conditions

Bumps the drizzle group with 2 updates: [drizzle-kit](https://github.com/drizzle-team/drizzle-orm) and [drizzle-orm](https://github.com/drizzle-team/drizzle-orm).


Updates `drizzle-kit` from 0.29.1 to 0.30.0
- [Release notes](https://github.com/drizzle-team/drizzle-orm/releases)
- [Commits](https://github.com/drizzle-team/drizzle-orm/compare/[email protected]@0.30.0)

Updates `drizzle-orm` from 0.37.0 to 0.38.0
- [Release notes](https://github.com/drizzle-team/drizzle-orm/releases)
- [Commits](drizzle-team/drizzle-orm@0.37.0...0.38.0)

---
updated-dependencies:
- dependency-name: drizzle-kit
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: drizzle
- dependency-name: drizzle-orm
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: drizzle
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Dec 9, 2024
Copy link

cloudflare-workers-and-pages bot commented Dec 9, 2024

Deploying mach with  Cloudflare Pages  Cloudflare Pages

Latest commit: f327a9b
Status: ✅  Deploy successful!
Preview URL: https://416a23b1.mach.pages.dev
Branch Preview URL: https://dependabot-npm-and-yarn-main-2t0a.mach.pages.dev

View logs

Copy link

codesandbox bot commented Dec 9, 2024

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

Copy link
Contributor Author

dependabot bot commented on behalf of github Dec 12, 2024

Superseded by #1454.

@dependabot dependabot bot closed this Dec 12, 2024
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/main/drizzle-31476192bd branch December 12, 2024 18:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants