[Snyk] Upgrade drizzle-kit from 0.21.4 to 0.24.2 #2
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.
Snyk has created this PR to upgrade drizzle-kit from 0.21.4 to 0.24.2.
ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.
The recommended version is 137 versions ahead of your current version.
The recommended version was released on 2 months ago.
Issues fixed by the recommended upgrade:
SNYK-JS-INFLIGHT-6095116
Release notes
Package name: drizzle-kit
-
0.24.2 - 2024-08-26
import { defineConfig } from "drizzle-kit";
- mysql-kit: fix GENERATED ALWAYS AS ... NOT NULL - #2824
-
0.24.2-ff1dcd9 - 2024-09-03
-
0.24.2-efd821d - 2024-09-05
-
0.24.2-dc783a2 - 2024-09-06
-
0.24.2-daeed1e - 2024-09-04
-
0.24.2-dab63b8 - 2024-09-04
-
0.24.2-d79ccef - 2024-09-05
-
0.24.2-d496e6f - 2024-09-06
-
0.24.2-cf2bc48 - 2024-08-29
-
0.24.2-cd1f68c - 2024-09-07
-
0.24.2-c6528ed - 2024-09-09
-
0.24.2-c5d1196 - 2024-09-03
-
0.24.2-b921e79 - 2024-08-29
-
0.24.2-b351b91 - 2024-09-02
-
0.24.2-ad58316 - 2024-09-04
-
0.24.2-ab3b46d - 2024-09-02
-
0.24.2-9140d23 - 2024-08-27
-
0.24.2-8db0aa4 - 2024-08-27
-
0.24.2-8cf7a61 - 2024-09-05
-
0.24.2-8948f19 - 2024-08-28
-
0.24.2-87df7e9 - 2024-08-29
-
0.24.2-86140ad - 2024-09-09
-
0.24.2-807aa5b - 2024-09-02
-
0.24.2-766f76f - 2024-08-27
-
0.24.2-7469abe - 2024-09-06
-
0.24.2-6fbcf46 - 2024-09-14
-
0.24.2-5ccb794 - 2024-08-29
-
0.24.2-5be80aa - 2024-09-02
-
0.24.2-5b9600e - 2024-09-02
-
0.24.2-5b27b32 - 2024-09-05
-
0.24.2-56454b7 - 2024-08-29
-
0.24.2-540bab9 - 2024-09-05
-
0.24.2-50ebd0a - 2024-08-30
-
0.24.2-417b0fa - 2024-08-27
-
0.24.2-3ff6cb0 - 2024-09-04
-
0.24.2-3e27645 - 2024-09-03
-
0.24.2-3c3ccca - 2024-09-04
-
0.24.2-30e7661 - 2024-08-26
-
0.24.2-2bc0d1e - 2024-09-04
-
0.24.2-277e6de - 2024-09-06
-
0.24.2-25af8ee - 2024-08-27
-
0.24.2-2475c4f - 2024-09-06
-
0.24.2-218cddb - 2024-09-05
-
0.24.2-1a5913a - 2024-08-26
-
0.24.2-1321cf9 - 2024-09-04
-
0.24.2-12ef143 - 2024-08-27
-
0.24.2-12dd7e5 - 2024-09-04
-
0.24.2-01106be - 2024-09-04
-
0.24.1 - 2024-08-22
- The Drizzle Kit CLI was not working properly for the
- Added the ability to use column names with special characters for all dialects.
- Included PostgreSQL sequences in the introspection process.
- Reworked array type introspection and added all test cases.
- Fixed all (we hope) default issues in PostgreSQL, where
- [BUG]: invalid schema generation with drizzle-kit introspect:pg
- [BUG][mysql introspection]: TS error when introspect column including colon
- [BUG]: Unhandled defaults when introspecting postgres db
- [BUG]: PostgreSQL Enum Naming and Schema Typing Issue
- [BUG]: drizzle-kit instrospect command generates syntax error on varchar column types
- [BUG]: Introspecting varchar[] type produces syntactically invalid schema.ts
- [BUG]: introspect:pg column not using generated enum name
- [BUG]: drizzle-kit introspect casing "preserve" config not working
- [BUG]: drizzle-kit introspect fails on required param that is defined
- [BUG]: Error when running npx drizzle-kit introspect: "Expected object, received string"
- [BUG]: Missing index names when running introspect command [MYSQL]
- [BUG]: drizzle-kit introspect TypeError: Cannot read properties of undefined (reading 'toLowerCase')
- [BUG]: Wrong column name when using PgEnum.array()
- [BUG]: Incorrect Schema Generated when introspecting extisting pg database
- [
⚠️ 🐞BUG]: index() missing argument after introspection, causes tsc error that fails the build
- [BUG]: drizzle-kit introspect small errors
- [BUG]: Missing bigint import in drizzle-kit introspect
-
0.24.1-fe9c043 - 2024-08-26
-
0.24.1-f7ddd08 - 2024-08-22
-
0.24.1-edf2ac4 - 2024-08-23
-
0.24.1-e2f75fb - 2024-08-26
-
0.24.1-e2677cd - 2024-08-23
-
0.24.1-87d7704 - 2024-08-26
-
0.24.1-781dea0 - 2024-08-22
-
0.24.1-626cc95 - 2024-08-23
-
0.24.1-4c4912d - 2024-08-23
-
0.24.1-4045fbc - 2024-08-23
-
0.24.1-3d751e8 - 2024-08-23
-
0.24.1-0ced1ab - 2024-08-23
-
0.24.0 - 2024-08-08
-
-
- [BUG] When using double type columns, import is not inserted - thanks @ Karibash
- [BUG] A number value is specified as the default for a column of type char - thanks @ Karibash
- [BUG]: Array default in migrations are wrong - thanks @ L-Mario564
- [FEATURE]: Simpler default array fields - thanks @ L-Mario564
- [BUG]: drizzle-kit generate succeeds but generates invalid SQL for default([]) - Postgres - thanks @ L-Mario564
- [BUG]: Incorrect type for array column default value - thanks @ L-Mario564
- [BUG]: error: column is of type integer[] but default expression is of type integer - thanks @ L-Mario564
- [BUG]: Default value in array generating wrong migration file - thanks @ L-Mario564
- [BUG]: enum as array, not possible? - thanks @ L-Mario564
-
0.24.0-f71baf7 - 2024-08-15
-
0.24.0-bddd952 - 2024-08-16
-
0.24.0-bb966f7 - 2024-08-15
-
0.24.0-8d86512 - 2024-08-20
-
0.24.0-6386ea9 - 2024-08-14
-
0.24.0-6205f01 - 2024-08-08
-
0.24.0-5df8253 - 2024-08-22
-
0.24.0-38d6dab - 2024-08-12
-
0.23.2 - 2024-08-05
- Fixed a bug in PostgreSQL with push and introspect where the
- Fixed the
-
0.23.2-eddab2e - 2024-08-01
-
0.23.2-e9a7a6c - 2024-08-01
-
0.23.2-e30226e - 2024-08-01
-
0.23.2-df9e596 - 2024-08-07
-
0.23.2-d486e9b - 2024-08-07
-
0.23.2-cd71182 - 2024-08-07
-
0.23.2-ab12f1d - 2024-08-01
-
0.23.2-6f27447 - 2024-08-07
-
0.23.2-6234cbf - 2024-08-06
-
0.23.2-5be2712 - 2024-08-01
-
0.23.2-505c62f - 2024-08-07
-
0.23.2-3d4e79a - 2024-08-01
-
0.23.2-22df170 - 2024-08-07
-
0.23.1 - 2024-07-30
-
0.23.1-0be85c4 - 2024-07-30
-
0.23.1-7816536 - 2024-07-31
-
0.23.0 - 2024-07-10
-
0.23.0-eb2ca29 - 2024-07-29
-
0.23.0-c31ad13 - 2024-07-29
-
0.23.0-b9c41b5 - 2024-07-29
-
0.23.0-792e59f - 2024-07-29
-
0.23.0-4fa9580 - 2024-07-28
-
0.23.0-41417ce - 2024-06-28
-
0.23.0-217bbde - 2024-07-29
-
0.23.0-21045a0 - 2024-07-02
-
0.23.0-1fb4da5 - 2024-07-29
-
0.23.0-1e9350a - 2024-06-28
-
0.23.0-03c18d1 - 2024-07-10
-
0.22.9-92953ac - 2024-07-09
-
0.22.8 - 2024-06-29
-
0.22.7 - 2024-06-10
-
0.22.7-fbc7b5c - 2024-06-27
-
0.22.7-d639166 - 2024-06-25
-
0.22.7-d059930 - 2024-06-26
-
0.22.7-c827f86 - 2024-06-27
-
0.22.7-c146554 - 2024-06-12
-
0.22.7-a16c9a1 - 2024-06-26
-
0.22.7-9e796de - 2024-06-26
-
0.22.7-7d90fee - 2024-06-27
-
0.22.7-7d5e8a9 - 2024-06-26
-
0.22.7-28915b7 - 2024-06-26
-
0.22.7-1a36885 - 2024-06-12
-
0.22.7-129055c - 2024-06-12
-
0.22.7-0d9043a - 2024-06-27
-
0.22.6 - 2024-06-08
-
0.22.5 - 2024-06-07
-
0.22.5-f389ebd - 2024-06-12
-
0.22.5-843fecc - 2024-06-12
-
0.22.4 - 2024-06-06
-
0.22.3 - 2024-06-06
-
0.22.2 - 2024-06-04
-
0.22.1 - 2024-05-31
-
0.22.0 - 2024-05-31
-
0.22.0-ed86dfa - 2024-05-22
-
0.22.0-b70caaa - 2024-05-30
-
0.22.0-a8a3158 - 2024-05-30
-
0.22.0-7a041f3 - 2024-05-30
-
0.22.0-72736ba - 2024-05-27
-
0.22.0-5b09380 - 2024-05-23
-
0.22.0-407e2e6 - 2024-05-23
-
0.22.0-3c62a84 - 2024-05-30
-
0.22.0-3b0ba5f - 2024-05-22
-
0.22.0-29f7626 - 2024-05-30
-
0.22.0-25da1e6 - 2024-05-30
-
0.22.0-18d9643 - 2024-05-30
-
0.22.0-12a1bf8 - 2024-05-29
-
0.21.4 - 2024-05-22
from drizzle-kit GitHub release notesNew Features
🎉 Support for
pglitedriverYou can now use pglite with all drizzle-kit commands, including Drizzle Studio!
export default defineConfig({
dialect: "postgresql",
driver: "pglite",
schema: "./schema.ts",
dbCredentials: {
url: "local-pg.db",
},
verbose: true,
strict: true,
});
Bug fixes
Bug fixes
What was fixed
introspectcommand.::<type>was included in the introspected output.preservecasing option was brokenTickets that were closed
Breaking changes (for SQLite users)
Fixed Composite primary key order is not consistent by removing
sortin SQLite and to be consistent with the same logic in PostgreSQL and MySQLThe issue that may arise for SQLite users with any driver using composite primary keys is that the order in the database may differ from the Drizzle schema.
If you are using
push, you MAY be prompted to update your table with a new order of columns in the composite primary key. You will need to either change it manually in the database or push the changes, but this may lead to data loss, etc.If you are using
generate, you MAY also be prompted to update your table with a new order of columns in the composite primary key. You can either keep that migration or skip it by emptying the SQL migration file.If nothing works for you and you are blocked, please reach out to me @ AndriiSherman. I will try to help you!
Bug fixes
schemaFilterobject was passed. It was detecting enums even in schemas that were not defined in the schemaFilter.drizzle-kit upcommand to work as expected, starting from the sequences release.Important
Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information:
Description by Korbit AI
What change is being made?
Upgrade the
drizzle-kitpackage from version 0.21.1 to 0.24.2 in thepackage.jsonfile.Why are these changes being made?
This upgrade addresses potential security vulnerabilities and includes performance improvements and new features introduced in the latest version of
drizzle-kit. Keeping dependencies up-to-date ensures the application remains secure and benefits from the latest enhancements.