@supacloud/db 0.6.0 → 0.8.0
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/README.md +74 -0
- package/dist/command-adapter.d.ts +18 -0
- package/dist/command-bun.d.ts +8 -0
- package/dist/command-bun.js +350 -0
- package/dist/command-schema.d.ts +4 -0
- package/dist/drizzle-bun.d.ts +10 -0
- package/dist/drizzle-bun.js +93 -0
- package/dist/drizzle.d.ts +26 -0
- package/dist/drizzle.js +61 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +378 -4
- package/dist/migration-bindings.d.ts +3 -3
- package/dist/query.d.ts +36 -0
- package/dist/sql-analysis.d.ts +47 -0
- package/dist/sql-analysis.js +291 -0
- package/dist/sql-impact-cli.d.ts +14 -0
- package/dist/sql-impact-cli.js +371 -0
- package/package.json +42 -4
package/package.json
CHANGED
|
@@ -1,12 +1,31 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@supacloud/db",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"description": "Database governance layer for SupaCloud: RLS policies, RPC functions and grants as first-class resources, with manifest/catalog reconciliation",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"module": "./dist/index.js",
|
|
8
8
|
"types": "./dist/index.d.ts",
|
|
9
|
+
"bin": {
|
|
10
|
+
"supacloud-sql-impact": "./dist/sql-impact-cli.js"
|
|
11
|
+
},
|
|
9
12
|
"exports": {
|
|
13
|
+
"./sql-analysis": {
|
|
14
|
+
"types": "./dist/sql-analysis.d.ts",
|
|
15
|
+
"import": "./dist/sql-analysis.js"
|
|
16
|
+
},
|
|
17
|
+
"./drizzle": {
|
|
18
|
+
"types": "./dist/drizzle.d.ts",
|
|
19
|
+
"import": "./dist/drizzle.js"
|
|
20
|
+
},
|
|
21
|
+
"./drizzle-bun": {
|
|
22
|
+
"types": "./dist/drizzle-bun.d.ts",
|
|
23
|
+
"import": "./dist/drizzle-bun.js"
|
|
24
|
+
},
|
|
25
|
+
"./bun": {
|
|
26
|
+
"types": "./dist/command-bun.d.ts",
|
|
27
|
+
"import": "./dist/command-bun.js"
|
|
28
|
+
},
|
|
10
29
|
".": {
|
|
11
30
|
"types": "./dist/index.d.ts",
|
|
12
31
|
"import": "./dist/index.js",
|
|
@@ -20,13 +39,14 @@
|
|
|
20
39
|
],
|
|
21
40
|
"scripts": {
|
|
22
41
|
"build": "bun run clean && bun run build:js && bun run build:types",
|
|
23
|
-
"build:js": "bun build src/index.ts --outdir dist --target node",
|
|
42
|
+
"build:js": "bun build src/index.ts src/command-bun.ts src/drizzle.ts src/drizzle-bun.ts src/sql-analysis.ts src/sql-impact-cli.ts --outdir dist --target node --external bun --external @supacloud/contracts --external drizzle-orm --external libpg-query",
|
|
24
43
|
"build:types": "tsc -p tsconfig.json --emitDeclarationOnly",
|
|
25
44
|
"clean": "rm -rf dist",
|
|
26
45
|
"prepublishOnly": "bun run build",
|
|
27
46
|
"test": "bun test",
|
|
28
47
|
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
29
|
-
"typecheck:test": "tsc -p tsconfig.test.json --noEmit"
|
|
48
|
+
"typecheck:test": "tsc -p tsconfig.test.json --noEmit",
|
|
49
|
+
"typecheck:drizzle": "tsc -p tsconfig.drizzle.json --noEmit"
|
|
30
50
|
},
|
|
31
51
|
"keywords": [
|
|
32
52
|
"supacloud",
|
|
@@ -42,7 +62,25 @@
|
|
|
42
62
|
"directory": "packages/db"
|
|
43
63
|
},
|
|
44
64
|
"devDependencies": {
|
|
45
|
-
"@
|
|
65
|
+
"@sinclair/typebox": "0.34.52",
|
|
66
|
+
"@typescript/typescript6": "^6.0.2",
|
|
67
|
+
"drizzle-orm": "1.0.0-rc.4",
|
|
68
|
+
"@types/bun": "^1.4.2",
|
|
46
69
|
"typescript": "^7.0.2"
|
|
70
|
+
},
|
|
71
|
+
"dependencies": {
|
|
72
|
+
"libpg-query": "18.1.4",
|
|
73
|
+
"@supacloud/contracts": "0.4.0"
|
|
74
|
+
},
|
|
75
|
+
"peerDependencies": {
|
|
76
|
+
"drizzle-orm": "1.0.0-rc.4"
|
|
77
|
+
},
|
|
78
|
+
"peerDependenciesMeta": {
|
|
79
|
+
"drizzle-orm": {
|
|
80
|
+
"optional": true
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
"overrides": {
|
|
84
|
+
"@supacloud/contracts": "0.4.0"
|
|
47
85
|
}
|
|
48
86
|
}
|