@electric-sql/y-electric 0.1.4 → 0.1.6

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 +5 -5
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -14,10 +14,10 @@ The typical flow for syncing shared documents using Yjs and Electric is the foll
14
14
  ### Basic Setup
15
15
 
16
16
  ```typescript
17
- import * as Y from "yjs"
18
- import { ElectricProvider } from "@electric-sql/y-electric"
19
- import { Awareness } from "y-protocols/awareness"
20
- import { parseToDecoder } from "@electric-sql/y-electric/utils"
17
+ import * as Y from 'yjs'
18
+ import { ElectricProvider } from '@electric-sql/y-electric'
19
+ import { Awareness } from 'y-protocols/awareness'
20
+ import { parseToDecoder } from '@electric-sql/y-electric/utils'
21
21
 
22
22
  const ydoc = new Y.Doc()
23
23
  const awareness = new Awareness(ydoc)
@@ -87,7 +87,7 @@ CREATE TABLE ydoc_awareness(
87
87
  updated TIMESTAMPTZ DEFAULT CURRENT_TIMESTAMP,
88
88
  PRIMARY KEY (client_id, room)
89
89
  );
90
- -- Save
90
+ -- Save
91
91
  INSERT INTO ydoc_awareness (room, client_id, op, updated) VALUES ($1, $2, $3, now())
92
92
  ON CONFLICT (client_id, room) DO UPDATE SET op = $3, updated = now()
93
93
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@electric-sql/y-electric",
3
- "version": "0.1.4",
3
+ "version": "0.1.6",
4
4
  "description": "YJS network provider for ElectricSQL",
5
5
  "author": "ElectricSQL team and contributors.",
6
6
  "bugs": {
@@ -11,7 +11,7 @@
11
11
  "lib0": "^0.2.65",
12
12
  "y-protocols": "^1.0.5",
13
13
  "yjs": "^13.6.6",
14
- "@electric-sql/client": "1.0.7"
14
+ "@electric-sql/client": "1.0.9"
15
15
  },
16
16
  "devDependencies": {
17
17
  "@types/node": "^18.0.0",