Comparing version 5.7.0 to 5.7.1
@@ -55,3 +55,3 @@ import type { StateNode } from "./StateNode.js"; | ||
*/ | ||
matches: (this: MachineSnapshot<TContext, TEvent, TChildren, TStateValue, TTag, TOutput>, partialStateValue: ToTestStateValue<TStateValue>) => boolean; | ||
matches: (partialStateValue: ToTestStateValue<TStateValue>) => boolean; | ||
/** | ||
@@ -61,3 +61,3 @@ * Whether the current state nodes has a state node with the specified `tag`. | ||
*/ | ||
hasTag: (this: MachineSnapshot<TContext, TEvent, TChildren, TStateValue, TTag, TOutput>, tag: TTag) => boolean; | ||
hasTag: (tag: TTag) => boolean; | ||
/** | ||
@@ -71,5 +71,5 @@ * Determines whether sending the `event` will cause a non-forbidden transition | ||
*/ | ||
can: (this: MachineSnapshot<TContext, TEvent, TChildren, TStateValue, TTag, TOutput>, event: TEvent) => boolean; | ||
getMeta: (this: MachineSnapshot<TContext, TEvent, TChildren, TStateValue, TTag, TOutput>) => Record<string, any>; | ||
toJSON: (this: MachineSnapshot<TContext, TEvent, TChildren, TStateValue, TTag, TOutput>) => unknown; | ||
can: (event: TEvent) => boolean; | ||
getMeta: () => Record<string, any>; | ||
toJSON: () => unknown; | ||
} | ||
@@ -76,0 +76,0 @@ interface ActiveMachineSnapshot<TContext extends MachineContext, TEvent extends EventObject, TChildren extends Record<string, AnyActorRef | undefined>, TStateValue extends StateValue, TTag extends string, TOutput> extends MachineSnapshotBase<TContext, TEvent, TChildren, TStateValue, TTag, TOutput> { |
{ | ||
"name": "xstate", | ||
"version": "5.7.0", | ||
"version": "5.7.1", | ||
"description": "Finite State Machines and Statecharts for the Modern Web.", | ||
@@ -5,0 +5,0 @@ "main": "dist/xstate.cjs.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
1578339