-
Notifications
You must be signed in to change notification settings - Fork 0
chore(deps): bump react-lazyload from 2.6.5 to 3.2.1 #5
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
Open
dependabot
wants to merge
1
commit into
add-eventstore-group-parameter
Choose a base branch
from
dependabot/npm_and_yarn/react-lazyload-3.2.1
base: add-eventstore-group-parameter
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
Verify major version compatibility for react-lazyload.
This is a major version bump (2.x → 3.x), which typically introduces breaking changes. Since there are no corresponding code changes visible, ensure the codebase is compatible with react-lazyload 3.2.1's API and that all usages have been updated or remain compatible.
Please verify the following:
Additionally, search for the latest documentation on react-lazyload 3.2.1 to identify any breaking changes:
After reviewing the changelog, please confirm:
🏁 Script executed:
Length of output: 27
🌐 Web query:
💡 Result:
I couldn't find any breaking-change notes for react-lazyload v3.2.1 — the npm package (v3.2.1) and package metadata list the release but the repo's CHANGELOG doesn't show a v3.2.1 breaking-change entry. Sources: npm package page and package metadata. [1][2]
Sources
[1] react-lazyload on npm (version 3.2.1).
[2] react-lazyload package metadata / registry (shows v3.2.1 published).
🏁 Script executed:
Length of output: 56
🌐 Web query:
💡 Result:
You can find v3 release notes / changelog for react-lazyload in these places:
If you want the authoritative GitHub changelog/releases, open the repository github.com/jasonslyvia/react-lazyload and check its Releases and CHANGELOG.md there (the npm page above includes the repo link). (npmjs.com)
Citations:
🌐 Web query:
💡 Result:
Short summary of the breaking API/behaviour changes when migrating react-lazyload 2.x → 3.0 and how to adapt:
findDOMNode removed — component now uses a React ref to avoid the findDOMNode warning. This required adding an extra wrapper DOM node around your lazy-loaded children. If your layout, CSS selectors or snapshot tests relied on the previous DOM shape, update them to account for the additional wrapper. [1][2]
Possible test breaks — adjust Jest/Enzyme snapshots or DOM queries (e.g., change selectors or unwrap the extra div in snapshots) because the extra wrapper changes element structure. [1][2]
Styling adjustments — if you targeted the wrapped element with CSS, either apply styles to the new wrapper, change selectors, or move styling into the child component. The README points to customization notes for the extra div. [1][3]
Migration checklist
Sources
[1] react-lazyload (npm README) — notes on 3.0.0 ref change and extra wrapper.
[2] Project README / Github mirrors (react-lazyload docs mentioning extra div and findDOMNode fix).
[3] Community docs / guides referencing the wrapper and styling implications.
If you want, I can extract exact examples from your code (before/after) and produce the minimal changes to make it work with 3.0.
🏁 Script executed:
Length of output: 1424
🏁 Script executed:
Length of output: 339
🌐 Web query:
💡 Result:
Short answer: Yes — react-lazyload@3.2.1 is usable with React 17.
Evidence:
If you run into peer-dependency errors during npm install, try installing with --legacy-peer-deps (or upgrade/downgrade the specific conflicting package) and run your app/tests — most users report it works at runtime. [1][2]
Sources:
[1] react-lazyload package page — npm (v3.2.1).
[2] jsDelivr / package metadata and community references for react-lazyload v3.2.1.
🏁 Script executed:
Length of output: 81
🏁 Script executed:
Length of output: 738
🏁 Script executed:
Length of output: 36
🏁 Script executed:
Length of output: 27
🏁 Script executed:
Length of output: 963
🏁 Script executed:
Length of output: 3973
🏁 Script executed:
Length of output: 0
🏁 Script executed:
Length of output: 0
🏁 Script executed:
Length of output: 564
🏁 Script executed:
Length of output: 1979
🏁 Script executed:
Length of output: 733
Update Jest mock and verify component compatibility with react-lazyload v3 breaking changes.
react-lazyload v3 introduces a breaking change: an extra wrapper
<div>is added around children (replacing the deprecatedfindDOMNodeapproach). The codebase actively uses this package in 5 production files (groupChart, healthStatsChart, projectsDashboard, projectStatsGraph, releases list), but the Jest mock attests/js/setup.js:86-88is outdated—it returns children directly without the wrapper, which no longer matches v3's actual behavior.Required actions:
const LazyLoadMock = ({children}) => <div>{children}</div>;<LazyLoad>(check CSS rules targeting wrapped elements)🤖 Prompt for AI Agents