mobx 6.12.5 → 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 +11 -5
- package/dist/mobx.cjs.development.js +232 -167
- 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 +232 -167
- package/dist/mobx.esm.development.js.map +1 -1
- package/dist/mobx.esm.js +232 -167
- 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 +232 -167
- 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 +2 -2
- package/package.json +1 -1
- package/src/types/observableset.ts +48 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
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
|
+
|
|
3
9
|
## 6.12.5
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -1402,7 +1408,7 @@ A deprecation message will now be printed if creating computed properties while
|
|
|
1402
1408
|
|
|
1403
1409
|
```javascript
|
|
1404
1410
|
const x = observable({
|
|
1405
|
-
computedProp: function() {
|
|
1411
|
+
computedProp: function () {
|
|
1406
1412
|
return someComputation
|
|
1407
1413
|
}
|
|
1408
1414
|
})
|
|
@@ -1427,7 +1433,7 @@ or alternatively:
|
|
|
1427
1433
|
|
|
1428
1434
|
```javascript
|
|
1429
1435
|
observable({
|
|
1430
|
-
computedProp: computed(function() {
|
|
1436
|
+
computedProp: computed(function () {
|
|
1431
1437
|
return someComputation
|
|
1432
1438
|
})
|
|
1433
1439
|
})
|
|
@@ -1445,7 +1451,7 @@ N.B. If you want to introduce actions on an observable that modify its state, us
|
|
|
1445
1451
|
```javascript
|
|
1446
1452
|
observable({
|
|
1447
1453
|
counter: 0,
|
|
1448
|
-
increment: action(function() {
|
|
1454
|
+
increment: action(function () {
|
|
1449
1455
|
this.counter++
|
|
1450
1456
|
})
|
|
1451
1457
|
})
|
|
@@ -1571,10 +1577,10 @@ function Square() {
|
|
|
1571
1577
|
extendObservable(this, {
|
|
1572
1578
|
length: 2,
|
|
1573
1579
|
squared: computed(
|
|
1574
|
-
function() {
|
|
1580
|
+
function () {
|
|
1575
1581
|
return this.squared * this.squared
|
|
1576
1582
|
},
|
|
1577
|
-
function(surfaceSize) {
|
|
1583
|
+
function (surfaceSize) {
|
|
1578
1584
|
this.length = Math.sqrt(surfaceSize)
|
|
1579
1585
|
}
|
|
1580
1586
|
)
|