xstate 6.0.0-beta.0 → 6.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/xstate.js +10 -4
- package/dist/declarations/src/setup.d.ts +3 -3
- package/dist/declarations/src/types.d.ts +7 -1
- package/dist/xstate.umd.min.js.map +1 -1
- package/docs/agents.md +9 -0
- package/docs/api-stability.json +166 -160
- package/docs/index.md +1 -1
- package/docs/xstate-v5-to-v6.md +162 -5
- package/package.json +1 -1
package/docs/agents.md
CHANGED
|
@@ -47,6 +47,15 @@ No command installs packages, imports application modules, executes code
|
|
|
47
47
|
expressions or runs external effects. `migrate` remains a separate source
|
|
48
48
|
transformation command that delegates to the codemod package.
|
|
49
49
|
|
|
50
|
+
To migrate a v5 machine file, use the `@xstate/codemod` loop. Run
|
|
51
|
+
`xstate-codemod baseline <file>` before editing, then
|
|
52
|
+
`xstate-codemod migrate <file> --json`. Exit code 2 means the report's
|
|
53
|
+
`manualSites` need manual changes. Then run
|
|
54
|
+
`xstate-codemod verify --baseline <baseline.json> <file> --json`. It exits with
|
|
55
|
+
0 when the v6 behavior matches the v5 trace, 3 when a diff is unclassified, 4 when
|
|
56
|
+
a module fails to load or run, and 1 on a usage error. See
|
|
57
|
+
[the migration guide](xstate-v5-to-v6.md#27-codemod-and-side-by-side-installs).
|
|
58
|
+
|
|
50
59
|
| Command | Contract |
|
|
51
60
|
| --- | --- |
|
|
52
61
|
| `xstate docs` | Locate installed documentation and read export stability. |
|