diff --git a/.changeset/seven-seahorses-cry.md b/.changeset/seven-seahorses-cry.md deleted file mode 100644 index 6144474af..000000000 --- a/.changeset/seven-seahorses-cry.md +++ /dev/null @@ -1,16 +0,0 @@ ---- -"@preact/signals-core": minor ---- - -Adjust the `ReadOnlySignal` type to not inherit from `Signal` -this way the type can't be widened without noticing, i.e. when -we'd have - -```js -const sig: Signal = useComputed(() => x); -``` - -We would have widened the type to be mutable again, which for -a computed is not allowed. We want to provide the tools to our -users to avoid these footguns hence we are correcting this type -in a minor version. diff --git a/packages/core/CHANGELOG.md b/packages/core/CHANGELOG.md index b1e7b242d..0eed32b3f 100644 --- a/packages/core/CHANGELOG.md +++ b/packages/core/CHANGELOG.md @@ -1,5 +1,22 @@ # @preact/signals-core +## 1.8.0 + +### Minor Changes + +- [#587](https://github.com/preactjs/signals/pull/587) [`cd9efbb`](https://github.com/preactjs/signals/commit/cd9efbb411527e031001177f66ba90a445a04a23) Thanks [@JoviDeCroock](https://github.com/JoviDeCroock)! - Adjust the `ReadOnlySignal` type to not inherit from `Signal` + this way the type can't be widened without noticing, i.e. when + we'd have + + ```js + const sig: Signal = useComputed(() => x); + ``` + + We would have widened the type to be mutable again, which for + a computed is not allowed. We want to provide the tools to our + users to avoid these footguns hence we are correcting this type + in a minor version. + ## 1.7.0 ### Minor Changes diff --git a/packages/core/package.json b/packages/core/package.json index 84c69ea58..0c96c43e1 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@preact/signals-core", - "version": "1.7.0", + "version": "1.8.0", "license": "MIT", "description": "Manage state with style in every framework", "keywords": [],