mobx 6.12.4 → 6.13.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/CHANGELOG.md +17 -5
- package/dist/mobx.cjs.development.js +241 -170
- package/dist/mobx.cjs.development.js.map +1 -1
- package/dist/mobx.cjs.production.min.js +1 -1
- package/dist/mobx.cjs.production.min.js.map +1 -1
- package/dist/mobx.esm.development.js +241 -170
- package/dist/mobx.esm.development.js.map +1 -1
- package/dist/mobx.esm.js +241 -170
- package/dist/mobx.esm.js.map +1 -1
- package/dist/mobx.esm.production.min.js +1 -1
- package/dist/mobx.esm.production.min.js.map +1 -1
- package/dist/mobx.umd.development.js +241 -170
- package/dist/mobx.umd.development.js.map +1 -1
- package/dist/mobx.umd.production.min.js +1 -1
- package/dist/mobx.umd.production.min.js.map +1 -1
- package/dist/types/observableset.d.ts +7 -0
- package/dist/utils/utils.d.ts +3 -2
- package/package.json +1 -1
- package/src/types/observablemap.ts +2 -1
- package/src/types/observableset.ts +48 -0
- package/src/utils/utils.ts +9 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# mobx
|
|
2
2
|
|
|
3
|
+
## 6.13.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`16f070e6aac60e9010c2591b1743276d700b23d5`](https://github.com/mobxjs/mobx/commit/16f070e6aac60e9010c2591b1743276d700b23d5) [#3898](https://github.com/mobxjs/mobx/pull/3898) Thanks [@inoyakaigor](https://github.com/inoyakaigor)! - Added new Set methods
|
|
8
|
+
|
|
9
|
+
## 6.12.5
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`ba890343`](https://github.com/mobxjs/mobx/commit/ba8903430ce96746db5dcde6b78edeb195ea8018) [#3893](https://github.com/mobxjs/mobx/pull/3893) Thanks [@g6123](https://github.com/g6123)! - Fix ES6 Map/Set checks for cross-window scripts
|
|
14
|
+
|
|
3
15
|
## 6.12.4
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -1396,7 +1408,7 @@ A deprecation message will now be printed if creating computed properties while
|
|
|
1396
1408
|
|
|
1397
1409
|
```javascript
|
|
1398
1410
|
const x = observable({
|
|
1399
|
-
computedProp: function() {
|
|
1411
|
+
computedProp: function () {
|
|
1400
1412
|
return someComputation
|
|
1401
1413
|
}
|
|
1402
1414
|
})
|
|
@@ -1421,7 +1433,7 @@ or alternatively:
|
|
|
1421
1433
|
|
|
1422
1434
|
```javascript
|
|
1423
1435
|
observable({
|
|
1424
|
-
computedProp: computed(function() {
|
|
1436
|
+
computedProp: computed(function () {
|
|
1425
1437
|
return someComputation
|
|
1426
1438
|
})
|
|
1427
1439
|
})
|
|
@@ -1439,7 +1451,7 @@ N.B. If you want to introduce actions on an observable that modify its state, us
|
|
|
1439
1451
|
```javascript
|
|
1440
1452
|
observable({
|
|
1441
1453
|
counter: 0,
|
|
1442
|
-
increment: action(function() {
|
|
1454
|
+
increment: action(function () {
|
|
1443
1455
|
this.counter++
|
|
1444
1456
|
})
|
|
1445
1457
|
})
|
|
@@ -1565,10 +1577,10 @@ function Square() {
|
|
|
1565
1577
|
extendObservable(this, {
|
|
1566
1578
|
length: 2,
|
|
1567
1579
|
squared: computed(
|
|
1568
|
-
function() {
|
|
1580
|
+
function () {
|
|
1569
1581
|
return this.squared * this.squared
|
|
1570
1582
|
},
|
|
1571
|
-
function(surfaceSize) {
|
|
1583
|
+
function (surfaceSize) {
|
|
1572
1584
|
this.length = Math.sqrt(surfaceSize)
|
|
1573
1585
|
}
|
|
1574
1586
|
)
|