web-sqlite-js 1.1.2 → 2.2.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/package.json CHANGED
@@ -1,85 +1,85 @@
1
1
  {
2
- "name": "web-sqlite-js",
3
- "version": "1.1.2",
4
- "description": "web-sqlite-js is a friendly, out-of-the-box SQLite database for the web that makes persistent client-side storage simple for every developer.",
5
- "workspaces": [
6
- "vitepress-docs"
7
- ],
8
- "type": "module",
9
- "main": "./dist/index.js",
10
- "types": "./dist/index.d.ts",
11
- "author": "wuchuheng <root@wuchuheng.com>",
12
- "keywords": [
13
- "sqlite",
14
- "wasm",
15
- "opfs",
16
- "web-worker",
17
- "database",
18
- "typescript",
19
- "web-sqlite"
20
- ],
21
- "sideEffects": false,
22
- "exports": {
23
- ".": {
24
- "types": "./dist/index.d.ts",
25
- "default": "./dist/index.js"
26
- }
27
- },
28
- "scripts": {
29
- "test": "npm run build && npm run lint && npm run test:unit && npm run test:e2e ",
30
- "test:unit": "vitest run --config vitest.unit.config.ts --coverage",
31
- "http": "tsx scripts/http-service.ts ./ --port 8399",
32
- "http:docs": "tsx scripts/http-service.ts ./vitepress-docs/.vitepress/dist --port 8399",
33
- "test:e2e": "vitest run --config vitest.e2e.config.ts",
34
- "test:debug": "vitest run --config vitest.e2e.config.ts --no-file-parallelism",
35
- "prebuild": "npx wasm-opt -Oz --all-features src/jswasm/sqlite3.wasm -o src/jswasm/sqlite3.wasm.tmp && gzip -9 -c src/jswasm/sqlite3.wasm.tmp | base64 -w 0 > src/jswasm/sqlite3.wasm.base64 && echo \"export const wasmBase64 = '$(cat src/jswasm/sqlite3.wasm.base64)';\" > src/jswasm/wasm-asset.js && rm src/jswasm/sqlite3.wasm.tmp src/jswasm/sqlite3.wasm.base64 && npx tsx scripts/bundle-proxy-asset.ts",
36
- "build": "MINIFY=true vite build",
37
- "build:dev": "SOURCE_MAP=true vite build",
38
- "build:watch": "vite build --watch",
39
- "lint": "eslint . --ext .ts --fix; npm run typecheck && npm run format",
40
- "typecheck": "tsc --noEmit",
41
- "format": "prettier --ignore-path .gitignore --write .",
42
- "package:compress": "npm pack",
43
- "package:publish": "npm run test && npm run build && npm publish --access public",
44
- "docs:dev": "npm run dev --workspace=@web-sqlite-js/vitepress-docs",
45
- "docs:build": "npm run build --workspace=@web-sqlite-js/vitepress-docs",
46
- "docs:preview": "npm run preview --workspace=@web-sqlite-js/vitepress-docs",
47
- "docs:icons": "npm run icons --workspace=@web-sqlite-js/vitepress-docs",
48
- "docs:deploy": "cd vitepress-docs && ./deploy.sh"
49
- },
50
- "files": [
51
- "dist"
52
- ],
53
- "devDependencies": {
54
- "@eslint/css": "^0.14.1",
55
- "@eslint/js": "^9.39.2",
56
- "@eslint/json": "^0.14.0",
57
- "@types/node": "^25.0.1",
58
- "@vitest/browser": "^4.0.15",
59
- "@vitest/browser-playwright": "^4.0.15",
60
- "@vitest/coverage-v8": "4.0.15",
61
- "@vitest/ui": "^4.0.15",
62
- "binaryen": "^125.0.0",
63
- "commander": "^14.0.2",
64
- "eslint": "^9.39.2",
65
- "globals": "^16.5.0",
66
- "http-server": "^14.1.1",
67
- "jiti": "^2.6.1",
68
- "playwright": "^1.57.0",
69
- "tsx": "^4.21.0",
70
- "typescript": "^5.9.3",
71
- "typescript-eslint": "^8.49.0",
72
- "vite": "^7.2.7",
73
- "vite-plugin-dts": "^4.5.4",
74
- "vitest": "^4.0.15"
75
- },
76
- "repository": {
77
- "type": "git",
78
- "url": "git+https://github.com/wuchuheng/web-sqlite-js.git"
79
- },
80
- "license": "MIT",
81
- "bugs": {
82
- "url": "https://github.com/wuchuheng/web-sqlite-js/issues"
83
- },
84
- "homepage": "https://web-sqlite-js.wuchuheng.com"
2
+ "name": "web-sqlite-js",
3
+ "version": "2.2.0",
4
+ "description": "web-sqlite-js is a friendly, out-of-the-box SQLite database for the web that makes persistent client-side storage simple for every developer.",
5
+ "workspaces": [
6
+ "vitepress-docs"
7
+ ],
8
+ "type": "module",
9
+ "main": "./dist/index.js",
10
+ "types": "./dist/index.d.ts",
11
+ "author": "wuchuheng <root@wuchuheng.com>",
12
+ "keywords": [
13
+ "sqlite",
14
+ "wasm",
15
+ "opfs",
16
+ "web-worker",
17
+ "database",
18
+ "typescript",
19
+ "web-sqlite"
20
+ ],
21
+ "sideEffects": false,
22
+ "exports": {
23
+ ".": {
24
+ "types": "./dist/index.d.ts",
25
+ "default": "./dist/index.js"
26
+ }
27
+ },
28
+ "scripts": {
29
+ "test": "npm run build && npm run lint && npm run test:unit && npm run test:e2e ",
30
+ "test:unit": "vitest run --config vitest.unit.config.ts --coverage",
31
+ "http": "tsx scripts/http-service.ts ./ --port 8500 --base-url /samples/index.html",
32
+ "http:docs": "tsx scripts/http-service.ts ./vitepress-docs/.vitepress/dist --port 8399",
33
+ "test:e2e": "HEADERS='true' vitest run --config vitest.e2e.config.ts",
34
+ "test:debug": "vitest run --config vitest.e2e.config.ts --no-file-parallelism",
35
+ "prebuild": "npx wasm-opt -Oz --all-features src/jswasm/sqlite3.wasm -o src/jswasm/sqlite3.wasm.tmp && gzip -9 -c src/jswasm/sqlite3.wasm.tmp | base64 -w 0 > src/jswasm/sqlite3.wasm.base64 && echo \"export const wasmBase64 = '$(cat src/jswasm/sqlite3.wasm.base64)';\" > src/jswasm/wasm-asset.js && rm src/jswasm/sqlite3.wasm.tmp src/jswasm/sqlite3.wasm.base64 && npx tsx scripts/bundle-proxy-asset.ts",
36
+ "build": "MINIFY=true vite build",
37
+ "build:dev": "SOURCE_MAP=true vite build",
38
+ "build:watch": "vite build --watch",
39
+ "lint": "eslint . --ext .ts --fix; npm run typecheck && npm run format",
40
+ "typecheck": "tsc --noEmit",
41
+ "format": "prettier --ignore-path .gitignore --write .",
42
+ "package:compress": "npm pack",
43
+ "package:publish": "npm run test && npm run build && npm publish --access public",
44
+ "docs:dev": "npm run dev --workspace=@web-sqlite-js/vitepress-docs",
45
+ "docs:build": "npm run build --workspace=@web-sqlite-js/vitepress-docs",
46
+ "docs:preview": "npm run preview --workspace=@web-sqlite-js/vitepress-docs",
47
+ "docs:icons": "npm run icons --workspace=@web-sqlite-js/vitepress-docs",
48
+ "docs:deploy": "cd vitepress-docs && ./deploy.sh"
49
+ },
50
+ "files": [
51
+ "dist"
52
+ ],
53
+ "devDependencies": {
54
+ "@eslint/css": "^0.14.1",
55
+ "@eslint/js": "^9.39.2",
56
+ "@eslint/json": "^0.14.0",
57
+ "@types/node": "^25.0.1",
58
+ "@vitest/browser": "^4.0.15",
59
+ "@vitest/browser-playwright": "^4.0.15",
60
+ "@vitest/coverage-v8": "4.0.15",
61
+ "@vitest/ui": "^4.0.15",
62
+ "binaryen": "^125.0.0",
63
+ "commander": "^14.0.2",
64
+ "eslint": "^9.39.2",
65
+ "globals": "^16.5.0",
66
+ "http-server": "^14.1.1",
67
+ "jiti": "^2.6.1",
68
+ "playwright": "^1.57.0",
69
+ "tsx": "^4.21.0",
70
+ "typescript": "^5.9.3",
71
+ "typescript-eslint": "^8.49.0",
72
+ "vite": "^7.2.7",
73
+ "vite-plugin-dts": "^4.5.4",
74
+ "vitest": "^4.0.15"
75
+ },
76
+ "repository": {
77
+ "type": "git",
78
+ "url": "git+https://github.com/wuchuheng/web-sqlite-js.git"
79
+ },
80
+ "license": "MIT",
81
+ "bugs": {
82
+ "url": "https://github.com/wuchuheng/web-sqlite-js/issues"
83
+ },
84
+ "homepage": "https://web-sqlite-js.wuchuheng.com"
85
85
  }