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.
Files changed (38) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +3 -3
  3. package/cjs/react-compiler-runtime.development.js +24 -0
  4. package/cjs/react-compiler-runtime.production.js +16 -0
  5. package/cjs/react-compiler-runtime.profiling.js +16 -0
  6. package/cjs/react-jsx-dev-runtime.development.js +308 -1266
  7. package/cjs/react-jsx-dev-runtime.production.js +14 -0
  8. package/cjs/react-jsx-dev-runtime.profiling.js +14 -0
  9. package/cjs/react-jsx-dev-runtime.react-server.development.js +370 -0
  10. package/cjs/react-jsx-dev-runtime.react-server.production.js +40 -0
  11. package/cjs/react-jsx-runtime.development.js +322 -1284
  12. package/cjs/react-jsx-runtime.production.js +34 -0
  13. package/cjs/react-jsx-runtime.profiling.js +34 -0
  14. package/cjs/react-jsx-runtime.react-server.development.js +370 -0
  15. package/cjs/react-jsx-runtime.react-server.production.js +40 -0
  16. package/cjs/react.development.js +1240 -2695
  17. package/cjs/react.production.js +542 -0
  18. package/cjs/react.react-server.development.js +848 -0
  19. package/cjs/react.react-server.production.js +423 -0
  20. package/compiler-runtime.js +14 -0
  21. package/index.js +1 -1
  22. package/jsx-dev-runtime.js +1 -1
  23. package/jsx-dev-runtime.react-server.js +7 -0
  24. package/jsx-runtime.js +1 -1
  25. package/jsx-runtime.react-server.js +7 -0
  26. package/package.json +19 -15
  27. package/react.react-server.js +7 -0
  28. package/cjs/react-jsx-dev-runtime.production.min.js +0 -10
  29. package/cjs/react-jsx-dev-runtime.profiling.min.js +0 -10
  30. package/cjs/react-jsx-runtime.production.min.js +0 -11
  31. package/cjs/react-jsx-runtime.profiling.min.js +0 -11
  32. package/cjs/react.production.min.js +0 -26
  33. package/cjs/react.shared-subset.development.js +0 -20
  34. package/cjs/react.shared-subset.production.min.js +0 -10
  35. package/react.shared-subset.js +0 -7
  36. package/umd/react.development.js +0 -3342
  37. package/umd/react.production.min.js +0 -31
  38. package/umd/react.profiling.min.js +0 -31
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) Facebook, Inc. and its affiliates.
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(<App />);
28
+ root.render(<Counter />);
29
29
  ```
30
30
 
31
31
  ## Documentation
32
32
 
33
- See https://reactjs.org/
33
+ See https://react.dev/
34
34
 
35
35
  ## API
36
36
 
37
- See https://reactjs.org/docs/react-api.html
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
+ };