Pull Requests
#22064
Ensure that `valueOf()` (which may throw) is not called when rendering objects
#22547
Use memoizedProps to distinguish between mount/update for choosing hooks dispatcher
#28329
Remove usage of ReactTestUtils from ReactContextValidator
#28940
Added a hyperlink to Node
#28939
Import correct prod version of jsx-dev-runtime for react-server
#28937
Fixed it: Update CODE_OF_CONDUCT.md
#28936
feat(badge): Add JSDelivr badge
#28934
fix(hydrate): to check and add validations for type check of argument…
#28932
Add changelog for 18.3.1
#28930
Configure JSX Feature Flags as Dynamic (Meta)
#28929
Add changelog for 18.3 and 18.3.1
#28927
[Not for merge] 18.3.1 Release
#28925
Update Changelog for 18.3.0
#28921
fix: react server condition for `react/jsx-dev-runtime`
#28920
Update made
#28919
[react-dom] Provide a way to silence devtools recommendation
#28916
Export `React.act` from 18.3
#28912
(Land #28798) Move Current Owner (and Cache) to an Async Dispatcher
#28911
Go back to shared refs instance object
#28910
Support ref cleanup function for imperative handle refs
#28909
Reconciler: Change `commitUpdate` signature to account for unused `updatePayload` parameter
#28907
[Flight][Fizz] tasks that ping in a microtask should render synchronously
#28906
Update README.md
#28905
Update canary channel label to "beta"
#28904
warn -> error for Test Renderer deprecation
#28902
Update App.test.js
#28901
fix: export `jsx-runtime.react-server.js` as `react/jsx-dev-runtime`
#28900
[Flight][Fizz] schedule flushing independently from performing work
#28899
Create short link for jsx warning
#28896
Remove automatic fetch `cache` instrumentation
#28895
Add ref callback test for cleanup fn vs null call
#28894
[Flight][Fizz] ping work within current task
#28893
[Flight Reply] Encode ReadableStream and AsyncIterables
#28892
Install ESLint v9
#28891
Cleanup `replayFailedUnitOfWorkWithInvokeGuardedCallback`and `enableProfilerNestedUpdateScheduledHook`
#28890
Fix readme errors
#28889
Update README.md
#28888
ljust for example
#28887
Use undici polyfill for tests in old Node versions
#28883
Remove warning for ref cleanup function
#28881
Don't minify symbols in production builds
#28880
Build react-reconciler for FB builds
#28879
Unrevert "Support writing to this.refs from userspace"
#28878
[Experiment] Reuse memo cache after interruption
#28877
Revert "Support writing to this.refs from userspace"
#28875
convert circleci workflow devtools_regression_tests to github actions
#28874
Deprecate `renderToStaticNodeStream` (#28872)
#28873
Remove `renderToStaticNodeStream`
#28872
Deprecate `renderToStaticNodeStream`
#28871
[Fizz] escape <script> textContent similar to bootstrapScript
#28870
[Fizz] escape <style> textContent as css
#28869
Write Diff Train import branch to this repo
#28868
[Fiber/Fizz] Support AsyncIterable as Children and AsyncGenerator Client Components
Build Activity
#173386
Add DEV-only string coercion checks to prod files
This commit adds DEV-only function calls to to check if string coercion
using `'' + value` will throw, which it will if the value is a Temporal
object or a symbol because those types can't be added wit...
#171425
Improve debugging DX when string coercions fail
If a coercion throws, the check function will now throw after it calls
console.error(). It's the same exception that will be thrown after
the check function returns, but by throwing it inside of the chec...
#171116
Change DEV checks from throwing to console.error
This commit revises behavior of DEV string-coercion check functions
to use console.error instead of throwing a TypeError. There will still
be an exception thrown but it will be the being-coerced value t...
#171026
Don't report lint error if coercion is safe
This commit extends the safe-string-coercion internal ESLint rule to
auto-detect code where coercion can't fail or is correctly preceded
by a DEV check. In those cases, the rule now won't report.
Changes:
*...
#171020
Don't report lint error if coercion is safe
This commit extends the safe-string-coercion internal ESLint rule to
auto-detect code where coercion can't fail or is correctly preceded
by a DEV check. In those cases, the rule now won't report.
Changes:
*...
#170396
Add disallowStringConstructor option to lint rule
This commit adds a new option to the react-internal/safe-string-coercion
lint rule that controls whether `String(value)` should be disallowed.
ESLint is now configured set up to disallow `String(value...
#169906
Test for different error messages in DEV vs PROD
Tests will now check for a different error message in Prod, which
aligns with actual prod behavior where the error will be thrown
by the Temporal or Symbol object, not by React
#169593
Revise ESLint rules for string coercion
To make string-coercion safer and to improve user-facing error messages,
This commit makes the following changes to coercion-related internal
ESLint rules:
* Adds a new rule for the `'' + value` and `value + ''`...
#160135
Change `''.concat(value)` to `String(value)`
`''.concat(value)` violates current Flow definitons that require args to
concat to be strings only, even though the MDN docs and ES spec allow
args to be any type. See https://github.com/facebook/flow/issue...
#159944
Replace `'' + obj` pattern with `''.concat(obj)`
Using the `+` operator to concatenate strings and objects is problematic
because `+` calls `valueOf` on the object. `valueOf` will throw for
some types of objects. See #20594 for details.
This commit g...
#159941
Replace `'' + obj` pattern with `''.concat(obj)`
Using the `+` operator to concatenate strings and objects is problematic
because `+` calls `valueOf` which will throw for some types.
See #20594 for details.
This commit globally replaces `'' + obj` wi...
#158354
Don't call valueOf during string concatenation
The new Temporal (https://github.com/tc39/proposal-temporal)
date/time API (currently stage 3)
will throw when calling `valueOf` on instances of most Temporal types.
This behavior breaks react-dom's ren...
#158351
Convert to string before concatenation
The new Temporal (https://github.com/tc39/proposal-temporal)
date/time API (currently stage 3)
will throw when calling `valueOf` on instances of most Temporal types.
This behavior breaks react-dom's rendering o...
#158349
Merge branch 'facebook:main' into patch-2
#158334
Convert to string before concatenation
The new [Temporal](https://github.com/tc39/proposal-temporal) date/time API
(currently stage 3) will throw when calling `valueOf` on instances of most Temporal types.
This behavior breaks react-dom's rendering...
facebook/react    #173386
Loading Sandboxes...
Loading Packages...
Loading Install Instructions...
Finished!