@coaction/yjs 1.5.0 → 2.1.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,67 +1,64 @@
1
1
  {
2
2
  "name": "@coaction/yjs",
3
- "version": "1.5.0",
3
+ "version": "2.1.0",
4
4
  "description": "A Coaction integration tool for Yjs",
5
5
  "keywords": [
6
- "state",
7
6
  "coaction",
8
- "yjs",
9
- "crdt"
10
- ],
11
- "authors": [
12
- "Michael Lin <unadlib@gmail.com> (https://github.com/unadlib)"
7
+ "crdt",
8
+ "state",
9
+ "yjs"
13
10
  ],
14
- "homepage": "https://github.com/unadlib/coaction/tree/main/packages/coaction-yjs#readme",
11
+ "homepage": "https://github.com/coactionjs/coaction/tree/main/packages/coaction-yjs#readme",
12
+ "bugs": {
13
+ "url": "https://github.com/coactionjs/coaction/issues"
14
+ },
15
15
  "license": "MIT",
16
+ "author": "unadlib",
17
+ "repository": {
18
+ "type": "git",
19
+ "url": "https://github.com/coactionjs/coaction.git",
20
+ "directory": "packages/coaction-yjs"
21
+ },
22
+ "files": [
23
+ "dist"
24
+ ],
25
+ "sideEffects": false,
16
26
  "main": "dist/index.js",
17
27
  "module": "dist/index.mjs",
28
+ "types": "dist/index.d.ts",
18
29
  "exports": {
19
30
  ".": {
20
- "types": "./dist/index.d.ts",
21
- "import": "./dist/index.mjs",
22
- "require": "./dist/index.js",
31
+ "import": {
32
+ "types": "./dist/index.d.mts",
33
+ "default": "./dist/index.mjs"
34
+ },
35
+ "require": {
36
+ "types": "./dist/index.d.ts",
37
+ "default": "./dist/index.js"
38
+ },
23
39
  "default": "./dist/index.mjs"
24
40
  },
25
41
  "./package.json": "./package.json"
26
42
  },
27
- "types": "dist/index.d.ts",
28
- "sideEffects": false,
29
- "files": [
30
- "dist"
31
- ],
32
- "repository": {
33
- "type": "git",
34
- "url": "https://github.com/unadlib/coaction.git",
35
- "directory": "packages/coaction-yjs"
36
- },
37
- "bugs": {
38
- "url": "https://github.com/unadlib/coaction/issues"
39
- },
40
- "peerDependencies": {
41
- "coaction": "^1.5.0",
42
- "yjs": "^13.6.0"
43
- },
44
- "peerDependenciesMeta": {
45
- "coaction": {
46
- "optional": true
47
- },
48
- "yjs": {
49
- "optional": true
50
- }
43
+ "publishConfig": {
44
+ "access": "public",
45
+ "provenance": true
51
46
  },
52
47
  "devDependencies": {
53
48
  "yjs": "^13.6.27",
54
- "coaction": "1.5.0"
49
+ "coaction": "2.1.0"
55
50
  },
56
- "publishConfig": {
57
- "access": "public",
58
- "provenance": true
51
+ "peerDependencies": {
52
+ "coaction": ">=2.1.0 <3",
53
+ "yjs": "^13.6.0"
59
54
  },
60
- "author": "unadlib",
55
+ "authors": [
56
+ "Michael Lin <unadlib@gmail.com> (https://github.com/unadlib)"
57
+ ],
61
58
  "scripts": {
62
59
  "clean": "rm -rf dist",
63
60
  "test": "vitest run test",
64
- "build": "tsup index.ts --format cjs,esm --dts --clean --out-dir dist",
65
- "dev": "tsup index.ts --format cjs,esm --dts --watch --out-dir dist"
61
+ "build": "node ../../scripts/build-package.mjs",
62
+ "dev": "node ../../scripts/build-package.mjs --watch"
66
63
  }
67
64
  }