package.json 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. {
  2. "name": "use-sync-external-store",
  3. "description": "Backwards compatible shim for React's useSyncExternalStore. Works with any React that supports hooks.",
  4. "version": "1.6.0",
  5. "exports": {
  6. ".": "./index.js",
  7. "./with-selector": "./with-selector.js",
  8. "./with-selector.js": "./with-selector.js",
  9. "./shim": {
  10. "react-native": "./shim/index.native.js",
  11. "default": "./shim/index.js"
  12. },
  13. "./shim/index.js": "./shim/index.js",
  14. "./shim/index.native": "./shim/index.native.js",
  15. "./shim/index.native.js": "./shim/index.native.js",
  16. "./shim/with-selector": "./shim/with-selector.js",
  17. "./shim/with-selector.js": "./shim/with-selector.js",
  18. "./package.json": "./package.json"
  19. },
  20. "repository": {
  21. "type": "git",
  22. "url": "https://github.com/facebook/react.git",
  23. "directory": "packages/use-sync-external-store"
  24. },
  25. "files": [
  26. "LICENSE",
  27. "README.md",
  28. "index.js",
  29. "index.native.js",
  30. "with-selector.js",
  31. "with-selector.native.js",
  32. "shim/",
  33. "cjs/"
  34. ],
  35. "license": "MIT",
  36. "peerDependencies": {
  37. "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
  38. },
  39. "devDependencies": {
  40. "react-17": "npm:react@^17",
  41. "react-dom-17": "npm:react-dom@^17"
  42. }
  43. }