@xstate/react
Advanced tools
Comparing version 4.1.3 to 5.0.0
@@ -94,3 +94,3 @@ 'use strict'; | ||
} | ||
let sub = actorRef.subscribe(xstate.toObserver(observerOrListener)); | ||
const sub = actorRef.subscribe(xstate.toObserver(observerOrListener)); | ||
return () => { | ||
@@ -97,0 +97,0 @@ sub.unsubscribe(); |
@@ -94,3 +94,3 @@ 'use strict'; | ||
} | ||
let sub = actorRef.subscribe(xstate.toObserver(observerOrListener)); | ||
const sub = actorRef.subscribe(xstate.toObserver(observerOrListener)); | ||
return () => { | ||
@@ -97,0 +97,0 @@ sub.unsubscribe(); |
@@ -68,3 +68,3 @@ import * as React from 'react'; | ||
} | ||
let sub = actorRef.subscribe(toObserver(observerOrListener)); | ||
const sub = actorRef.subscribe(toObserver(observerOrListener)); | ||
return () => { | ||
@@ -71,0 +71,0 @@ sub.unsubscribe(); |
@@ -68,3 +68,3 @@ import * as React from 'react'; | ||
} | ||
let sub = actorRef.subscribe(toObserver(observerOrListener)); | ||
const sub = actorRef.subscribe(toObserver(observerOrListener)); | ||
return () => { | ||
@@ -71,0 +71,0 @@ sub.unsubscribe(); |
{ | ||
"name": "@xstate/react", | ||
"version": "4.1.3", | ||
"version": "5.0.0", | ||
"description": "XState tools for React", | ||
@@ -56,4 +56,4 @@ "keywords": [ | ||
"peerDependencies": { | ||
"react": "^16.8.0 || ^17.0.0 || ^18.0.0", | ||
"xstate": "^5.18.2" | ||
"react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-0", | ||
"xstate": "^5.19.0" | ||
}, | ||
@@ -78,5 +78,5 @@ "peerDependenciesMeta": { | ||
"@xstate-repo/jest-utils": "^0.0.0", | ||
"xstate": "^5.18.2" | ||
"xstate": "^5.19.0" | ||
}, | ||
"scripts": {} | ||
} |
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
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
36265