Skip to content

Commit

Permalink
Version Packages (#468)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and github-actions[bot] committed Dec 18, 2023
1 parent d7f43ef commit 09c4d63
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 19 deletions.
11 changes: 0 additions & 11 deletions .changeset/funny-falcons-pretend.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/warm-apples-applaud.md

This file was deleted.

11 changes: 11 additions & 0 deletions packages/react-transform/CHANGELOG.md
@@ -1,5 +1,16 @@
# @preact/signals-react-transform

## 0.3.0

### Minor Changes

- [#467](https://github.com/preactjs/signals/pull/467) [`d7f43ef`](https://github.com/preactjs/signals/commit/d7f43ef5c9b6516cd93a12c3f647409cfd8c62be) Thanks [@andrewiggins](https://github.com/andrewiggins)! - Change opt-in/opt-out comment to `@useSignals` and `@noUseSignals`. Previous comments (`@trackSignals` & `@noTrackSignals`) still supported but deprecated.

### Patch Changes

- Updated dependencies [[`d7f43ef`](https://github.com/preactjs/signals/commit/d7f43ef5c9b6516cd93a12c3f647409cfd8c62be)]:
- @preact/signals-react@2.0.0

## 0.2.0

### Minor Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/react-transform/package.json
@@ -1,6 +1,6 @@
{
"name": "@preact/signals-react-transform",
"version": "0.2.0",
"version": "0.3.0",
"license": "MIT",
"description": "Manage state with style in React",
"keywords": [
Expand Down Expand Up @@ -47,7 +47,7 @@
"dependencies": {
"@babel/helper-module-imports": "^7.22.5",
"@babel/helper-plugin-utils": "^7.22.5",
"@preact/signals-react": "workspace:^1.3.8",
"@preact/signals-react": "workspace:^2.0.0",
"debug": "^4.3.4",
"use-sync-external-store": "^1.2.0"
},
Expand Down
12 changes: 12 additions & 0 deletions packages/react/CHANGELOG.md
@@ -1,5 +1,17 @@
# @preact/signals-react

## 2.0.0

### Major Changes

- [#467](https://github.com/preactjs/signals/pull/467) [`d7f43ef`](https://github.com/preactjs/signals/commit/d7f43ef5c9b6516cd93a12c3f647409cfd8c62be) Thanks [@andrewiggins](https://github.com/andrewiggins)! - Remove auto tracking using React internals from signals-react package

Before this change, importing `@preact/signals-react` would invoke side effects that hook into React internals to automatically track signals. This change removes those side effects and requires consumers to update their code to continue using signals in React.

We made this breaking change because the mechanism we were using to automatically track signals was fragile and not reliable. We've had multiple issues reported where signals were not being tracked correctly. It would also lead to unexpected errors that were hard to debug.

For some consumers and apps though, the current mechanism does work. If you'd like to continue using this mechanism, simply add `import "@preact/signals/auto";` to the root of your app where you call `ReactDOM.render`. For our newly supported ways of using signals in React, check out the new Readme for `@preact/signals-react`.

## 1.3.8

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/react/package.json
@@ -1,6 +1,6 @@
{
"name": "@preact/signals-react",
"version": "1.3.8",
"version": "2.0.0",
"license": "MIT",
"description": "Manage state with style in React",
"keywords": [],
Expand Down

0 comments on commit 09c4d63

Please sign in to comment.