Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 0 additions & 21 deletions .changeset/nice-teeth-lead.md

This file was deleted.

30 changes: 0 additions & 30 deletions .changeset/proud-bananas-do.md

This file was deleted.

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

## 5.23.0

### Minor Changes

- [#5387](https://github.com/statelyai/xstate/pull/5387) [`53dd7f1`](https://github.com/statelyai/xstate/commit/53dd7f1abe18f430d578072086e896ea8a22ee7f) Thanks [@farskid](https://github.com/farskid)! - Adds `system.getAll` that returns a record of running actors within the system by their system id

```ts
const childMachine = createMachine({});
const machine = createMachine({
// ...
invoke: [
{
src: childMachine,
systemId: 'test'
}
]
});
const system = createActor(machine);

system.getAll(); // { test: ActorRefFrom<typeof childMachine> }
```

## 5.22.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "xstate",
"version": "5.22.1",
"version": "5.23.0",
"description": "Finite State Machines and Statecharts for the Modern Web.",
"main": "dist/xstate.cjs.js",
"module": "dist/xstate.esm.js",
Expand Down
31 changes: 31 additions & 0 deletions packages/xstate-store/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,36 @@
# @xstate/store

## 3.10.0

### Minor Changes

- [#5323](https://github.com/statelyai/xstate/pull/5323) [`cb08332`](https://github.com/statelyai/xstate/commit/cb0833241cb2c0d2a908c413e79fc07b3d7a5fd9) Thanks [@davidkpiano](https://github.com/davidkpiano)! - Added support for effect-only transitions that don't trigger state updates. Now, when a transition returns the same state but includes effects, subscribers won't be notified of a state change, but the effects will still be executed. This helps prevent unnecessary re-renders while maintaining side effect functionality.

```ts
it('should not trigger update if the snapshot is the same even if there are effects', () => {
const store = createStore({
context: { count: 0 },
on: {
doNothing: (ctx, _, enq) => {
enq.effect(() => {
// …
});
return ctx; // Context is the same, so no update is triggered
// This is the same as not returning anything (void)
}
}
});

const spy = vi.fn();
store.subscribe(spy);

store.trigger.doNothing();
store.trigger.doNothing();

expect(spy).toHaveBeenCalledTimes(0);
});
```

## 3.9.3

### Patch 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": "3.9.3",
"version": "3.10.0",
"description": "Simple stores",
"keywords": [
"store",
Expand Down