mobx 4.15.0 → 4.15.4
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/CHANGELOG.md +827 -552
- package/README.md +155 -98
- package/lib/api/action.d.ts +13 -25
- package/lib/api/actiondecorator.d.ts +27 -16
- package/lib/api/autorun.d.ts +24 -24
- package/lib/api/become-observed.d.ts +5 -5
- package/lib/api/computed.d.ts +14 -14
- package/lib/api/configure.d.ts +19 -19
- package/lib/api/decorate.d.ts +6 -6
- package/lib/api/extendobservable.d.ts +7 -7
- package/lib/api/extras.d.ts +10 -10
- package/lib/api/flow.d.ts +9 -9
- package/lib/api/intercept-read.d.ts +8 -8
- package/lib/api/intercept.d.ts +8 -8
- package/lib/api/iscomputed.d.ts +3 -3
- package/lib/api/isobservable.d.ts +2 -2
- package/lib/api/object-api.d.ts +34 -34
- package/lib/api/observable.d.ts +54 -54
- package/lib/api/observabledecorator.d.ts +6 -6
- package/lib/api/observe.d.ts +8 -8
- package/lib/api/tojs.d.ts +11 -11
- package/lib/api/trace.d.ts +3 -3
- package/lib/api/transaction.d.ts +8 -8
- package/lib/api/when.d.ts +15 -15
- package/lib/core/action.d.ts +22 -22
- package/lib/core/atom.d.ts +40 -40
- package/lib/core/computedvalue.d.ts +93 -93
- package/lib/core/derivation.d.ts +74 -74
- package/lib/core/globalstate.d.ts +106 -106
- package/lib/core/observable.d.ts +44 -44
- package/lib/core/reaction.d.ts +63 -63
- package/lib/core/spy.d.ts +6 -6
- package/lib/index.js +7 -0
- package/lib/internal.d.ts +44 -44
- package/lib/mobx.d.ts +19 -19
- package/lib/mobx.es6.js +4340 -4330
- package/lib/mobx.js +4384 -4419
- package/lib/mobx.js.flow +1 -0
- package/lib/mobx.min.js +1 -1
- package/lib/mobx.module.js +4431 -4421
- package/lib/mobx.umd.js +4431 -4419
- package/lib/mobx.umd.min.js +1 -1
- package/lib/types/intercept-utils.d.ts +9 -9
- package/lib/types/listen-utils.d.ts +8 -8
- package/lib/types/modifiers.d.ts +7 -7
- package/lib/types/observablearray.d.ts +78 -78
- package/lib/types/observablemap.d.ts +83 -83
- package/lib/types/observableobject.d.ts +65 -65
- package/lib/types/observableset.d.ts +49 -49
- package/lib/types/observablevalue.d.ts +37 -37
- package/lib/types/type-utils.d.ts +4 -4
- package/lib/utils/comparer.d.ts +14 -14
- package/lib/utils/decorators2.d.ts +7 -7
- package/lib/utils/eq.d.ts +1 -1
- package/lib/utils/iterable.d.ts +5 -5
- package/lib/utils/utils.d.ts +43 -43
- package/package.json +7 -89
package/package.json
CHANGED
|
@@ -1,36 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mobx",
|
|
3
|
-
"version": "4.15.
|
|
3
|
+
"version": "4.15.4",
|
|
4
4
|
"description": "Simple, scalable state management.",
|
|
5
|
-
"main": "lib/
|
|
5
|
+
"main": "lib/index.js",
|
|
6
6
|
"umd:main": "lib/mobx.umd.js",
|
|
7
7
|
"module": "lib/mobx.module.js",
|
|
8
8
|
"browser": {
|
|
9
|
-
"./lib/mobx.js": "./lib/mobx.js",
|
|
9
|
+
"./lib/mobx.js": "./lib/mobx.min.js",
|
|
10
10
|
"./lib/mobx.module.js": "./lib/mobx.module.js"
|
|
11
11
|
},
|
|
12
12
|
"unpkg": "lib/mobx.umd.min.js",
|
|
13
13
|
"jsnext:main": "lib/mobx.module.js",
|
|
14
14
|
"react-native": "lib/mobx.module.js",
|
|
15
15
|
"typings": "lib/mobx.d.ts",
|
|
16
|
-
"scripts": {
|
|
17
|
-
"test": "jest",
|
|
18
|
-
"watch": "jest --watch",
|
|
19
|
-
"test:mixed-versions": "jest --testRegex mixed-versions",
|
|
20
|
-
"test:all": "yarn lint && yarn jest -i && yarn test:flow && yarn test:mixed-versions",
|
|
21
|
-
"test:webpack": "node scripts/webpack-regression-tests.js",
|
|
22
|
-
"test:flow": "node_modules/.bin/flow check",
|
|
23
|
-
"test:performance": "npm run small-build && PERSIST=true time node --expose-gc test/perf/index.js",
|
|
24
|
-
"test:ci": "yarn test:all && yarn test:performance && yarn test -i --coverage && test:es5 && yarn test:webpack && yarn size",
|
|
25
|
-
"test:es5": "yarn es-check es5 lib/mobx.js",
|
|
26
|
-
"prettier": "prettier \"**/*.js\" \"**/*.jsx\" \"**/*.tsx\" \"**/*.ts\"",
|
|
27
|
-
"_prepublish": "yarn small-build",
|
|
28
|
-
"quick-build": "tsc --pretty",
|
|
29
|
-
"small-build": "node scripts/build.js",
|
|
30
|
-
"lint": "eslint src/**/*.ts",
|
|
31
|
-
"size": "size-limit --babili 20KB lib/mobx.js",
|
|
32
|
-
"publish-script": "node scripts/publish.js"
|
|
33
|
-
},
|
|
16
|
+
"scripts": {},
|
|
34
17
|
"repository": {
|
|
35
18
|
"type": "git",
|
|
36
19
|
"url": "https://github.com/mobxjs/mobx.git"
|
|
@@ -39,7 +22,7 @@
|
|
|
39
22
|
"license": "MIT",
|
|
40
23
|
"funding": {
|
|
41
24
|
"type": "opencollective",
|
|
42
|
-
"url": "https://opencollective.com/
|
|
25
|
+
"url": "https://opencollective.com/mobx"
|
|
43
26
|
},
|
|
44
27
|
"bugs": {
|
|
45
28
|
"url": "https://github.com/mobxjs/mobx/issues"
|
|
@@ -49,42 +32,8 @@
|
|
|
49
32
|
"LICENSE"
|
|
50
33
|
],
|
|
51
34
|
"homepage": "https://mobx.js.org/",
|
|
52
|
-
"devDependencies": {
|
|
53
|
-
"@babel/core": "^7.3.4",
|
|
54
|
-
"@babel/plugin-proposal-class-properties": "^7.3.4",
|
|
55
|
-
"@babel/plugin-proposal-decorators": "^7.3.0",
|
|
56
|
-
"@babel/plugin-transform-runtime": "^7.3.4",
|
|
57
|
-
"@babel/preset-env": "^7.3.4",
|
|
58
|
-
"@babel/runtime": "^7.3.4",
|
|
59
|
-
"@types/jest": "^24.0.11",
|
|
60
|
-
"@types/node": "^11.11.3",
|
|
61
|
-
"@typescript-eslint/eslint-plugin": "^1.4.2",
|
|
62
|
-
"babel-jest": "^24.5.0",
|
|
63
|
-
"chalk": "^1.1.3",
|
|
64
|
-
"coveralls": "^3.0.3",
|
|
65
|
-
"es-check": "^5.0.0",
|
|
66
|
-
"eslint": "^5.15.2",
|
|
67
|
-
"flow-bin": "^0.59.0",
|
|
68
|
-
"fs-extra": "^7.0.1",
|
|
69
|
-
"husky": "^1.3.1",
|
|
70
|
-
"iterall": "^1.2.2",
|
|
71
|
-
"jest": "^24.5.0",
|
|
72
|
-
"lint-staged": "^8.1.5",
|
|
73
|
-
"prettier": "^1.16.4",
|
|
74
|
-
"rollup": "^1.6.0",
|
|
75
|
-
"rollup-plugin-filesize": "^6.0.1",
|
|
76
|
-
"rollup-plugin-node-resolve": "^4.0.1",
|
|
77
|
-
"rollup-plugin-replace": "^2.1.0",
|
|
78
|
-
"rollup-plugin-terser": "^4.0.4",
|
|
79
|
-
"serializr": "^1.5.1",
|
|
80
|
-
"shelljs": "^0.8.3",
|
|
81
|
-
"size-limit": "^1.0.1",
|
|
82
|
-
"tape": "^4.10.1",
|
|
83
|
-
"ts-jest": "^24.0.0",
|
|
84
|
-
"tslib": "^1.9.3",
|
|
85
|
-
"typescript": "^3.3.3333"
|
|
86
|
-
},
|
|
87
35
|
"dependencies": {},
|
|
36
|
+
"devDependencies": {},
|
|
88
37
|
"keywords": [
|
|
89
38
|
"mobx",
|
|
90
39
|
"mobservable",
|
|
@@ -100,40 +49,9 @@
|
|
|
100
49
|
"data flow"
|
|
101
50
|
],
|
|
102
51
|
"lint-staged": {
|
|
103
|
-
"*.{ts,tsx,js,jsx}": [
|
|
52
|
+
"*.{ts,tsx,js,jsx,md}": [
|
|
104
53
|
"prettier --write",
|
|
105
54
|
"git add"
|
|
106
55
|
]
|
|
107
|
-
},
|
|
108
|
-
"jest": {
|
|
109
|
-
"globals": {
|
|
110
|
-
"ts-jest": {
|
|
111
|
-
"tsConfig": "tsconfig.test.json"
|
|
112
|
-
}
|
|
113
|
-
},
|
|
114
|
-
"transform": {
|
|
115
|
-
"^.+\\.tsx?$": "ts-jest",
|
|
116
|
-
"^.+\\.jsx?$": "babel-jest"
|
|
117
|
-
},
|
|
118
|
-
"testRegex": "test/base/.*\\.(t|j)sx?$",
|
|
119
|
-
"moduleFileExtensions": [
|
|
120
|
-
"ts",
|
|
121
|
-
"tsx",
|
|
122
|
-
"js",
|
|
123
|
-
"jsx",
|
|
124
|
-
"json"
|
|
125
|
-
],
|
|
126
|
-
"testPathIgnorePatterns": [
|
|
127
|
-
"/node_modules/",
|
|
128
|
-
"/\\./"
|
|
129
|
-
],
|
|
130
|
-
"watchPathIgnorePatterns": [
|
|
131
|
-
"<rootDir>/node_modules/"
|
|
132
|
-
]
|
|
133
|
-
},
|
|
134
|
-
"husky": {
|
|
135
|
-
"hooks": {
|
|
136
|
-
"pre-commit": "lint-staged"
|
|
137
|
-
}
|
|
138
56
|
}
|
|
139
57
|
}
|