mobx 6.3.7 → 6.3.8
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 +8 -0
- package/dist/core/atom.d.ts +1 -1
- package/dist/mobx.cjs.development.js +6 -3
- 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 +6 -3
- package/dist/mobx.esm.development.js.map +1 -1
- package/dist/mobx.esm.js +6 -3
- 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 +6 -3
- 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/package.json +1 -1
- package/src/core/atom.ts +1 -1
- package/src/types/observablearray.ts +6 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# mobx
|
|
2
2
|
|
|
3
|
+
## 6.3.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`9d5e65cb`](https://github.com/mobxjs/mobx/commit/9d5e65cbd612f262d925e57cebb559f5cf36c502) [#3193](https://github.com/mobxjs/mobx/pull/3193) Thanks [@ChocolateLoverRaj](https://github.com/ChocolateLoverRaj)! - Make `IAtom['reportObserved']` return `boolean`
|
|
8
|
+
|
|
9
|
+
* [`55508af6`](https://github.com/mobxjs/mobx/commit/55508af690fa875e6affaf30f34280b3f27b6126) [#3189](https://github.com/mobxjs/mobx/pull/3189) Thanks [@RvanderLaan](https://github.com/RvanderLaan)! - Fix for RangeError in ObservableArray.replace for large arrays
|
|
10
|
+
|
|
3
11
|
## 6.3.7
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
package/dist/core/atom.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IDerivationState_, IObservable, IDerivation, Lambda } from "../internal";
|
|
2
2
|
export declare const $mobx: unique symbol;
|
|
3
3
|
export interface IAtom extends IObservable {
|
|
4
|
-
reportObserved():
|
|
4
|
+
reportObserved(): boolean;
|
|
5
5
|
reportChanged(): any;
|
|
6
6
|
}
|
|
7
7
|
export declare class Atom implements IAtom {
|
|
@@ -3683,9 +3683,12 @@ var ObservableArrayAdministration = /*#__PURE__*/function () {
|
|
|
3683
3683
|
|
|
3684
3684
|
return (_this$values_ = this.values_).splice.apply(_this$values_, [index, deleteCount].concat(newItems));
|
|
3685
3685
|
} else {
|
|
3686
|
-
|
|
3687
|
-
var
|
|
3688
|
-
|
|
3686
|
+
// The items removed by the splice
|
|
3687
|
+
var res = this.values_.slice(index, index + deleteCount); // The items that that should remain at the end of the array
|
|
3688
|
+
|
|
3689
|
+
var oldItems = this.values_.slice(index + deleteCount); // New length is the previous length + addition count - deletion count
|
|
3690
|
+
|
|
3691
|
+
this.values_.length += newItems.length - deleteCount;
|
|
3689
3692
|
|
|
3690
3693
|
for (var i = 0; i < newItems.length; i++) {
|
|
3691
3694
|
this.values_[index + i] = newItems[i];
|