@xata.io/drizzle 0.0.0-alpha.vdf14bb22228cd0fcb891106fa98f9f6c128c4ef1 → 0.0.0-alpha.vdf9d9f9ced86c53ac54fe8371fa4bf0fd7ef0901
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 +6 -6
- package/CHANGELOG.md +7 -3
- package/package.json +4 -4
- package/test/drizzle.test.ts +10 -8
package/.turbo/turbo-build.log
CHANGED
@@ -6,12 +6,12 @@
|
|
6
6
|
[1msrc/index.ts[22m → [1mdist/index.cjs, dist/index.mjs[22m...[39m
|
7
7
|
[1m[33m(!) Unresolved dependencies[39m[22m
|
8
8
|
[90mhttps://rollupjs.org/troubleshooting/#warning-treating-module-as-external-dependency[39m
|
9
|
-
[1mdrizzle-orm[22m (imported by "src/http/
|
10
|
-
[1mdrizzle-orm/pg-core[22m (imported by "src/http/
|
11
|
-
[32mcreated [1mdist/index.cjs, dist/index.mjs[22m in [
|
9
|
+
[1mdrizzle-orm[22m (imported by "src/http/session.ts", "src/http/driver.ts" and "src/shared/utils.ts")
|
10
|
+
[1mdrizzle-orm/pg-core[22m (imported by "src/http/session.ts" and "src/http/driver.ts")
|
11
|
+
[32mcreated [1mdist/index.cjs, dist/index.mjs[22m in [1m252ms[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 [1m5.5s[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 [1m36ms[22m[39m
|
23
23
|
[36m
|
24
24
|
[1msrc/pg/index.ts[22m → [1mdist/pg.d.ts[22m...[39m
|
25
|
-
[32mcreated [1mdist/pg.d.ts[22m in [1m1.
|
25
|
+
[32mcreated [1mdist/pg.d.ts[22m in [1m1.7s[22m[39m
|
package/CHANGELOG.md
CHANGED
@@ -1,13 +1,17 @@
|
|
1
1
|
# @xata.io/drizzle
|
2
2
|
|
3
|
-
## 0.0.0-alpha.
|
3
|
+
## 0.0.0-alpha.vdf9d9f9ced86c53ac54fe8371fa4bf0fd7ef0901
|
4
|
+
|
5
|
+
### Major Changes
|
6
|
+
|
7
|
+
- [#1473](https://github.com/xataio/client-ts/pull/1473) [`e9c165d`](https://github.com/xataio/client-ts/commit/e9c165d3765bed18b2f4d7f6d8b815fef489ee61) Thanks [@eemmiillyy](https://github.com/eemmiillyy)! - Version 1.0
|
4
8
|
|
5
9
|
### Patch Changes
|
6
10
|
|
7
11
|
- Force canary build
|
8
12
|
|
9
|
-
- Updated dependencies []:
|
10
|
-
- @xata.io/client@0.0.0-alpha.
|
13
|
+
- Updated dependencies [[`aaa332d`](https://github.com/xataio/client-ts/commit/aaa332d8c1c612dda781ac3704b9ccacb8da7670), [`e9c165d`](https://github.com/xataio/client-ts/commit/e9c165d3765bed18b2f4d7f6d8b815fef489ee61)]:
|
14
|
+
- @xata.io/client@0.0.0-alpha.vdf9d9f9ced86c53ac54fe8371fa4bf0fd7ef0901
|
11
15
|
|
12
16
|
## 0.0.21
|
13
17
|
|
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.vdf9d9f9ced86c53ac54fe8371fa4bf0fd7ef0901",
|
4
4
|
"description": "",
|
5
5
|
"main": "./dist/index.cjs",
|
6
6
|
"module": "./dist/index.mjs",
|
@@ -23,11 +23,11 @@
|
|
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.vdf9d9f9ced86c53ac54fe8371fa4bf0fd7ef0901"
|
27
27
|
},
|
28
28
|
"devDependencies": {
|
29
|
-
"@types/pg": "^8.11.
|
30
|
-
"drizzle-orm": "^0.30.
|
29
|
+
"@types/pg": "^8.11.6",
|
30
|
+
"drizzle-orm": "^0.30.10",
|
31
31
|
"pg": "^8.11.5"
|
32
32
|
},
|
33
33
|
"peerDependencies": {
|
package/test/drizzle.test.ts
CHANGED
@@ -78,10 +78,9 @@ 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
|
-
workspace,
|
83
|
-
|
84
|
-
data: { region, branchName: 'main' },
|
81
|
+
await api.databases.createDatabase({
|
82
|
+
pathParams: { workspaceId: workspace, dbName: database },
|
83
|
+
body: { region, branchName: 'main' },
|
85
84
|
headers: { 'X-Features': 'feat-pgroll-migrations=1' }
|
86
85
|
});
|
87
86
|
|
@@ -155,12 +154,15 @@ describe.concurrent.each([{ type: 'pg' }, { type: 'http' }])('Drizzle $type', ({
|
|
155
154
|
});
|
156
155
|
|
157
156
|
afterAll(async () => {
|
158
|
-
await api.
|
157
|
+
await api.databases.deleteDatabase({ pathParams: { workspaceId: workspace, dbName: database } });
|
159
158
|
});
|
160
159
|
|
161
160
|
beforeEach(async (ctx) => {
|
162
161
|
ctx.branch = `test-${Math.random().toString(36).substring(7)}`;
|
163
|
-
await api.
|
162
|
+
await api.branch.createBranch({
|
163
|
+
pathParams: { workspace, region, dbBranchName: `${database}:${ctx.branch}` },
|
164
|
+
body: { from: 'main' }
|
165
|
+
});
|
164
166
|
|
165
167
|
const { db, client } = getDrizzleClient(type, ctx.branch);
|
166
168
|
await client?.connect();
|
@@ -171,7 +173,7 @@ describe.concurrent.each([{ type: 'pg' }, { type: 'http' }])('Drizzle $type', ({
|
|
171
173
|
|
172
174
|
afterEach(async (ctx) => {
|
173
175
|
await ctx.client?.end();
|
174
|
-
await api.
|
176
|
+
await api.branch.deleteBranch({ pathParams: { workspace, region, dbBranchName: `${database}:${ctx.branch}` } });
|
175
177
|
});
|
176
178
|
|
177
179
|
/*
|
@@ -6285,7 +6287,7 @@ describe.concurrent.each([{ type: 'pg' }, { type: 'http' }])('Drizzle $type', ({
|
|
6285
6287
|
async function waitForReplication(): Promise<void> {
|
6286
6288
|
try {
|
6287
6289
|
await new Promise((resolve) => setTimeout(resolve, 2000));
|
6288
|
-
await api.
|
6290
|
+
await api.branch.getBranchList({ pathParams: { workspace, dbName: database, region } });
|
6289
6291
|
} catch (error) {
|
6290
6292
|
console.log(`Replication not ready yet, retrying...`);
|
6291
6293
|
return await waitForReplication();
|