@xstate/fsm
Advanced tools
Comparing version 2.0.0 to 3.0.0-alpha.0
{ | ||
"name": "@xstate/fsm", | ||
"version": "2.0.0", | ||
"version": "3.0.0-alpha.0", | ||
"description": "XState for finite state machines", | ||
@@ -20,12 +20,14 @@ "keywords": [ | ||
"license": "MIT", | ||
"main": "lib/index.js", | ||
"types": "lib/index.d.ts", | ||
"module": "es/index.js", | ||
"main": "dist/xstate-fsm.cjs.js", | ||
"module": "dist/xstate-fsm.esm.js", | ||
"exports": { | ||
".": { | ||
"module": "./dist/xstate-fsm.esm.js", | ||
"default": "./dist/xstate-fsm.cjs.js" | ||
}, | ||
"./package.json": "./package.json" | ||
}, | ||
"sideEffects": false, | ||
"files": [ | ||
"dist", | ||
"lib/**/*.js", | ||
"lib/**/*.d.ts", | ||
"es/**/*.js", | ||
"es/**/*.d.ts" | ||
"dist" | ||
], | ||
@@ -36,22 +38,7 @@ "repository": { | ||
}, | ||
"scripts": { | ||
"clean": "rm -rf lib es dist tsconfig.tsbuildinfo", | ||
"build": "rollup -c", | ||
"test": "jest", | ||
"prepare": "npm run build" | ||
}, | ||
"scripts": {}, | ||
"bugs": { | ||
"url": "https://github.com/statelyai/xstate/issues" | ||
}, | ||
"devDependencies": { | ||
"jest": "^26.6.3", | ||
"lerna-alias": "3.0.3-0", | ||
"rollup": "^2.69.0", | ||
"rollup-plugin-filesize": "^6.2.1", | ||
"rollup-plugin-replace": "^2.2.0", | ||
"rollup-plugin-terser": "^5.1.2", | ||
"rollup-plugin-typescript2": "^0.30.0", | ||
"ts-jest": "^26.5.6", | ||
"typescript": "^4.5.2" | ||
} | ||
"devDependencies": {} | ||
} |
@@ -78,5 +78,7 @@ # @xstate/fsm | ||
const toggledState = toggleMachine.transition(initialState, 'TOGGLE'); | ||
const toggledState = toggleMachine.transition(initialState, { type: 'TOGGLE' }); | ||
toggledState.value; | ||
const untoggledState = toggleMachine.transition(toggledState, 'TOGGLE'); | ||
const untoggledState = toggleMachine.transition(toggledState, { | ||
type: 'TOGGLE' | ||
}); | ||
untoggledState.value; | ||
@@ -99,5 +101,5 @@ // => 'inactive' | ||
toggleService.send('TOGGLE'); | ||
toggleService.send('TOGGLE'); | ||
toggleService.send({ type: 'TOGGLE' }); | ||
toggleService.send({ type: 'TOGGLE' }); | ||
toggleService.stop(); | ||
``` |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
0
1125
104
47202
10
2
1