Version Packages#7
Merged
Merged
Conversation
Releases: jotai-logger@5.0.0 [skip ci]
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and publish to npm yourself or setup this action to publish automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
jotai-logger@5.0.0
Major Changes
4436d69: Split the package into vanilla/react/formatter entry points
formatteroption.consoleFormatterfactory creates the built in console formatter and accepts the old display options (domain,logger,colorScheme, etc.).formatteroption tobindAtomsLoggerToStoreanduseAtomsLoggerto replace the default console output with any custom function.BREAKING CHANGE:
Formatting options that were present in
bindAtomsLoggerToStoreanduseAtomsLoggerare now moved to the newconsoleFormatterfactory options.43291e2: Jotai 2.20 support
Adds support for Jotai 2.20's new internal
INTERNAL_buildStoreRev3API(see pmndrs/jotai#3293).
BREAKING CHANGE:
Only jotai 2.20.0 and up is supported due to changes in their internal APIs.
496b4e0: Replace the mutation-based API with a derived-store API
createLoggedStorereturns a new store that shares all internal state with the parent but interceptsget,setandsubfor logging.AtomLoggerProviderpropagates the logged store to children via a Jotai<Provider>, retrieving the parent store from context automatically.INTERNAL_buildStoreRev2API introduced in jotai v2.15 (see feat(internals): External building blocks surface pmndrs/jotai#3149).BREAKING CHANGE:
A migration guide from v4 to v5 is present in the README. See link. TLDR:
useAtomsLoggeris replaced byAtomLoggerProvider, a Provider-like component that automatically picks up the nearest Jotai store from context and wraps children in a new logged store.bindAtomsLoggerToStoreis replaced bycreateLoggedStorethat creates and return a new store.isAtomsLoggerBoundToStoreremoved → useisLoggedStorecreateLoggedStorethrows instead of returningfalseMinor Changes
Patch Changes