mobx 6.13.4 → 6.13.6

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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # mobx
2
2
 
3
+ ## 6.13.6
4
+
5
+ ### Patch Changes
6
+
7
+ - [`bca3841347f4fba50ad910e1c4176c56ba0173d1`](https://github.com/mobxjs/mobx/commit/bca3841347f4fba50ad910e1c4176c56ba0173d1) [#3993](https://github.com/mobxjs/mobx/pull/3993) Thanks [@tonyraoul](https://github.com/tonyraoul)! - Improve observableset memory footprint and performance
8
+
9
+ ## 6.13.5
10
+
11
+ ### Patch Changes
12
+
13
+ - [`4c077738776d5fc7ba0f108805a9ec816c2709b9`](https://github.com/mobxjs/mobx/commit/4c077738776d5fc7ba0f108805a9ec816c2709b9) [#3943](https://github.com/mobxjs/mobx/pull/3943) Thanks [@tonyraoul](https://github.com/tonyraoul)! - Fix browser compatability issue introduced in 6.13.4 release
14
+
3
15
  ## 6.13.4
4
16
 
5
17
  ### Patch Changes
@@ -4755,19 +4755,18 @@ var ObservableSet = /*#__PURE__*/function () {
4755
4755
  return this.data_.has(this.dehanceValue_(value));
4756
4756
  };
4757
4757
  _proto.entries = function entries() {
4758
- var nextIndex = 0;
4759
- var keys = Array.from(this.keys());
4760
- var values = Array.from(this.values());
4758
+ var values = this.values();
4761
4759
  return makeIterableForSet({
4762
4760
  next: function next() {
4763
- var index = nextIndex;
4764
- nextIndex += 1;
4765
- return index < values.length ? {
4766
- value: [keys[index], values[index]],
4767
- done: false
4761
+ var _values$next = values.next(),
4762
+ value = _values$next.value,
4763
+ done = _values$next.done;
4764
+ return !done ? {
4765
+ value: [value, value],
4766
+ done: done
4768
4767
  } : {
4769
4768
  value: undefined,
4770
- done: true
4769
+ done: done
4771
4770
  };
4772
4771
  }
4773
4772
  });
@@ -4778,16 +4777,18 @@ var ObservableSet = /*#__PURE__*/function () {
4778
4777
  _proto.values = function values() {
4779
4778
  this.atom_.reportObserved();
4780
4779
  var self = this;
4781
- var nextIndex = 0;
4782
- var observableValues = Array.from(this.data_.values());
4780
+ var values = this.data_.values();
4783
4781
  return makeIterableForSet({
4784
4782
  next: function next() {
4785
- return nextIndex < observableValues.length ? {
4786
- value: self.dehanceValue_(observableValues[nextIndex++]),
4787
- done: false
4783
+ var _values$next2 = values.next(),
4784
+ value = _values$next2.value,
4785
+ done = _values$next2.done;
4786
+ return !done ? {
4787
+ value: self.dehanceValue_(value),
4788
+ done: done
4788
4789
  } : {
4789
4790
  value: undefined,
4790
- done: true
4791
+ done: done
4791
4792
  };
4792
4793
  }
4793
4794
  });
@@ -5881,8 +5882,15 @@ function unwrap(a) {
5881
5882
  return a;
5882
5883
  }
5883
5884
 
5885
+ var _getGlobal$Iterator;
5886
+ // safely get iterator prototype if available
5887
+ var maybeIteratorPrototype = ((_getGlobal$Iterator = /*#__PURE__*/getGlobal().Iterator) == null ? void 0 : _getGlobal$Iterator.prototype) || {};
5884
5888
  function makeIterable(iterator) {
5885
- return Object.assign(Object.create(Iterator.prototype), iterator);
5889
+ iterator[Symbol.iterator] = getSelf;
5890
+ return Object.assign(Object.create(maybeIteratorPrototype), iterator);
5891
+ }
5892
+ function getSelf() {
5893
+ return this;
5886
5894
  }
5887
5895
 
5888
5896
  function isAnnotation(thing) {