@xata.io/drizzle 0.0.0-alpha.vf63d465df0d8def09bfd99d49a1c06b14e37dbe0 → 0.0.0-alpha.vf675628d396f11afb5c583a4c9698f3759ed33f8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +4 -4
- package/CHANGELOG.md +10 -7
- package/package.json +4 -4
- package/test/drizzle.test.ts +8 -10
package/.turbo/turbo-build.log
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
|
2
|
-
> @xata.io/drizzle@0.0.
|
2
|
+
> @xata.io/drizzle@0.0.22 build /home/runner/work/client-ts/client-ts/packages/plugin-client-drizzle
|
3
3
|
> rimraf dist && rollup -c
|
4
4
|
|
5
5
|
[36m
|
@@ -8,10 +8,10 @@
|
|
8
8
|
[90mhttps://rollupjs.org/troubleshooting/#warning-treating-module-as-external-dependency[39m
|
9
9
|
[1mdrizzle-orm[22m (imported by "src/http/driver.ts", "src/http/session.ts" and "src/shared/utils.ts")
|
10
10
|
[1mdrizzle-orm/pg-core[22m (imported by "src/http/driver.ts" and "src/http/session.ts")
|
11
|
-
[32mcreated [1mdist/index.cjs, dist/index.mjs[22m in [
|
11
|
+
[32mcreated [1mdist/index.cjs, dist/index.mjs[22m in [1m331ms[22m[39m
|
12
12
|
[36m
|
13
13
|
[1msrc/index.ts[22m → [1mdist/index.d.ts[22m...[39m
|
14
|
-
[32mcreated [1mdist/index.d.ts[22m in [
|
14
|
+
[32mcreated [1mdist/index.d.ts[22m in [1m6.8s[22m[39m
|
15
15
|
[36m
|
16
16
|
[1msrc/pg/index.ts[22m → [1mdist/pg.cjs, dist/pg.mjs[22m...[39m
|
17
17
|
[1m[33m(!) Unresolved dependencies[39m[22m
|
@@ -19,7 +19,7 @@
|
|
19
19
|
[1mdrizzle-orm[22m (imported by "src/pg/driver.ts", "src/pg/session.ts" and "src/shared/utils.ts")
|
20
20
|
[1mdrizzle-orm/pg-core[22m (imported by "src/pg/driver.ts" and "src/pg/session.ts")
|
21
21
|
[1mpg[22m (imported by "src/pg/session.ts")
|
22
|
-
[32mcreated [1mdist/pg.cjs, dist/pg.mjs[22m in [
|
22
|
+
[32mcreated [1mdist/pg.cjs, dist/pg.mjs[22m in [1m52ms[22m[39m
|
23
23
|
[36m
|
24
24
|
[1msrc/pg/index.ts[22m → [1mdist/pg.d.ts[22m...[39m
|
25
25
|
[32mcreated [1mdist/pg.d.ts[22m in [1m1.6s[22m[39m
|
package/CHANGELOG.md
CHANGED
@@ -1,17 +1,20 @@
|
|
1
1
|
# @xata.io/drizzle
|
2
2
|
|
3
|
-
## 0.0.0-alpha.
|
4
|
-
|
5
|
-
### Major Changes
|
6
|
-
|
7
|
-
- [#1473](https://github.com/xataio/client-ts/pull/1473) [`0a60b36`](https://github.com/xataio/client-ts/commit/0a60b3612f7fba050eb3c73b0b3b7a73e58ff26f) Thanks [@eemmiillyy](https://github.com/eemmiillyy)! - Version 1.0
|
3
|
+
## 0.0.0-alpha.vf675628d396f11afb5c583a4c9698f3759ed33f8
|
8
4
|
|
9
5
|
### Patch Changes
|
10
6
|
|
11
7
|
- Force canary build
|
12
8
|
|
13
|
-
- Updated dependencies [
|
14
|
-
- @xata.io/client@0.0.0-alpha.
|
9
|
+
- Updated dependencies []:
|
10
|
+
- @xata.io/client@0.0.0-alpha.vf675628d396f11afb5c583a4c9698f3759ed33f8
|
11
|
+
|
12
|
+
## 0.0.22
|
13
|
+
|
14
|
+
### Patch Changes
|
15
|
+
|
16
|
+
- Updated dependencies [[`6b754d2`](https://github.com/xataio/client-ts/commit/6b754d2f6a1f7b9378a96fe27502ff6c29ff5ed8)]:
|
17
|
+
- @xata.io/client@0.29.5
|
15
18
|
|
16
19
|
## 0.0.21
|
17
20
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@xata.io/drizzle",
|
3
|
-
"version": "0.0.0-alpha.
|
3
|
+
"version": "0.0.0-alpha.vf675628d396f11afb5c583a4c9698f3759ed33f8",
|
4
4
|
"description": "",
|
5
5
|
"main": "./dist/index.cjs",
|
6
6
|
"module": "./dist/index.mjs",
|
@@ -23,12 +23,12 @@
|
|
23
23
|
"url": "https://github.com/xataio/client-ts/issues"
|
24
24
|
},
|
25
25
|
"dependencies": {
|
26
|
-
"@xata.io/client": "0.0.0-alpha.
|
26
|
+
"@xata.io/client": "0.0.0-alpha.vf675628d396f11afb5c583a4c9698f3759ed33f8"
|
27
27
|
},
|
28
28
|
"devDependencies": {
|
29
29
|
"@types/pg": "^8.11.6",
|
30
|
-
"drizzle-orm": "^0.
|
31
|
-
"pg": "^8.
|
30
|
+
"drizzle-orm": "^0.31.2",
|
31
|
+
"pg": "^8.12.0"
|
32
32
|
},
|
33
33
|
"peerDependencies": {
|
34
34
|
"drizzle-orm": "*"
|
package/test/drizzle.test.ts
CHANGED
@@ -78,9 +78,10 @@ function getDrizzleClient(type: string, branch: string) {
|
|
78
78
|
|
79
79
|
describe.concurrent.each([{ type: 'pg' }, { type: 'http' }])('Drizzle $type', ({ type }) => {
|
80
80
|
beforeAll(async () => {
|
81
|
-
await api.
|
82
|
-
|
83
|
-
|
81
|
+
await api.database.createDatabase({
|
82
|
+
workspace,
|
83
|
+
database,
|
84
|
+
data: { region, branchName: 'main' },
|
84
85
|
headers: { 'X-Features': 'feat-pgroll-migrations=1' }
|
85
86
|
});
|
86
87
|
|
@@ -154,15 +155,12 @@ describe.concurrent.each([{ type: 'pg' }, { type: 'http' }])('Drizzle $type', ({
|
|
154
155
|
});
|
155
156
|
|
156
157
|
afterAll(async () => {
|
157
|
-
await api.
|
158
|
+
await api.database.deleteDatabase({ workspace, database });
|
158
159
|
});
|
159
160
|
|
160
161
|
beforeEach(async (ctx) => {
|
161
162
|
ctx.branch = `test-${Math.random().toString(36).substring(7)}`;
|
162
|
-
await api.
|
163
|
-
pathParams: { workspace, region, dbBranchName: `${database}:${ctx.branch}` },
|
164
|
-
body: { from: 'main' }
|
165
|
-
});
|
163
|
+
await api.branches.createBranch({ workspace, database, region, branch: ctx.branch, from: 'main' });
|
166
164
|
|
167
165
|
const { db, client } = getDrizzleClient(type, ctx.branch);
|
168
166
|
await client?.connect();
|
@@ -173,7 +171,7 @@ describe.concurrent.each([{ type: 'pg' }, { type: 'http' }])('Drizzle $type', ({
|
|
173
171
|
|
174
172
|
afterEach(async (ctx) => {
|
175
173
|
await ctx.client?.end();
|
176
|
-
await api.
|
174
|
+
await api.branches.deleteBranch({ workspace, database, region, branch: ctx.branch });
|
177
175
|
});
|
178
176
|
|
179
177
|
/*
|
@@ -6287,7 +6285,7 @@ describe.concurrent.each([{ type: 'pg' }, { type: 'http' }])('Drizzle $type', ({
|
|
6287
6285
|
async function waitForReplication(): Promise<void> {
|
6288
6286
|
try {
|
6289
6287
|
await new Promise((resolve) => setTimeout(resolve, 2000));
|
6290
|
-
await api.
|
6288
|
+
await api.branches.getBranchList({ workspace, database, region });
|
6291
6289
|
} catch (error) {
|
6292
6290
|
console.log(`Replication not ready yet, retrying...`);
|
6293
6291
|
return await waitForReplication();
|