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

@xstate/react

Package Overview
Dependencies
Maintainers
1
Versions
79
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@xstate/react - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

dist/xstate-react-fsm.umd.min.js

6

CHANGELOG.md
# Changelog
## 1.2.0
### Minor Changes
- [`dd98296e`](https://github.com/davidkpiano/xstate/commit/dd98296e9fcbae905da2395e67e876e28be7c774) [#1738](https://github.com/davidkpiano/xstate/pull/1738) Thanks [@dimitardanailov](https://github.com/dimitardanailov)! - Added UMD bundle.
## 1.1.0

@@ -4,0 +10,0 @@

8

package.json
{
"name": "@xstate/react",
"version": "1.1.0",
"version": "1.2.0",
"description": "XState tools for React",

@@ -29,2 +29,3 @@ "keywords": [

"lib/**/*.d.ts",
"dist/**/*.js",
"es/**/*.js",

@@ -39,3 +40,3 @@ "es/**/*.d.ts"

"clean": "rm -rf dist lib tsconfig.tsbuildinfo",
"build": "tsc && tsc --outDir es --module es2015",
"build": "tsc && tsc --outDir es --module es2015 && rollup -c",
"test": "jest",

@@ -76,2 +77,5 @@ "prepublish": "npm run build && npm run test"

"react-dom": "^16.12.0",
"rollup": "^1.26.3",
"rollup-plugin-terser": "^5.1.2",
"rollup-plugin-typescript2": "^0.25.2",
"ts-jest": "^26.4.0",

@@ -78,0 +82,0 @@ "typescript": "^4.1.2",

@@ -32,2 +32,18 @@ # @xstate/react

**Via CDN**
```html
<script src="https://unpkg.com/@xstate/react/dist/xstate-react.umd.min.js"></script>
```
By using the global variable `XStateReact`
or
```html
<script src="https://unpkg.com/@xstate/react/dist/xstate-react-fsm.umd.min.js"></script>
```
By using the global variable `XStateReactFSM`
2. Import the `useMachine` hook:

@@ -34,0 +50,0 @@

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