jhonsfran1165 / unprice

Pricing engine for modern ai apps
https://unprice.dev
GNU Affero General Public License v3.0
27 stars 4 forks source link

fix(deps): update dependency drizzle-orm to ^0.29.4 - autoclosed #53

Closed renovate[bot] closed 8 months ago

renovate[bot] commented 8 months ago

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
drizzle-orm ^0.29.3 -> ^0.29.4 age adoption passing confidence

Release Notes

drizzle-team/drizzle-orm (drizzle-orm) ### [`v0.29.4`](https://togithub.com/drizzle-team/drizzle-orm/releases/tag/0.29.4) [Compare Source](https://togithub.com/drizzle-team/drizzle-orm/compare/0.29.3...0.29.4) ##### New Features ##### πŸŽ‰ **Neon HTTP Batch** For more info you can check [Neon docs](https://neon.tech/docs/serverless/serverless-driver#issue-multiple-queries-with-the-transaction-function) **Example** ```ts const batchResponse: BatchType = await db.batch([ db.insert(usersTable).values({ id: 1, name: 'John' }).returning({ id: usersTable.id, }), db.insert(usersTable).values({ id: 2, name: 'Dan' }), db.query.usersTable.findMany({}), db.query.usersTable.findFirst({}), ]); ``` ```ts type BatchType = [ { id: number; }[], NeonHttpQueryResult, { id: number; name: string; verified: number; invitedBy: number | null; }[], { id: number; name: string; verified: number; invitedBy: number | null; } | undefined, ]; ``` ##### Improvements Thanks to the `database-js` and `PlanetScale` teams, we have updated the default behavior and instances of `database-js`. As suggested by the `database-js` core team, you should use the `Client` instance instead of `connect()`: ```typescript import { Client } from '@​planetscale/database'; import { drizzle } from 'drizzle-orm/planetscale-serverless'; // create the connection const client = new Client({ host: process.env['DATABASE_HOST'], username: process.env['DATABASE_USERNAME'], password: process.env['DATABASE_PASSWORD'], }); const db = drizzle(client); ``` > Warning: In this version, there are no breaking changes, but starting from version `0.30.0`, you will encounter an error if you attempt to use anything other than a `Client` instance. > > We suggest starting to change connections to PlanetScale now to prevent any runtime errors in the future. Previously our docs stated to use `connect()` and only this function was can be passed to drizzle. In this realase we are adding support for `new Client()` and deprecating `connect()`, by suggesting from `database-js` team. In this release you will see a `warning` when trying to pass `connect()` function result: **Warning text** ```mdx Warning: You need to pass an instance of Client: import { Client } from "@​planetscale/database"; const client = new Client({ host: process.env["DATABASE_HOST"], username: process.env["DATABASE_USERNAME"], password: process.env["DATABASE_PASSWORD"], }); const db = drizzle(client); Starting from version 0.30.0, you will encounter an error if you attempt to use anything other than a Client instance. Please make the necessary changes now to prevent any runtime errors in the future ```

Configuration

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

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

β™» 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.



This PR has been generated by Mend Renovate. View repository job log here.

vercel[bot] commented 8 months ago

The latest updates on your projects. Learn more about Vercel for Git β†—οΈŽ

Name Status Preview Comments Updated (UTC)
builderai βœ… Ready (Inspect) Visit Preview πŸ’¬ Add feedback Feb 29, 2024 8:44pm