-
-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reorganize signals-react package (#372)
* Move usePreactSignalStore to it's own file * Change usePreactSignalStore to useSignalTracking and to return a `stopTracking` function * Move patching react internals to a separate file * Rename useSignalTracking to useSignals * Move core functionality into runtime subpkg * Add changeset * Fix build script * Fix tsc checking * Fix exports.umd file path Co-authored-by: Ryan Christian <[email protected]>
- Loading branch information
1 parent
145bcb3
commit 6717601
Showing
7 changed files
with
569 additions
and
505 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@preact/signals-react": patch | ||
--- | ||
|
||
Reorganize signals-react package |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"name": "@preact/signals-react-runtime", | ||
"description": "Sub package for @preact/signals-react that contains the pure runtime functions", | ||
"private": true, | ||
"amdName": "reactSignalsRuntime", | ||
"main": "dist/runtime.js", | ||
"module": "dist/runtime.module.js", | ||
"unpkg": "dist/runtime.min.js", | ||
"types": "dist/index.d.ts", | ||
"source": "src/index.ts", | ||
"exports": { | ||
".": { | ||
"types": "./dist/index.d.ts", | ||
"browser": "./dist/runtime.module.js", | ||
"umd": "./dist/runtime.min.js", | ||
"import": "./dist/runtime.mjs", | ||
"require": "./dist/runtime.js" | ||
} | ||
}, | ||
"dependencies": { | ||
"@preact/signals-core": "workspace:^1.3.0", | ||
"use-sync-external-store": "^1.2.0" | ||
}, | ||
"peerDependencies": { | ||
"react": "^16.14.0 || 17.x || 18.x" | ||
} | ||
} |
Oops, something went wrong.