mobx 6.13.2 → 6.13.3

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.13.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [`a1cf2c63ef92d3d42a5b42a23ff6c7a745664cfd`](https://github.com/mobxjs/mobx/commit/a1cf2c63ef92d3d42a5b42a23ff6c7a745664cfd) [#3902](https://github.com/mobxjs/mobx/pull/3902) Thanks [@jzhan-canva](https://github.com/jzhan-canva)! - Fix 2022.3 @action decorators on fields no longer require makeObservable
8
+
3
9
  ## 6.13.2
4
10
 
5
11
  ### Patch Changes
@@ -709,12 +709,19 @@ function decorate_20223_$1(mthd, context) {
709
709
  var _ann$options_$name, _ann$options_, _ann$options_$autoAct, _ann$options_2;
710
710
  return createAction((_ann$options_$name = (_ann$options_ = ann.options_) == null ? void 0 : _ann$options_.name) != null ? _ann$options_$name : name.toString(), m, (_ann$options_$autoAct = (_ann$options_2 = ann.options_) == null ? void 0 : _ann$options_2.autoAction) != null ? _ann$options_$autoAct : false);
711
711
  };
712
- // Backwards/Legacy behavior, expects makeObservable(this)
713
712
  if (kind == "field") {
714
- addInitializer(function () {
715
- storeAnnotation(this, name, ann);
716
- });
717
- return;
713
+ return function (initMthd) {
714
+ var _ann$options_3;
715
+ var mthd = initMthd;
716
+ if (!isAction(mthd)) {
717
+ mthd = _createAction(mthd);
718
+ }
719
+ if ((_ann$options_3 = ann.options_) != null && _ann$options_3.bound) {
720
+ mthd = mthd.bind(this);
721
+ mthd.isMobxAction = true;
722
+ }
723
+ return mthd;
724
+ };
718
725
  }
719
726
  if (kind == "method") {
720
727
  var _this$options_2;