isomorphic-jj 1.7.0 → 1.9.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,7 +1,7 @@
1
1
  {
2
2
  "name": "isomorphic-jj",
3
- "version": "1.7.0",
4
- "description": "A pure-JavaScript library that brings Jujutsu (jj) version control semantics to Node.js and browsers",
3
+ "version": "1.9.0",
4
+ "description": "Jujutsu (jj) version control semantics in pure JavaScript — stable change IDs, fearless undo, no staging area — for Node.js and browsers",
5
5
  "type": "module",
6
6
  "bin": {
7
7
  "isojj": "./bin/isojj.js"
@@ -11,13 +11,13 @@
11
11
  "types": "./src/types.d.ts",
12
12
  "exports": {
13
13
  ".": {
14
+ "types": "./src/types.d.ts",
14
15
  "import": "./dist/index.mjs",
15
- "require": "./dist/index.cjs",
16
- "types": "./src/types.d.ts"
16
+ "require": "./dist/index.cjs"
17
17
  },
18
18
  "./browser": {
19
- "import": "./src/browser/index.js",
20
- "types": "./src/browser/index.d.ts"
19
+ "types": "./src/browser/index.d.ts",
20
+ "import": "./src/browser/index.js"
21
21
  }
22
22
  },
23
23
  "files": [
@@ -30,11 +30,25 @@
30
30
  ],
31
31
  "scripts": {
32
32
  "demo": "node demo.mjs",
33
+ "examples": "for f in examples/*.mjs; do echo \"=== $f\"; node \"$f\" || exit 1; done",
34
+ "example:01": "node examples/01-init-commit-log.mjs",
35
+ "example:02": "node examples/02-stacked-changes.mjs",
36
+ "example:03": "node examples/03-history-editing.mjs",
37
+ "example:04": "node examples/04-branching-and-merging.mjs",
38
+ "example:05": "node examples/05-conflicts.mjs",
39
+ "example:06": "node examples/06-revsets.mjs",
40
+ "example:07": "node examples/07-bookmarks-and-tags.mjs",
41
+ "example:08": "node examples/08-git-interop.mjs",
42
+ "example:09": "node examples/09-config.mjs",
43
+ "example:10": "node examples/10-undo-and-oplog.mjs",
44
+ "example:11": "node examples/11-file-operations.mjs",
45
+ "example:12": "node examples/12-browser.mjs",
33
46
  "test": "node --experimental-vm-modules node_modules/jest/bin/jest.js",
34
47
  "test:watch": "node --experimental-vm-modules node_modules/jest/bin/jest.js --watch",
35
48
  "test:coverage": "node --experimental-vm-modules node_modules/jest/bin/jest.js --coverage",
36
49
  "test:browser": "playwright test",
37
- "build": "rollup -c",
50
+ "build:protos": "node scripts/build-protos.mjs",
51
+ "build": "npm run build:protos && rollup -c",
38
52
  "lint": "eslint src tests",
39
53
  "format": "prettier --write \"src/**/*.js\" \"tests/**/*.js\"",
40
54
  "format:check": "prettier --check \"src/**/*.js\" \"tests/**/*.js\"",
@@ -58,12 +72,12 @@
58
72
  "license": "MIT",
59
73
  "repository": {
60
74
  "type": "git",
61
- "url": "https://github.com/johnhenry/isomorphic-jj.git"
75
+ "url": "git+https://github.com/johnhenry/isomorphic-jj.git"
62
76
  },
63
77
  "bugs": {
64
78
  "url": "https://github.com/johnhenry/isomorphic-jj/issues"
65
79
  },
66
- "homepage": "https://github.com/johnhenry/isomorphic-jj#readme",
80
+ "homepage": "https://opensource.johnhenry.me/isomorphic-jj/",
67
81
  "peerDependencies": {
68
82
  "isomorphic-git": "^1.24.0"
69
83
  },
@@ -87,7 +101,7 @@
87
101
  "typescript": "^5.3.3"
88
102
  },
89
103
  "engines": {
90
- "node": ">=20.0.0"
104
+ "node": ">=26.0.0"
91
105
  },
92
106
  "dependencies": {
93
107
  "protobufjs": "^7.5.4"