@preact/signals-react 2.1.0 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @preact/signals-react
2
2
 
3
+ ## 2.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#591](https://github.com/preactjs/signals/pull/591) [`e1a1465`](https://github.com/preactjs/signals/commit/e1a1465d0e8b36264d9b99c9ccc7a44b45960f6e) Thanks [@JoviDeCroock](https://github.com/JoviDeCroock)! - Bump to support `ReadonlySignal` in jsx
8
+
3
9
  ## 2.1.0
4
10
 
5
11
  ### Minor Changes
package/dist/signals.d.ts CHANGED
@@ -5,4 +5,6 @@ export { signal, computed, batch, effect, Signal, type ReadonlySignal, useSignal
5
5
  declare module "@preact/signals-core" {
6
6
  interface Signal extends ReactElement {
7
7
  }
8
+ interface ReadonlySignal extends ReactElement {
9
+ }
8
10
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@preact/signals-react",
3
- "version": "2.1.0",
3
+ "version": "2.2.0",
4
4
  "license": "MIT",
5
5
  "description": "Manage state with style in React",
6
6
  "keywords": [],
package/src/index.ts CHANGED
@@ -39,4 +39,7 @@ declare module "@preact/signals-core" {
39
39
  // @ts-ignore internal Signal is viewed as function
40
40
  // eslint-disable-next-line @typescript-eslint/no-empty-interface
41
41
  interface Signal extends ReactElement {}
42
+ // @ts-ignore internal Signal is viewed as function
43
+ // eslint-disable-next-line @typescript-eslint/no-empty-interface
44
+ interface ReadonlySignal extends ReactElement {}
42
45
  }