@supabase/lite 0.0.1-next.1
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/dist/Connection-rAPmec1m.d.ts +710 -0
- package/dist/cli/index.d.ts +1 -0
- package/dist/cli/index.js +30950 -0
- package/dist/cli/lib.d.ts +158 -0
- package/dist/cli/lib.js +18598 -0
- package/dist/db/browser/index.d.ts +550 -0
- package/dist/db/browser/index.js +16112 -0
- package/dist/db/bun/index.d.ts +548 -0
- package/dist/db/bun/index.js +16100 -0
- package/dist/db/fallback.d.ts +182 -0
- package/dist/db/fallback.js +15996 -0
- package/dist/db/node/index.d.ts +547 -0
- package/dist/db/node/index.js +16093 -0
- package/dist/db/postgres/BasePostgresConnection-B7zHDAib.d.ts +24 -0
- package/dist/db/postgres/PostgresConnection.d.ts +16 -0
- package/dist/db/postgres/PostgresConnection.js +611 -0
- package/dist/db/postgres/pglite/PgliteConnection.d.ts +38 -0
- package/dist/db/postgres/pglite/PgliteConnection.js +890 -0
- package/dist/db/workerd/index.d.ts +570 -0
- package/dist/db/workerd/index.js +16218 -0
- package/dist/index-xv_pDjEt.d.ts +769 -0
- package/dist/index.d.ts +2498 -0
- package/dist/index.js +32305 -0
- package/dist/static/.vite/manifest.json +11 -0
- package/dist/static/assets/main-BsWx0q9l.js +40913 -0
- package/dist/static/assets/main-DexXgo9R.css +4002 -0
- package/dist/static/favicon.ico +0 -0
- package/dist/static/fonts/CustomFont-Black.woff2 +0 -0
- package/dist/static/fonts/CustomFont-BlackItalic.woff2 +0 -0
- package/dist/static/fonts/CustomFont-Bold.woff2 +0 -0
- package/dist/static/fonts/CustomFont-BoldItalic.woff2 +0 -0
- package/dist/static/fonts/CustomFont-Book.woff2 +0 -0
- package/dist/static/fonts/CustomFont-BookItalic.woff2 +0 -0
- package/dist/static/fonts/CustomFont-Medium.woff2 +0 -0
- package/dist/vite/index.d.ts +3017 -0
- package/dist/vite/index.js +1923 -0
- package/package.json +195 -0
package/package.json
ADDED
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@supabase/lite",
|
|
3
|
+
"version": "0.0.1-next.1",
|
|
4
|
+
"description": "Lightweight TypeScript-native Supabase implementation on SQLite (alpha). PostgREST + GoTrue compatible — use @supabase/supabase-js as-is.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "https://github.com/supabase/lite.git",
|
|
9
|
+
"directory": "app"
|
|
10
|
+
},
|
|
11
|
+
"bin": {
|
|
12
|
+
"lite": "./dist/cli/index.js"
|
|
13
|
+
},
|
|
14
|
+
"main": "./dist/index.js",
|
|
15
|
+
"types": "./dist/index.d.ts",
|
|
16
|
+
"publishConfig": {
|
|
17
|
+
"access": "public"
|
|
18
|
+
},
|
|
19
|
+
"exports": {
|
|
20
|
+
".": {
|
|
21
|
+
"types": "./dist/index.d.ts",
|
|
22
|
+
"import": "./dist/index.js"
|
|
23
|
+
},
|
|
24
|
+
"./sqlite": {
|
|
25
|
+
"bun": {
|
|
26
|
+
"types": "./dist/db/bun/index.d.ts",
|
|
27
|
+
"import": "./dist/db/bun/index.js"
|
|
28
|
+
},
|
|
29
|
+
"node": {
|
|
30
|
+
"types": "./dist/db/node/index.d.ts",
|
|
31
|
+
"import": "./dist/db/node/index.js"
|
|
32
|
+
},
|
|
33
|
+
"workerd": {
|
|
34
|
+
"types": "./dist/db/workerd/index.d.ts",
|
|
35
|
+
"import": "./dist/db/workerd/index.js"
|
|
36
|
+
},
|
|
37
|
+
"browser": {
|
|
38
|
+
"types": "./dist/db/browser/index.d.ts",
|
|
39
|
+
"import": "./dist/db/browser/index.js"
|
|
40
|
+
},
|
|
41
|
+
"default": {
|
|
42
|
+
"types": "./dist/db/fallback.d.ts",
|
|
43
|
+
"import": "./dist/db/fallback.js"
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"./workerd": {
|
|
47
|
+
"types": "./dist/db/workerd/index.d.ts",
|
|
48
|
+
"import": "./dist/db/workerd/index.js"
|
|
49
|
+
},
|
|
50
|
+
"./postgres": {
|
|
51
|
+
"types": "./dist/db/postgres/PostgresConnection.d.ts",
|
|
52
|
+
"import": "./dist/db/postgres/PostgresConnection.js"
|
|
53
|
+
},
|
|
54
|
+
"./pglite": {
|
|
55
|
+
"types": "./dist/db/postgres/pglite/PgliteConnection.d.ts",
|
|
56
|
+
"import": "./dist/db/postgres/pglite/PgliteConnection.js"
|
|
57
|
+
},
|
|
58
|
+
"./vite": {
|
|
59
|
+
"types": "./dist/vite/index.d.ts",
|
|
60
|
+
"import": "./dist/vite/index.js"
|
|
61
|
+
},
|
|
62
|
+
"./cli": {
|
|
63
|
+
"types": "./dist/cli/lib.d.ts",
|
|
64
|
+
"import": "./dist/cli/lib.js"
|
|
65
|
+
},
|
|
66
|
+
"./dist/manifest.json": "./dist/static/.vite/manifest.json",
|
|
67
|
+
"./static/*": "./dist/static/*"
|
|
68
|
+
},
|
|
69
|
+
"files": [
|
|
70
|
+
"dist",
|
|
71
|
+
"README.md",
|
|
72
|
+
"!dist/*.tsbuildinfo",
|
|
73
|
+
"!dist/*.map",
|
|
74
|
+
"!dist/**/*.map",
|
|
75
|
+
"!dist/metafile*",
|
|
76
|
+
"!dist/**/metafile*"
|
|
77
|
+
],
|
|
78
|
+
"scripts": {
|
|
79
|
+
"test": "bun test --bail",
|
|
80
|
+
"test:all": "bun run test:low && bun run vitest && bun run test:spec:status && bun run test:spec:auth && bun run test:spec:storage",
|
|
81
|
+
"test:low": "bun run test/run-low-memory.ts",
|
|
82
|
+
"test:coverage": "bun test --bail --coverage --coverage-reporter=text --coverage-reporter=lcov",
|
|
83
|
+
"vitest": "vitest run",
|
|
84
|
+
"format": "biome format --write .",
|
|
85
|
+
"lint": "biome check --write .",
|
|
86
|
+
"test:postgrest": "bun test postgrest/suite/postgres.test.ts",
|
|
87
|
+
"test:gotrue": "GOTRUE_TEST_SUITE=1 bun test auth/gotrue-suite.postgres.test.ts",
|
|
88
|
+
"test:spec:status": "RUN_SPEC=1 bun run test/supabase-spec/rest/all.ts",
|
|
89
|
+
"test:spec:analyze": "bun run test/supabase-spec/rest/analyze.ts",
|
|
90
|
+
"test:spec:analyze:sqlite": "bun run test/supabase-spec/rest/analyze.ts --backend=sqlite",
|
|
91
|
+
"test:spec:analyze:pglite": "bun run test/supabase-spec/rest/analyze.ts --backend=pglite",
|
|
92
|
+
"test:spec:analyze:postgres": "bun run test/supabase-spec/rest/analyze.ts --backend=postgres",
|
|
93
|
+
"test:spec:analyze:sqlite-postgres": "bun run test/supabase-spec/rest/analyze.ts --backend=sqlite-postgres",
|
|
94
|
+
"test:spec:auth": "RUN_SPEC=1 bun run test/supabase-spec/auth/all.ts",
|
|
95
|
+
"test:spec:auth:postgres": "RUN_SPEC=1 bun test test/supabase-spec/auth/postgres.test.ts",
|
|
96
|
+
"test:spec:auth:pglite": "RUN_SPEC=1 bun test test/supabase-spec/auth/pglite.test.ts",
|
|
97
|
+
"test:spec:auth:sqlite": "RUN_SPEC=1 bun test test/supabase-spec/auth/sqlite.test.ts",
|
|
98
|
+
"test:spec:auth:sqlite-postgres": "RUN_SPEC=1 bun test test/supabase-spec/auth/sqlite-postgres.test.ts",
|
|
99
|
+
"test:spec:auth:analyze": "bun run test/supabase-spec/auth/analyze.ts",
|
|
100
|
+
"test:spec:auth:analyze:sqlite": "bun run test/supabase-spec/auth/analyze.ts --backend=sqlite",
|
|
101
|
+
"test:spec:auth:analyze:pglite": "bun run test/supabase-spec/auth/analyze.ts --backend=pglite",
|
|
102
|
+
"test:spec:auth:analyze:postgres": "bun run test/supabase-spec/auth/analyze.ts --backend=postgres",
|
|
103
|
+
"test:spec:auth:analyze:sqlite-postgres": "bun run test/supabase-spec/auth/analyze.ts --backend=sqlite-postgres",
|
|
104
|
+
"test:spec:storage": "RUN_SPEC=1 bun run test/supabase-spec/storage/all.ts",
|
|
105
|
+
"test:spec:storage:analyze": "bun run test/supabase-spec/storage/analyze.ts",
|
|
106
|
+
"test:spec:storage:postgres": "RUN_SPEC=1 bun test test/supabase-spec/storage/postgres.test.ts",
|
|
107
|
+
"test:spec:storage:pglite": "RUN_SPEC=1 bun test test/supabase-spec/storage/pglite.test.ts",
|
|
108
|
+
"test:spec:storage:sqlite": "RUN_SPEC=1 bun test test/supabase-spec/storage/sqlite.test.ts",
|
|
109
|
+
"test:spec:storage:sqlite-postgres": "RUN_SPEC=1 bun test test/supabase-spec/storage/sqlite-postgres.test.ts",
|
|
110
|
+
"test:phenotype:storage": "bun run test:spec:storage:postgres",
|
|
111
|
+
"dev": "vite",
|
|
112
|
+
"typecheck": "tsc --project tsconfig.check.json",
|
|
113
|
+
"build": "bun run build.ts",
|
|
114
|
+
"build:all": "bun run build:static && bun run build.ts --types",
|
|
115
|
+
"build:static": "vite build",
|
|
116
|
+
"watch:static": "vite build --watch",
|
|
117
|
+
"dev:bun": "bun run --hot dev/bun/bun.dev.ts",
|
|
118
|
+
"debug:bun": "bun run --hot dev/debug.ts",
|
|
119
|
+
"debug:node": "tsx --watch dev/debug.ts",
|
|
120
|
+
"cli": "LOCAL=1 bun src/cli/index.ts",
|
|
121
|
+
"docs:generate": "bun run internal/extract.ts",
|
|
122
|
+
"smoke:pack": "bun run internal/smoke-pack.ts",
|
|
123
|
+
"prepublishOnly": "npm whoami && bun run typecheck && bun run test && bun run build:all && bun run smoke:pack -- --no-build",
|
|
124
|
+
"release:patch": "echo \"Use GitHub Actions > Release with version_specifier=patch.\" && exit 1",
|
|
125
|
+
"release:minor": "echo \"Use GitHub Actions > Release with version_specifier=minor.\" && exit 1",
|
|
126
|
+
"release:next": "echo \"Use GitHub Actions > Release Next from develop.\" && exit 1",
|
|
127
|
+
"release:canary": "echo \"PR previews publish through GitHub Actions > Preview Package using pkg.pr.new.\" && exit 1"
|
|
128
|
+
},
|
|
129
|
+
"dependencies": {
|
|
130
|
+
"commander": "^14.0.3",
|
|
131
|
+
"@commander-js/extra-typings": "^14.0.0",
|
|
132
|
+
"@hono/node-server": "^1.19.9",
|
|
133
|
+
"@supabase/pg-delta": "1.0.0-alpha.10",
|
|
134
|
+
"@sentry/node": "^10.51.0",
|
|
135
|
+
"@vercel/detect-agent": "^1.2.3",
|
|
136
|
+
"dotenv": "^17.3.1",
|
|
137
|
+
"libpg-query": "17.7.3",
|
|
138
|
+
"kysely": "^0.28.11",
|
|
139
|
+
"kysely-generic-sqlite": "^1.2.1",
|
|
140
|
+
"kysely-postgres-js": "^3.0.0",
|
|
141
|
+
"pgsql-parser": "latest",
|
|
142
|
+
"bcryptjs": "^3.0.3",
|
|
143
|
+
"uuid": "^13.0.0"
|
|
144
|
+
},
|
|
145
|
+
"peerDependencies": {
|
|
146
|
+
"@supabase/supabase-js": ">=2.90.0",
|
|
147
|
+
"@electric-sql/pglite": "0.4.5",
|
|
148
|
+
"postgres": "^3.4.8",
|
|
149
|
+
"vite": "^5.0.0 || ^6.0.0 || ^7.0.0"
|
|
150
|
+
},
|
|
151
|
+
"peerDependenciesMeta": {
|
|
152
|
+
"vite": {
|
|
153
|
+
"optional": true
|
|
154
|
+
},
|
|
155
|
+
"@electric-sql/pglite": {
|
|
156
|
+
"optional": true
|
|
157
|
+
},
|
|
158
|
+
"postgres": {
|
|
159
|
+
"optional": true
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
"devDependencies": {
|
|
163
|
+
"@clack/prompts": "^1.1.0",
|
|
164
|
+
"@cloudflare/vitest-pool-workers": "^0.9.0",
|
|
165
|
+
"@cloudflare/workers-types": "^4.20260301.1",
|
|
166
|
+
"@hono/vite-dev-server": "^0.25.0",
|
|
167
|
+
"@pgsql/types": "^17.6.2",
|
|
168
|
+
"@pgsql/utils": "^17.8.15",
|
|
169
|
+
"@sqlite.org/sqlite-wasm": "^3.51.2-build7",
|
|
170
|
+
"@supabase/supabase-js": "^2.97.0",
|
|
171
|
+
"@types/bcryptjs": "^3.0.0",
|
|
172
|
+
"@electric-sql/pglite": "0.4.5",
|
|
173
|
+
"aws4fetch": "^1.0.20",
|
|
174
|
+
"bun-plugin-tailwind": "^0.1.2",
|
|
175
|
+
"chokidar": "^5.0.0",
|
|
176
|
+
"dedent": "^1.7.2",
|
|
177
|
+
"fs-extra": "^11.3.3",
|
|
178
|
+
"hono": "^4.12.2",
|
|
179
|
+
"ink": "^6.8.0",
|
|
180
|
+
"jose": "^6.1.3",
|
|
181
|
+
"jsonv-ts": "^0.10.1",
|
|
182
|
+
"open": "^11.0.0",
|
|
183
|
+
"pgserve": "^1.1.6",
|
|
184
|
+
"pgsql-deparser": "latest",
|
|
185
|
+
"picocolors": "^1.1.1",
|
|
186
|
+
"react": "^19.2.0",
|
|
187
|
+
"react-dom": "^19.2.0",
|
|
188
|
+
"smol-toml": "^1.6.0",
|
|
189
|
+
"sql-formatter": "^15.7.2",
|
|
190
|
+
"tinyglobby": "^0.2.15",
|
|
191
|
+
"tsx": "^4.21.0",
|
|
192
|
+
"vitest": "^3.2.0",
|
|
193
|
+
"wouter": "^3.9.0"
|
|
194
|
+
}
|
|
195
|
+
}
|