@xstate/react
Advanced tools
Comparing version 1.1.0 to 1.2.0
# 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 @@ |
{ | ||
"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 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 2 instances in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
76960
38
1132
467
17
1
2
9