-
Notifications
You must be signed in to change notification settings - Fork 0
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
fix(deps): update all non-major dependencies #28
Open
renovate
wants to merge
1
commit into
main
Choose a base branch
from
renovate/all-minor-patch
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains 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
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
renovate
bot
force-pushed
the
renovate/all-minor-patch
branch
from
May 10, 2024 12:41
7b5bfd8
to
94cc5e8
Compare
renovate
bot
changed the title
chore(deps): update dependency drizzle-kit to ^0.21.0
chore(deps): update all non-major dependencies
May 10, 2024
renovate
bot
force-pushed
the
renovate/all-minor-patch
branch
from
May 10, 2024 19:18
94cc5e8
to
2d10bc7
Compare
renovate
bot
changed the title
chore(deps): update all non-major dependencies
fix(deps): update all non-major dependencies
May 10, 2024
renovate
bot
force-pushed
the
renovate/all-minor-patch
branch
from
May 10, 2024 22:46
2d10bc7
to
2d5a6bd
Compare
renovate
bot
force-pushed
the
renovate/all-minor-patch
branch
from
May 11, 2024 12:03
2d5a6bd
to
11287e2
Compare
renovate
bot
force-pushed
the
renovate/all-minor-patch
branch
from
May 13, 2024 18:15
11287e2
to
00fbc83
Compare
renovate
bot
force-pushed
the
renovate/all-minor-patch
branch
from
May 13, 2024 21:38
00fbc83
to
350b452
Compare
renovate
bot
force-pushed
the
renovate/all-minor-patch
branch
from
May 14, 2024 06:22
350b452
to
f821462
Compare
renovate
bot
force-pushed
the
renovate/all-minor-patch
branch
from
May 15, 2024 01:35
f821462
to
b04607a
Compare
renovate
bot
force-pushed
the
renovate/all-minor-patch
branch
from
May 15, 2024 20:22
b04607a
to
5d85566
Compare
renovate
bot
force-pushed
the
renovate/all-minor-patch
branch
from
May 16, 2024 19:41
5d85566
to
71b5eb7
Compare
renovate
bot
force-pushed
the
renovate/all-minor-patch
branch
from
May 17, 2024 07:09
71b5eb7
to
82806d4
Compare
renovate
bot
force-pushed
the
renovate/all-minor-patch
branch
from
May 20, 2024 22:55
82806d4
to
bd8e5bc
Compare
renovate
bot
force-pushed
the
renovate/all-minor-patch
branch
from
May 21, 2024 11:59
bd8e5bc
to
a3dc399
Compare
renovate
bot
force-pushed
the
renovate/all-minor-patch
branch
from
July 28, 2024 09:25
e65abfa
to
f41d4f7
Compare
renovate
bot
force-pushed
the
renovate/all-minor-patch
branch
from
July 28, 2024 12:18
f41d4f7
to
74e0053
Compare
renovate
bot
force-pushed
the
renovate/all-minor-patch
branch
from
July 29, 2024 22:31
74e0053
to
75d0167
Compare
renovate
bot
force-pushed
the
renovate/all-minor-patch
branch
from
July 30, 2024 10:42
75d0167
to
c8953ca
Compare
renovate
bot
force-pushed
the
renovate/all-minor-patch
branch
from
July 30, 2024 22:39
c8953ca
to
3d4332e
Compare
renovate
bot
force-pushed
the
renovate/all-minor-patch
branch
from
July 31, 2024 13:06
3d4332e
to
2f75c03
Compare
renovate
bot
force-pushed
the
renovate/all-minor-patch
branch
from
July 31, 2024 19:20
2f75c03
to
8dc1f68
Compare
renovate
bot
force-pushed
the
renovate/all-minor-patch
branch
from
August 1, 2024 15:06
8dc1f68
to
9ba9745
Compare
renovate
bot
force-pushed
the
renovate/all-minor-patch
branch
from
August 1, 2024 21:42
9ba9745
to
3162af6
Compare
renovate
bot
force-pushed
the
renovate/all-minor-patch
branch
from
August 2, 2024 01:20
3162af6
to
084abc8
Compare
renovate
bot
force-pushed
the
renovate/all-minor-patch
branch
from
August 2, 2024 08:22
084abc8
to
464aa18
Compare
renovate
bot
force-pushed
the
renovate/all-minor-patch
branch
from
August 2, 2024 09:55
464aa18
to
bdca9bb
Compare
renovate
bot
force-pushed
the
renovate/all-minor-patch
branch
from
August 2, 2024 12:55
bdca9bb
to
0754354
Compare
renovate
bot
force-pushed
the
renovate/all-minor-patch
branch
from
August 2, 2024 21:32
0754354
to
74f4fd2
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This PR contains the following updates:
^3.572.0
->^3.623.0
^20.12.11
->^20.14.14
^18.3.1
->^18.3.3
^4.1.1
->^4.2.1
^0.20.18
->^0.23.1
^0.30.10
->^0.32.1
^10.11.1
->^10.12.5
^12.1.0
->^12.3.0
^0.378.0
->^0.424.0
14.2.3
->14.2.5
^8.11.5
->^8.12.0
^8.4.38
->^8.4.40
^0.33.3
->^0.33.4
^3.4.3
->^3.4.7
^6.16.0
->^6.19.5
^0.9.0
->^0.10.0
Release Notes
aws/aws-sdk-js-v3 (@aws-sdk/client-s3)
v3.623.0
Compare Source
Note: Version bump only for package @aws-sdk/client-s3
v3.622.0
Compare Source
Note: Version bump only for package @aws-sdk/client-s3
v3.621.0
Compare Source
Note: Version bump only for package @aws-sdk/client-s3
3.620.1 (2024-07-29)
Note: Version bump only for package @aws-sdk/client-s3
v3.620.1
Compare Source
Note: Version bump only for package @aws-sdk/client-s3
v3.620.0
Compare Source
Note: Version bump only for package @aws-sdk/client-s3
v3.617.0
Compare Source
Note: Version bump only for package @aws-sdk/client-s3
v3.616.0
Compare Source
Note: Version bump only for package @aws-sdk/client-s3
v3.614.0
Compare Source
Note: Version bump only for package @aws-sdk/client-s3
v3.613.0
Compare Source
Note: Version bump only for package @aws-sdk/client-s3
v3.609.0
Compare Source
Features
v3.608.0
Compare Source
Note: Version bump only for package @aws-sdk/client-s3
v3.606.0
Compare Source
Note: Version bump only for package @aws-sdk/client-s3
v3.600.0
Compare Source
Note: Version bump only for package @aws-sdk/client-s3
v3.598.0
Compare Source
Note: Version bump only for package @aws-sdk/client-s3
v3.596.0
Compare Source
Note: Version bump only for package @aws-sdk/client-s3
v3.592.0
Compare Source
Note: Version bump only for package @aws-sdk/client-s3
v3.591.0
Compare Source
Features
v3.590.0
Compare Source
Note: Version bump only for package @aws-sdk/client-s3
v3.588.0
Compare Source
Note: Version bump only for package @aws-sdk/client-s3
v3.587.0
Compare Source
Note: Version bump only for package @aws-sdk/client-s3
v3.583.0
Compare Source
Note: Version bump only for package @aws-sdk/client-s3
v3.582.0
Compare Source
Note: Version bump only for package @aws-sdk/client-s3
v3.577.0
Compare Source
Note: Version bump only for package @aws-sdk/client-s3
v3.576.0
Compare Source
Features
v3.575.0
Compare Source
Note: Version bump only for package @aws-sdk/client-s3
v3.574.0
Compare Source
Note: Version bump only for package @aws-sdk/client-s3
andreizanik/cookies-next (cookies-next)
v4.2.1
Compare Source
hot fix bug with types
What's Changed
New Contributors
Full Changelog: andreizanik/cookies-next@v4.2.0...v4.2.1
v4.2.0
Compare Source
What's Changed
New Contributors
Full Changelog: andreizanik/cookies-next@v4.1.1...v4.2.0
drizzle-team/drizzle-kit-mirror (drizzle-kit)
v0.23.1
: 0.23.1Compare Source
Fixed an issue with pushing SQLite tables with foreign keys defined using custom names. Previously, such tables were always recreated on each push. In this release, the foreign key name will not affect the detection of differences between the code schema and the database schema. This is because SQLite cannot have foreign key constraint names specified in a DDL create table query, so they should not be used in the diff process
When dropping a column from an SQLite table, there was an issue with accessing the primary key of an undefined column
Fixed issues with sequences, #504, #2643
v0.23.0
Compare Source
v0.22.8
: 0.22.8Compare Source
v0.22.7
Compare Source
v0.22.6
: 0.22.6Compare Source
drizzle-kit up
of snapshots from v6 to v7v0.22.5
: 0.22.5Compare Source
v0.22.4
: 0.22.4Compare Source
data loss
triggers onpush
when adding aNOT NULL
constraint to a column and when removing thedefault
value from a column. These actions will now be performed immediately, and if there are anyNULL
values in the column, you will receive an error from the databasev0.22.3
: 0.22.3Compare Source
Cannot use 'in' operator to search for 'default' in undefined
error on push and generatev0.22.2
: 0.22.2Compare Source
,
. This should fix problems fortsvector
indexes, such as:v0.22.1
: 0.22.1Compare Source
Bug fixes
Improvements
🎉 Drizzle Studio now supports raw responses from D1 HTTP. This means that Drizzle Studio now has full support for D1, and all queries should work as expected!
🎉 Refactor the d1-http driver to properly show the table row count
v0.22.0
: 0.22.0Compare Source
New Features
🎉 Full support for indexes in PostgreSQL
The previous Drizzle+PostgreSQL indexes API was incorrect and was not aligned with the PostgreSQL documentation. The good thing is that it was not used in queries, and drizzle-kit didn't support all properties for indexes. This means we can now change the API to the correct one and provide full support for it in drizzle-kit
Previous API
.on
..using
and.on
in our case are the same thing, so the API is incorrect here..asc()
,.desc()
,.nullsFirst()
, and.nullsLast()
should be specified for each column or expression on indexes, but not on an index itself.Current API
🎉 Support for new types
Drizzle Kit can now handle:
point
andline
from PostgreSQLvector
from the PostgreSQLpg_vector
extensiongeometry
from the PostgreSQLPostGIS
extension🎉 New param in drizzle.config -
extensionsFilters
The PostGIS extension creates a few internal tables in the
public
schema. This means that if you have a database with the PostGIS extension and usepush
orintrospect
, all those tables will be included indiff
operations. In this case, you would need to specifytablesFilter
, find all tables created by the extension, and list them in this parameter.We have addressed this issue so that you won't need to take all these steps. Simply specify
extensionsFilters
with the name of the extension used, and Drizzle will skip all the necessary tables.Currently, we only support the
postgis
option, but we plan to add more extensions if they create tables in thepublic
schema.The
postgis
option will skip thegeography_columns
,geometry_columns
, andspatial_ref_sys
tablesImprovements
👍 Update zod schemas for database credentials and write tests to all the positive/negative cases
👍 Support full set of SSL params in kit config, provide types from node:tls connection
👍 Normilized SQLite urls for
libsql
andbetter-sqlite3
driversThose drivers have different file path patterns, and Drizzle Kit will accept both and create a proper file path format for each
👍 Updated MySQL and SQLite index-as-expression behavior
In this release MySQL and SQLite will properly map expressions into SQL query. Expressions won't be escaped in string but columns will be
Bug Fixes
How
push
andgenerate
works for indexesLimitations
You should specify a name for your index manually if you have an index on at least one expression
Example
Push won't generate statements if these fields(list below) were changed in an existing index:
.on()
and.using()
.where()
statements.op()
on columnsIf you are using
push
workflows and want to change these fields in the index, you would need to:For the
generate
command,drizzle-kit
will be triggered by any changes in the index for any property in the new drizzle indexes API, so there are no limitations here.v0.21.4
Compare Source
bug fixes
node-pg
pool connection halting, regression introduced in previous release while migrating fromclient
topool
with max 1 connectionv0.21.3
Compare Source
Cloudflare D1 HTTP API support 🎉
Drizzle Chrome Extension now has support for Cloudflare D1!
Drizzle Kit now lets you run
migrate
,push
,introspect
andstudio
commands using Cloudflare D1 HTTP API, you just need to update connection params indrizzle.config.ts
:You can find
accountId
,databaseId
andtoken
in Cloudflare dashboardTo get
accountId
go to Workers & Pages -> Overview -> copy Account ID from the right sidebarTo get
databaseId
open D1 database you want to connect to and copy Database IDTo get
token
go to My profile -> API Tokens and create token with D1 edit permissionsBug fixes
check
command #2284postgres
dialect #2346v0.21.2
Compare Source
Bug fixes
A list of regressions after
0.21.0
that were fixed (there are more, and those should be fixed in the next patch releases):generate
andpush
were not detecting new columns added.push
Tickets that were closed
v0.21.1
Compare Source
Drizzle Studio support for per-database preferences
When connecting to different databases with Drizzle Local Studio, we will store all preferences such as selected tabs, hidden columns, pagination, etc., separately for each database
Drizzle Studio support for advanced bug report context
Now you can assist us in debugging Drizzle Studio errors. No more need to say, "Please share your schema with us"; just click a button, download the bug report, and send it to us!
v0.21.0
Compare Source
Breaking changes
❗ Snapshots Upgrade
All PostgreSQL and SQLite-generated snapshots will be upgraded to version 6. You will be prompted to upgrade them by running
drizzle-kit up
❗ Removing :dialect from
drizzle-kit
cli commandsYou can now just use commands, like:
drizzle-kit generate
drizzle-kit push
without specifying dialect. This param is moved to
drizzle.config.ts
❗
drizzle.config
updatedialect
is now mandatory; specify which database dialect you are connecting to. Options includemysql
,postgresql
, orsqlite
.driver
has become optional and will have a specific driver, each with a different configuration ofdbCredentials
. Available drivers are:aws-data-api
turso
d1-http
- currently WIPexpo
url
- a unified parameter for the previously existingconnectionString
anduri
.migrations
- a new object parameter to specify a custom table and schema for the migrate command:table
- the custom table where drizzle will store migrations.schema
- the custom schema where drizzle will store migrations (Postgres only).Usage examples for all new and updated commands
Drizzle driver selection follows the current strategy:
If a
driver
is specified, use this driver for querying.If no driver is specified:
For
postgresql
dialect, Drizzle will:pg
driver is installed and use it.postgres
driver and use it.@vercel/postgres
.@neondatabase/serverless
.For
mysql
dialect, Drizzle will:mysql2
driver is installed and use it.@planetscale/database
and use it.For
sqlite
dialect, Drizzle will:@libsql/client
driver is installed and use it.better-sqlite3
and use it.❗ MySQL schemas/database are no longer supported by drizzle-kit
Drizzle Kit won't handle any schema changes for additional schemas/databases in your drizzle schema file
New Features
🎉 Pull relations
Drizzle will now pull
relations
from the database by extracting foreign key information and translating it into arelations
object. You can view therelations.ts
file in theout
folder after introspection is completeFor more info about relations, please check the docs
🎉 Custom name for generated migrations
To specify a name for your migration you should use
--name <name>
Usage
🎉 New command
migrate
You can now apply generated migrations to your database directly from
drizzle-kit
Usage
By default, drizzle-kit will store migration data entries in the
__drizzle_migrations
table and, in the case of PostgreSQL, in adrizzle
schema. If you want to change this, you will need to specify the modifications indrizzle.config.ts
.How to migrate from
0.20.18
to0.21.0
1. Remove all
:dialect
prefixes from your Drizzle-Kit commands.Example: Change
drizzle-kit push:mysql
todrizzle-kit push
.2. Update your
drizzle.config.ts
file:dialect
todrizzle.config.ts
. It is now mandatory and can be 'postgresql', 'mysql', or 'sqlite'.driver
todrizzle.config.ts
ONLY if you are usingaws-data-api
,turso
,d1-http
(WIP), orexpo
. Otherwise, you can remove thedriver
fromdrizzle.config.ts
.connectionString
oruri
indbCredentials
, you should now useurl
.3. If you are using PostgreSQL and had migrations generated in your project, please run
drizzle-kit up
so Drizzle can upgrade all the snapshots to version 6.drizzle-team/drizzle-orm (drizzle-orm)
v0.32.1
Compare Source
v0.32.0
Compare Source
Release notes for
[email protected]
and[email protected]
New Features
🎉 MySQL
$returningId()
functionMySQL itself doesn't have native support for
RETURNING
after usingINSERT
. There is only one way to do it forprimary keys
withautoincrement
(orserial
) types, where you can accessinsertId
andaffectedRows
fields. We've prepared an automatic way for you to handle such cases with Drizzle and automatically receive all inserted IDs as separate objectsAlso with Drizzle, you can specify a
primary key
with$default
function that will generate custom primary keys at runtime. We will also return those generated keys for you in the$returningId()
call🎉 PostgreSQL Sequences
You can now specify sequences in Postgres within any schema you need and define all the available properties
Example
🎉 PostgreSQL Identity Columns
Source: As mentioned, the
serial
type in Postgres is outdated and should be deprecated. Ideally, you should not use it.Identity columns
are the recommended way to specify sequences in your schema, which is why we are introducing theidentity columns
featureExample
You can specify all properties available for sequences in the
.generatedAlwaysAsIdentity()
function. Additionally, you can specify custom names for these sequencesPostgreSQL docs reference.
🎉 PostgreSQL Generated Columns
You can now specify generated columns on any column supported by PostgreSQL to use with generated columns
Example with generated column for
tsvector
In case you don't need to reference any columns from your table, you can use just
sql
template or astring
🎉 MySQL Generated Columns
You can now specify generated columns on any column supported by MySQL to use with generated columns
You can specify both
stored
andvirtual
options, for more info you can check MySQL docsAlso MySQL has a few limitation for such columns usage, which is described here
Drizzle Kit will also have limitations for
push
command:You can't change the generated constraint expression and type using
push
. Drizzle-kit will ignore this change. To make it work, you would need todrop the column
,push
, and thenadd a column with a new expression
. This was done due to the complex mapping from the database side, where the schema expression will be modified on the database side and, on introspection, we will get a different string. We can't be sure if you changed this expression or if it was changed and formatted by the database. As long as these are generated columns andpush
is mostly used for prototyping on a local database, it should be fast todrop
andcreate
generated columns. Since these columns aregenerated
, all the data will be restoredgenerate
should have no limitationsExample
In case you don't need to reference any columns from your table, you can use just
sql
template or astring
in.generatedAlwaysAs()
🎉 SQLite Generated Columns
You can now specify generated columns on any column supported by SQLite to use with generated columns
You can specify both
stored
andvirtual
options, for more info you can check SQLite docsAlso SQLite has a few limitation for such columns usage, which is described here
Drizzle Kit will also have limitations for
push
andgenerate
command:You can't change the generated constraint expression with the stored type in an existing table. You would need to delete this table and create it again. This is due to SQLite limitations for such actions. We will handle this case in future releases (it will involve the creation of a new table with data migration).
You can't add a
stored
generated expression to an existing column for the same reason as above. However, you can add avirtual
expression to an existing column.You can't change a
stored
generated expression in an existing column for the same reason as above. However, you can change avirtual
expression.You can't change the generated constraint type from
virtual
tostored
for the same reason as above. However, you can change fromstored
tovirtual
.New Drizzle Kit features
🎉 Migrations support for all the new orm features
PostgreSQL sequences, identity columns and generated columns for all dialects
🎉 New flag
--force
fordrizzle-kit push
You can auto-accept all data-loss statements using the push command. It's only available in CLI parameters. Make sure you always use it if you are fine with running data-loss statements on your database
🎉 New
migrations
flagprefix
You can now customize migration file prefixes to make the format suitable for your migration tools:
index
is the default type and will result in0001_name.sql
file names;supabase
andtimestamp
are equal and will result in20240627123900_name.sql
file names;unix
will result in unix seconds prefixes1719481298_name.sql
file names;none
will omit the prefix completely;Example: Supabase migrations format
v0.31.4
Compare Source
v0.31.3
Compare Source
Bug fixed
New Prisma-Drizzle extension
For more info, check docs: https://orm.drizzle.team/docs/prisma
v0.31.2
Compare Source
🎉 Added support for TiDB Cloud Serverless driver:
v0.31.1
Compare Source
New Features
Live Queries 🎉
As of
v0.31.1
Drizzle ORM now has native support for Expo SQLite Live Queries!We've implemented a native
useLiveQuery
React Hook which observes necessary database changes and automatically re-runs database queries. It works with both SQL-like and Drizzle Queries:We've intentionally not changed the API of ORM itself to stay with conventional React Hook API, so we have
useLiveQuery(databaseQuery)
as opposed todb.select().from(users).useLive()
ordb.query.users.useFindMany()
We've also decided to provide
data
,error
andupdatedAt
fields as a result of hook for concise explicit error handling following practices ofReact Query
andElectric SQL
v0.31.0
Compare Source
Breaking changes
PostgreSQL indexes API was changed
The previous Drizzle+PostgreSQL indexes API was incorrect and was not aligned with the PostgreSQL documentation. The good thing is that it was not used in queries, and drizzle-kit didn't support all properties for indexes. This means we can now change the API to the correct one and provide full support for it in drizzle-kit
Previous API
.on
..using
and.on
in our case are the same thing, so the API is incorrect here..asc()
,.desc()
,.nullsFirst()
, and.nullsLast()
should be specified for each column or expression on indexes, but not on an index itself.