mobx 6.1.7 → 6.1.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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # mobx
2
2
 
3
+ ## 6.1.8
4
+
5
+ ### Patch Changes
6
+
7
+ - [`ca4914f9`](https://github.com/mobxjs/mobx/commit/ca4914f978aef427e7b2223328fd66b82e522d89) [#2836](https://github.com/mobxjs/mobx/pull/2836) Thanks [@urugator](https://github.com/urugator)! - Fix [#2832](https://github.com/mobxjs/mobx/issues/2832) - annotation cache ignores overrides
8
+
3
9
  ## 6.1.7
4
10
 
5
11
  ### Patch Changes
@@ -3417,7 +3417,17 @@ function makeAutoObservable(target, overrides, options) {
3417
3417
  if (target[inferredAnnotationsSymbol]) {
3418
3418
  target[inferredAnnotationsSymbol].forEach(function (value, key) {
3419
3419
  return adm.make_(key, value);
3420
- });
3420
+ }); // Overrides are not cached, unless `true`, see #2832
3421
+
3422
+ if (overrides) {
3423
+ ownKeys(overrides).forEach(function (key) {
3424
+ var annotation = overrides[key];
3425
+
3426
+ if (annotation !== true) {
3427
+ adm.make_(key, annotation);
3428
+ }
3429
+ });
3430
+ }
3421
3431
  } else {
3422
3432
  var _ignoreKeys;
3423
3433