mirror of
https://github.com/facebook/react.git
synced 2026-02-25 05:03:03 +00:00
Usually the build script updates transitive React dependencies so that they refer to the corresponding release version. For use-sync-external-store, though, we also want to support older versions of React, too. So the normal behavior of the build script isn't sufficient. For now, to unblock, I hardcoded a special case, but we should consider a better way to handle this in the future.
26 lines
618 B
JSON
26 lines
618 B
JSON
{
|
|
"name": "use-sync-external-store",
|
|
"description": "Backwards compatible shim for React's useSyncExternalStore. Works with any React that supports hooks.",
|
|
"version": "0.0.1",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/facebook/react.git",
|
|
"directory": "packages/use-sync-external-store"
|
|
},
|
|
"files": [
|
|
"LICENSE",
|
|
"README.md",
|
|
"build-info.json",
|
|
"index.js",
|
|
"index.native.js",
|
|
"with-selector.js",
|
|
"with-selector.native.js",
|
|
"shim/",
|
|
"cjs/"
|
|
],
|
|
"license": "MIT",
|
|
"peerDependencies": {
|
|
"react": "^16.8.0 || ^17.0.0 || ^18.0.0-rc"
|
|
}
|
|
}
|