From fc714f24062f111b19fc3a7d2b34164e63cc6c31 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 18 Feb 2023 17:13:54 -0800 Subject: [PATCH] Version Packages (#112) Co-authored-by: github-actions[bot] --- .changeset/angry-trees-hammer.md | 18 -------------- .changeset/selfish-balloons-know.md | 19 --------------- CHANGELOG.md | 37 +++++++++++++++++++++++++++++ package.json | 2 +- 4 files changed, 38 insertions(+), 38 deletions(-) delete mode 100644 .changeset/angry-trees-hammer.md delete mode 100644 .changeset/selfish-balloons-know.md diff --git a/.changeset/angry-trees-hammer.md b/.changeset/angry-trees-hammer.md deleted file mode 100644 index d403a83..0000000 --- a/.changeset/angry-trees-hammer.md +++ /dev/null @@ -1,18 +0,0 @@ ---- -"xstate-component-tree": major ---- - -Add `.d.ts` files to releases and restructure exports. - -## Previously - -``` -import ComponentTree from "xstate-component-tree"; -import componentHelper from "xstate-component-tree/component"; -``` - -## Now - -``` -import { ComponentTree, componentHelper } from "xstate-component-tree"; -``` diff --git a/.changeset/selfish-balloons-know.md b/.changeset/selfish-balloons-know.md deleted file mode 100644 index a7d3c85..0000000 --- a/.changeset/selfish-balloons-know.md +++ /dev/null @@ -1,19 +0,0 @@ ---- -"xstate-component-tree": minor ---- - -Component helper preserves `.meta` fields - -Previous using the helper like this: - -```js -helper(Component, { - meta : { - fooga : "wooga", - }, -}); -``` - -would return an object with no `meta.fooga` property. Now those keys are properly preserved if they exist. - -`meta.load` will **still be overwritten** if it exists, because it is required for the helper to function. A warning if it exists may be introduced in a future release. diff --git a/CHANGELOG.md b/CHANGELOG.md index 3494a11..b677274 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,42 @@ # Changelog +## 6.0.0 + +### Major Changes + +- [#111](https://github.com/tivac/xstate-component-tree/pull/111) [`a0ec633`](https://github.com/tivac/xstate-component-tree/commit/a0ec633e140ffdf7a03915dfcd72f6cc67a4c050) Thanks [@tivac](https://github.com/tivac)! - Add `.d.ts` files to releases and restructure exports. + + ## Previously + + ``` + import ComponentTree from "xstate-component-tree"; + import componentHelper from "xstate-component-tree/component"; + ``` + + ## Now + + ``` + import { ComponentTree, componentHelper } from "xstate-component-tree"; + ``` + +### Minor Changes + +- [#113](https://github.com/tivac/xstate-component-tree/pull/113) [`88d1dba`](https://github.com/tivac/xstate-component-tree/commit/88d1dba0ba899c85bdccbc804348358b8b7eb1dc) Thanks [@tivac](https://github.com/tivac)! - Component helper preserves `.meta` fields + + Previous using the helper like this: + + ```js + helper(Component, { + meta: { + fooga: "wooga", + }, + }); + ``` + + would return an object with no `meta.fooga` property. Now those keys are properly preserved if they exist. + + `meta.load` will **still be overwritten** if it exists, because it is required for the helper to function. A warning if it exists may be introduced in a future release. + ## 5.2.0 ### Minor Changes diff --git a/package.json b/package.json index 1b6fa7a..12c0790 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xstate-component-tree", - "version": "5.2.0", + "version": "6.0.0", "description": "Build a tree of components based on statechart values", "author": "Pat Cavit ", "license": "MIT",