diff --git a/.changeset/brown-seals-worry.md b/.changeset/brown-seals-worry.md deleted file mode 100644 index b3156ee8f..000000000 --- a/.changeset/brown-seals-worry.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"mobx": minor ---- - -Better support for React 18: Mobx now keeps track of a global state version, which updates with each mutation. diff --git a/.changeset/early-terms-bow.md b/.changeset/early-terms-bow.md deleted file mode 100644 index 1ccce7473..000000000 --- a/.changeset/early-terms-bow.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"mobx-react-lite": major ---- - -Components now use `useSyncExternalStore`, which should prevent tearing - you have to update mobx, otherwise it should behave as previously.
-Improved displayName/name handling as discussed in #3438.
diff --git a/.changeset/wise-waves-jam.md b/.changeset/wise-waves-jam.md deleted file mode 100644 index 2bb4557cc..000000000 --- a/.changeset/wise-waves-jam.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -"mobx-react": major ---- - -Functional components now use `useSyncExternalStore`, which should prevent tearing - you have to update mobx, otherwise it should behave as previously.
-Improved displayName/name handling of functional components as discussed in #3438.
-Reactions of uncommited class components are now correctly disposed, fixes #3492.
-Reactions don't notify uncommited class components, avoiding the warning, fixes #3492.
-Removed symbol "polyfill" and replaced with actual Symbols.
-Removed `this.render` replacement detection + warning. `this.render` is no longer configurable/writable (possibly BC).
-Class component instance is no longer exposed as `component[$mobx]["reactcomponent"]` (possibly BC).
-Deprecated `disposeOnUnmount`, it's not compatible with remounting.
diff --git a/packages/mobx-react-lite/CHANGELOG.md b/packages/mobx-react-lite/CHANGELOG.md index 2893592e2..228e48636 100644 --- a/packages/mobx-react-lite/CHANGELOG.md +++ b/packages/mobx-react-lite/CHANGELOG.md @@ -1,5 +1,12 @@ # mobx-react-lite +## 4.0.0 + +### Major Changes + +- [`44a2cf42`](https://github.com/mobxjs/mobx/commit/44a2cf42dec7635f639ddbfb19202ebc710bac54) [#3590](https://github.com/mobxjs/mobx/pull/3590) Thanks [@urugator](https://github.com/urugator)! - Components now use `useSyncExternalStore`, which should prevent tearing - you have to update mobx, otherwise it should behave as previously.
+ Improved displayName/name handling as discussed in #3438.
+ ## 3.4.3 ### Patch Changes diff --git a/packages/mobx-react-lite/package.json b/packages/mobx-react-lite/package.json index dd8470ee0..1ba5b5073 100644 --- a/packages/mobx-react-lite/package.json +++ b/packages/mobx-react-lite/package.json @@ -1,6 +1,6 @@ { "name": "mobx-react-lite", - "version": "3.4.3", + "version": "4.0.0", "description": "Lightweight React bindings for MobX based on React 16.8+ and Hooks", "source": "src/index.ts", "main": "dist/index.js", @@ -50,7 +50,7 @@ } }, "devDependencies": { - "mobx": "^6.8.0", + "mobx": "^6.9.0", "expose-gc": "^1.0.0", "use-sync-external-store": "^1.2.0" }, diff --git a/packages/mobx-react/CHANGELOG.md b/packages/mobx-react/CHANGELOG.md index eed1804cc..9d6808242 100644 --- a/packages/mobx-react/CHANGELOG.md +++ b/packages/mobx-react/CHANGELOG.md @@ -1,5 +1,23 @@ # mobx-react +## 8.0.0 + +### Major Changes + +- [`44a2cf42`](https://github.com/mobxjs/mobx/commit/44a2cf42dec7635f639ddbfb19202ebc710bac54) [#3590](https://github.com/mobxjs/mobx/pull/3590) Thanks [@urugator](https://github.com/urugator)! - Functional components now use `useSyncExternalStore`, which should prevent tearing - you have to update mobx, otherwise it should behave as previously.
+ Improved displayName/name handling of functional components as discussed in #3438.
+ Reactions of uncommited class components are now correctly disposed, fixes #3492.
+ Reactions don't notify uncommited class components, avoiding the warning, fixes #3492.
+ Removed symbol "polyfill" and replaced with actual Symbols.
+ Removed `this.render` replacement detection + warning. `this.render` is no longer configurable/writable (possibly BC).
+ Class component instance is no longer exposed as `component[$mobx]["reactcomponent"]` (possibly BC).
+ Deprecated `disposeOnUnmount`, it's not compatible with remounting.
+ +### Patch Changes + +- Updated dependencies [[`44a2cf42`](https://github.com/mobxjs/mobx/commit/44a2cf42dec7635f639ddbfb19202ebc710bac54)]: + - mobx-react-lite@4.0.0 + ## 7.6.0 ### Minor Changes diff --git a/packages/mobx-react/package.json b/packages/mobx-react/package.json index 479fe6a7d..1aace2145 100644 --- a/packages/mobx-react/package.json +++ b/packages/mobx-react/package.json @@ -1,6 +1,6 @@ { "name": "mobx-react", - "version": "7.6.0", + "version": "8.0.0", "description": "React bindings for MobX. Create fully reactive components.", "source": "src/index.ts", "main": "dist/index.js", @@ -36,7 +36,7 @@ }, "homepage": "https://mobx.js.org", "dependencies": { - "mobx-react-lite": "^3.4.3" + "mobx-react-lite": "^4.0.0" }, "peerDependencies": { "mobx": "^6.9.0", @@ -51,8 +51,8 @@ } }, "devDependencies": { - "mobx": "^6.8.0", - "mobx-react-lite": "^3.4.3", + "mobx": "^6.9.0", + "mobx-react-lite": "^4.0.0", "expose-gc": "^1.0.0" }, "keywords": [ diff --git a/packages/mobx/CHANGELOG.md b/packages/mobx/CHANGELOG.md index bbd354cc1..28b27818b 100644 --- a/packages/mobx/CHANGELOG.md +++ b/packages/mobx/CHANGELOG.md @@ -1,5 +1,11 @@ # mobx +## 6.9.0 + +### Minor Changes + +- [`44a2cf42`](https://github.com/mobxjs/mobx/commit/44a2cf42dec7635f639ddbfb19202ebc710bac54) [#3590](https://github.com/mobxjs/mobx/pull/3590) Thanks [@urugator](https://github.com/urugator)! - Better support for React 18: Mobx now keeps track of a global state version, which updates with each mutation. + ## 6.8.0 ### Minor Changes @@ -1319,7 +1325,7 @@ A deprecation message will now be printed if creating computed properties while ```javascript const x = observable({ - computedProp: function () { + computedProp: function() { return someComputation } }) @@ -1344,7 +1350,7 @@ or alternatively: ```javascript observable({ - computedProp: computed(function () { + computedProp: computed(function() { return someComputation }) }) @@ -1362,7 +1368,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++ }) }) @@ -1488,10 +1494,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 3df884d14..1caa6dec4 100644 --- a/packages/mobx/package.json +++ b/packages/mobx/package.json @@ -1,6 +1,6 @@ { "name": "mobx", - "version": "6.8.0", + "version": "6.9.0", "description": "Simple, scalable state management.", "source": "src/mobx.ts", "main": "dist/index.js",