mobxjs / mobx

Simple, scalable state management.
http://mobx.js.org
MIT License
27.51k stars 1.77k forks source link

Remove deprecated features for the next major version #3655

Closed kubk closed 11 months ago

kubk commented 1 year ago

Since next Mobx update might be major due to native decorators support, it makes sense to revisit the API and remove deprecated features. Removing deprecated features gives less code to support for maintainers. For example here while mocking console.log I had to support both observer and useObserver usage: https://github.com/mobxjs/mobx/blob/01432751d235da15fc861619563a08f1c9dfa623/packages/mobx-react-lite/__tests__/observer.test.tsx#L17

Here is the list of deprecated API I've found:

Feel free to add missing API 👍 Once we agreed, I'll start working on PR.

urugator commented 1 year ago
mweststrate commented 1 year ago

The new decorators seem to be able to fit in a minor. Still, once they're out and stable for a while, it might be nice to push for a new major to remove the legacy decorators (and the makeObservable based api's?) to have a single uniform mechanism and make everything a bit leaner

kubk commented 11 months ago

Closed in favor of https://github.com/mobxjs/mobx/issues/3796