Skip to content

Commit 8fab8fe

Browse files
Version Packages (#588)
1 parent cd9efbb commit 8fab8fe

File tree

3 files changed

+18
-17
lines changed

3 files changed

+18
-17
lines changed

.changeset/seven-seahorses-cry.md

-16
This file was deleted.

packages/core/CHANGELOG.md

+17
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,22 @@
11
# @preact/signals-core
22

3+
## 1.8.0
4+
5+
### Minor Changes
6+
7+
- [#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`
8+
this way the type can't be widened without noticing, i.e. when
9+
we'd have
10+
11+
```js
12+
const sig: Signal = useComputed(() => x);
13+
```
14+
15+
We would have widened the type to be mutable again, which for
16+
a computed is not allowed. We want to provide the tools to our
17+
users to avoid these footguns hence we are correcting this type
18+
in a minor version.
19+
320
## 1.7.0
421

522
### Minor Changes

packages/core/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@preact/signals-core",
3-
"version": "1.7.0",
3+
"version": "1.8.0",
44
"license": "MIT",
55
"description": "Manage state with style in every framework",
66
"keywords": [],

0 commit comments

Comments
 (0)