diff --git a/.changeset/forty-shirts-hug.md b/.changeset/forty-shirts-hug.md deleted file mode 100644 index 1b727ee6e..000000000 --- a/.changeset/forty-shirts-hug.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@xata.io/pgroll': minor ---- - -[Breaking] Remove `column` from `drop_constraint` diff --git a/.changeset/thick-kings-eat.md b/.changeset/thick-kings-eat.md deleted file mode 100644 index 51942104b..000000000 --- a/.changeset/thick-kings-eat.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@xata.io/pgroll": patch ---- - -Update pgroll spec diff --git a/compatibility.json b/compatibility.json index bf5a1d345..74cf79903 100644 --- a/compatibility.json +++ b/compatibility.json @@ -1,6 +1,6 @@ { "@xata.io/cli": { - "latest": "0.16.11", + "latest": "0.16.12", "compatibility": [ { "range": ">=0.0.0" diff --git a/packages/cli/CHANGELOG.md b/packages/cli/CHANGELOG.md index 158d6e3cd..bb7b59f58 100644 --- a/packages/cli/CHANGELOG.md +++ b/packages/cli/CHANGELOG.md @@ -1,5 +1,12 @@ # @xata.io/cli +## 0.16.12 + +### Patch Changes + +- Updated dependencies [[`b990afb`](https://github.com/xataio/client-ts/commit/b990afb5ac1a86684a9dcc0952322f11b971eebe), [`798b45a`](https://github.com/xataio/client-ts/commit/798b45ad8fc74af591f1c1d163a9f28d0bfc5c6d)]: + - @xata.io/pgroll@0.7.0 + ## 0.16.11 ### Patch Changes diff --git a/packages/cli/package.json b/packages/cli/package.json index 0b7bb5531..115f487e1 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,6 +1,6 @@ { "name": "@xata.io/cli", - "version": "0.16.11", + "version": "0.16.12", "description": "Xata.io CLI", "author": "Xata Inc.", "bin": { diff --git a/packages/client/src/util/buffer.ts b/packages/client/src/util/buffer.ts index ef36f1520..6395f1ded 100644 --- a/packages/client/src/util/buffer.ts +++ b/packages/client/src/util/buffer.ts @@ -166,7 +166,7 @@ class Buffer extends Uint8Array { Buffer._isInstance(value, ArrayBuffer) || (value && Buffer._isInstance((value as any).buffer, ArrayBuffer)) ) { - const array = value as Uint8Array; + const array = value as ArrayBufferLike; const byteOffset = encodingOrOffset as number; if (byteOffset < 0 || array.byteLength < byteOffset) { @@ -416,7 +416,7 @@ class Buffer extends Uint8Array { sourceEnd?: number ): number { if (Buffer._isInstance(otherBuffer, Uint8Array)) { - otherBuffer = Buffer.from(otherBuffer, otherBuffer.byteOffset, otherBuffer.byteLength); + otherBuffer = Buffer.from(otherBuffer as unknown as ArrayBuffer, otherBuffer.byteOffset, otherBuffer.byteLength); } if (!Buffer.isBuffer(otherBuffer)) { @@ -1707,11 +1707,11 @@ class Buffer extends Uint8Array { */ public static compare(buf1: Uint8Array, buf2: Uint8Array): number { if (Buffer._isInstance(buf1, Uint8Array)) { - buf1 = Buffer.from(buf1, buf1.byteOffset, buf1.byteLength); + buf1 = Buffer.from(buf1 as unknown as ArrayBuffer, buf1.byteOffset, buf1.byteLength); } if (Buffer._isInstance(buf2, Uint8Array)) { - buf2 = Buffer.from(buf2, buf2.byteOffset, buf2.byteLength); + buf2 = Buffer.from(buf2 as unknown as ArrayBuffer, buf2.byteOffset, buf2.byteLength); } if (!Buffer.isBuffer(buf1) || !Buffer.isBuffer(buf2)) { diff --git a/packages/pgroll/CHANGELOG.md b/packages/pgroll/CHANGELOG.md index 6710e52d8..e8e2d18a1 100644 --- a/packages/pgroll/CHANGELOG.md +++ b/packages/pgroll/CHANGELOG.md @@ -1,5 +1,15 @@ # @xata.io/pgroll +## 0.7.0 + +### Minor Changes + +- [#1619](https://github.com/xataio/client-ts/pull/1619) [`b990afb`](https://github.com/xataio/client-ts/commit/b990afb5ac1a86684a9dcc0952322f11b971eebe) Thanks [@SferaDev](https://github.com/SferaDev)! - [Breaking] Remove `column` from `drop_constraint` + +### Patch Changes + +- [#1612](https://github.com/xataio/client-ts/pull/1612) [`798b45a`](https://github.com/xataio/client-ts/commit/798b45ad8fc74af591f1c1d163a9f28d0bfc5c6d) Thanks [@xata-bot](https://github.com/xata-bot)! - Update pgroll spec + ## 0.6.0 ### Minor Changes diff --git a/packages/pgroll/package.json b/packages/pgroll/package.json index 5f1d576b3..9919510e6 100644 --- a/packages/pgroll/package.json +++ b/packages/pgroll/package.json @@ -1,6 +1,6 @@ { "name": "@xata.io/pgroll", - "version": "0.6.0", + "version": "0.7.0", "description": "Migration tool for PostgreSQL", "type": "module", "main": "./dist/index.cjs", diff --git a/packages/plugin-client-drizzle/src/http/migrator.ts b/packages/plugin-client-drizzle/src/http/migrator.ts index 9cfcc4554..bbd36bb56 100644 --- a/packages/plugin-client-drizzle/src/http/migrator.ts +++ b/packages/plugin-client-drizzle/src/http/migrator.ts @@ -12,7 +12,7 @@ import { SQL, sql } from 'drizzle-orm'; */ export async function migrate>( db: XataHttpDatabase, - config: string | MigrationConfig + config: MigrationConfig ) { const migrations = readMigrationFiles(config); const migrationsTable = diff --git a/packages/plugin-client-drizzle/src/pg/migrator.ts b/packages/plugin-client-drizzle/src/pg/migrator.ts index 22f35bbff..dd8bc0aa4 100644 --- a/packages/plugin-client-drizzle/src/pg/migrator.ts +++ b/packages/plugin-client-drizzle/src/pg/migrator.ts @@ -3,7 +3,7 @@ import type { XataDatabase } from './driver'; export async function migrate>( db: XataDatabase, - config: string | MigrationConfig + config: MigrationConfig ) { const migrations = readMigrationFiles(config); // @ts-expect-error dialect and session are private