Skip to content

Commit

Permalink
Release tracking (#1613)
Browse files Browse the repository at this point in the history
Signed-off-by: Alexis Rico <[email protected]>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Alexis Rico <[email protected]>
  • Loading branch information
3 people authored Nov 6, 2024
1 parent b990afb commit 9e82fcd
Show file tree
Hide file tree
Showing 10 changed files with 26 additions and 19 deletions.
5 changes: 0 additions & 5 deletions .changeset/forty-shirts-hug.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/thick-kings-eat.md

This file was deleted.

2 changes: 1 addition & 1 deletion compatibility.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"@xata.io/cli": {
"latest": "0.16.11",
"latest": "0.16.12",
"compatibility": [
{
"range": ">=0.0.0"
Expand Down
7 changes: 7 additions & 0 deletions packages/cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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/[email protected]

## 0.16.11

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@xata.io/cli",
"version": "0.16.11",
"version": "0.16.12",
"description": "Xata.io CLI",
"author": "Xata Inc.",
"bin": {
Expand Down
8 changes: 4 additions & 4 deletions packages/client/src/util/buffer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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)) {
Expand Down Expand Up @@ -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)) {
Expand Down
10 changes: 10 additions & 0 deletions packages/pgroll/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/pgroll/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-client-drizzle/src/http/migrator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { SQL, sql } from 'drizzle-orm';
*/
export async function migrate<TSchema extends Record<string, unknown>>(
db: XataHttpDatabase<TSchema>,
config: string | MigrationConfig
config: MigrationConfig
) {
const migrations = readMigrationFiles(config);
const migrationsTable =
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-client-drizzle/src/pg/migrator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { XataDatabase } from './driver';

export async function migrate<TSchema extends Record<string, unknown>>(
db: XataDatabase<TSchema>,
config: string | MigrationConfig
config: MigrationConfig
) {
const migrations = readMigrationFiles(config);
// @ts-expect-error dialect and session are private
Expand Down

0 comments on commit 9e82fcd

Please sign in to comment.