opshot 0.3.3 → 0.4.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.
Files changed (4) hide show
  1. package/README.md +33 -33
  2. package/dist/index.d.ts +435 -42
  3. package/dist/index.js +2993 -1241
  4. package/package.json +20 -10
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opshot",
3
- "version": "0.3.3",
3
+ "version": "0.4.0",
4
4
  "description": "Plain-object state for React: mutate it directly, re-render only the components that read what changed, and track every change operation",
5
5
  "type": "module",
6
6
  "exports": {
@@ -22,31 +22,38 @@
22
22
  "type": "git",
23
23
  "url": "git+https://github.com/visionsofparadise/opshot.git"
24
24
  },
25
+ "engines": {
26
+ "node": ">=20"
27
+ },
25
28
  "scripts": {
26
- "check": "prettier --write . && eslint . --fix --cache && concurrently \"tsc --noEmit\" \"markdownlint-cli2 \\\"**/*.md\\\"\" \"textlint \\\"**/*.md\\\"\" \"knip --no-progress\" \"jscpd .\"",
27
- "lint": "eslint . --fix --cache",
28
- "lint:fix": "eslint . --fix",
29
- "format": "prettier --write .",
30
- "unit": "vitest run unit",
31
- "integration": "vitest run integration",
29
+ "prepare": "node -e \"import('node:child_process').then(({execSync})=>{try{execSync('git rev-parse --is-inside-work-tree',{stdio:'ignore'});execSync('git config core.hooksPath .githooks')}catch{}})\" && node tools.mjs install",
30
+ "fix": "concurrently -m 1 --group \"prettier --write .\" \"eslint . --fix --cache\" \"markdownlint-cli2 --fix \\\"**/*.md\\\"\" \"textlint --fix \\\"**/*.md\\\"\"",
31
+ "check": "concurrently --group \"prettier --check .\" \"eslint . --no-cache -f unix\" \"tsc --noEmit --pretty false\" \"markdownlint-cli2 \\\"**/*.md\\\"\" \"textlint -f compact \\\"**/*.md\\\"\" \"knip --no-progress\" \"jscpd .\" \"node tools.mjs run actionlint\"",
32
+ "unit": "vitest run --project unit",
33
+ "integration": "vitest run --project integration --project react16 --project react17 --project react18",
34
+ "integration:heavy": "vitest run --config vitest.heavy.config.ts",
32
35
  "build": "tsup --config tsup.config.ts"
33
36
  },
34
37
  "peerDependencies": {
35
- "react": ">=18.0.0"
38
+ "react": ">=16.8.0"
36
39
  },
37
40
  "devDependencies": {
41
+ "@commitlint/cli": "^19.8.1",
42
+ "@commitlint/config-conventional": "^19.8.1",
38
43
  "@eslint/compat": "^1.3.2",
39
44
  "@eslint/js": "^9.39.5",
40
45
  "@stylistic/eslint-plugin": "^5.10.0",
41
- "@testing-library/react": "^16.3.2",
46
+ "@testing-library/dom": "^10.4.1",
42
47
  "@types/react": "^19.2.17",
48
+ "@types/react-dom": "^19.2.4",
43
49
  "concurrently": "^10.0.3",
44
50
  "eslint": "^9.39.5",
45
51
  "eslint-config-prettier": "^10.1.8",
52
+ "eslint-formatter-unix": "^9.0.1",
46
53
  "eslint-import-resolver-typescript": "^4.4.4",
47
54
  "eslint-plugin-barrel-files": "^3.0.1",
48
55
  "eslint-plugin-check-file": "^3.3.1",
49
- "eslint-plugin-comment-rules": "^0.1.5",
56
+ "eslint-plugin-comment-rules": "^0.1.7",
50
57
  "eslint-plugin-import-x": "^4.17.1",
51
58
  "eslint-plugin-jsx-a11y": "^6.10.2",
52
59
  "eslint-plugin-react": "^7.37.5",
@@ -56,6 +63,9 @@
56
63
  "jsdom": "^29.1.1",
57
64
  "knip": "^6.29.0",
58
65
  "markdownlint-cli2": "^0.23.1",
66
+ "opshot-react16": "file:fixtures/react16",
67
+ "opshot-react17": "file:fixtures/react17",
68
+ "opshot-react18": "file:fixtures/react18",
59
69
  "prettier": "^3.6.2",
60
70
  "proxy-compare": "^3.0.1",
61
71
  "react": "^19.2.7",