Skip to content

Commit

Permalink
Version Packages (#5086)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and github-actions[bot] authored Sep 18, 2024
1 parent 51437a4 commit de6591f
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 25 deletions.
24 changes: 0 additions & 24 deletions .changeset/friendly-jokes-whisper.md

This file was deleted.

25 changes: 25 additions & 0 deletions packages/xstate-store/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,30 @@
# @xstate/store

## 2.5.0

### Minor Changes

- [#5085](https://github.com/statelyai/xstate/pull/5085) [`51437a4d036029ab4ff74cb52721178b3e525c48`](https://github.com/statelyai/xstate/commit/51437a4d036029ab4ff74cb52721178b3e525c48) Thanks [@davidkpiano](https://github.com/davidkpiano)! - The `shallowEqual` comparator has been added for selector comparison:

```tsx
import { shallowEqual } from '@xstate/store';
import { useSelector } from '@xstate/store/react';

import { store } from './store';

function MyComponent() {
const state = useSelector(
store,
(s) => {
return s.items.filter(/* ... */);
},
shallowEqual
);

// ...
}
```

## 2.4.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/xstate-store/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@xstate/store",
"version": "2.4.0",
"version": "2.5.0",
"description": "Simple stores",
"keywords": [
"store",
Expand Down

0 comments on commit de6591f

Please sign in to comment.