@sanity/pkg-utils breaking changes
@sanity/pkg-utils 14.0.0 (November 20, 2026) is its newest release with breaking changes, 14 of them. The first: Removed PackageVanillaExtractOptions. Every breaking API change we have recorded in @sanity/pkg-utils on npm: 76 breaking changes in 9 versions. Below, its 9 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 14.3.4, released December 1, 2026. Source repository
Its 13.0.0 release drops Node.js 25. Node.js end of life dates.
- From 13.0.17 to 14.0.0: 14 breaking changes in 1 version.
- From 11.0.6 to 14.0.0: 75 breaking changes in 8 versions.
@sanity/pkg-utils 14.0.0 breaking changes
- Removed
PackageVanillaExtractOptions
The PackageVanillaExtractOptions type is removed along with vanilla-extract support. Stop importing or referencing it. npmjs.com - Removed
pkg build --clean
Cleaning is on by default now, so delete the --clean flag; --no-clean skips it. github.com - Removed
process.env.PKG_FILE_PATH
Use import.meta.url instead, which works in both output formats. github.com - Removed
process.env.PKG_FORMAT
The process.env.PKG_FORMAT build-time constant is gone. Use conditional package.json#imports instead. github.com - Removed
process.env.PKG_RUNTIME
The process.env.PKG_RUNTIME build-time constant is gone. Use conditional package.json#imports instead. github.com - Removed
rollup.optimizeLodash
The lodash import optimization is gone, including the implicit auto-enable when lodash is a dependency. Drop lodash or import from lodash-es. github.com - Removed
vanillaExtract
The vanillaExtract option is gone, and a package.config.ts that still sets it fails. Remove it, then use a vanilla-extract bundler plugin in plugins or move the styles to plain CSS or CSS modules with the css option. github.com - Behavior changed
engines.node is now ^22.18.0 || >=24.11.0 for running builds. Published output is unaffected. github.com - Behavior changed
_chunks-[format] folders are gone and shared chunks are content-hashed. github.com - Behavior changed
pkg build no longer compiles .css.ts files, no longer injects the bundle.css import, and no longer emits the bundle-css.js shim or the ./bundle.css export for vanilla-extract. Move styles to a vanilla-extract bundler plugin or to the css... github.com - Behavior changed
extract.bundledPackages
Inlining only the types of an external dependency, the v11 extract.bundledPackages pattern, has no replacement. github.com - Behavior changed
pkg check
pkg check runs publint on the packed package instead of the esbuild resolution checks. Fix what it reports. github.com - Behavior changed
tsdown.config
pkg build never loads tsdown.config.* files; package.config.ts is the only config source. github.com - Signature changed
PkgConfigOptions.vanillaExtract
Was vanillaExtract?: boolean | PackageVanillaExtractOptions$1; now vanillaExtract?: never. npmjs.com
@sanity/pkg-utils 13.0.17 breaking changes
- Removed
newContext
The leftover top-level newContext option is no longer read. Move it under dts.tsc.newContext. github.com - Behavior changed
Direct tsdown builds that keep the legacy main and module fields now set types to ./dist/index.d.cts instead of ./dist/index.d.ts. Packages built with @sanity/pkg-utils keep their hand-written types value. github.com - Signature changed
PkgConfigOptions.css
Was css?: PackageCssOptions; now css?: PackageCssOptions$1. npmjs.com
@sanity/pkg-utils 13.0.1 breaking changes
- Behavior changed
Builds fail whenever a development export condition is not removed by publishConfig.exports, including when strict validation is disabled. Remove the development condition from publishConfig.exports before building. github.com
@sanity/pkg-utils 13.0.0 breaking changes
- Removed
Node.js 25 can no longer run these packages or pkg build. Use Node ^22.18.0, ^24.11.0, or >=26.0.0. github.com - Removed
dts.cjsReexport
tsdown 0.23 removes dts.cjsReexport. Remove it from your config. github.com - Removed
dts.tsgo
Replace dts.tsgo: true with dts.generator: 'tsgo'. github.com - Renamed
create
Rename each custom language's create hook to createVolarPlugins. github.com - Renamed
deps.onlyAllowBundle
Replace onlyAllowBundle with onlyBundle. github.com - Renamed
deps.skipNodeModulesBundle
Replace skipNodeModulesBundle: true with neverBundle: true. github.com - Renamed
dts.volarPlugins
Replace dts.volarPlugins with dts.customLanguages. github.com - Behavior changed
A type the source left unexported can become part of the published API. Export the types you mean to publish and tag them @public. github.com
@sanity/pkg-utils 12.3.3 breaking changes
- Signature changed
PkgConfigOptions.reactCompiler
Was reactCompiler?: boolean | ReactCompilerOptions$1; now reactCompiler?: boolean | ReactCompilerOptions. npmjs.com
@sanity/pkg-utils 12.1.0 breaking changes
- Removed
PkgTsdocOptions.customTags
PkgTsdocOptions.customTags was removed in @sanity/pkg-utils 12.1.0 npmjs.com - Removed
PkgTsdocOptions.rules
PkgTsdocOptions.rules was removed in @sanity/pkg-utils 12.1.0 npmjs.com - Removed
TSDocCustomTag.allowMultiple
TSDocCustomTag.allowMultiple was removed in @sanity/pkg-utils 12.1.0 npmjs.com - Removed
TSDocCustomTag.name
TSDocCustomTag.name was removed in @sanity/pkg-utils 12.1.0 npmjs.com - Removed
TSDocCustomTag.syntaxKind
TSDocCustomTag.syntaxKind was removed in @sanity/pkg-utils 12.1.0 npmjs.com - Renamed
inject.nodeCompat
The conditional CSS export now lives in the exports option, separate from inject. Move any inject.nodeCompat setting to exports.nodeCompat. github.com - Signature changed
PkgConfigOptions.tsdoc
Was tsdoc?: false | PkgTsdocOptions; now tsdoc?: boolean | PackageTsdocOptions$1. npmjs.com - Signature changed
PkgRuleLevel
Was type PkgRuleLevel = "error" | "warn" | "info" | "off"; now type PkgRuleLevel = PackageTsdocRuleLevel$1. npmjs.com - Signature changed
PkgTsdocOptions
Was interface PkgTsdocOptions; now type PkgTsdocOptions = PackageTsdocOptions$1. npmjs.com - Signature changed
TSDocCustomTag
Was interface TSDocCustomTag; now type TSDocCustomTag = PackageTsdocCustomTag$1. npmjs.com
Older versions
3 older versions, each with its first changes. Sign up to see every change
Show 3 older versions
@sanity/pkg-utils 12.0.1 breaking changes
- Behavior changed
exports
Generated package export conditions are now written into both exports and publishConfig.exports, and the user-authored order of each map is preserved on later builds. Plain-string entries keep their compact shape. github.com - Default changed
exports.enabled
The exports.enabled option now defaults to true instead of 'local-only', so package.json is rewritten even when CI=true. Set exports.enabled explicitly to keep the previous gating. github.com
@sanity/pkg-utils 12.0.0 breaking changes
- Removed
Run builds on Node 22.18 or later, or 24.11 or later. The published output is unaffected. github.com - Removed
dts: 'api-extractor'
Delete the dts: 'api-extractor' option from package.config.ts, because tsdown generates the types. The build fails if it is still set. github.com
And 34 more in this version.
@sanity/pkg-utils 11.0.6 breaking changes
- Renamed
The on-disk shim behind the ./bundle.css export moves to bundle-css.js, and the node and default targets now point to it. Code that imports the old dist/bundle.css.js path directly must switch to dist/bundle-css.js. github.com
Related packages
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The 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.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.