mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
* Remove react/unstable_cache We're probably going to make it available via the dispatcher. Let's remove this for now. * Add readContext() to the dispatcher On the server, it will be per-request. On the client, there will be some way to shadow it. For now, I provide it on the server, and throw on the client. * Use readContext() from react-fetch This makes it work on the server (but not on the client until we implement it there.) Updated the test to use Server Components. Now it passes. * Fixture: Add fetch from a Server Component * readCache -> getCacheForType<T> * Add React.unstable_getCacheForType * Add a feature flag * Fix Flow * Add react-suspense-test-utils and port tests * Remove extra Map lookup * Unroll async/await because build system * Add some error coverage and retry * Add unstable_getCacheForType to Flight entry
55 lines
1.2 KiB
JSON
55 lines
1.2 KiB
JSON
{
|
|
"name": "react",
|
|
"description": "React is a JavaScript library for building user interfaces.",
|
|
"keywords": [
|
|
"react"
|
|
],
|
|
"version": "17.0.2",
|
|
"homepage": "https://reactjs.org/",
|
|
"bugs": "https://github.com/facebook/react/issues",
|
|
"license": "MIT",
|
|
"files": [
|
|
"LICENSE",
|
|
"README.md",
|
|
"build-info.json",
|
|
"index.js",
|
|
"cjs/",
|
|
"umd/",
|
|
"jsx-runtime.js",
|
|
"jsx-dev-runtime.js",
|
|
"unstable-index.server.js"
|
|
],
|
|
"main": "index.js",
|
|
"exports": {
|
|
".": {
|
|
"react-server": "./unstable-index.server.js",
|
|
"default": "./index.js"
|
|
},
|
|
"./index": {
|
|
"react-server": "./unstable-index.server.js",
|
|
"default": "./index.js"
|
|
},
|
|
"./build-info.json": "./build-info.json",
|
|
"./jsx-runtime": "./jsx-runtime.js",
|
|
"./jsx-dev-runtime": "./jsx-dev-runtime.js",
|
|
"./": "./"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/facebook/react.git",
|
|
"directory": "packages/react"
|
|
},
|
|
"engines": {
|
|
"node": ">=0.10.0"
|
|
},
|
|
"dependencies": {
|
|
"loose-envify": "^1.1.0",
|
|
"object-assign": "^4.1.1"
|
|
},
|
|
"browserify": {
|
|
"transform": [
|
|
"loose-envify"
|
|
]
|
|
}
|
|
}
|