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 pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: thebuilder/react-intersection-observer
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v9.16.0
Choose a base ref
...
head repository: thebuilder/react-intersection-observer
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v10.0.0
Choose a head ref
  • 16 commits
  • 35 files changed
  • 5 contributors

Commits on Mar 5, 2025

  1. Configuration menu
    Copy the full SHA
    708946f View commit details
    Browse the repository at this point in the history
  2. Merge pull request #721 from thebuilder/fix/correact-package-url

    chore: update package url in package.json
    thebuilder authored Mar 5, 2025
    Configuration menu
    Copy the full SHA
    54a8b26 View commit details
    Browse the repository at this point in the history

Commits on Apr 4, 2025

  1. build(deps-dev): bump vite from 6.2.0 to 6.2.5

    Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 6.2.0 to 6.2.5.
    - [Release notes](https://github.com/vitejs/vite/releases)
    - [Changelog](https://github.com/vitejs/vite/blob/v6.2.5/packages/vite/CHANGELOG.md)
    - [Commits](https://github.com/vitejs/vite/commits/v6.2.5/packages/vite)
    
    ---
    updated-dependencies:
    - dependency-name: vite
      dependency-version: 6.2.5
      dependency-type: direct:development
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Apr 4, 2025
    Configuration menu
    Copy the full SHA
    41040ff View commit details
    Browse the repository at this point in the history

Commits on Apr 8, 2025

  1. Merge pull request #724 from thebuilder/dependabot/npm_and_yarn/vite-…

    …6.2.5
    
    build(deps-dev): bump vite from 6.2.0 to 6.2.5
    thebuilder authored Apr 8, 2025
    Configuration menu
    Copy the full SHA
    97bc319 View commit details
    Browse the repository at this point in the history

Commits on Apr 30, 2025

  1. build(deps-dev): bump vite from 6.2.5 to 6.2.7

    Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 6.2.5 to 6.2.7.
    - [Release notes](https://github.com/vitejs/vite/releases)
    - [Changelog](https://github.com/vitejs/vite/blob/v6.2.7/packages/vite/CHANGELOG.md)
    - [Commits](https://github.com/vitejs/vite/commits/v6.2.7/packages/vite)
    
    ---
    updated-dependencies:
    - dependency-name: vite
      dependency-version: 6.2.7
      dependency-type: direct:development
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Apr 30, 2025
    Configuration menu
    Copy the full SHA
    c94e34c View commit details
    Browse the repository at this point in the history

Commits on May 23, 2025

  1. Configuration menu
    Copy the full SHA
    8100b8a View commit details
    Browse the repository at this point in the history

Commits on May 30, 2025

  1. Configuration menu
    Copy the full SHA
    7a8215b View commit details
    Browse the repository at this point in the history

Commits on Jun 3, 2025

  1. Configuration menu
    Copy the full SHA
    09beee9 View commit details
    Browse the repository at this point in the history

Commits on Jul 12, 2025

  1. Initial plan

    Copilot committed Jul 12, 2025
    Configuration menu
    Copy the full SHA
    ed58938 View commit details
    Browse the repository at this point in the history
  2. Initial analysis and planning for bundlephobia badge removal

    Co-authored-by: thebuilder <3764345+thebuilder@users.noreply.github.com>
    Copilot and thebuilder committed Jul 12, 2025
    Configuration menu
    Copy the full SHA
    d8e9130 View commit details
    Browse the repository at this point in the history
  3. Remove bundlephobia badge from README

    Co-authored-by: thebuilder <3764345+thebuilder@users.noreply.github.com>
    Copilot and thebuilder committed Jul 12, 2025
    Configuration menu
    Copy the full SHA
    7e1c314 View commit details
    Browse the repository at this point in the history
  4. Remove package-lock.json and add to .gitignore

    Co-authored-by: thebuilder <3764345+thebuilder@users.noreply.github.com>
    Copilot and thebuilder committed Jul 12, 2025
    Configuration menu
    Copy the full SHA
    23367cc View commit details
    Browse the repository at this point in the history

Commits on Jul 13, 2025

  1. Configuration menu
    Copy the full SHA
    1e8a3b7 View commit details
    Browse the repository at this point in the history

Commits on Oct 27, 2025

  1. feat: Update dependencies (#737)

    Mainly updating the dev dependencies to the latest versions.
    thebuilder authored Oct 27, 2025
    Configuration menu
    Copy the full SHA
    66cda4f View commit details
    Browse the repository at this point in the history

Commits on Oct 28, 2025

  1. feat: implement the useOnInView hook (#738)

    Based on the great work in #718 by @jantimon - This is an attempt to implement just the useOnInView hook, while maintaining the fallback functionality, and legacy React version support.
    
    ### ✨ New
    - **`useOnInView` hook** — a no-re-render alternative to `useInView` that delivers `(inView, entry)` to your callback while returning a ref you can attach to any element. Designed for tracking, analytics, and other side effect heavy workloads where state updates are unnecessary.
    - **`IntersectionChangeEffect` / `IntersectionEffectOptions` types** — exported helper types that describe the new hook’s callback and options surface.
    - **Storybook playground + documentation** — new story, README section, and JSDoc example demonstrating how to use `useOnInView`.
    
    ### ✨ Improvements
    - `useInView`, `useOnInView`, and `<InView>` now ignore the browser’s initial `inView === false` emission so handlers only fire once a real visibility change occurs, while still reporting all subsequent enter/leave transitions (including threshold arrays).
    - Observer cleanup logic across the hooks/components was tightened to ensure `skip` toggles and fallback scenarios re-attach correctly without losing previous state.
    
    ### 🧪 Testing
    - Added a dedicated Vitest suite for `useOnInView`, covering thresholds, `triggerOnce`, `skip` toggling, merged refs, and multiple observers on the same node.
    thebuilder authored Oct 28, 2025
    Configuration menu
    Copy the full SHA
    efe59c8 View commit details
    Browse the repository at this point in the history
  2. chore: release v10.0.0

    thebuilder committed Oct 28, 2025
    Configuration menu
    Copy the full SHA
    901ec5e View commit details
    Browse the repository at this point in the history
Loading