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(deps): update dependency drizzle-kit to v0.24.2 #422

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jul 2, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
drizzle-kit (source) 0.22.7 -> 0.24.2 age adoption passing confidence

Release Notes

drizzle-team/drizzle-orm (drizzle-kit)

v0.24.2

Compare Source

New Features

🎉 Support for pglite driver

You can now use pglite with all drizzle-kit commands, including Drizzle Studio!

import { defineConfig } from "drizzle-kit";

export default defineConfig({
  dialect: "postgresql",
  driver: "pglite",
  schema: "./schema.ts",
  dbCredentials: {
    url: "local-pg.db",
  },
  verbose: true,
  strict: true,
});

Bug fixes

  • mysql-kit: fix GENERATED ALWAYS AS ... NOT NULL - #​2824

v0.24.1

Compare Source

Bug fixes

Big thanks to @​L-Mario564 for his PR. It conflicted in most cases with a PR that was merged, but we incorporated some of his logic. Merging it would have caused more problems and taken more time to resolve, so we just took a few things from his PR, like removing "::" mappings in introspect and some array type default handlers

What was fixed
  1. The Drizzle Kit CLI was not working properly for the introspect command.
  2. Added the ability to use column names with special characters for all dialects.
  3. Included PostgreSQL sequences in the introspection process.
  4. Reworked array type introspection and added all test cases.
  5. Fixed all (we hope) default issues in PostgreSQL, where ::<type> was included in the introspected output.
  6. preserve casing option was broken
Tickets that were closed

v0.24.0

Compare Source

  • 🎉 Added iterator support to mysql2 (sponsored by @​rizen ❤). Read more in the docs
  • .prepare() in MySQL no longer requires a name argument

v0.23.2

Compare Source

  • Fixed a bug in PostgreSQL with push and introspect where the schemaFilter object was passed. It was detecting enums even in schemas that were not defined in the schemaFilter.
  • Fixed the drizzle-kit up command to work as expected, starting from the sequences release.

v0.23.1

Compare Source

  • 🐛 Re-export InferModel from drizzle-orm

v0.23.0

Compare Source

  • 🎉 Added Knex and Kysely adapters! They allow you to manage the schemas and migrations with Drizzle and query the data with your favorite query builder. See documentation for more details:

  • 🎉 Added "type maps" to all entities. You can access them via the special _ property. For example:

    const users = mysqlTable('users', {
      id: int('id').primaryKey(),
      name: text('name').notNull(),
    });
    
    type UserFields = typeof users['_']['columns'];
    type InsertUser = typeof users['_']['model']['insert'];

    Full documentation on the type maps is coming soon.

  • 🎉 Added .$type() method to all column builders to allow overriding the data type. It also replaces the optional generics on columns.

    // Before
    const test = mysqlTable('test', {
      jsonField: json<Data>('json_field'),
    });
    
    // After
    const test = mysqlTable('test', {
      jsonField: json('json_field').$type<Data>(),
    });
  • ❗ Changed syntax for text-based enum columns:

    // Before
    const test = mysqlTable('test', {
      role: text<'admin' | 'user'>('role'),
    });
    
    // After
    const test = mysqlTable('test', {
      role: text('role', { enum: ['admin', 'user'] }),
    });
  • 🎉 Allowed passing an array of values into .insert().values() directly without spreading:

    const users = mysqlTable('users', {
      id: int('id').primaryKey(),
      name: text('name').notNull(),
    });
    
    await users.insert().values([
      { name: 'John' },
      { name: 'Jane' },
    ]);

    The spread syntax is now deprecated and will be removed in one of the next releases.

  • 🎉 Added "table creators" to allow for table name customization:

    import { mysqlTableCreator } from 'drizzle-orm/mysql-core';
    
    const mysqlTable = mysqlTableCreator((name) => `myprefix_${name}`);
    
    const users = mysqlTable('users', {
      id: int('id').primaryKey(),
      name: text('name').notNull(),
    });
    
    // Users table is a normal table, but its name is `myprefix_users` in runtime
  • 🎉 Implemented support for selecting/joining raw SQL expressions:

    // select current_date + s.a as dates from generate_series(0,14,7) as s(a);
    const result = await db
      .select({
        dates: sql`current_date + s.a`,
      })
      .from(sql`generate_series(0,14,7) as s(a)`);
  • 🐛 Fixed a lot of bugs from user feedback on GitHub and Discord (thank you! ❤). Fixes #​293 #​301 #​276 #​269 #​253 #​311 #​312

v0.22.8

Compare Source


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot added chore dependencies Pull requests that update a dependency file labels Jul 2, 2024
Copy link
Contributor Author

renovate bot commented Jul 2, 2024

Branch automerge failure

This PR was configured for branch automerge. However, this is not possible, so it has been raised as a PR instead.


  • Branch has one or more failed status checks

@renovate renovate bot assigned svglol Jul 2, 2024
@renovate renovate bot force-pushed the renovate/drizzle-kit-0.x branch from 16d2337 to 489ea0b Compare July 13, 2024 14:31
@renovate renovate bot changed the title chore(deps): update dependency drizzle-kit to v0.22.8 chore(deps): update dependency drizzle-kit to v0.23.0 Jul 13, 2024
@renovate renovate bot force-pushed the renovate/drizzle-kit-0.x branch from 489ea0b to 8178884 Compare August 2, 2024 14:17
@renovate renovate bot changed the title chore(deps): update dependency drizzle-kit to v0.23.0 chore(deps): update dependency drizzle-kit to v0.23.1 Aug 2, 2024
@renovate renovate bot force-pushed the renovate/drizzle-kit-0.x branch from 8178884 to e0f3681 Compare August 8, 2024 20:33
@renovate renovate bot changed the title chore(deps): update dependency drizzle-kit to v0.23.1 chore(deps): update dependency drizzle-kit to v0.23.2 Aug 8, 2024
@renovate renovate bot force-pushed the renovate/drizzle-kit-0.x branch from e0f3681 to 3cf05a8 Compare August 11, 2024 16:58
@renovate renovate bot changed the title chore(deps): update dependency drizzle-kit to v0.23.2 chore(deps): update dependency drizzle-kit to v0.24.0 Aug 11, 2024
@renovate renovate bot force-pushed the renovate/drizzle-kit-0.x branch from 3cf05a8 to 4d6e7d1 Compare August 25, 2024 15:51
@renovate renovate bot changed the title chore(deps): update dependency drizzle-kit to v0.24.0 chore(deps): update dependency drizzle-kit to v0.24.1 Aug 25, 2024
@renovate renovate bot force-pushed the renovate/drizzle-kit-0.x branch from 4d6e7d1 to 021770a Compare August 29, 2024 13:56
@renovate renovate bot changed the title chore(deps): update dependency drizzle-kit to v0.24.1 chore(deps): update dependency drizzle-kit to v0.24.2 Aug 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant