Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update dependency react-intersection-observer to v9 #7818

Merged
merged 1 commit into from
Jul 29, 2024

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jul 29, 2024

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
react-intersection-observer ^8.34.0 -> ^9.13.0 age adoption passing confidence

Release Notes

thebuilder/react-intersection-observer (react-intersection-observer)

v9.13.0

Compare Source

v9.12.0

Compare Source

v9.11.0

Compare Source

Features
  • remove script to publish dist dir (0980efa)

v9.10.3

Compare Source

Bug Fixes
  • test-utils - execute mockClear method only when it exists (712ae37)

v9.10.2

Compare Source

Bug Fixes
  • support old act from react-dom (0e95b5d)

v9.10.1

Compare Source

Bug Fixes
  • use act from react instead of deprecated one (87258aa)

v9.10.0

Compare Source

v9.9.0

Compare Source

v9.8.2

Compare Source

Bug Fixes
  • test utils, only use act when in an act environment (3c515e7)

v9.8.1

Compare Source

Bug Fixes
  • include "type": "commonjs" in package.json (684affe)

v9.8.0

Compare Source

Features
  • export .mts for test-utils (05236e7)

v9.7.0

Compare Source

This release switches from ESLint and Prettier to Biome.js, as a way of cutting down on dev dependencies and configuration.

Features
  • migrate to Biome.js formatting (529b46f)
  • switch to Biome.js linting (2b3642f)
Reverts
  • preserve the commonjs in tsconfig.test.json (61bd06b)

v9.6.0

Compare Source

Bug Fixes
  • mark react-dom as optional (00a9139)
Features
  • add react-dom as a peer dependency (8f67987)

v9.5.4

Compare Source

Bug Fixes
  • export .d.mts file for types (7e2c575)

v9.5.3

Compare Source

Bug Fixes

v9.5.2

Compare Source

Bug Fixes

v9.5.1

Compare Source

Bug Fixes

v9.5.0

Compare Source

Breaking changes

This release switches the build tool to tsup, in order for the package to support the use client directive. Hopefully it shouldn't have an impact on usage, but changing build output, always carries a slight risk of some tooling breaking.

  • Changes the export file names. If you relied on importing files directly, then you'll need to change the imports.
  • Drops bundling the "umd" version. If anyone was relying on this, let me know.
Features
  • support "use client" with tsup (db2254b)
  • switch to tsup build (9bd69f5)

v9.4.4

Compare Source

Bug Fixes
  • correct the error message that happens if IntersectionObserver is not mocked (f7da436)

v9.4.3

Compare Source

Bug Fixes
  • restrict type on the "as" prop (048bcb0)

v9.4.2

Compare Source

Performance
  • remove extra useEffect used for resetting initial state (#​607)
Bug Fixes
  • publish main with semantic releases (6711bc1)
  • rename master to main (11d5bd1)

v9.4.1

Compare Source

Bug Fixes

v9.4.0

Compare Source

This release fixes https://github.com/thebuilder/react-intersection-observer/issues/572
It's now possible (not recommended) to use inline functions for ref methods. This will still cause extra rerenders, but you will not get into a state of infinite loops.

Bug Fixes
  • optimize re-renders in useInView (a3e2be5)
Features
  • rewrite internals to use setState for ref (776caa6)

v9.3.5

Compare Source

Bug Fixes
  • Add support for TS 4.7+ node16/next module (a0c099b)

v9.3.4

Compare Source

Bug Fixes
  • export module as esm.js (fa6f3db)

v9.3.3

Compare Source

Bug Fixes

v9.3.2

Compare Source

Bug Fixes
  • correct the build copy (88058e1)
  • export paths with dot path (5d36ed6)

v9.3.1

Compare Source

Bug Fixes

v9.3.0

Compare Source

Features
  • refactor to use modern exports (bc0daf6)

v9.2.2

Compare Source

Bug Fixes
  • correct broken module exports (12bad4a)
  • correct name in size limit (3d4534e)
  • revert the bundle changes (e7ac6d2)

v9.2.1

Compare Source

Bug Fixes
  • correct microbundle output paths (0f55aa2)

v9.2.0

Compare Source

Features
  • Switch to vitest and storybook vite (#​549) (af0440f)
  • Support both Jest and Vitest in test-utils
  • Improve readme section on testing

v9.1.0

Compare Source

Features
  • support onChange on useInView (ba8d059)
  const { ref } = useInView({
    onChange: (inView) => {
      if (inView) {
        dataLayer.push('Section shown'); // Here's a GTM dataLayer push
      }
    },
  });

v9.0.0

Compare Source

This release is mainly to fix an issue with the exports not being properly tree-shaken.

Features
Size of exports

After tree shaking, this is the current size impact of the exports, as reported by size-limit.

  • InView - 1.6 kB with all dependencies, minified and gzipped
  • useInView - 1.13 kB with all dependencies, minified and gzipped
  • observe - 835 B with all dependencies, minified and gzipped
BREAKING CHANGES
  • Removed the default export of the InView component. Use the named InView import instead
-import InView from 'react-intersection-observer
+import { InView } from 'react-intersection-observer

Configuration

📅 Schedule: Branch creation - "before 4am on Monday" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot added the dependencies Pull requests that update a dependency file label Jul 29, 2024
Copy link

nx-cloud bot commented Jul 29, 2024

☁️ Nx Cloud Report

CI is running/has finished running commands for commit 941550c. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this CI Pipeline Execution


✅ Successfully ran 2 targets

Sent with 💌 from NxCloud.

Copy link

pkg-pr-new bot commented Jul 29, 2024

commit: 941550c

pnpm add https://pkg.pr.new/@tanstack/angular-query-devtools-experimental@7818
pnpm add https://pkg.pr.new/@tanstack/angular-query-experimental@7818
pnpm add https://pkg.pr.new/@tanstack/eslint-plugin-query@7818
pnpm add https://pkg.pr.new/@tanstack/query-async-storage-persister@7818
pnpm add https://pkg.pr.new/@tanstack/query-broadcast-client-experimental@7818
pnpm add https://pkg.pr.new/@tanstack/query-core@7818
pnpm add https://pkg.pr.new/@tanstack/query-devtools@7818
pnpm add https://pkg.pr.new/@tanstack/query-persist-client-core@7818
pnpm add https://pkg.pr.new/@tanstack/query-sync-storage-persister@7818
pnpm add https://pkg.pr.new/@tanstack/react-query@7818
pnpm add https://pkg.pr.new/@tanstack/react-query-devtools@7818
pnpm add https://pkg.pr.new/@tanstack/react-query-next-experimental@7818
pnpm add https://pkg.pr.new/@tanstack/react-query-persist-client@7818
pnpm add https://pkg.pr.new/@tanstack/solid-query@7818
pnpm add https://pkg.pr.new/@tanstack/solid-query-devtools@7818
pnpm add https://pkg.pr.new/@tanstack/solid-query-persist-client@7818
pnpm add https://pkg.pr.new/@tanstack/svelte-query@7818
pnpm add https://pkg.pr.new/@tanstack/svelte-query-devtools@7818
pnpm add https://pkg.pr.new/@tanstack/svelte-query-persist-client@7818
pnpm add https://pkg.pr.new/@tanstack/vue-query@7818
pnpm add https://pkg.pr.new/@tanstack/vue-query-devtools@7818

Open in Stackblitz

More templates

Copy link

codecov bot commented Jul 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 44.61%. Comparing base (4cdc2c8) to head (941550c).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #7818   +/-   ##
=======================================
  Coverage   44.61%   44.61%           
=======================================
  Files         185      185           
  Lines        7087     7087           
  Branches     1571     1575    +4     
=======================================
  Hits         3162     3162           
  Misses       3562     3562           
  Partials      363      363           
Components Coverage Δ
@tanstack/angular-query-devtools-experimental ∅ <ø> (∅)
@tanstack/angular-query-experimental 86.58% <ø> (ø)
@tanstack/eslint-plugin-query 84.00% <ø> (ø)
@tanstack/query-async-storage-persister 43.85% <ø> (ø)
@tanstack/query-broadcast-client-experimental ∅ <ø> (∅)
@tanstack/query-codemods 0.00% <ø> (ø)
@tanstack/query-core 92.82% <ø> (ø)
@tanstack/query-devtools 5.24% <ø> (ø)
@tanstack/query-persist-client-core 57.73% <ø> (ø)
@tanstack/query-sync-storage-persister 82.50% <ø> (ø)
@tanstack/react-query 92.44% <ø> (ø)
@tanstack/react-query-devtools 10.71% <ø> (ø)
@tanstack/react-query-next-experimental ∅ <ø> (∅)
@tanstack/react-query-persist-client 100.00% <ø> (ø)
@tanstack/solid-query 78.20% <ø> (ø)
@tanstack/solid-query-devtools ∅ <ø> (∅)
@tanstack/solid-query-persist-client 100.00% <ø> (ø)
@tanstack/svelte-query 87.33% <ø> (ø)
@tanstack/svelte-query-devtools ∅ <ø> (∅)
@tanstack/svelte-query-persist-client 100.00% <ø> (ø)
@tanstack/vue-query 71.42% <ø> (ø)
@tanstack/vue-query-devtools ∅ <ø> (∅)

@lachlancollins lachlancollins merged commit e2315cc into main Jul 29, 2024
8 checks passed
@lachlancollins lachlancollins deleted the renovate/react-intersection-observer-9.x branch July 29, 2024 06:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant