@jbrowse/mobx-state-tree 5.6.0 → 5.6.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.
- package/README.md +18 -0
- package/package.json +25 -24
- package/changelog.md +0 -677
- package/dist/core/action.d.ts +0 -87
- package/dist/core/action.js.map +0 -1
- package/dist/core/actionContext.d.ts +0 -27
- package/dist/core/actionContext.js.map +0 -1
- package/dist/core/flow.d.ts +0 -69
- package/dist/core/flow.js.map +0 -1
- package/dist/core/json-patch.d.ts +0 -46
- package/dist/core/json-patch.js.map +0 -1
- package/dist/core/mst-operations.d.ts +0 -459
- package/dist/core/mst-operations.js.map +0 -1
- package/dist/core/node/BaseNode.d.ts +0 -62
- package/dist/core/node/BaseNode.js.map +0 -1
- package/dist/core/node/Hook.d.ts +0 -17
- package/dist/core/node/Hook.js.map +0 -1
- package/dist/core/node/create-node.d.ts +0 -16
- package/dist/core/node/create-node.js.map +0 -1
- package/dist/core/node/identifier-cache.d.ts +0 -19
- package/dist/core/node/identifier-cache.js.map +0 -1
- package/dist/core/node/livelinessChecking.d.ts +0 -37
- package/dist/core/node/livelinessChecking.js.map +0 -1
- package/dist/core/node/node-utils.d.ts +0 -83
- package/dist/core/node/node-utils.js.map +0 -1
- package/dist/core/node/object-node.d.ts +0 -99
- package/dist/core/node/object-node.js.map +0 -1
- package/dist/core/node/scalar-node.d.ts +0 -19
- package/dist/core/node/scalar-node.js.map +0 -1
- package/dist/core/process.d.ts +0 -50
- package/dist/core/process.js.map +0 -1
- package/dist/core/type/type-checker.d.ts +0 -69
- package/dist/core/type/type-checker.js.map +0 -1
- package/dist/core/type/type.d.ts +0 -317
- package/dist/core/type/type.js.map +0 -1
- package/dist/index.d.ts +0 -2
- package/dist/index.js.map +0 -1
- package/dist/internal.d.ts +0 -39
- package/dist/internal.js.map +0 -1
- package/dist/middlewares/create-action-tracking-middleware.d.ts +0 -24
- package/dist/middlewares/create-action-tracking-middleware.js.map +0 -1
- package/dist/middlewares/createActionTrackingMiddleware2.d.ts +0 -34
- package/dist/middlewares/createActionTrackingMiddleware2.js.map +0 -1
- package/dist/middlewares/on-action.d.ts +0 -87
- package/dist/middlewares/on-action.js.map +0 -1
- package/dist/mobx-state-tree.js +0 -6869
- package/dist/mobx-state-tree.module.js +0 -6789
- package/dist/mobx-state-tree.umd.js +0 -6873
- package/dist/types/complex-types/array.d.ts +0 -80
- package/dist/types/complex-types/array.js.map +0 -1
- package/dist/types/complex-types/map.d.ts +0 -110
- package/dist/types/complex-types/map.js.map +0 -1
- package/dist/types/complex-types/model.d.ts +0 -192
- package/dist/types/complex-types/model.js.map +0 -1
- package/dist/types/index.d.ts +0 -33
- package/dist/types/index.js.map +0 -1
- package/dist/types/primitives.d.ts +0 -124
- package/dist/types/primitives.js.map +0 -1
- package/dist/types/utility-types/custom.d.ts +0 -74
- package/dist/types/utility-types/custom.js.map +0 -1
- package/dist/types/utility-types/enumeration.d.ts +0 -5
- package/dist/types/utility-types/enumeration.js.map +0 -1
- package/dist/types/utility-types/frozen.d.ts +0 -23
- package/dist/types/utility-types/frozen.js.map +0 -1
- package/dist/types/utility-types/identifier.d.ts +0 -86
- package/dist/types/utility-types/identifier.js.map +0 -1
- package/dist/types/utility-types/late.d.ts +0 -10
- package/dist/types/utility-types/late.js.map +0 -1
- package/dist/types/utility-types/lazy.d.ts +0 -22
- package/dist/types/utility-types/lazy.js.map +0 -1
- package/dist/types/utility-types/literal.d.ts +0 -37
- package/dist/types/utility-types/literal.js.map +0 -1
- package/dist/types/utility-types/maybe.d.ts +0 -26
- package/dist/types/utility-types/maybe.js.map +0 -1
- package/dist/types/utility-types/optional.d.ts +0 -41
- package/dist/types/utility-types/optional.js.map +0 -1
- package/dist/types/utility-types/reference.d.ts +0 -89
- package/dist/types/utility-types/reference.js.map +0 -1
- package/dist/types/utility-types/refinement.d.ts +0 -10
- package/dist/types/utility-types/refinement.js.map +0 -1
- package/dist/types/utility-types/resilient.d.ts +0 -18
- package/dist/types/utility-types/resilient.js.map +0 -1
- package/dist/types/utility-types/snapshotProcessor.d.ts +0 -63
- package/dist/types/utility-types/snapshotProcessor.js.map +0 -1
- package/dist/types/utility-types/union.d.ts +0 -76
- package/dist/types/utility-types/union.js.map +0 -1
- package/dist/utils.d.ts +0 -230
- package/dist/utils.js.map +0 -1
package/README.md
CHANGED
|
@@ -13,3 +13,21 @@ Fork of mobx-state-tree v5.4.2 for use in jbrowse
|
|
|
13
13
|
- remove unused dependencies
|
|
14
14
|
- updated tslint to eslint and typescript-eslint
|
|
15
15
|
- attempted to make it a dual CJS/'pure ESM' package but did not work quite yet, using main (CJS) and module (ESM-ish) fields for now since dual build causes trouble with both being imported in vite
|
|
16
|
+
- added `types.resilient` - wraps a type so that instantiation errors are caught
|
|
17
|
+
and a fallback type is used instead of crashing the entire state tree. This is
|
|
18
|
+
useful for arrays or maps that may contain unknown or invalid entries (e.g.
|
|
19
|
+
plugin types that are not installed). It takes a primary type, a fallback type,
|
|
20
|
+
and a `createFallbackSnapshot` callback that receives the error and original
|
|
21
|
+
snapshot. Note: `isValidSnapshot` always returns success for resilient types,
|
|
22
|
+
meaning any value is considered a valid snapshot. Validation is deferred to
|
|
23
|
+
instantiation time, where failures are caught and routed to the fallback
|
|
24
|
+
- dramatically shorter error messages with large type trees
|
|
25
|
+
|
|
26
|
+
## Publishing
|
|
27
|
+
|
|
28
|
+
[Trusted publishing](https://docs.npmjs.com/about-trusted-publishing) via GitHub
|
|
29
|
+
Actions.
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
pnpm version patch # or minor/major
|
|
33
|
+
```
|
package/package.json
CHANGED
|
@@ -1,29 +1,35 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jbrowse/mobx-state-tree",
|
|
3
|
-
"version": "5.6.
|
|
3
|
+
"version": "5.6.3",
|
|
4
4
|
"description": "Fork of mobx-state-tree starting from v5.4.2 for use in jbrowse 2",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"main": "dist/mobx-state-tree.js",
|
|
7
7
|
"module": "dist/mobx-state-tree.module.js",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"import": "./dist/mobx-state-tree.module.js",
|
|
12
|
+
"require": "./dist/mobx-state-tree.js"
|
|
13
|
+
},
|
|
14
|
+
"./package.json": "./package.json"
|
|
15
|
+
},
|
|
8
16
|
"sideEffects": false,
|
|
9
17
|
"scripts": {
|
|
10
18
|
"lint": "eslint --report-unused-disable-directives --max-warnings 0",
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"format": "yarn prettier --write .",
|
|
14
|
-
"build": "tsc && cpr lib dist --filter=\\.js$ && rollup -c",
|
|
19
|
+
"format": "prettier --write .",
|
|
20
|
+
"build": "rm -rf dist && tsc && rollup -c",
|
|
15
21
|
"test": "vitest",
|
|
16
|
-
"test-ci": "
|
|
17
|
-
"test:dev": "
|
|
18
|
-
"test:prod": "
|
|
22
|
+
"test-ci": "pnpm test:dev --run && pnpm test:prod --run",
|
|
23
|
+
"test:dev": "NODE_ENV=development vitest",
|
|
24
|
+
"test:prod": "NODE_ENV=production vitest",
|
|
19
25
|
"prebench": "./scripts/build-both-branches.sh",
|
|
20
|
-
"bench": "
|
|
21
|
-
"preversion": "
|
|
26
|
+
"bench": "NODE_ENV=production vitest bench --run",
|
|
27
|
+
"preversion": "pnpm build && pnpm test-ci",
|
|
22
28
|
"postversion": "git push --follow-tags"
|
|
23
29
|
},
|
|
24
30
|
"repository": {
|
|
25
31
|
"type": "git",
|
|
26
|
-
"url": "https://github.com/
|
|
32
|
+
"url": "git+https://github.com/GMOD/mobx-state-tree.git"
|
|
27
33
|
},
|
|
28
34
|
"author": "Michel Weststrate",
|
|
29
35
|
"license": "MIT",
|
|
@@ -32,21 +38,16 @@
|
|
|
32
38
|
],
|
|
33
39
|
"devDependencies": {
|
|
34
40
|
"@eslint/js": "^10.0.1",
|
|
35
|
-
"@types/node": "^25.
|
|
36
|
-
"
|
|
37
|
-
"cpr": "^3.0.1",
|
|
38
|
-
"cross-env": "^10.1.0",
|
|
39
|
-
"eslint": "^10.0.1",
|
|
41
|
+
"@types/node": "^25.5.0",
|
|
42
|
+
"eslint": "^10.4.0",
|
|
40
43
|
"eslint-plugin-import": "^2.32.0",
|
|
41
|
-
"mobx": "^6.15.
|
|
42
|
-
"prettier": "^3.8.
|
|
43
|
-
"
|
|
44
|
-
"rollup": "^4.59.0",
|
|
45
|
-
"rollup-plugin-replace": "^2.2.0",
|
|
44
|
+
"mobx": "^6.15.3",
|
|
45
|
+
"prettier": "^3.8.3",
|
|
46
|
+
"rollup": "^4.60.4",
|
|
46
47
|
"spec.ts": "^1.1.3",
|
|
47
|
-
"typescript": "^
|
|
48
|
-
"typescript-eslint": "^8.
|
|
49
|
-
"vitest": "^4.
|
|
48
|
+
"typescript": "^6.0.3",
|
|
49
|
+
"typescript-eslint": "^8.59.4",
|
|
50
|
+
"vitest": "^4.1.7"
|
|
50
51
|
},
|
|
51
52
|
"peerDependencies": {
|
|
52
53
|
"mobx": "^6.3.0"
|