Skip to content

Drop support for Next.js below v16 - #1815

Merged
askoufis merged 2 commits into
masterfrom
drop-nextjs-below-16
Nov 22, 2026
Merged

askoufis merged 2 commits into
masterfrom
drop-nextjs-below-16

Conversation

@askoufis

@askoufis askoufis commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

A few factors have lead to this:

  • Next v16 was released more than 1 year ago
  • v16 makes up almost 80% of next downloads (source)
  • Installing and testing against older version slows down CI a lot and makes it significantly flakier than it otherwise would be.

Fixtures for Next v12 and v13 have been removed, along with a small amount of code that was only used for compatibility with older versions.

Note that turbopack support is still considered experimental. unstable_turbopack.mode: 'auto' is now equivalent to 'on'. This may change in the future, but I figured it wasn't worth breaking the config when most consumers.

askoufis and others added 2 commits November 22, 2026 18:28
BREAKING CHANGE: `next` peer dependency is now `^16.0.0`.

- Bump `next` peer/dev dependencies to `^16.0.0` in `@vanilla-extract/next-plugin` and `@vanilla-extract/turbopack-plugin`
- Remove `next` version detection and the `semver` dependency; `unstable_turbopack.mode: 'auto'` now behaves like `'on'`
- Update `findPagesDir()` and `lazyPostCSS()` calls to the Next.js 16 signatures
- Remove the `next-12-pages-router` and `next-13-app-router` fixtures and their servers in `tests/servers.ts`
- Update `examples/next`, docs, `pnpm-lock.yaml`, and add a `major` changeset
@changeset-bot

changeset-bot Bot commented Nov 22, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 5e325a0

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@vanilla-extract/next-plugin Major
@vanilla-extract/turbopack-plugin Major

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@askoufis
askoufis merged commit cb1f150 into master Nov 22, 2026
9 of 10 checks passed
@askoufis
askoufis deleted the drop-nextjs-below-16 branch November 22, 2026 10:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant