@absolutejs/sync-loro 0.0.1 → 0.0.3

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.
@@ -0,0 +1,35 @@
1
+ {
2
+ "contract": 1,
3
+ "identity": {
4
+ "accent": "#4f8cc9",
5
+ "category": "sync",
6
+ "description": "Loro-backed `TextCrdtAdapter` for `@absolutejs/sync` — the Rust/WASM Loro CRDT engine behind the same collaborative-text call sites as the built-in `rgaText`. State is stored as a base64 Loro snapshot.",
7
+ "docsUrl": "https://github.com/absolutejs/sync-adapters/tree/main/loro",
8
+ "name": "@absolutejs/sync-loro",
9
+ "tagline": "Collaborative text editing powered by Loro."
10
+ },
11
+ "implements": [
12
+ {
13
+ "contract": "sync/crdt-adapter",
14
+ "factory": "loroText",
15
+ "from": "@absolutejs/sync-loro",
16
+ "title": "Loro",
17
+ "wiring": {
18
+ "code": "loroText",
19
+ "imports": [
20
+ {
21
+ "from": "@absolutejs/sync-loro",
22
+ "names": [
23
+ "loroText"
24
+ ]
25
+ }
26
+ ]
27
+ }
28
+ }
29
+ ],
30
+ "settings": {
31
+ "type": "object",
32
+ "properties": {}
33
+ },
34
+ "wiring": []
35
+ }
package/package.json CHANGED
@@ -1,17 +1,21 @@
1
1
  {
2
2
  "name": "@absolutejs/sync-loro",
3
- "version": "0.0.1",
3
+ "version": "0.0.3",
4
4
  "description": "Loro-backed collaborative-text CRDT adapter for @absolutejs/sync",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/absolutejs/sync-adapters.git",
8
8
  "directory": "loro"
9
9
  },
10
+ "homepage": "https://github.com/absolutejs/sync-adapters/tree/main/loro",
11
+ "bugs": {
12
+ "url": "https://github.com/absolutejs/sync-adapters/issues"
13
+ },
10
14
  "main": "./dist/index.js",
11
15
  "module": "./dist/index.js",
12
16
  "types": "./dist/index.d.ts",
13
17
  "type": "module",
14
- "license": "CC BY-NC 4.0",
18
+ "license": "Apache-2.0",
15
19
  "author": "Alex Kahn",
16
20
  "publishConfig": {
17
21
  "access": "public"
@@ -25,13 +29,15 @@
25
29
  "multiplayer"
26
30
  ],
27
31
  "scripts": {
28
- "build": "rm -rf dist && bun build src/index.ts --outdir dist --sourcemap --target=bun --external @absolutejs/sync --external loro-crdt && tsc --project tsconfig.build.json",
32
+ "build": "rm -rf dist && bun build src/index.ts src/manifest.ts --outdir dist --sourcemap --target=bun --external @absolutejs/sync --external loro-crdt && tsc --project tsconfig.build.json && absolute-manifest emit",
29
33
  "test": "bun test",
30
34
  "typecheck": "tsc --noEmit",
31
35
  "format": "prettier --write \"./**/*.{ts,json,md}\"",
32
36
  "release": "bun run format && bun run build && bun publish"
33
37
  },
34
38
  "dependencies": {
39
+ "@absolutejs/manifest": "^0.1.0",
40
+ "@sinclair/typebox": "^0.34.0",
35
41
  "loro-crdt": "^1.12.2"
36
42
  },
37
43
  "peerDependencies": {
@@ -48,10 +54,19 @@
48
54
  "types": "./dist/index.d.ts",
49
55
  "import": "./dist/index.js",
50
56
  "default": "./dist/index.js"
51
- }
57
+ },
58
+ "./manifest": {
59
+ "types": "./dist/manifest.d.ts",
60
+ "import": "./dist/manifest.js",
61
+ "default": "./dist/manifest.js"
62
+ },
63
+ "./manifest.json": "./dist/manifest.json"
52
64
  },
53
65
  "files": [
54
66
  "dist",
55
67
  "README.md"
56
- ]
68
+ ],
69
+ "absolutejs": {
70
+ "manifestContract": 1
71
+ }
57
72
  }