@syncular/dialect-pglite 0.0.1 → 0.0.2-126

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 +26 -3
package/README.md ADDED
@@ -0,0 +1,28 @@
1
+ # @syncular/dialect-pglite
2
+
3
+ PGlite (WASM Postgres) Kysely dialect for running Postgres locally (in browser or other WASM environments).
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ npm install @syncular/dialect-pglite
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ ```ts
14
+ import { createPgliteDbAsync } from '@syncular/dialect-pglite';
15
+
16
+ const db = await createPgliteDbAsync<MyDb>({ dataDir: 'idb://app' });
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-pglite",
3
- "version": "0.0.1",
3
+ "version": "0.0.2-126",
4
+ "description": "PGLite 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-pglite"
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
+ "pglite",
23
+ "postgres",
24
+ "wasm"
25
+ ],
4
26
  "private": false,
5
27
  "publishConfig": {
6
28
  "access": "public"
@@ -17,7 +39,8 @@
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
  "@electric-sql/pglite": "^0.3.15",
@@ -27,7 +50,7 @@
27
50
  "kysely": "^0.28.0"
28
51
  },
29
52
  "devDependencies": {
30
- "@syncular/config": "workspace:*",
53
+ "@syncular/config": "0.0.0",
31
54
  "kysely": "*"
32
55
  },
33
56
  "files": [