8000 Comparing v18.2.0...v18.3.0 · facebook/react · GitHub
[go: up one dir, main page]

Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pul 10000 l request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: facebook/react
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v18.2.0
Choose a base ref
...
head repository: facebook/react
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v18.3.0
Choose a head ref
  • 10 commits
  • 67 files changed
  • 4 contributors

Commits on Apr 16, 2024

  1. Bump version from 18.2 to 18.3

    We're going to use this branch to release a minor 18.3 release based off
    the published 18.2 release revision. This will include some additional
    warnings to assist in upgrading to React 19, but no behavior changes
    compared to 18.2.
    
    I bumped the React version to 18.3 and all the other packages by a patch
    revision (since we're not going to update anything in those).
    acdlite committed Apr 16, 2024
    Configuration menu
    Copy the full SHA
    2cfb474 View commit details
    Browse the repository at this point in the history
  2. Turn on string ref deprecation warning for everybody (not codemoddabl…

    …e) (#25383)
    
    ## Summary
     
    Alternate to #25334 without any
    prod runtime changes i.e. the proposed codemod in
    https://github.com/reactjs/rfcs/blob/createlement-rfc/text/0000-create-element-changes.md#deprecate-string-refs-and-remove-production-mode-_owner-field
    would not work.
    
    ## How did you test this change?
    
    - [x] CI
    - [x] `yarn test` with and without `warnAboutStringRefs`
    eps1lon authored and acdlite committed Apr 16, 2024
    Configuration menu
    Copy the full SHA
    c2a246e View commit details
    Browse the repository at this point in the history
  3. Turn on key spread warning in jsx-runtime for everyone (#25697)

    This improves the error message a bit and ensures that we recommend
    putting the key first, not last, which ensures that the faster
    `jsx-runtime` is used.
    
    This only affects the modern "automatic" JSX transform.
    sebmarkbage authored and acdlite committed Apr 16, 2024
    Configuration menu
    Copy the full SHA
    73bfaa1 View commit details
    Browse the repository at this point in the history
  4. Enable warning for defaultProps on function components for everyone (#…

    …25699)
    
    This also fixes a gap where were weren't warning on memo components.
    sebmarkbage authored and acdlite committed Apr 16, 2024
    Configuration menu
    Copy the full SHA
    5894232 View commit details
    Browse the repository at this point in the history

Commits on Apr 18, 2024

  1. Backport legacy context deprecation warning

    This backports a deprecation warning for legacy context, even when
    Strict Mode is not enabled.
    
    I didn't bother to update all the tests because the tests are in such
    a different state than what's on `main`, and on `main` we already
    updated the tests accordingly. So instead I silenced the warnings in
    our test config, like we've done for other warnings in the past.
    acdlite committed Apr 18, 2024
    Configuration menu
    Copy the full SHA
    415ee0e View commit details
    Browse the repository at this point in the history

Commits on Apr 23, 2024

  1. Deprecate renderToStaticNodeStream (#28872) (#28874)

    This commit adds warnings indicating that `renderToStaticNodeStream`
    will be removed in an upcoming React release. This API has been legacy,
    is not widely used (renderToStaticMarkup is more common) and has
    semantically eqiuvalent implementations with renderToReadableStream and
    renderToPipeableStream.
    
    landed in main in #28872 
    changed the warning to match renderToNodeStream
    gnoff authored and acdlite committed Apr 23, 2024
    Configuration menu
    Copy the full SHA
    7548c01 View commit details
    Browse the repository at this point in the history

Commits on Apr 25, 2024

  1. Support writing to this.refs from userspace

    Previously, the `refs` property of a class component instance was
    read-only by user code — only React could write to it, and until/unless
    a string ref was used, it pointed to a shared empty object that was
    frozen in dev to prevent userspace mutations.
    
    Because string refs are deprecated, we want users to be able to codemod
    all their string refs to callback refs. The safest way to do this is to
    output a callback ref that assigns to `this.refs`.
    
    So to support this, we need to make `this.refs` writable by userspace.
    acdlite committed Apr 25, 2024
    1 Configuration menu
    Copy the full SHA
    9090712 View commit details
    Browse the repository at this point in the history
  2. ReactDOMTestUtils deprecation warnings

    Adds a deprecation warning to ReactDOMTestUtils.renderIntoDocument,
    which is removed in version 19.
    
    Also backports the deprecation warning for ReactDOMTestUtils.act.
    acdlite committed Apr 25, 2024
    Configuration menu
    Copy the full SHA
    d4ea75d View commit details
    Browse the repository at this point in the history
  3. Add deprecation warning for findDOMNode

    This is removed in version 19. We already warned inside of Strict Mode
    but this adds the warning everywhere.
    acdlite committed Apr 25, 2024
    Configuration menu
    Copy the full SHA
    c3b2839 View commit details
    Browse the repository at this point in the history
  4. Add deprecation warning for unmountComponentAtNode

    This should have been deprecated in 18.0 alongside the other legacy
    DOM APIs like render().
    acdlite committed Apr 25, 2024
    Configuration menu
    Copy the full SHA
    8a015b6 View commit details
    Browse the repository at this point in the history
Loading
0