diff --git a/.changeset/beige-dancers-peel.md b/.changeset/beige-dancers-peel.md deleted file mode 100644 index 38eb3961..00000000 --- a/.changeset/beige-dancers-peel.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -"@xstate/cli": minor ---- - -Added a typegen command which allows for running XState's typegen in CLI. - -`xstate typegen "src/**/*.tsx?"` - -Run the typegen against a glob. This will scan every file targeted, and generate a typegen file accompanying it. It will also import the typegen into your file, as described in [our typegen documentation](https://xstate.js.org/docs/guides/typescript.html#typegen-with-the-vscode-extension). - -> Ensure you wrap your glob in quotes so that it executes correctly. If it isn't wrapped in quotes, it will be interpreted as a list of files, not a glob. This will give unexpected results. diff --git a/.changeset/ninety-carrots-sleep.md b/.changeset/ninety-carrots-sleep.md deleted file mode 100644 index a822da88..00000000 --- a/.changeset/ninety-carrots-sleep.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@xstate/machine-extractor": minor ---- - -Added logic for parsing inline actions, services and guards. This allows for users of this package to parse and edit machines containing inline implementations predictably. diff --git a/.changeset/quiet-worms-sort.md b/.changeset/quiet-worms-sort.md deleted file mode 100644 index bd298539..00000000 --- a/.changeset/quiet-worms-sort.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -"@xstate/cli": minor ---- - -Added a watch flag to to allow for re-running typegen on file change. - -`xstate typegen "src/**/*.tsx?" --watch` - -Runs the task on a watch, monitoring for changed files and running the typegen script against them. diff --git a/.changeset/sour-camels-obey.md b/.changeset/sour-camels-obey.md deleted file mode 100644 index f00f7650..00000000 --- a/.changeset/sour-camels-obey.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@xstate/tools-shared": minor ---- - -Bundled all shared cli/vscode utlities into a single package. diff --git a/.changeset/tender-falcons-smash.md b/.changeset/tender-falcons-smash.md deleted file mode 100644 index c37abede..00000000 --- a/.changeset/tender-falcons-smash.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@xstate/machine-extractor": patch -"stately-vscode": patch ---- - -Fixed issue where tags appeared to be deleted when changes were made in VSCode. diff --git a/.changeset/three-poems-occur.md b/.changeset/three-poems-occur.md deleted file mode 100644 index ef4d6613..00000000 --- a/.changeset/three-poems-occur.md +++ /dev/null @@ -1,25 +0,0 @@ ---- -"stately-vscode": minor ---- - -Allowed for parsing and rewriting inline implementations in the VSCode extension. This allows you to use either named actions (which were already supported): - -```ts -createMachine({ - entry: ["sayHello"], -}); -``` - -Or inline actions: - -```ts -createMachine({ - entry: [ - () => { - console.log("Hello!"); - }, - ], -}); -``` - -Both can now be handled in the VSCode extension. This is true for inline actions, services and guards. diff --git a/apps/cli/CHANGELOG.md b/apps/cli/CHANGELOG.md new file mode 100644 index 00000000..d95d3f34 --- /dev/null +++ b/apps/cli/CHANGELOG.md @@ -0,0 +1,25 @@ +# @xstate/cli + +## 0.1.0 + +### Minor Changes + +- [#68](https://github.com/statelyai/xstate-tools/pull/68) [`9eadb14`](https://github.com/statelyai/xstate-tools/commit/9eadb143bc16e0a023c89272f5c5cc066f382d3e) Thanks [@mattpocock](https://github.com/mattpocock)! - Added a typegen command which allows for running XState's typegen in CLI. + + `xstate typegen "src/**/*.tsx?"` + + Run the typegen against a glob. This will scan every file targeted, and generate a typegen file accompanying it. It will also import the typegen into your file, as described in [our typegen documentation](https://xstate.js.org/docs/guides/typescript.html#typegen-with-the-vscode-extension). + + > Ensure you wrap your glob in quotes so that it executes correctly. If it isn't wrapped in quotes, it will be interpreted as a list of files, not a glob. This will give unexpected results. + +* [#68](https://github.com/statelyai/xstate-tools/pull/68) [`a3b874b`](https://github.com/statelyai/xstate-tools/commit/a3b874b328cd6bf409861378ab2840dab70d3ff3) Thanks [@mattpocock](https://github.com/mattpocock)! - Added a watch flag to to allow for re-running typegen on file change. + + `xstate typegen "src/**/*.tsx?" --watch` + + Runs the task on a watch, monitoring for changed files and running the typegen script against them. + +### Patch Changes + +- Updated dependencies [[`a3b874b`](https://github.com/statelyai/xstate-tools/commit/a3b874b328cd6bf409861378ab2840dab70d3ff3), [`a3b874b`](https://github.com/statelyai/xstate-tools/commit/a3b874b328cd6bf409861378ab2840dab70d3ff3), [`2210d4b`](https://github.com/statelyai/xstate-tools/commit/2210d4b5175384f87dc0b001ba68400701c35818)]: + - @xstate/machine-extractor@0.6.0 + - @xstate/tools-shared@1.1.0 diff --git a/apps/cli/package.json b/apps/cli/package.json index a61980a9..a2ec4274 100644 --- a/apps/cli/package.json +++ b/apps/cli/package.json @@ -1,6 +1,6 @@ { "name": "@xstate/cli", - "version": "0.0.1", + "version": "0.1.0", "bin": { "xstate": "./bin/bin.js" }, @@ -17,8 +17,8 @@ "xstate": "^4.29.0" }, "dependencies": { - "@xstate/machine-extractor": "0.5.8", - "@xstate/tools-shared": "1.0.0", + "@xstate/machine-extractor": "0.6.0", + "@xstate/tools-shared": "1.1.0", "chokidar": "^3.5.3", "commander": "^8.0.0" }, diff --git a/apps/extension/client/CHANGELOG.md b/apps/extension/client/CHANGELOG.md new file mode 100644 index 00000000..d521f655 --- /dev/null +++ b/apps/extension/client/CHANGELOG.md @@ -0,0 +1,34 @@ +# stately-vscode + +## 1.7.0 + +### Minor Changes + +- [`a1c9de6`](https://github.com/statelyai/xstate-tools/commit/a1c9de6ab1130159da5f59f399869ebbfeaa4281) Thanks [@mattpocock](https://github.com/mattpocock)! - Allowed for parsing and rewriting inline implementations in the VSCode extension. This allows you to use either named actions (which were already supported): + + ```ts + createMachine({ + entry: ["sayHello"] + }); + ``` + + Or inline actions: + + ```ts + createMachine({ + entry: [ + () => { + console.log("Hello!"); + } + ] + }); + ``` + + Both can now be handled in the VSCode extension. This is true for inline actions, services and guards. + +### Patch Changes + +- [#69](https://github.com/statelyai/xstate-tools/pull/69) [`2210d4b`](https://github.com/statelyai/xstate-tools/commit/2210d4b5175384f87dc0b001ba68400701c35818) Thanks [@mattpocock](https://github.com/mattpocock)! - Fixed issue where tags appeared to be deleted when changes were made in VSCode. + +- Updated dependencies [[`a3b874b`](https://github.com/statelyai/xstate-tools/commit/a3b874b328cd6bf409861378ab2840dab70d3ff3)]: + - @xstate/tools-shared@1.1.0 diff --git a/apps/extension/client/package.json b/apps/extension/client/package.json index af6d0620..cda5a1fb 100644 --- a/apps/extension/client/package.json +++ b/apps/extension/client/package.json @@ -4,7 +4,7 @@ "description": "Visual editing, autocomplete and typegen for XState", "license": "MIT", "author": "Stately Team", - "version": "1.6.1", + "version": "1.7.0", "private": true, "engines": { "vscode": "^1.52.0" @@ -85,7 +85,7 @@ "dependencies": { "@types/lz-string": "^1.3.34", "@xstate/inspect": "^0.4.1", - "@xstate/tools-shared": "1.0.0", + "@xstate/tools-shared": "1.1.0", "lz-string": "^1.4.4", "vscode-languageclient": "^7.0.0", "xstate": "^4.29.0" diff --git a/apps/extension/server/package.json b/apps/extension/server/package.json index e91e33c6..7cb1cf3e 100644 --- a/apps/extension/server/package.json +++ b/apps/extension/server/package.json @@ -11,7 +11,7 @@ "url": "https://github.com/Microsoft/vscode-extension-samples" }, "dependencies": { - "@xstate/tools-shared": "1.0.0", + "@xstate/tools-shared": "1.1.0", "vscode-languageserver": "^7.0.0", "vscode-languageserver-textdocument": "^1.0.1", "xstate": "^4.29.0" diff --git a/packages/machine-extractor/CHANGELOG.md b/packages/machine-extractor/CHANGELOG.md new file mode 100644 index 00000000..368a4299 --- /dev/null +++ b/packages/machine-extractor/CHANGELOG.md @@ -0,0 +1,11 @@ +# @xstate/machine-extractor + +## 0.6.0 + +### Minor Changes + +- [#68](https://github.com/statelyai/xstate-tools/pull/68) [`a3b874b`](https://github.com/statelyai/xstate-tools/commit/a3b874b328cd6bf409861378ab2840dab70d3ff3) Thanks [@mattpocock](https://github.com/mattpocock)! - Added logic for parsing inline actions, services and guards. This allows for users of this package to parse and edit machines containing inline implementations predictably. + +### Patch Changes + +- [#69](https://github.com/statelyai/xstate-tools/pull/69) [`2210d4b`](https://github.com/statelyai/xstate-tools/commit/2210d4b5175384f87dc0b001ba68400701c35818) Thanks [@mattpocock](https://github.com/mattpocock)! - Fixed issue where tags appeared to be deleted when changes were made in VSCode. diff --git a/packages/machine-extractor/package.json b/packages/machine-extractor/package.json index ea19c1e4..7e9f206e 100644 --- a/packages/machine-extractor/package.json +++ b/packages/machine-extractor/package.json @@ -1,6 +1,6 @@ { "name": "@xstate/machine-extractor", - "version": "0.5.8", + "version": "0.6.0", "main": "dist/xstate-machine-extractor.cjs.js", "author": "Matt Pocock", "license": "MIT", diff --git a/packages/shared/CHANGELOG.md b/packages/shared/CHANGELOG.md new file mode 100644 index 00000000..9bf76c2c --- /dev/null +++ b/packages/shared/CHANGELOG.md @@ -0,0 +1,12 @@ +# @xstate/tools-shared + +## 1.1.0 + +### Minor Changes + +- [#68](https://github.com/statelyai/xstate-tools/pull/68) [`a3b874b`](https://github.com/statelyai/xstate-tools/commit/a3b874b328cd6bf409861378ab2840dab70d3ff3) Thanks [@mattpocock](https://github.com/mattpocock)! - Bundled all shared cli/vscode utlities into a single package. + +### Patch Changes + +- Updated dependencies [[`a3b874b`](https://github.com/statelyai/xstate-tools/commit/a3b874b328cd6bf409861378ab2840dab70d3ff3), [`2210d4b`](https://github.com/statelyai/xstate-tools/commit/2210d4b5175384f87dc0b001ba68400701c35818)]: + - @xstate/machine-extractor@0.6.0 diff --git a/packages/shared/package.json b/packages/shared/package.json index 44647e51..9dadc822 100644 --- a/packages/shared/package.json +++ b/packages/shared/package.json @@ -1,10 +1,10 @@ { "name": "@xstate/tools-shared", - "version": "1.0.0", + "version": "1.1.0", "main": "dist/xstate-tools-shared.cjs.js", "license": "MIT", "dependencies": { - "@xstate/machine-extractor": "0.5.8" + "@xstate/machine-extractor": "0.6.0" }, "scripts": { "lint": "tsc",