Skip to content

Commit

Permalink
Version Packages (#5003)
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 Jul 30, 2024
1 parent c895899 commit eac555e
Show file tree
Hide file tree
Showing 14 changed files with 77 additions and 76 deletions.
9 changes: 0 additions & 9 deletions .changeset/early-spies-beg.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/lucky-horses-pay.md

This file was deleted.

45 changes: 0 additions & 45 deletions .changeset/tall-suits-matter.md

This file was deleted.

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

## 5.17.0

### Minor Changes

- [#4979](https://github.com/statelyai/xstate/pull/4979) [`a0e9ebcef`](https://github.com/statelyai/xstate/commit/a0e9ebcef26552659ac6c2c785c138387eafc766) Thanks [@davidkpiano](https://github.com/davidkpiano)! - State IDs are now strongly typed as keys of `snapshot.getMeta()` for state machine actor snapshots.

```ts
const machine = setup({
// ...
}).createMachine({
id: 'root',
initial: 'parentState',
states: {
parentState: {
meta: {},
initial: 'childState',
states: {
childState: {
meta: {}
},
stateWithId: {
id: 'state with id',
meta: {}
}
}
}
}
});

const actor = createActor(machine);

const metaValues = actor.getSnapshot().getMeta();

// Auto-completed keys:
metaValues.root;
metaValues['root.parentState'];
metaValues['root.parentState.childState'];
metaValues['state with id'];

// @ts-expect-error
metaValues['root.parentState.stateWithId'];

// @ts-expect-error
metaValues['unknown state'];
```

### Patch Changes

- [#5002](https://github.com/statelyai/xstate/pull/5002) [`9877d548b`](https://github.com/statelyai/xstate/commit/9877d548b3cab1bbc5db4e3a51bbcf223868bd46) Thanks [@davidkpiano](https://github.com/davidkpiano)! - Fix an issue where `clearTimeout(undefined)` was sometimes being called, which can cause errors for some clock implementations. See https://github.com/statelyai/xstate/issues/5001 for details.

## 5.16.0

### Minor 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.16.0",
"version": "5.17.0",
"description": "Finite State Machines and Statecharts for the Modern Web.",
"main": "dist/xstate.cjs.js",
"module": "dist/xstate.esm.js",
Expand Down
4 changes: 2 additions & 2 deletions packages/xstate-graph/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@
"url": "https://github.com/statelyai/xstate/issues"
},
"peerDependencies": {
"xstate": "^5.16.0"
"xstate": "^5.17.0"
},
"devDependencies": {
"xstate": "5.16.0"
"xstate": "5.17.0"
},
"dependencies": {}
}
4 changes: 2 additions & 2 deletions packages/xstate-immer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@
"dependencies": {},
"peerDependencies": {
"immer": "^9.0.6 || ^10",
"xstate": "^5.16.0"
"xstate": "^5.17.0"
},
"devDependencies": {
"immer": "^10.0.2",
"xstate": "5.16.0"
"xstate": "5.17.0"
}
}
4 changes: 2 additions & 2 deletions packages/xstate-inspect/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,12 @@
"devDependencies": {
"@types/ws": "^8.2.2",
"ws": "^8.4.0",
"xstate": "5.16.0"
"xstate": "5.17.0"
},
"peerDependencies": {
"@types/ws": "^8.0.0",
"ws": "^8.0.0",
"xstate": "^5.16.0"
"xstate": "^5.17.0"
},
"peerDependenciesMeta": {
"@types/ws": {
Expand Down
4 changes: 2 additions & 2 deletions packages/xstate-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
},
"peerDependencies": {
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
"xstate": "^5.16.0"
"xstate": "^5.17.0"
},
"peerDependenciesMeta": {
"xstate": {
Expand All @@ -74,6 +74,6 @@
"react": "^18.0.0",
"react-dom": "^18.0.0",
"rxjs": "^7.8.0",
"xstate": "5.16.0"
"xstate": "5.17.0"
}
}
4 changes: 2 additions & 2 deletions packages/xstate-solid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
},
"peerDependencies": {
"solid-js": "^1.6.0",
"xstate": "^5.16.0"
"xstate": "^5.17.0"
},
"peerDependenciesMeta": {
"xstate": {
Expand All @@ -53,6 +53,6 @@
"devDependencies": {
"solid-js": "^1.7.6",
"solid-testing-library": "^0.3.0",
"xstate": "5.16.0"
"xstate": "5.17.0"
}
}
10 changes: 10 additions & 0 deletions packages/xstate-store/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# @xstate/store

## 2.0.0

### Major Changes

- [#5000](https://github.com/statelyai/xstate/pull/5000) [`eeadb7121`](https://github.com/statelyai/xstate/commit/eeadb7121e8523cf34fe3a299731ca085152c65d) Thanks [@TkDodo](https://github.com/TkDodo)! - - Replace `use-sync-external-store/shim` with `useSyncExternalStore` from React.
- Do not memoize `getSnapshot` in `useSyncExternalStore`.
- Implement `getServerSnapshot` in `useSyncExternalStore`.
- Expect `store` to always be defined in `useSelector`
- Update React types to v18 and testing library to v16.

## 1.0.0

### Major Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/xstate-store/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@xstate/store",
"version": "1.0.0",
"version": "2.0.0",
"description": "Simple stores",
"keywords": [
"store",
Expand Down Expand Up @@ -53,7 +53,7 @@
"immer": "^10.0.2",
"react": "^18.0.0",
"react-dom": "^18.0.0",
"xstate": "^5.9.1"
"xstate": "^5.17.0"
},
"peerDependencies": {
"react": "^18.2.0"
Expand Down
4 changes: 2 additions & 2 deletions packages/xstate-svelte/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
},
"peerDependencies": {
"svelte": "^3.24.1 || ^4",
"xstate": "^5.16.0"
"xstate": "^5.17.0"
},
"peerDependenciesMeta": {
"xstate": {
Expand All @@ -58,6 +58,6 @@
"svelte": "^3.55.1",
"svelte-check": "^3.2.0",
"svelte-preprocess": "^5.0.0",
"xstate": "5.16.0"
"xstate": "5.17.0"
}
}
4 changes: 2 additions & 2 deletions packages/xstate-vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
},
"peerDependencies": {
"vue": "^3.0.0",
"xstate": "^5.16.0"
"xstate": "^5.17.0"
},
"peerDependenciesMeta": {
"xstate": {
Expand All @@ -65,6 +65,6 @@
"@testing-library/vue": "^6.6.1",
"@vue/compiler-sfc": "^3.0.11",
"vue": "^3.0.11",
"xstate": "5.16.0"
"xstate": "5.17.0"
}
}

0 comments on commit eac555e

Please sign in to comment.