Skip to content

Commit

Permalink
Version Packages (#5066)
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 6, 2024
1 parent ad38c35 commit 5afff2c
Show file tree
Hide file tree
Showing 15 changed files with 189 additions and 67 deletions.
5 changes: 0 additions & 5 deletions .changeset/smooth-ravens-exist.md

This file was deleted.

43 changes: 0 additions & 43 deletions .changeset/smooth-ravens-vanish.md

This file was deleted.

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

## 5.18.1

### Patch Changes

- [#5055](https://github.com/statelyai/xstate/pull/5055) [`ad38c35c37`](https://github.com/statelyai/xstate/commit/ad38c35c377d4ec5c97710fda12512abbe5f7140) Thanks [@SandroMaglione](https://github.com/SandroMaglione)! - Exported `RequiredActorOptionsKeys` type meant to be used by integration packages like `@xstate/react`

## 5.18.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.18.0",
"version": "5.18.1",
"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.18.0"
"xstate": "^5.18.1"
},
"devDependencies": {
"xstate": "5.18.0"
"xstate": "5.18.1"
},
"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.18.0"
"xstate": "^5.18.1"
},
"devDependencies": {
"immer": "^10.0.2",
"xstate": "5.18.0"
"xstate": "5.18.1"
}
}
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.18.0"
"xstate": "5.18.1"
},
"peerDependencies": {
"@types/ws": "^8.0.0",
"ws": "^8.0.0",
"xstate": "^5.18.0"
"xstate": "^5.18.1"
},
"peerDependenciesMeta": {
"@types/ws": {
Expand Down
41 changes: 41 additions & 0 deletions packages/xstate-react/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,46 @@
# Changelog

## 4.1.2

### Patch Changes

- [#5055](https://github.com/statelyai/xstate/pull/5055) [`ad38c35c37`](https://github.com/statelyai/xstate/commit/ad38c35c377d4ec5c97710fda12512abbe5f7140) Thanks [@SandroMaglione](https://github.com/SandroMaglione)! - Updated types of `useActor`, `useMachine`, and `useActorRef` to require `input` when defined inside `types/input`.

Previously even when `input` was defined inside `types`, `useActor`, `useMachine`, and `useActorRef` would **not** make the input required:

```tsx
const machine = setup({
types: {
input: {} as { value: number }
}
}).createMachine({});

function App() {
// Event if `input` is not defined, `useMachine` works at compile time, but risks crashing at runtime
const _ = useMachine(machine);
return <></>;
}
```

With this change the above code will show a type error, since `input` is now required:

```tsx
const machine = setup({
types: {
input: {} as { value: number }
}
}).createMachine({});
function App() {
const _ = useMachine(machine, {
input: { value: 1 } // Now input is required at compile time!
});
return <></>;
}
```

This avoids runtime errors when forgetting to pass `input` when defined inside `types`.

## 4.1.1

### Patch Changes
Expand Down
6 changes: 3 additions & 3 deletions 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.1",
"version": "4.1.2",
"description": "XState tools for React",
"keywords": [
"state",
Expand Down Expand Up @@ -55,7 +55,7 @@
},
"peerDependencies": {
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
"xstate": "^5.18.0"
"xstate": "^5.18.1"
},
"peerDependenciesMeta": {
"xstate": {
Expand All @@ -74,6 +74,6 @@
"react": "^18.0.0",
"react-dom": "^18.0.0",
"rxjs": "^7.8.0",
"xstate": "5.18.0"
"xstate": "5.18.1"
}
}
41 changes: 41 additions & 0 deletions packages/xstate-solid/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,46 @@
# @xstate/solid

## 0.2.1

### Patch Changes

- [#5055](https://github.com/statelyai/xstate/pull/5055) [`ad38c35c37`](https://github.com/statelyai/xstate/commit/ad38c35c377d4ec5c97710fda12512abbe5f7140) Thanks [@SandroMaglione](https://github.com/SandroMaglione)! - Updated types of `useActor`, `useMachine`, and `useActorRef` to require `input` when defined inside `types/input`.

Previously even when `input` was defined inside `types`, `useActor`, `useMachine`, and `useActorRef` would **not** make the input required:

```tsx
const machine = setup({
types: {
input: {} as { value: number }
}
}).createMachine({});

function App() {
// Event if `input` is not defined, `useMachine` works at compile time, but risks crashing at runtime
const _ = useMachine(machine);
return <></>;
}
```

With this change the above code will show a type error, since `input` is now required:

```tsx
const machine = setup({
types: {
input: {} as { value: number }
}
}).createMachine({});
function App() {
const _ = useMachine(machine, {
input: { value: 1 } // Now input is required at compile time!
});
return <></>;
}
```

This avoids runtime errors when forgetting to pass `input` when defined inside `types`.

## 0.2.0

### Minor Changes
Expand Down
6 changes: 3 additions & 3 deletions 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.0",
"version": "0.2.1",
"description": "XState tools for SolidJS",
"keywords": [
"state",
Expand Down Expand Up @@ -43,7 +43,7 @@
},
"peerDependencies": {
"solid-js": "^1.6.0",
"xstate": "^5.18.0"
"xstate": "^5.18.1"
},
"peerDependenciesMeta": {
"xstate": {
Expand All @@ -53,6 +53,6 @@
"devDependencies": {
"solid-js": "^1.7.6",
"solid-testing-library": "^0.3.0",
"xstate": "5.18.0"
"xstate": "5.18.1"
}
}
41 changes: 41 additions & 0 deletions packages/xstate-svelte/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,46 @@
# @xstate/svelte

## 3.0.4

### Patch Changes

- [#5055](https://github.com/statelyai/xstate/pull/5055) [`ad38c35c37`](https://github.com/statelyai/xstate/commit/ad38c35c377d4ec5c97710fda12512abbe5f7140) Thanks [@SandroMaglione](https://github.com/SandroMaglione)! - Updated types of `useActor`, `useMachine`, and `useActorRef` to require `input` when defined inside `types/input`.

Previously even when `input` was defined inside `types`, `useActor`, `useMachine`, and `useActorRef` would **not** make the input required:

```tsx
const machine = setup({
types: {
input: {} as { value: number }
}
}).createMachine({});

function App() {
// Event if `input` is not defined, `useMachine` works at compile time, but risks crashing at runtime
const _ = useMachine(machine);
return <></>;
}
```

With this change the above code will show a type error, since `input` is now required:

```tsx
const machine = setup({
types: {
input: {} as { value: number }
}
}).createMachine({});
function App() {
const _ = useMachine(machine, {
input: { value: 1 } // Now input is required at compile time!
});
return <></>;
}
```

This avoids runtime errors when forgetting to pass `input` when defined inside `types`.

## 3.0.3

### Patch Changes
Expand Down
6 changes: 3 additions & 3 deletions 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.3",
"version": "3.0.4",
"description": "XState tools for Svelte",
"keywords": [
"state",
Expand Down Expand Up @@ -45,7 +45,7 @@
},
"peerDependencies": {
"svelte": "^3.24.1 || ^4",
"xstate": "^5.18.0"
"xstate": "^5.18.1"
},
"peerDependenciesMeta": {
"xstate": {
Expand All @@ -58,6 +58,6 @@
"svelte": "^3.55.1",
"svelte-check": "^3.2.0",
"svelte-preprocess": "^5.0.0",
"xstate": "5.18.0"
"xstate": "5.18.1"
}
}
41 changes: 41 additions & 0 deletions packages/xstate-vue/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,46 @@
# @xstate/vue

## 3.1.3

### Patch Changes

- [#5055](https://github.com/statelyai/xstate/pull/5055) [`ad38c35c37`](https://github.com/statelyai/xstate/commit/ad38c35c377d4ec5c97710fda12512abbe5f7140) Thanks [@SandroMaglione](https://github.com/SandroMaglione)! - Updated types of `useActor`, `useMachine`, and `useActorRef` to require `input` when defined inside `types/input`.

Previously even when `input` was defined inside `types`, `useActor`, `useMachine`, and `useActorRef` would **not** make the input required:

```tsx
const machine = setup({
types: {
input: {} as { value: number }
}
}).createMachine({});

function App() {
// Event if `input` is not defined, `useMachine` works at compile time, but risks crashing at runtime
const _ = useMachine(machine);
return <></>;
}
```

With this change the above code will show a type error, since `input` is now required:

```tsx
const machine = setup({
types: {
input: {} as { value: number }
}
}).createMachine({});
function App() {
const _ = useMachine(machine, {
input: { value: 1 } // Now input is required at compile time!
});
return <></>;
}
```

This avoids runtime errors when forgetting to pass `input` when defined inside `types`.

## 3.1.2

### Patch Changes
Expand Down
6 changes: 3 additions & 3 deletions 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.2",
"version": "3.1.3",
"description": "XState tools for Vue",
"keywords": [
"state",
Expand Down Expand Up @@ -54,7 +54,7 @@
},
"peerDependencies": {
"vue": "^3.0.0",
"xstate": "^5.18.0"
"xstate": "^5.18.1"
},
"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.18.0"
"xstate": "5.18.1"
}
}

0 comments on commit 5afff2c

Please sign in to comment.