@sladg/apex-state 3.11.4 → 4.0.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,6 +1,6 @@
1
1
  {
2
2
  "name": "@sladg/apex-state",
3
- "version": "3.11.4",
3
+ "version": "4.0.0",
4
4
  "description": "Advanced state management wrapper around Valtio with sync paths, aggregations, and side effects",
5
5
  "keywords": [
6
6
  "state-management",
@@ -56,19 +56,20 @@
56
56
  "test:smoke": "vitest run tests/smoke-dual-mode.test.tsx",
57
57
  "test:watch": "vitest",
58
58
  "type-check": "tsc --noEmit",
59
- "wasm:build": "wasm-pack build --target bundler rust",
59
+ "wasm:build": "wasm-pack build --target bundler rust && npm run wasm:generate-types",
60
60
  "wasm:check": "cargo check --manifest-path rust/Cargo.toml",
61
61
  "wasm:fmt": "cargo fmt --manifest-path rust/Cargo.toml",
62
62
  "wasm:fmt:check": "cargo fmt --manifest-path rust/Cargo.toml -- --check",
63
+ "wasm:generate-types": "cargo run --manifest-path rust/Cargo.toml --bin ts-export",
63
64
  "wasm:lint": "cargo clippy --manifest-path rust/Cargo.toml -- -D warnings",
64
- "wasm:test": "cargo test --manifest-path rust/Cargo.toml"
65
+ "wasm:test": "cargo test --manifest-path rust/Cargo.toml --lib"
65
66
  },
66
67
  "dependencies": {
67
- "@jsbits/deep-clone": "^1.1.1",
68
68
  "valtio": "^2.3.0",
69
69
  "valtio-reactive": "^0.2.0"
70
70
  },
71
71
  "devDependencies": {
72
+ "@jsbits/deep-clone": "^1.1.1",
72
73
  "@sladg/eslint-config-base": "^2.4.2",
73
74
  "@testing-library/jest-dom": "^6.9.1",
74
75
  "@testing-library/react": "^14.3.1",
@@ -92,11 +93,15 @@
92
93
  },
93
94
  "peerDependencies": {
94
95
  "@testing-library/react": "^14.0.0 || ^15.0.0 || ^16.0.0",
96
+ "@types/react": "^18.0.0 || ^19.0.0",
95
97
  "react": "^18.0.0 || ^19.0.0"
96
98
  },
97
99
  "peerDependenciesMeta": {
98
100
  "@testing-library/react": {
99
101
  "optional": true
102
+ },
103
+ "@types/react": {
104
+ "optional": true
100
105
  }
101
106
  },
102
107
  "publishConfig": {