-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# Conflicts: # .github/ISSUE_TEMPLATE/bug_report.md # .github/workflows/nodejs.yml # package.json # packages/core/package.json # packages/core/rollup.config.js # packages/core/src/Actor.ts # packages/core/src/Machine.ts # packages/core/src/State.ts # packages/core/src/StateNode.ts # packages/core/src/actions.ts # packages/core/src/behaviors.ts # packages/core/src/dev/index.ts # packages/core/src/each.ts # packages/core/src/index.ts # packages/core/src/interpreter.ts # packages/core/src/model.ts # packages/core/src/model.types.ts # packages/core/src/scxml.ts # packages/core/src/stateUtils.ts # packages/core/src/types.ts # packages/core/src/utils.ts # packages/core/test/actionCreators.test.ts # packages/core/test/actions.test.ts # packages/core/test/actor.test.ts # packages/core/test/after.test.ts # packages/core/test/event.test.ts # packages/core/test/examples/6.16.test.ts # packages/core/test/examples/6.17.test.ts # packages/core/test/fixtures/id.ts # packages/core/test/guards.test.ts # packages/core/test/id.test.ts # packages/core/test/interpreter.test.ts # packages/core/test/invoke.test.ts # packages/core/test/order.test.ts # packages/core/test/parallel.test.ts # packages/core/test/scxml.test.ts # packages/core/test/types.test.ts # packages/core/test/utils.ts # packages/xstate-analytics/package.json # packages/xstate-analytics/src/index.ts # packages/xstate-fsm/package.json # packages/xstate-graph/package.json # packages/xstate-graph/src/graph.ts # packages/xstate-inspect/examples/server.ts # packages/xstate-inspect/package.json # packages/xstate-inspect/src/browser.ts # packages/xstate-inspect/src/inspectMachine.ts # packages/xstate-inspect/src/serialize.ts # packages/xstate-inspect/src/server.ts # packages/xstate-inspect/src/types.ts # packages/xstate-react/package.json # packages/xstate-react/src/useInterpret.ts # packages/xstate-react/src/useMachine.ts # packages/xstate-react/src/useService.ts # packages/xstate-react/src/useSpawn.ts # packages/xstate-react/test/types.test.tsx # packages/xstate-react/test/useActor.test.tsx # packages/xstate-react/test/useMachine.test.tsx # packages/xstate-react/test/useSelector.test.tsx # packages/xstate-react/test/useService.test.tsx # packages/xstate-scxml/package.json # packages/xstate-scxml/src/index.ts # packages/xstate-scxml/test/fixtures/assign-current-small-step/test1.ts # packages/xstate-scxml/test/fixtures/assign/assign_invalid.ts # packages/xstate-scxml/test/scxml.test.ts # packages/xstate-svelte/package.json # packages/xstate-svelte/src/useMachine.ts # packages/xstate-svelte/test/UseMachine.svelte # packages/xstate-test/package.json # packages/xstate-test/src/types.ts # packages/xstate-vue/package.json # packages/xstate-vue/src/useInterpret.ts # packages/xstate-vue/src/useSpawn.ts # packages/xstate-vue/test/UseMachine.vue # yarn.lock
- Loading branch information
Showing
138 changed files
with
4,494 additions
and
1,729 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'xstate': patch | ||
--- | ||
|
||
Added some internal `@ts-ignore` comments to fix consuming projects that do not use `skipLibCheck`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,13 @@ | ||
{ | ||
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json", | ||
"changelog": [ | ||
"@changesets/changelog-github", | ||
{ "repo": "davidkpiano/xstate" } | ||
], | ||
"changelog": ["@changesets/changelog-github", { "repo": "statelyai/xstate" }], | ||
"commit": false, | ||
"linked": [], | ||
"access": "public", | ||
"baseBranch": "main", | ||
"ignore": ["@xstate/analytics", "@xstate/scxml"], | ||
"___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH": { | ||
"onlyUpdatePeerDependentsWhenOutOfRange": true | ||
"onlyUpdatePeerDependentsWhenOutOfRange": true, | ||
"useCalculatedVersionForSnapshots": true | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'xstate': patch | ||
--- | ||
|
||
Fixed an issue with context type being inferred from too many places within `createMachine` call and possibly ending up as `any` for the entire machine. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'xstate': patch | ||
--- | ||
|
||
Fixed an issue with not being able to call `createMachine` in a generic context when the type for the context was generic and not concrete. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'xstate': patch | ||
--- | ||
|
||
Fixed an issue with context type defined using `schema.context` being sometimes widened based on `config.context`. If both are given the `schema.context` should always take precedence and should represent the complete type of the context. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
'xstate': patch | ||
'@xstate/graph': patch | ||
'@xstate/inspect': patch | ||
'@xstate/react': patch | ||
'@xstate/vue': patch | ||
--- | ||
|
||
Fixed compatibility with Skypack by exporting some shared utilities from root entry of XState and consuming them directly in other packages (this avoids accessing those things using deep imports and thus it avoids creating those compatibility problems). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'xstate': patch | ||
--- | ||
|
||
Fixed an issue with `ActorRefFrom` not resolving the typegen metadata from machine types given to it. This could sometimes result in types assignability problems, especially when using machine factories and `spawn`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"packages": [ | ||
"packages/core", | ||
"packages/xstate-fsm", | ||
"packages/xstate-graph", | ||
"packages/xstate-react", | ||
"packages/xstate-test" | ||
], | ||
"sandboxes": ["xstate-example-template-m4ckv", "xstate-react-template-3t2tg"] | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: 'CI checks' | ||
runs: | ||
using: 'composite' | ||
steps: | ||
- name: Build | ||
run: yarn build | ||
shell: bash | ||
|
||
- name: Typecheck | ||
run: yarn typecheck | ||
shell: bash | ||
|
||
- name: Test | ||
run: yarn test --silent | ||
shell: bash | ||
|
||
- name: Svelte Check | ||
run: yarn --cwd packages/xstate-svelte svelte-check | ||
shell: bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
name: 'CI setup' | ||
runs: | ||
using: 'composite' | ||
steps: | ||
- name: Use Node.js 14.x | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 14.x | ||
|
||
- name: Install Dependencies | ||
run: yarn | ||
shell: bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.