diff --git a/.changeset/two-parents-crash.md b/.changeset/two-parents-crash.md deleted file mode 100644 index 4086580cb..000000000 --- a/.changeset/two-parents-crash.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"mobx": patch ---- - -Create ESM bundles with NODE_ENV correctly replaced so it can be used in browser (#2564) diff --git a/packages/mobx/CHANGELOG.md b/packages/mobx/CHANGELOG.md index da22a4b84..c2f1ac29b 100644 --- a/packages/mobx/CHANGELOG.md +++ b/packages/mobx/CHANGELOG.md @@ -1,5 +1,11 @@ # mobx +## 6.0.3 + +### Patch Changes + +- [`d0e6778d`](https://github.com/mobxjs/mobx/commit/d0e6778de73f6dfad61283c04103049732b2aea2) - Create ESM bundles with NODE_ENV correctly replaced so it can be used in browser (#2564) + ## 6.0.2 ### Patch Changes @@ -979,7 +985,7 @@ A deprecation message will now be printed if creating computed properties while ```javascript const x = observable({ - computedProp: function () { + computedProp: function() { return someComputation } }) @@ -1004,7 +1010,7 @@ or alternatively: ```javascript observable({ - computedProp: computed(function () { + computedProp: computed(function() { return someComputation }) }) @@ -1022,7 +1028,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++ }) }) @@ -1148,10 +1154,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 2ad088e3f..25f3ea69e 100644 --- a/packages/mobx/package.json +++ b/packages/mobx/package.json @@ -1,6 +1,6 @@ { "name": "mobx", - "version": "6.0.2", + "version": "6.0.3", "description": "Simple, scalable state management.", "main": "dist/index.js", "module": "dist/mobx.esm.js",