---
title: "@huggingface/hub 2.18.0 Breaking Changes on npm | Since.dev"
description: "What each @huggingface/hub release removed, renamed or changed: 14 breaking changes in 6 versions on npm, each with its source."
canonical_url: https://since.dev/packages/npm/@huggingface/hub
last_updated: 2026-12-04
---

# @huggingface/hub breaking changes

@huggingface/hub 2.18.0 (November 27, 2026) is its newest release with breaking changes, 3 of them. The first: Signature changed uploadFile. Every breaking API change we have recorded in @huggingface/hub on npm: 14 breaking changes in 6 versions. Below, its 6 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `2.18.1`, released December 1, 2026. [Source repository](https://github.com/huggingface/huggingface.js)

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

- From [2.16.0](#v-2-16-0) to [2.18.0](#v-2-18-0): 13 breaking changes in 5 versions.

## @huggingface/hub 2.18.0 breaking changes

@huggingface/hub 2.18.0, released November 27, 2026: 3 breaking changes.

- **Signature changed** `uploadFile`  

Was function uploadFile(params: {repo: CommitParams\["repo"\]; file: URL | File | {path: string; content: ContentSource;} | CommitEditFileParams; commitTitle?: CommitParams\["title"\]; commitDescription?: CommitParams\["description"\]; hubUrl?... [npmjs.com](https://www.npmjs.com/package/@huggingface/hub/v/2.18.0)
- **Signature changed** `uploadFiles`  

Was function uploadFiles(params: {repo: CommitParams\["repo"\]; files: Array\<URL | File | {path: string; content: ContentSource;} | CommitEditFileParams>; commitTitle?: CommitParams\["title"\]; commitDescription?: CommitParams\["description"\]... [npmjs.com](https://www.npmjs.com/package/@huggingface/hub/v/2.18.0)
- **Signature changed** `uploadFilesWithProgress`  

Was function uploadFilesWithProgress(params: {repo: CommitParams\["repo"\]; files: Array\<URL | File | {path: string; content: ContentSource;} | CommitEditFileParams>; commitTitle?: CommitParams\["title"\]; commitDescription?... [npmjs.com](https://www.npmjs.com/package/@huggingface/hub/v/2.18.0)

## @huggingface/hub 2.17.9 breaking changes

@huggingface/hub 2.17.9, released October 22, 2026: 2 breaking changes.

- **Signature changed** `createRepo`  

Was function createRepo(params: {repo: RepoDesignation; visibility?: "public" | "private" | "protected"; private?: boolean; resourceGroupId?: string; license?: string; files?: Array<{content: ArrayBuffer | Blob; path: string;}>; sdk?... [npmjs.com](https://www.npmjs.com/package/@huggingface/hub/v/2.17.9)
- **Signature changed** `SpaceHardwareFlavor`  

Was type SpaceHardwareFlavor = "cpu-basic" | "cpu-upgrade" | "cpu-performance" | "cpu-xl" | "sprx8" | "zero-a10g" | "inf2x6" | "t4-small" | "t4-medium" | "l4x1" | "l4x4" | "l40sx1" | "l40sx4" | "l40sx8" | "a10g-small" | "a10g-large" |... [npmjs.com](https://www.npmjs.com/package/@huggingface/hub/v/2.17.9)

## @huggingface/hub 2.17.8 breaking changes

@huggingface/hub 2.17.8, released October 15, 2026: 1 breaking change.

- **Signature changed** `parseSafetensorsMetadata`  

Was function parseSafetensorsMetadata(params: {repo: RepoDesignation; path?: string; computeParametersCount: true; library?: string; hubUrl?: string; revision?: string; fetch?: typeof fetch;} & Partial\<CredentialsParams>)... [npmjs.com](https://www.npmjs.com/package/@huggingface/hub/v/2.17.8)

## @huggingface/hub 2.17.0 breaking changes

@huggingface/hub 2.17.0, released September 7, 2026: 3 breaking changes.

- **Signature changed** `uploadFile`  

Was function uploadFile(params: {repo: CommitParams\["repo"\]; file: URL | File | {path: string; content: ContentSource;}; commitTitle?: CommitParams\["title"\]; commitDescription?: CommitParams\["description"\]; hubUrl?: CommitParams\["hubUrl"\]... [npmjs.com](https://www.npmjs.com/package/@huggingface/hub/v/2.17.0)
- **Signature changed** `uploadFiles`  

Was function uploadFiles(params: {repo: CommitParams\["repo"\]; files: Array\<URL | File | {path: string; content: ContentSource;}>; commitTitle?: CommitParams\["title"\]; commitDescription?: CommitParams\["description"\]; hubUrl?... [npmjs.com](https://www.npmjs.com/package/@huggingface/hub/v/2.17.0)
- **Signature changed** `uploadFilesWithProgress`  

Was function uploadFilesWithProgress(params: {repo: CommitParams\["repo"\]; files: Array\<URL | File | {path: string; content: ContentSource;}>; commitTitle?: CommitParams\["title"\]; commitDescription?: CommitParams\["description"\]; hubUrl?... [npmjs.com](https://www.npmjs.com/package/@huggingface/hub/v/2.17.0)

## @huggingface/hub 2.16.3 breaking changes

@huggingface/hub 2.16.3, released September 2, 2026: 4 breaking changes.

- **Signature changed** `getQuantizationMultiplier`  

Was function getQuantizationMultiplier(tensorName: string, dtype: Dtype, quantConfig?: QuantizationConfig, expertDtype?: string): number; now function getQuantizationMultiplier(tensorName: string, dtype: Dtype, quantConfig?... [npmjs.com](https://www.npmjs.com/package/@huggingface/hub/v/2.16.3)
- **Signature changed** `isQuantizedTensor`  

Was function isQuantizedTensor(tensorName: string, quantConfig?: QuantizationConfig): boolean; now function isQuantizedTensor(tensorName: string, quantConfig?: QuantizationConfig, mlxQuantizedModules?: ReadonlySet\<string>): boolean. [npmjs.com](https://www.npmjs.com/package/@huggingface/hub/v/2.16.3)
- **Signature changed** `ModelConfig.quantization_config`  

Was quantization_config?: QuantizationConfig; now quantization_config?: QuantizationConfig | MlxQuantizationConfig. [npmjs.com](https://www.npmjs.com/package/@huggingface/hub/v/2.16.3)
- **Signature changed** `ModelConfig.text_config`  

Was text_config?: {quantization_config?: QuantizationConfig;} & Pick\<ModelConfig, "expert_dtype">; now text_config?: Pick\<ModelConfig, "expert_dtype" | "quantization" | "quantization_config">. [npmjs.com](https://www.npmjs.com/package/@huggingface/hub/v/2.16.3)

## @huggingface/hub 2.16.0 breaking changes

@huggingface/hub 2.16.0, released August 25, 2026: 1 breaking change.

- **Signature changed** `CommitParams`  

Was type CommitParams = {title: string; description?: string; repo: RepoDesignation; operations: CommitOperation\[\]; branch?: string; parentCommit?: string; isPullRequest?: boolean; hubUrl?: string; useWebWorkers?: boolean | {minSize?... [npmjs.com](https://www.npmjs.com/package/@huggingface/hub/v/2.16.0)

## Related packages

- [@huggingface/inference](https://since.dev/packages/npm/@huggingface/inference.md)
- [@huggingface/transformers](https://since.dev/packages/npm/@huggingface/transformers.md)

## 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.
