npm / scroll-into-view-if-needed
scroll-into-view-if-needed
What changed in scroll-into-view-if-needed 3, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
2 breaking3 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initscroll-into-view-if-needed 35 changes
Breaking changes 2
Node.js 26 or later is required to run the package.
UMD builds are dropped; ESM is the baseline and the package ships more modern syntax.
Fixes and other changes 3
Removes the Node.js version requirement, which had unintentionally broken consumers on older Node.js versions.
Published bundles are compiled to ES2019 syntax again, avoiding optional chaining and nullish coalescing that broke Webpack 4 and other older toolchains.
The package now supports Node ESM.