---
title: "tslib 2.9.1 Breaking Changes on npm | Since.dev"
description: "What each tslib release removed, renamed or changed: 10 breaking changes in 8 versions on npm, each with its source."
canonical_url: https://since.dev/packages/npm/tslib
last_updated: 2026-12-04
---

# tslib breaking changes

tslib 2.9.1 (October 30, 2026) is its newest release with breaking changes. The first: Signature changed \_\_rewriteRelativeImportExtension. Every breaking API change we have recorded in tslib on npm: 10 breaking changes in 8 versions. Below, its 8 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `2.9.1`, released October 30, 2026. [Source repository](https://github.com/Microsoft/tslib)

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

- From [2.0.0](#v-2-0-0) to [2.9.1](#v-2-9-1): 8 breaking changes in 7 versions.

## tslib 2.9.1 breaking changes

tslib 2.9.1, released October 30, 2026: 1 breaking change.

- **Signature changed** `__rewriteRelativeImportExtension`  

Was function \_\_rewriteRelativeImportExtension(path: string, preserveJsx?: boolean): string; now function \_\_rewriteRelativeImportExtension(path: string, preserveJsx?: boolean, extraExtensions?: {\[extension: string\]: string}, ignoreCase?... [npmjs.com](https://www.npmjs.com/package/tslib/v/2.9.1)

## tslib 2.8.1 breaking changes

tslib 2.8.1, released October 31, 2024: 1 breaking change.

- **Behavior changed** `__importStar`  

The \_\_importStar helper now includes non-enumerable keys when building the namespace object, so code relying on the previous enumerable-only output may see extra properties. [github.com](https://github.com/microsoft/tslib/releases/tag/v2.8.1)

## tslib 2.5.3 breaking changes

tslib 2.5.3, released June 2, 2023: 1 breaking change.

- **Removed** `tslib.es6.js`  

The package no longer references tslib.es6.js in its exports map, so code importing that file through the package may fail. Import the package's main entry point instead. [github.com](https://github.com/microsoft/tslib/releases/tag/v2.5.3)

## tslib 2.5.1 breaking changes

tslib 2.5.1, released May 17, 2023: 1 breaking change.

- **Behavior changed**  

Init hooks provided by decorators now run in reversed order to match the proposed behavior. Code that depends on the previous order should be checked. [github.com](https://github.com/microsoft/tslib/releases/tag/2.5.1)

## tslib 2.3.0 breaking changes

tslib 2.3.0, released June 11, 2021: 1 breaking change.

- **Signature changed** `__spreadArray`  

Was function \_\_spreadArray(to: any\[\], from: any\[\]): any\[\]; now function \_\_spreadArray(to: any\[\], from: any\[\], pack?: boolean): any\[\]. [npmjs.com](https://www.npmjs.com/package/tslib/v/2.3.0)

## tslib 2.2.0 breaking changes

tslib 2.2.0, released April 5, 2021: 2 breaking changes.

- **Signature changed** `__classPrivateFieldGet`  

Was function \_\_classPrivateFieldGet\<T extends object, V>(receiver: T, privateMap: {has(o: T): boolean, get(o: T): V | undefined}): V; now function \_\_classPrivateFieldGet\<T extends new (...args: any\[\]) => unknown, V extends (...args: any\[\])... [npmjs.com](https://www.npmjs.com/package/tslib/v/2.2.0)
- **Signature changed** `__classPrivateFieldSet`  

Was function \_\_classPrivateFieldSet\<T extends object, V>(receiver: T, privateMap: {has(o: T): boolean, set(o: T, value: V): any}, value: V): V; now function \_\_classPrivateFieldSet\<T extends new (...args: any\[\]) => unknown, V>(receiver: T... [npmjs.com](https://www.npmjs.com/package/tslib/v/2.2.0)

## Older versions

2 older versions.

### tslib 2.0.1 breaking changes

tslib 2.0.1, released August 6, 2020: 1 breaking change.

- **Signature changed** `__exportStar`  

Was function \_\_exportStar(m: any, exports: any): void; now function \_\_exportStar(m: any, o: any): void. [npmjs.com](https://www.npmjs.com/package/tslib/v/2.0.1)

### tslib 2.0.0 breaking changes

tslib 2.0.0, released May 13, 2020: 2 breaking changes.

- **Behavior changed** `__exportStar`  

The \_\_exportStar helper now uses \_\_createBinding, so it is incompatible with TypeScript 3.8 and older. Upgrade TypeScript to 3.9 or later. [github.com](https://github.com/microsoft/tslib/releases/tag/2.0.0)
- **Behavior changed** `__importStar`  

The \_\_importStar helper now uses \_\_createBinding, so it is incompatible with TypeScript 3.8 and older. Upgrade TypeScript to 3.9 or later. [github.com](https://github.com/microsoft/tslib/releases/tag/2.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.
