close
The Wayback Machine - https://web.archive.org/web/20201026114715/https://github.com/facebook/react/commits/master
Skip to content
Permalink
master

Commits on Oct 22, 2020

  1. Fix error loading source maps for devtools extension (#20079)

    sytranvn committed Oct 22, 2020
  2. Overly eager update-notifier usage in react-devtools (#20078)

    Co-authored-by: abhyuday <abhyuday@miqdigital.com>
    recurx and abhyuday committed Oct 22, 2020
  3. 17.0.1

    gaearon committed Oct 22, 2020

Commits on Oct 21, 2020

  1. Use react-shallow-renderer@16.14.1 in yarn.lock (#20072)

    This ensures that tests are run against the latest published version. This
    merely updates the version in `yarn.lock` and not in `react-test-renderer`'s
    `package.json` to avoid having to cut another release of `react-test-renderer`.
    NMinhNguyen committed Oct 21, 2020
  2. Remove usage of Array#fill (#20071)

    gaearon committed Oct 21, 2020
  3. Update CHANGELOG.md

    gaearon committed Oct 21, 2020

Commits on Oct 20, 2020

  1. Link to the blog post

    gaearon committed Oct 20, 2020
  2. Bump versions for 17 (#20062)

    gaearon committed Oct 20, 2020
  3. Add React 17 changelog

    gaearon committed Oct 20, 2020
  4. Profiler: Include ref callbacks in onCommit duration (#20060)

    bvaughn committed Oct 20, 2020

Commits on Oct 19, 2020

  1. useRef: Warn about reading or writing mutable values during render (#…

    …18545)
    
    Reading or writing a ref value during render is only safe if you are implementing the lazy initialization pattern.
    
    Other types of reading are unsafe as the ref is a mutable source.
    
    Other types of writing are unsafe as they are effectively side effects.
    
    This change also refactors useTransition to no longer use a ref hook, but instead manage its own (stable) hook state.
    bvaughn committed Oct 19, 2020
  2. DevTools fix props editing for host components (#20055)

    bvaughn committed Oct 19, 2020
  3. DevTools 4.8.2 -> 4.9.0 bump

    bvaughn committed Oct 19, 2020
  4. Improved Profiler commit hooks test (#20053)

    Previously the tests didn't ensure that time spent during cascading render was not included in duration reported by commit hooks.
    bvaughn committed Oct 19, 2020

Commits on Oct 17, 2020

  1. [Fast Refresh] Fix crashes caused by rogue Proxies (#20030) (#20039)

    kri committed Oct 17, 2020

Commits on Oct 16, 2020

  1. Use bitwise OR to define flag masks (#20044)

    Easier to read, harder to mess up. These expressions get simplified by
    Closure, so there's no runtime impact.
    acdlite committed Oct 16, 2020
  2. Add Visibility flag for hiding/unhiding trees (#20043)

    * Add Visibility flag for hiding/unhiding trees
    
    There's `beforeblur` logic in the snapshot phase that needs to visit
    every Suspense boundary whose visibility is toggled. Right now it does
    that by visiting Placement and Deletion effects. That includes many
    unrelated nodes.
    
    By adding a new flag specifically for toggling Visibility, we will only
    visit the relevant Suspense (and Offscreen) boundaries, instead of all
    nodes that have a Placement.
    
    Potential follow-ups (not urgent):
    
    - The `beforeblur` logic also has a check to see whether the visibility
    was toggled on or off. It only cares about things being hidden. As a
    follow up, I can split the Visibility flag into separate Hide/Show
    flags, and only visit Hide.
    - Now that this is separate from Update, we can move the rest of the
    Suspense's layout effects (like attaching retry listeners) to the
    passive phase.
    
    * Gate behind createEventHandle feature flag
    
    Only need to visit deleted and hidden trees during the snapshot phase
    if the experimental `createEventHandle` flag is enabled. Currently,
    it's only used internally at Facebook, not open source.
    acdlite committed Oct 16, 2020
  3. Remove last schedulePassiveEffectCallback call (#20042)

    Now there's only a single place where the passive effect callback
    is scheduled.
    acdlite committed Oct 16, 2020
  4. Remove Set bookkeeping for root events (#19990)

    * Remove dead code branch
    
    This function is only called when initializing roots/containers (where we skip non-delegated events) and in the createEventHandle path for non-DOM nodes (where we never hit this path because targetElement is null).
    
    * Move related functions close to each other
    
    * Fork listenToNativeEvent for createEventHandle
    
    It doesn't need all of the logic that's needed for normal event path.
    
    And the normal codepath doesn't use the last two arguments.
    
    * Expand test coverage for non-delegated events
    
    This changes a test to fail if we removed the event handler Sets. Previously, we didn't cover that.
    
    * Add DEV-level check that top-level events and non-delegated events do not overlap
    
    This makes us confident that they're mutually exclusive and there is no duplication between them.
    
    * Add a test verifying selectionchange deduplication
    
    This is why we still need the Set bookkeeping. Adding a test for it.
    
    * Remove Set bookkeeping for root events
    
    Root events don't intersect with non-delegated bubbled events (so no need to deduplicate there). They also don't intersect with createEventHandle non-managed events (because those don't go on the DOM elements). So we can remove the bookeeping because we already have code ensuring the eager subscriptions only run once per element.
    
    I've moved the selectionchange special case outside, and added document-level deduplication for it alone.
    
    Technically this might change the behavior of createEventHandle with selectionchange on the document, but we're not using that, and I'm not sure that behavior makes sense anyway.
    
    * Flow
    gaearon committed Oct 16, 2020
  5. test: Add regression test for hooks after error boundaries (#20002)

    * test: Add regression test for hooks after error boundaries
    
    * fix lint
    eps1lon committed Oct 16, 2020
  6. Bump to latest eslint-config-fbjs (#20029)

    * bump package to latest
    
    * update files to respect lint
    
    * disable object-type-delimiter rule to work with prettier
    
    * disable rule to let flow check pass
    oltrep committed Oct 16, 2020
  7. Remove Passive flag from "before mutation" phase (#20038)

    We don't need to visit passive effect nodes during before mutation.
    
    The only reason we were previously was to schedule the root-level
    passive effect callback as early as possible, but now that
    `subtreeFlags` exists, we can check that instead.
    
    This should reduce the amount of traversal during the commit phase,
    particularly when mounting or updating large trees that contain many
    passive effects.
    acdlite committed Oct 16, 2020

Commits on Oct 15, 2020

  1. fixed unfound node error when Suspense is filtered (#20019)

    * fixed unfound node error when Suspense is filtered
    
    * added a test for filtered Suspense node
    IDrissAitHafid committed Oct 15, 2020
  2. ReactIs.isValidElementType Unit Test extended with PureComponent case (

    …#20033)
    
    Co-authored-by: Adam Plocieniak <adam.plocieniak@allegro.pl>
    adasq and Adam Plocieniak committed Oct 15, 2020
  3. Don't double-invoke effects in legacy roots (#20028)

    Large legacy applications are likely to be difficult to update to handle this feature, and it wouldn't add any value– since newer APIs that require this resilience are not legacy compatible.
    bvaughn committed Oct 15, 2020

Commits on Oct 14, 2020

  1. [EventSystem] Revise onBeforeBlur propagation mechanics (#20020)

    trueadm committed Oct 14, 2020
  2. Update changelog for 16.14, 15.7, 0.14.10 (#20027)

    gaearon committed Oct 14, 2020
  3. chore: downgrade source-map-support for stack "fix" (#20026)

    * chore: downgrade source-map-support for stack "fix"
    
    * lint?
    SimenB committed Oct 14, 2020
  4. DevTools: Handle restricted browser pages properly like new tab page,…

    … extensions page etc(only chrome and edge for now) (#20023)
    sktguha committed Oct 14, 2020
  5. Fixture: Legacy JSX Runtimes (#20012)

    * Fixture: Legacy JSX Runtimes
    
    * Add more comments
    gaearon committed Oct 14, 2020
  6. DevTools always overrides the dispatcher when shallow rendering (#20011)

    This is done so that any effects scheduled by the shallow render are thrown away.
    
    Unlike the code this was forked from (in ReactComponentStackFrame) DevTools should override the dispatcher even when DevTools is compiled in production mode, because the app itself may be in development mode and log errors/warnings.
    bvaughn committed Oct 14, 2020
  7. Deprecate old test script commands (#19893)

    * Deprecate old test script commands
    
    * Update PR template test script
    
    * Add test-stable and test-www-classic
    
    * Update circle test names
    
    * Rename test-www-classic to test-classic
    
    * Missed some job renames
    
    * Missed some more job renames
    rickhanlonii committed Oct 14, 2020

Commits on Oct 13, 2020

  1. handled a missing suspense fiber when suspense is filtered on the pro…

    …filer (#19987)
    
    Co-authored-by: Brian Vaughn <bvaughn@fb.com>
    IDrissAitHafid and bvaughn committed Oct 13, 2020
  2. Fix bad null check in DevTools highlight code (#20010)

    bvaughn committed Oct 13, 2020

Commits on Oct 12, 2020

  1. [DevTools] Add DevTools forked Feature flags (#18994)

    Also resolve an uncaught error in extension build (#18843).
    
    Co-authored-by: Brian Vaughn <brian.david.vaughn@gmail.com>
    Co-authored-by: Brian Vaughn <bvaughn@fb.com>
    bl00mber and bvaughn committed Oct 12, 2020
Older
You can’t perform that action at this time.