Skip to content

chore(deps): update dependency @sanity/pkg-utils to v14 - #61

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/sanity-pkg-utils-14.x
Open

renovate[bot] wants to merge 1 commit into
mainfrom
renovate/sanity-pkg-utils-14.x

Conversation

@renovate

@renovate renovate Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
@sanity/pkg-utils (source) ^13.0.2 → ^14.3.3 age confidence

Release Notes

sanity-io/pkg-utils (@​sanity/pkg-utils)

v14.3.3

Compare Source

Patch Changes

v14.3.2

Compare Source

Patch Changes

v14.3.1

Compare Source

Patch Changes

v14.3.0

Compare Source

Minor Changes
  • #​3850 02e0984 Thanks @​stipsan! - feat: experimental experimental: {hoistCssImportsToEntry: true} option

    CSS imports that Rolldown leaves in content-hashed chunks (such as
    import "@portabletext/plugin-table/ui/styles.css") move into the entry chunks that can load them,
    so those chunks stop being side-effectful and drop out of the generated package.json#sideEffects.
    The source keeps each CSS import next to its component; only the ESM output changes. Type-only
    imports don't count, a lazy chunk's CSS loads with the entries that can import() it, and hoisted
    imports go after the CSS imports an entry already has, such as bundle.css.
    DEBUG=sanity:side-effects reports where each import was hoisted from.

Patch Changes

v14.2.2

Compare Source

Patch Changes
  • #​3845 e12715a Thanks @​squiggler-app! - fix(deps): update dependency @​babel/core to ^7.29.16

  • #​3849 d910e82 Thanks @​stipsan! - fix: the generated sideEffects no longer changes the next build

    Rolldown reads the nearest package.json#sideEffects for every module it bundles — the package's
    own sources included, not just dependencies. The field the build writes describes the emitted
    files (./dist/style.css, ./dist/index.js, or false), so applied to the sources it marked
    every one of them side-effect free, and the build after the one that wrote the field dropped the
    side-effect-only modules (import './register') the first build kept, changing the output down
    to the hashed chunk names. The sources are now bundled as if the field were absent, so building
    twice gives the same output whether or not the field is already committed. Dependencies keep
    their own sideEffects metadata, and an explicit treeshake.moduleSideEffects still decides.

  • Updated dependencies [e12715a, d910e82]:

v14.2.1

Compare Source

Patch Changes

v14.2.0

Compare Source

Minor Changes
  • #​3833 4aa99e6 Thanks @​stipsan! - feat: DEBUG=sanity:side-effects explains the generated sideEffects

    Set DEBUG=sanity:side-effects when running tsdown or pkg build to log why each file is
    listed in package.json#sideEffects (a CSS asset, a .css.js chunk, or a CSS import in its
    emitted code), and why each chunk got an injected style.css / bundle.css import. Each reason
    is traced to the module chain from an entry down to the CSS import, and shared content-hashed
    chunks are flagged. @sanity/pandacss-tsdown-plugin exposes the reasons for its injected imports
    on api.cssInjections.

Patch Changes

v14.1.1

Compare Source

Patch Changes
  • #​3818 350d18b Thanks @​stipsan! - fix: don't rewrite package.json#sideEffects when outDir is outside the package

    Calling build() with an outDir outside the package directory (for example a test that builds into os.tmpdir()) wrote paths like ../../tmp/…/styles.css into sideEffects, dropping the real ./dist/… entries. Such builds now leave sideEffects untouched.

  • Updated dependencies [350d18b]:

v14.1.0

Compare Source

Minor Changes
  • #​3805 f867d0e Thanks @​stipsan! - feat: auto-generate package.json#sideEffects from the build

    @sanity/tsdown-config now rewrites sideEffects after every build from the CSS assets,
    .css.js chunks, and JS files that import stylesheets the build produced. When nothing is
    side-effectful the field is set to false. Opt out with sideEffects: false to leave the
    field untouched. @sanity/pkg-utils forwards the same option from package.config.ts.

Patch Changes

v14.0.0

Compare Source

Major Changes
  • #​3780 45cd20c Thanks @​stipsan! - Remove vanilla-extract support.

    BREAKING: the vanillaExtract option and the PackageVanillaExtractOptions type are gone, and pkg build no longer compiles .css.ts files. A package.config.ts that still sets vanillaExtract fails with a link to the migration notes, even with legacyChecks: false.

    To migrate, remove vanillaExtract from package.config.ts, then either:

    • keep vanilla-extract and add one of its own bundler plugins to plugins, for example plugins: [vanillaExtractPlugin()] from @vanilla-extract/rollup-plugin. The plugin decides how the CSS is emitted and imported; pkg-utils no longer injects import "<pkg>/bundle.css", emits the bundle-css.js shim or writes the ./bundle.css export for it, or
    • move the styles to plain CSS or CSS modules with the css option, which keeps the conditional CSS export. css: {fileName: 'bundle.css'} keeps the ./bundle.css subpath.

    See MIGRATE.md.

    The @sanity/vanilla-extract-integration, @sanity/vanilla-extract-rolldown-plugin, @sanity/vanilla-extract-tsdown-plugin and @sanity/vanilla-extract-vite-plugin packages are deprecated and no longer maintained.

Patch Changes

v13.0.20

Compare Source

Patch Changes

v13.0.19

Compare Source

Patch Changes

v13.0.18

Compare Source

Patch Changes

v13.0.17

Compare Source

Patch Changes
  • #​3713 ccf0d44 Thanks @​squiggler-app! - fix(deps): update dependency browserslist to ^4.29.5

  • #​3731 0a83842 Thanks @​stipsan! - fix(deps): update the rolldown/tsdown toolchain to latest (tsdown ^0.23.7, rolldown ~1.3.1, vite ^8.3.8, @​vitejs/plugin-react ^6.3.0, @​rolldown/plugin-babel ^0.3.1)

    • @sanity/pkg-utils passes dts.tsc.newContext and dts.dtsOnly instead of the options rolldown-plugin-dts 0.29/0.30 deprecated, and drops a leftover top-level newContext so the two levels cannot conflict. A declaration-only build that sets dts.entry applies that filter to the build inputs and omits entry, because rolldown-plugin-dts 0.30 rejects entry together with dtsOnly. A leading ./ on those patterns, as in exports.source, is ignored so the filter still matches.
    • @sanity/tsdown-config's TSDoc check includes every @types/* package again when the tsconfig doesn't set types. API Extractor 7.60 bundles TypeScript 6, which defaults types to [], so declarations that use an ambient global such as React.JSX.Element crashed the check with "Unable to follow symbol". The package now depends on API Extractor ^7.60.0; 7.59 bundles TypeScript 5.9, which treats types: ['*'] as a package name.
    • PackageCssOptions no longer includes tsdown's new css: false value.
    • Direct tsdown builds that keep the legacy main/module fields now get "types": "./dist/index.d.cts" instead of ./dist/index.d.ts, matching main. tsdown always preferred the CJS declarations for this field; rolldown-plugin-dts 0.30 no longer hides them. pkg build writes the hand-written types value back after the canonical build, so packages built with @sanity/pkg-utils keep that field.
  • Updated dependencies [ccf0d44, 34fbc5c, 0a83842]:

v13.0.16

Compare Source

Patch Changes

v13.0.15

Compare Source

Patch Changes

v13.0.14

Compare Source

Patch Changes

v13.0.13

Compare Source

Patch Changes

v13.0.12

Compare Source

Patch Changes

v13.0.11

Compare Source

Patch Changes

v13.0.9

Compare Source

Patch Changes

v13.0.8

Compare Source

Patch Changes

v13.0.7

Compare Source

Patch Changes

v13.0.6

Compare Source

Patch Changes

v13.0.5

Compare Source

Patch Changes

v13.0.4

Compare Source

Patch Changes

v13.0.3

Compare Source

Patch Changes

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • "before 3am on the first day of the month"
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate using a curated preset maintained by Sanity. View repository job log here


Note

Medium Risk
Major bump to the package build toolchain only; no runtime source changes, but build output or generated manifest fields could shift until CI/local build is verified.

Overview
Bumps @sanity/pkg-utils from ^13.0.2 to ^14.3.3 in root package.json and refreshes pnpm-lock.yaml so dev/build tooling matches the new major line (Rolldown 1.3.4, tsdown 0.23.7, updated @sanity/tsdown-config, Babel 7.29.16, and related transitive bumps). The lockfile also drops packages that v14 no longer pulls in (e.g. vanilla-extract integration and older yuku split packages).

package.config.ts is unchanged and does not use removed options like vanillaExtract; pkg-utils build / pkg-utils check --strict remain the release path. Reviewers should confirm a clean pnpm build and that published package.json metadata (e.g. sideEffects) still looks right under v14’s build behavior.

Reviewed by Cursor Bugbot for commit 92332d7. Bugbot is set up for automated code reviews on this repo. Configure here.

@renovate
renovate Bot requested review from a team and mariuslundgard and removed request for a team December 1, 2026 02:30
@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatednpm/​@​sanity/​pkg-utils@​13.0.2 ⏵ 14.3.398 +510010098 +1100

View full report

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants