---
title: "compute-scroll-into-view 4.0.0 Breaking Changes on npm"
description: "What each compute-scroll-into-view release removed, renamed or changed: 14 breaking changes in 1 version on npm, each with its source."
canonical_url: https://since.dev/packages/npm/compute-scroll-into-view
last_updated: 2026-12-04
---

# compute-scroll-into-view breaking changes

compute-scroll-into-view 4.0.0 (November 17, 2026) is its newest release with breaking changes, 14 of them. The first: Package ships ESM only; the CommonJS build is removed in compute-scroll-into-view 4.0.0. Every breaking API change we have recorded in compute-scroll-into-view on npm: 14 breaking changes in 1 version. Below, its one version with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `4.0.0`, released November 17, 2026. [Source repository](https://github.com/scroll-into-view/compute-scroll-into-view)

Packages on npm run on Node.js. [Node.js end of life dates](https://since.dev/calendar/nodejs.md).

## compute-scroll-into-view 4.0.0 breaking changes

compute-scroll-into-view 4.0.0, released November 17, 2026: 14 breaking changes.

- **Removed**  

Code that loads the package with require must use require(esm) on Node.js 20.19+ or 22.12+, or switch to ESM imports. [github.com](https://github.com/scroll-into-view/compute-scroll-into-view/releases/tag/v4.0.0)
- **Removed**  

Tooling that reads the declaration source map from the published package will no longer find it. [github.com](https://github.com/scroll-into-view/compute-scroll-into-view/releases/tag/v4.0.0)
- **Removed**  

Build tooling that relies on the source export condition or the source and typings fields must stop using them. [github.com](https://github.com/scroll-into-view/compute-scroll-into-view/releases/tag/v4.0.0)
- **Removed** `Options.boundary`  

Use the boundary() middleware from compute-scroll-into-view/middleware instead. [npmjs.com](https://www.npmjs.com/package/compute-scroll-into-view/v/4.0.0)
- **Removed** `Options.scrollMode`  

Use the onlyIfNeeded() middleware from compute-scroll-into-view/middleware instead. [npmjs.com](https://www.npmjs.com/package/compute-scroll-into-view/v/4.0.0)
- **Removed** `Options.skipOverflowHiddenElements`  

Use the skipOverflowHiddenElements() middleware from compute-scroll-into-view/middleware instead. [npmjs.com](https://www.npmjs.com/package/compute-scroll-into-view/v/4.0.0)
- **Removed** `ScrollMode`  

Code that imports or references the ScrollMode type must drop it and use middleware instead. [npmjs.com](https://www.npmjs.com/package/compute-scroll-into-view/v/4.0.0)
- **Renamed** `typings`  

Use the types field in package.json instead of typings. [github.com](https://github.com/scroll-into-view/compute-scroll-into-view/releases/tag/v4.0.0)
- **Behavior changed**  

Scroll containers that an absolutely or fixed positioned target escapes are no longer scrolled, and fixed targets no longer scroll the viewport. [github.com](https://github.com/scroll-into-view/compute-scroll-into-view/releases/tag/v4.0.0)
- **Behavior changed**  

When the target is in a same-origin iframe, the parent document's scroll containers and viewport are also scrolled. [github.com](https://github.com/scroll-into-view/compute-scroll-into-view/releases/tag/v4.0.0)
- **Behavior changed**  

Code relying on the body not being scrolled will see it scroll when its overflow is set under a root with overflow hidden, auto or clip. [github.com](https://github.com/scroll-into-view/compute-scroll-into-view/releases/tag/v4.0.0)
- **Behavior changed** `block`  

Alignment now uses the target's logical axes, so right-to-left and vertical targets align differently than before. [github.com](https://github.com/scroll-into-view/compute-scroll-into-view/releases/tag/v4.0.0)
- **Behavior changed** `scrollMode`  

A target covered by scroll-padding is now considered not visible and is scrolled into view in if-needed mode. [github.com](https://github.com/scroll-into-view/compute-scroll-into-view/releases/tag/v4.0.0)
- **Signature changed** `compute`  

Was const compute: (target: Element, options: Options) => ScrollAction\[\]; now const compute: (target: Element, options?: Options) => ScrollAction\[\]. [npmjs.com](https://www.npmjs.com/package/compute-scroll-into-view/v/4.0.0)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
