react 18.2.0 → 19.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +3 -3
- package/cjs/react-compiler-runtime.development.js +24 -0
- package/cjs/react-compiler-runtime.production.js +16 -0
- package/cjs/react-compiler-runtime.profiling.js +16 -0
- package/cjs/react-jsx-dev-runtime.development.js +308 -1266
- package/cjs/react-jsx-dev-runtime.production.js +14 -0
- package/cjs/react-jsx-dev-runtime.profiling.js +14 -0
- package/cjs/react-jsx-dev-runtime.react-server.development.js +370 -0
- package/cjs/react-jsx-dev-runtime.react-server.production.js +40 -0
- package/cjs/react-jsx-runtime.development.js +322 -1284
- package/cjs/react-jsx-runtime.production.js +34 -0
- package/cjs/react-jsx-runtime.profiling.js +34 -0
- package/cjs/react-jsx-runtime.react-server.development.js +370 -0
- package/cjs/react-jsx-runtime.react-server.production.js +40 -0
- package/cjs/react.development.js +1240 -2695
- package/cjs/react.production.js +542 -0
- package/cjs/react.react-server.development.js +848 -0
- package/cjs/react.react-server.production.js +423 -0
- package/compiler-runtime.js +14 -0
- package/index.js +1 -1
- package/jsx-dev-runtime.js +1 -1
- package/jsx-dev-runtime.react-server.js +7 -0
- package/jsx-runtime.js +1 -1
- package/jsx-runtime.react-server.js +7 -0
- package/package.json +19 -15
- package/react.react-server.js +7 -0
- package/cjs/react-jsx-dev-runtime.production.min.js +0 -10
- package/cjs/react-jsx-dev-runtime.profiling.min.js +0 -10
- package/cjs/react-jsx-runtime.production.min.js +0 -11
- package/cjs/react-jsx-runtime.profiling.min.js +0 -11
- package/cjs/react.production.min.js +0 -26
- package/cjs/react.shared-subset.development.js +0 -20
- package/cjs/react.shared-subset.production.min.js +0 -10
- package/react.shared-subset.js +0 -7
- package/umd/react.development.js +0 -3342
- package/umd/react.production.min.js +0 -31
- package/umd/react.profiling.min.js +0 -31
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
MIT License
|
|
2
2
|
|
|
3
|
-
Copyright (c)
|
|
3
|
+
Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
package/README.md
CHANGED
|
@@ -25,13 +25,13 @@ function Counter() {
|
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
const root = createRoot(document.getElementById('root'));
|
|
28
|
-
root.render(<
|
|
28
|
+
root.render(<Counter />);
|
|
29
29
|
```
|
|
30
30
|
|
|
31
31
|
## Documentation
|
|
32
32
|
|
|
33
|
-
See https://
|
|
33
|
+
See https://react.dev/
|
|
34
34
|
|
|
35
35
|
## API
|
|
36
36
|
|
|
37
|
-
See https://
|
|
37
|
+
See https://react.dev/reference/react
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-compiler-runtime.development.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
"use strict";
|
|
12
|
+
"production" !== process.env.NODE_ENV &&
|
|
13
|
+
(function () {
|
|
14
|
+
var ReactSharedInternals =
|
|
15
|
+
require("react").__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
16
|
+
exports.c = function (size) {
|
|
17
|
+
var dispatcher = ReactSharedInternals.H;
|
|
18
|
+
null === dispatcher &&
|
|
19
|
+
console.error(
|
|
20
|
+
"Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem."
|
|
21
|
+
);
|
|
22
|
+
return dispatcher.useMemoCache(size);
|
|
23
|
+
};
|
|
24
|
+
})();
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-compiler-runtime.production.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
"use strict";
|
|
12
|
+
var ReactSharedInternals =
|
|
13
|
+
require("react").__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
14
|
+
exports.c = function (size) {
|
|
15
|
+
return ReactSharedInternals.H.useMemoCache(size);
|
|
16
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-compiler-runtime.profiling.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
"use strict";
|
|
12
|
+
var ReactSharedInternals =
|
|
13
|
+
require("react").__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
14
|
+
exports.c = function (size) {
|
|
15
|
+
return ReactSharedInternals.H.useMemoCache(size);
|
|
16
|
+
};
|