From b8863ca146995986901d045cde64946e40cfe7db Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 28 Jan 2021 13:37:59 +0000 Subject: [PATCH] 6.1.1 Co-authored-by: github-actions[bot] --- .changeset/odd-maps-dress.md | 7 ------- packages/mobx/CHANGELOG.md | 18 +++++++++++++----- packages/mobx/package.json | 2 +- 3 files changed, 14 insertions(+), 13 deletions(-) delete mode 100644 .changeset/odd-maps-dress.md diff --git a/.changeset/odd-maps-dress.md b/.changeset/odd-maps-dress.md deleted file mode 100644 index 92f18eb60..000000000 --- a/.changeset/odd-maps-dress.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"mobx": patch ---- - -Fix error stringification on minified build -Fix `isObservableProp` not supporting `Symbols` -Fix `makeAutoObservable` not ignoring `inferredAnnotationsSymbol` diff --git a/packages/mobx/CHANGELOG.md b/packages/mobx/CHANGELOG.md index 92b661f6a..83975ed3f 100644 --- a/packages/mobx/CHANGELOG.md +++ b/packages/mobx/CHANGELOG.md @@ -1,5 +1,13 @@ # mobx +## 6.1.1 + +### Patch Changes + +- [`39eca50d`](https://github.com/mobxjs/mobx/commit/39eca50de3936807037cb1205bbab29a3e328bc0) [#2757](https://github.com/mobxjs/mobx/pull/2757) Thanks [@urugator](https://github.com/urugator)! - Fix error stringification on minified build + Fix `isObservableProp` not supporting `Symbols` + Fix `makeAutoObservable` not ignoring `inferredAnnotationsSymbol` + ## 6.1.0 This release fixes a plethora of bugs related to sub-classing and reflecting / iterating on observable objects. @@ -1047,7 +1055,7 @@ A deprecation message will now be printed if creating computed properties while ```javascript const x = observable({ - computedProp: function () { + computedProp: function() { return someComputation } }) @@ -1072,7 +1080,7 @@ or alternatively: ```javascript observable({ - computedProp: computed(function () { + computedProp: computed(function() { return someComputation }) }) @@ -1090,7 +1098,7 @@ N.B. If you want to introduce actions on an observable that modify its state, us ```javascript observable({ counter: 0, - increment: action(function () { + increment: action(function() { this.counter++ }) }) @@ -1216,10 +1224,10 @@ function Square() { extendObservable(this, { length: 2, squared: computed( - function () { + function() { return this.squared * this.squared }, - function (surfaceSize) { + function(surfaceSize) { this.length = Math.sqrt(surfaceSize) } ) diff --git a/packages/mobx/package.json b/packages/mobx/package.json index b9bbe0fa8..69da2327c 100644 --- a/packages/mobx/package.json +++ b/packages/mobx/package.json @@ -1,6 +1,6 @@ { "name": "mobx", - "version": "6.1.0", + "version": "6.1.1", "description": "Simple, scalable state management.", "source": "src/mobx.ts", "main": "dist/index.js",