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): update dependency drizzle-orm to v0.30.10 #702

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

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Mar 30, 2024

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
drizzle-orm (source) 0.30.2 -> 0.30.10 age adoption passing confidence

Release Notes

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

v0.30.10

Compare Source

New Features

๐ŸŽ‰ .if() function added to all WHERE expressions
Select all users after cursors if a cursor value was provided
function getUsersAfter(cursor?: number) {
    return db.select().from(users).where(
        gt(users.id, cursor).if(cursor)
    );
}

Bug Fixes

  • Fixed internal mappings for sessions .all, .values, .execute functions in AWS DataAPI

v0.30.9

Compare Source

  • ๐Ÿ› Fixed migrator in AWS Data API
  • Added setWhere and targetWhere fields to .onConflictDoUpdate() config in SQLite instead of single where field
  • ๐Ÿ› ๏ธ Added schema information to Drizzle instances via db._.fullSchema

v0.30.8

Compare Source

โš ๏ธ Only available in drizzle-orm for now, drizzle-kit support will arrive soon

import { pgSchema } from 'drizzle-orm/pg-core';

const mySchema = pgSchema('mySchema');
const colors = mySchema.enum('colors', ['red', 'green', 'blue']);

Thanks @โ€‹hugo082 and @โ€‹livingforjesus!

v0.30.7

Compare Source

Bug fixes
  • Add mappings for @vercel/postgres package
  • Fix interval mapping for neon drivers - #โ€‹1542

v0.30.6

Compare Source

New Features

๐ŸŽ‰ PGlite driver Support

PGlite is a WASM Postgres build packaged into a TypeScript client library that enables you to run Postgres in the browser, Node.js and Bun, with no need to install any other dependencies. It is only 2.6mb gzipped.

It can be used as an ephemeral in-memory database, or with persistence either to the file system (Node/Bun) or indexedDB (Browser).

Unlike previous "Postgres in the browser" projects, PGlite does not use a Linux virtual machine - it is simply Postgres in WASM.

Usage Example

import { PGlite } from '@​electric-sql/pglite';
import { drizzle } from 'drizzle-orm/pglite';

// In-memory Postgres
const client = new PGlite();
const db = drizzle(client);

await db.select().from(users);

There are currently 2 limitations, that should be fixed on Pglite side:

v0.30.5

Compare Source

New Features

๐ŸŽ‰ $onUpdate functionality for PostgreSQL, MySQL and SQLite

Adds a dynamic update value to the column.
The function will be called when the row is updated, and the returned value will be used as the column value if none is provided.
If no default (or $defaultFn) value is provided, the function will be called when the row is inserted as well, and the returned value will be used as the column value.

Note: This value does not affect the drizzle-kit behavior, it is only used at runtime in drizzle-orm.

const usersOnUpdate = pgTable('users_on_update', {
  id: serial('id').primaryKey(),
  name: text('name').notNull(),
  updateCounter: integer('update_counter').default(sql`1`).$onUpdateFn(() => sql`update_counter + 1`),
  updatedAt: timestamp('updated_at', { mode: 'date', precision: 3 }).$onUpdate(() => new Date()),
  alwaysNull: text('always_null').$type<string | null>().$onUpdate(() => null),
});

Fixes

  • [BUG]: insertions on columns with the smallserial datatype are not optional - #โ€‹1848

Thanks @โ€‹Angelelz and @โ€‹gabrielDonnantuoni!

v0.30.4

Compare Source

New Features

๐ŸŽ‰ xata-http driver support

According their official website, Xata is a Postgres data platform with a focus on reliability, scalability, and developer experience. The Xata Postgres service is currently in beta, please see the Xata docs on how to enable it in your account.

Drizzle ORM natively supports both the xata driver with drizzle-orm/xata package and the postgres or pg drivers for accessing a Xata Postgres database.

The following example use the Xata generated client, which you obtain by running the xata init CLI command.

pnpm add drizzle-orm @&#8203;xata.io/client
import { drizzle } from 'drizzle-orm/xata-http';
import { getXataClient } from './xata'; // Generated client

const xata = getXataClient();
const db = drizzle(xata);

const result = await db.select().from(...);

You can also connect to Xata using pg or postgres.js drivers

v0.30.3

Compare Source


Configuration

๐Ÿ“… Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

๐Ÿšฆ Automerge: Enabled.

โ™ป Rebasing: Whenever PR becomes conflicted, 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 has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot added the dependencies Pull requests that update a dependency file label Mar 30, 2024
Copy link
Contributor Author

renovate bot commented Mar 30, 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

Copy link

vercel bot commented Mar 30, 2024

The latest updates on your projects. Learn more about Vercel for Git โ†—๏ธŽ

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
zws โฌœ๏ธ Ignored (Inspect) Visit Preview May 25, 2024 3:15am

@renovate renovate bot force-pushed the renovate/drizzle-orm-0.x branch 4 times, most recently from c7b8eeb to f291111 Compare April 2, 2024 02:01
@renovate renovate bot changed the title build(deps): update dependency drizzle-orm to v0.30.6 build(deps): update dependency drizzle-orm to v0.30.7 Apr 3, 2024
@renovate renovate bot force-pushed the renovate/drizzle-orm-0.x branch 10 times, most recently from 8127784 to 4e5e16b Compare April 9, 2024 10:58
@renovate renovate bot force-pushed the renovate/drizzle-orm-0.x branch 2 times, most recently from e07dcc9 to 9d8a962 Compare April 11, 2024 10:05
@renovate renovate bot changed the title build(deps): update dependency drizzle-orm to v0.30.7 build(deps): update dependency drizzle-orm to v0.30.8 Apr 11, 2024
@renovate renovate bot force-pushed the renovate/drizzle-orm-0.x branch 3 times, most recently from b114a1c to 007de52 Compare April 15, 2024 23:13
@renovate renovate bot force-pushed the renovate/drizzle-orm-0.x branch 3 times, most recently from 7ea8731 to 8fde36f Compare April 21, 2024 15:35
@renovate renovate bot changed the title build(deps): update dependency drizzle-orm to v0.30.8 build(deps): update dependency drizzle-orm to v0.30.9 Apr 21, 2024
@renovate renovate bot force-pushed the renovate/drizzle-orm-0.x branch 2 times, most recently from d517e8d to a785e83 Compare April 24, 2024 03:33
@renovate renovate bot force-pushed the renovate/drizzle-orm-0.x branch 4 times, most recently from 6aa84df to 9bfecf3 Compare May 1, 2024 17:00
@renovate renovate bot changed the title build(deps): update dependency drizzle-orm to v0.30.9 build(deps): update dependency drizzle-orm to v0.30.10 May 1, 2024
@renovate renovate bot force-pushed the renovate/drizzle-orm-0.x branch 4 times, most recently from 4accbb9 to d0a1cbc Compare May 3, 2024 07:09
@renovate renovate bot force-pushed the renovate/drizzle-orm-0.x branch 9 times, most recently from 463ef3e to ef89255 Compare May 23, 2024 17:06
@renovate renovate bot force-pushed the renovate/drizzle-orm-0.x branch from ef89255 to d8858a2 Compare May 25, 2024 03:15
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
Development

Successfully merging this pull request may close these issues.

None yet

0 participants