Skip to content

Commit

Permalink
Version Packages (#5111)
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 Nov 12, 2024
1 parent f0064a5 commit 65088b6
Show file tree
Hide file tree
Showing 16 changed files with 74 additions and 36 deletions.
6 changes: 0 additions & 6 deletions .changeset/four-countries-serve.md

This file was deleted.

23 changes: 0 additions & 23 deletions .changeset/lemon-needles-play.md

This file was deleted.

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

## 5.19.0

### Minor Changes

- [#4954](https://github.com/statelyai/xstate/pull/4954) [`8c4b70652acaef2702f32435362e4755679a516d`](https://github.com/statelyai/xstate/commit/8c4b70652acaef2702f32435362e4755679a516d) Thanks [@davidkpiano](https://github.com/davidkpiano)! - Added a new `transition` function that takes an actor logic, a snapshot, and an event, and returns a tuple containing the next snapshot and the actions to execute. This function is a pure function and does not execute the actions itself. It can be used like this:

```ts
import { transition } from 'xstate';

const [nextState, actions] = transition(actorLogic, currentState, event);
// Execute actions as needed
```

Added a new `initialTransition` function that takes an actor logic and an optional input, and returns a tuple containing the initial snapshot and the actions to execute from the initial transition. This function is also a pure function and does not execute the actions itself. It can be used like this:

```ts
import { initialTransition } from 'xstate';

const [initialState, actions] = initialTransition(actorLogic, input);
// Execute actions as needed
```

These new functions provide a way to separate the calculation of the next snapshot and actions from the execution of those actions, allowing for more control and flexibility in the transition process.

## 5.18.2

### 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.18.2",
"version": "5.19.0",
"description": "Finite State Machines and Statecharts for the Modern Web.",
"main": "dist/xstate.cjs.js",
"module": "dist/xstate.esm.js",
Expand Down
7 changes: 7 additions & 0 deletions packages/xstate-graph/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @xstate/graph

## 3.0.0

### Patch Changes

- Updated dependencies [[`8c4b70652acaef2702f32435362e4755679a516d`](https://github.com/statelyai/xstate/commit/8c4b70652acaef2702f32435362e4755679a516d)]:
- [email protected]

## 2.0.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/xstate-graph/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@xstate/graph",
"version": "2.0.1",
"version": "3.0.0",
"description": "XState graph utilities",
"keywords": [
"state",
Expand Down
9 changes: 9 additions & 0 deletions packages/xstate-react/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Changelog

## 5.0.0

### Patch Changes

- [#5109](https://github.com/statelyai/xstate/pull/5109) [`d67b71dd25d457a2a59f2c943db13f50fab7ec3d`](https://github.com/statelyai/xstate/commit/d67b71dd25d457a2a59f2c943db13f50fab7ec3d) Thanks [@davidkpiano](https://github.com/davidkpiano)! - Add React 19 as a peer dependency

- Updated dependencies [[`8c4b70652acaef2702f32435362e4755679a516d`](https://github.com/statelyai/xstate/commit/8c4b70652acaef2702f32435362e4755679a516d)]:
- [email protected]

## 4.1.3

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/xstate-react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@xstate/react",
"version": "4.1.3",
"version": "5.0.0",
"description": "XState tools for React",
"keywords": [
"state",
Expand Down
7 changes: 7 additions & 0 deletions packages/xstate-solid/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @xstate/solid

## 1.0.0

### Patch Changes

- Updated dependencies [[`8c4b70652acaef2702f32435362e4755679a516d`](https://github.com/statelyai/xstate/commit/8c4b70652acaef2702f32435362e4755679a516d)]:
- [email protected]

## 0.2.3

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/xstate-solid/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@xstate/solid",
"version": "0.2.3",
"version": "1.0.0",
"description": "XState tools for SolidJS",
"keywords": [
"state",
Expand Down
6 changes: 6 additions & 0 deletions packages/xstate-store/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @xstate/store

## 2.6.1

### Patch Changes

- [#5109](https://github.com/statelyai/xstate/pull/5109) [`d67b71dd25d457a2a59f2c943db13f50fab7ec3d`](https://github.com/statelyai/xstate/commit/d67b71dd25d457a2a59f2c943db13f50fab7ec3d) Thanks [@davidkpiano](https://github.com/davidkpiano)! - Add React 19 as a peer dependency

## 2.6.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.6.0",
"version": "2.6.1",
"description": "Simple stores",
"keywords": [
"store",
Expand Down
7 changes: 7 additions & 0 deletions packages/xstate-svelte/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @xstate/svelte

## 4.0.0

### Patch Changes

- Updated dependencies [[`8c4b70652acaef2702f32435362e4755679a516d`](https://github.com/statelyai/xstate/commit/8c4b70652acaef2702f32435362e4755679a516d)]:
- [email protected]

## 3.0.5

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/xstate-svelte/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@xstate/svelte",
"version": "3.0.5",
"version": "4.0.0",
"description": "XState tools for Svelte",
"keywords": [
"state",
Expand Down
7 changes: 7 additions & 0 deletions packages/xstate-vue/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @xstate/vue

## 4.0.0

### Patch Changes

- Updated dependencies [[`8c4b70652acaef2702f32435362e4755679a516d`](https://github.com/statelyai/xstate/commit/8c4b70652acaef2702f32435362e4755679a516d)]:
- [email protected]

## 3.1.4

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/xstate-vue/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@xstate/vue",
"version": "3.1.4",
"version": "4.0.0",
"description": "XState tools for Vue",
"keywords": [
"state",
Expand Down

0 comments on commit 65088b6

Please sign in to comment.