Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@xstate/fsm

Package Overview
Dependencies
Maintainers
3
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@xstate/fsm - npm Package Compare versions

Comparing version 1.6.3 to 1.6.4

28

CHANGELOG.md
# @xstate/fsm
## 1.6.4
### Patch Changes
- [#2957](https://github.com/statelyai/xstate/pull/2957) [`8550ddda7`](https://github.com/statelyai/xstate/commit/8550ddda73e2ad291e19173d7fa8d13e3336fbb9) Thanks [@davidkpiano](https://github.com/davidkpiano)! - The repository links have been updated from `github.com/davidkpiano` to `github.com/statelyai`.
## 1.6.3

@@ -7,3 +13,3 @@

- [#2474](https://github.com/davidkpiano/xstate/pull/2474) Thanks [@annaghi](https://github.com/annaghi)! - Use CommonJS files as `package.json#main` (instead of UMD files) as this plays better with native ESM loader in node (and by extension fixes compatibility issues with projects like [SvelteKit](https://kit.svelte.dev/)).
- [#2474](https://github.com/statelyai/xstate/pull/2474) Thanks [@annaghi](https://github.com/annaghi)! - Use CommonJS files as `package.json#main` (instead of UMD files) as this plays better with native ESM loader in node (and by extension fixes compatibility issues with projects like [SvelteKit](https://kit.svelte.dev/)).

@@ -20,3 +26,3 @@ ## 1.6.2

- [`0db3de7c`](https://github.com/davidkpiano/xstate/commit/0db3de7c5b84cb3eecb0cf1deabcc3bc54172505) [#2055](https://github.com/davidkpiano/xstate/pull/2055) Thanks [@f-elix](https://github.com/f-elix)! - Added a more helpful error, in the development build, for a situation where the next state (the target of a transition) doesn't exist in the config.
- [`0db3de7c`](https://github.com/statelyai/xstate/commit/0db3de7c5b84cb3eecb0cf1deabcc3bc54172505) [#2055](https://github.com/statelyai/xstate/pull/2055) Thanks [@f-elix](https://github.com/f-elix)! - Added a more helpful error, in the development build, for a situation where the next state (the target of a transition) doesn't exist in the config.

@@ -27,3 +33,3 @@ ## 1.6.0

- [`b990d527`](https://github.com/davidkpiano/xstate/commit/b990d527b760ca6c3ed105a3af7dfcff8bc5b481) [#1911](https://github.com/davidkpiano/xstate/pull/1911) Thanks [@davidkpiano](https://github.com/davidkpiano)! - Transitions with `undefined` targets will no longer exit and re-enter the state, which means that `exit` and `entry` actions will not be executed:
- [`b990d527`](https://github.com/statelyai/xstate/commit/b990d527b760ca6c3ed105a3af7dfcff8bc5b481) [#1911](https://github.com/statelyai/xstate/pull/1911) Thanks [@davidkpiano](https://github.com/statelyai)! - Transitions with `undefined` targets will no longer exit and re-enter the state, which means that `exit` and `entry` actions will not be executed:

@@ -49,3 +55,3 @@ ```js

- [`8b670653`](https://github.com/davidkpiano/xstate/commit/8b6706538ae6e5ac275b68cc4686801458bddaf8) [#1661](https://github.com/davidkpiano/xstate/pull/1661) Thanks [@Andarist](https://github.com/Andarist)! - Fixed an issue with initial `assign` actions not being resolved and thus context not being updated by them.
- [`8b670653`](https://github.com/statelyai/xstate/commit/8b6706538ae6e5ac275b68cc4686801458bddaf8) [#1661](https://github.com/statelyai/xstate/pull/1661) Thanks [@Andarist](https://github.com/Andarist)! - Fixed an issue with initial `assign` actions not being resolved and thus context not being updated by them.

@@ -56,3 +62,3 @@ ## 1.5.1

- [`0f07c84d`](https://github.com/davidkpiano/xstate/commit/0f07c84daba6ca4913f5311b4e99b67cf489baba) [#1388](https://github.com/davidkpiano/xstate/pull/1388) Thanks [@hudecsamuel](https://github.com/hudecsamuel)! - `State['value']` is now correctly typed to `TState['value']`. It's important in situations when typestates are used as it now correctly is limited to values of those typestates and not widened to just `string`.
- [`0f07c84d`](https://github.com/statelyai/xstate/commit/0f07c84daba6ca4913f5311b4e99b67cf489baba) [#1388](https://github.com/statelyai/xstate/pull/1388) Thanks [@hudecsamuel](https://github.com/hudecsamuel)! - `State['value']` is now correctly typed to `TState['value']`. It's important in situations when typestates are used as it now correctly is limited to values of those typestates and not widened to just `string`.

@@ -63,3 +69,3 @@ ## 1.5.0

- [`ccefca92`](https://github.com/davidkpiano/xstate/commit/ccefca92a1261cf8d9a1e356557af4c8d5fbaffb) [#1267](https://github.com/davidkpiano/xstate/pull/1267) Thanks [@nlopin](https://github.com/nlopin)! - You can now rehydrate the state of a service by calling `start` with `initialState` argument:
- [`ccefca92`](https://github.com/statelyai/xstate/commit/ccefca92a1261cf8d9a1e356557af4c8d5fbaffb) [#1267](https://github.com/statelyai/xstate/pull/1267) Thanks [@nlopin](https://github.com/nlopin)! - You can now rehydrate the state of a service by calling `start` with `initialState` argument:

@@ -79,7 +85,7 @@ ```js

- [`3d50808`](https://github.com/davidkpiano/xstate/commit/3d50808ac68b1f52de49969e5e83b2c341fda525) [#1082](https://github.com/davidkpiano/xstate/pull/1082) Thanks [@davidkpiano](https://github.com/davidkpiano)! - The `.state` property is now exposed on the service returned from `interpret(machine)`, which is a getter that returns the latest state of the machine.
- [`3d50808`](https://github.com/statelyai/xstate/commit/3d50808ac68b1f52de49969e5e83b2c341fda525) [#1082](https://github.com/statelyai/xstate/pull/1082) Thanks [@davidkpiano](https://github.com/statelyai)! - The `.state` property is now exposed on the service returned from `interpret(machine)`, which is a getter that returns the latest state of the machine.
### Patch Changes
- [`dcbd72f`](https://github.com/davidkpiano/xstate/commit/dcbd72ffe1804d6c50b5ebf2d17ec2b74a8c7b58) [#1122](https://github.com/davidkpiano/xstate/pull/1122) Thanks [@chancestrickland](https://github.com/chancestrickland)! - `StateMachine.Config` type accepts now a third type parameter - `TState` - similarly to other existing types. When provided it provides helpful intellisense when defining the state chart transitions.
- [`dcbd72f`](https://github.com/statelyai/xstate/commit/dcbd72ffe1804d6c50b5ebf2d17ec2b74a8c7b58) [#1122](https://github.com/statelyai/xstate/pull/1122) Thanks [@chancestrickland](https://github.com/chancestrickland)! - `StateMachine.Config` type accepts now a third type parameter - `TState` - similarly to other existing types. When provided it provides helpful intellisense when defining the state chart transitions.

@@ -90,3 +96,3 @@ ## 1.3.0

- [`7367de2`](https://github.com/davidkpiano/xstate/commit/7367de29a641e693702e919160292022a4d35323) [#946](https://github.com/davidkpiano/xstate/pull/946) Thanks [@Andarist](https://github.com/Andarist)! - Added a second, optional, `options` parameter to the `createMachine`. Currently only `actions` map can be put there - similarly how this can be done for `xstate` itself:
- [`7367de2`](https://github.com/statelyai/xstate/commit/7367de29a641e693702e919160292022a4d35323) [#946](https://github.com/statelyai/xstate/pull/946) Thanks [@Andarist](https://github.com/Andarist)! - Added a second, optional, `options` parameter to the `createMachine`. Currently only `actions` map can be put there - similarly how this can be done for `xstate` itself:

@@ -121,7 +127,7 @@ <details>

* [`3c10215`](https://github.com/davidkpiano/xstate/commit/3c102158d24d3f12aa671bc39dea0a2e98e3c34f) [#811](https://github.com/davidkpiano/xstate/pull/811) Thanks [@ghengeveld](https://github.com/ghengeveld)! - A `config` property got exposed on created machines. It's the same object which got passed in as argument.
* [`3c10215`](https://github.com/statelyai/xstate/commit/3c102158d24d3f12aa671bc39dea0a2e98e3c34f) [#811](https://github.com/statelyai/xstate/pull/811) Thanks [@ghengeveld](https://github.com/ghengeveld)! - A `config` property got exposed on created machines. It's the same object which got passed in as argument.
### Patch Changes
- [`a337473`](https://github.com/davidkpiano/xstate/commit/a337473c669c3a486c5cfa4a0ff4956b5136053d) [#827](https://github.com/davidkpiano/xstate/pull/827) Thanks [@Andarist](https://github.com/Andarist)! - Fixed entry actions defined on an initial state not being executed.
- [`a337473`](https://github.com/statelyai/xstate/commit/a337473c669c3a486c5cfa4a0ff4956b5136053d) [#827](https://github.com/statelyai/xstate/pull/827) Thanks [@Andarist](https://github.com/Andarist)! - Fixed entry actions defined on an initial state not being executed.

@@ -128,0 +134,0 @@ ## 1.2.0

{
"name": "@xstate/fsm",
"version": "1.6.3",
"version": "1.6.4",
"description": "XState for finite state machines",

@@ -18,3 +18,3 @@ "keywords": [

"author": "David Khourshid <davidkpiano@gmail.com>",
"homepage": "https://github.com/davidkpiano/xstate/tree/main/packages/xstate-fsm#readme",
"homepage": "https://github.com/statelyai/xstate/tree/main/packages/xstate-fsm#readme",
"license": "MIT",

@@ -34,3 +34,3 @@ "main": "lib/index.js",

"type": "git",
"url": "git+ssh://git@github.com/davidkpiano/xstate.git"
"url": "git+ssh://git@github.com/statelyai/xstate.git"
},

@@ -41,6 +41,6 @@ "scripts": {

"test": "jest",
"prepublish": "npm run build"
"prepare": "npm run build"
},
"bugs": {
"url": "https://github.com/davidkpiano/xstate/issues"
"url": "https://github.com/statelyai/xstate/issues"
},

@@ -47,0 +47,0 @@ "devDependencies": {

@@ -22,22 +22,22 @@ # @xstate/fsm

| | **@xstate/fsm** | [XState](https://github.com/statelyai/xstate) |
| --------------------------- | :-------------: | :---------------------------------------------: |
| Finite states | ✅ | ✅ |
| Initial state | ✅ | ✅ |
| Transitions (object) | ✅ | ✅ |
| Transitions (string target) | ✅ | ✅ |
| Delayed transitions | ❌ | ✅ |
| Eventless transitions | ❌ | ✅ |
| Nested states | ❌ | ✅ |
| Parallel states | ❌ | ✅ |
| History states | ❌ | ✅ |
| Final states | ❌ | ✅ |
| Context | ✅ | ✅ |
| Entry actions | ✅ | ✅ |
| Exit actions | ✅ | ✅ |
| Transition actions | ✅ | ✅ |
| Parameterized actions | ❌ | ✅ |
| Transition guards | ✅ | ✅ |
| Parameterized guards | ❌ | ✅ |
| Spawned actors | ❌ | ✅ |
| Invoked actors | ❌ | ✅ |
| --------------------------- | :-------------: | :-------------------------------------------: |
| Finite states | ✅ | ✅ |
| Initial state | ✅ | ✅ |
| Transitions (object) | ✅ | ✅ |
| Transitions (string target) | ✅ | ✅ |
| Delayed transitions | ❌ | ✅ |
| Eventless transitions | ❌ | ✅ |
| Nested states | ❌ | ✅ |
| Parallel states | ❌ | ✅ |
| History states | ❌ | ✅ |
| Final states | ❌ | ✅ |
| Context | ✅ | ✅ |
| Entry actions | ✅ | ✅ |
| Exit actions | ✅ | ✅ |
| Transition actions | ✅ | ✅ |
| Parameterized actions | ❌ | ✅ |
| Transition guards | ✅ | ✅ |
| Parameterized guards | ❌ | ✅ |
| Spawned actors | ❌ | ✅ |
| Invoked actors | ❌ | ✅ |

@@ -44,0 +44,0 @@ - Finite states (non-nested)

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc