@syncular/dialect-wa-sqlite 0.0.1 → 0.0.2-127

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.
Files changed (2) hide show
  1. package/README.md +28 -0
  2. package/package.json +27 -4
package/README.md ADDED
@@ -0,0 +1,28 @@
1
+ # @syncular/dialect-wa-sqlite
2
+
3
+ wa-sqlite (WASM) Kysely dialect for browser SQLite, with helpers for creating a `Kysely` instance and JSON serialization support.
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ npm install @syncular/dialect-wa-sqlite
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ ```ts
14
+ import { createWaSqliteDb } from '@syncular/dialect-wa-sqlite';
15
+
16
+ const db = createWaSqliteDb<MyDb>({ fileName: 'app.sqlite' });
17
+ ```
18
+
19
+ ## Documentation
20
+
21
+ - Dialect selection: https://syncular.dev/docs/introduction/installation#client-database-dialects
22
+
23
+ ## Links
24
+
25
+ - GitHub: https://github.com/syncular/syncular
26
+ - Issues: https://github.com/syncular/syncular/issues
27
+
28
+ > Status: Alpha. APIs may change between releases.
package/package.json CHANGED
@@ -1,6 +1,28 @@
1
1
  {
2
2
  "name": "@syncular/dialect-wa-sqlite",
3
- "version": "0.0.1",
3
+ "version": "0.0.2-127",
4
+ "description": "WA-SQLite (WASM) dialect for the Syncular client",
5
+ "license": "MIT",
6
+ "author": "Benjamin Kniffler",
7
+ "homepage": "https://syncular.dev",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "https://github.com/syncular/syncular.git",
11
+ "directory": "packages/dialect-wa-sqlite"
12
+ },
13
+ "bugs": {
14
+ "url": "https://github.com/syncular/syncular/issues"
15
+ },
16
+ "keywords": [
17
+ "sync",
18
+ "offline-first",
19
+ "realtime",
20
+ "database",
21
+ "typescript",
22
+ "wa-sqlite",
23
+ "wasm",
24
+ "sqlite"
25
+ ],
4
26
  "private": false,
5
27
  "publishConfig": {
6
28
  "access": "public"
@@ -17,11 +39,12 @@
17
39
  },
18
40
  "scripts": {
19
41
  "tsgo": "tsgo --noEmit",
20
- "build": "rm -rf dist && tsgo"
42
+ "build": "tsgo",
43
+ "release": "bunx syncular-publish"
21
44
  },
22
45
  "dependencies": {
23
46
  "@subframe7536/sqlite-wasm": "^0.5.8",
24
- "@syncular/core": "workspace:*",
47
+ "@syncular/core": "0.0.2-127",
25
48
  "kysely-generic-sqlite": "^1.2.1",
26
49
  "kysely-wasqlite-worker": "^1.2.1"
27
50
  },
@@ -29,7 +52,7 @@
29
52
  "kysely": "^0.28.0"
30
53
  },
31
54
  "devDependencies": {
32
- "@syncular/config": "workspace:*",
55
+ "@syncular/config": "0.0.0",
33
56
  "kysely": "*"
34
57
  },
35
58
  "files": [