Packages

@next/mdx

16.4.6 · 9 Nov 2026MIT2.2M / weekRepositoryHomepagenpmAtom feed

Your version

12.0.4

15 Nov 2021Where it was published

12.3.7 is the newest release of 12.x.

In short

17 new1 faster24 fixed27 changed35 internal

Release note

Core Changes

  • Update middleware eval checks

  • Optimize the SSR middleware runtime size

  • Improve error handling in the SSR middleware

  • Ensure decode error in minimal mode responds with 400 not 500

  • Update ServerlessPlugin to use chunkGraph

  • Fix custom 404 page when concurrentFeatures is enabled

  • Upgrade React alpha and experimental dependencies to latest

  • Change disabled SWC message to Log.info

  • Add render prop support to <Main>

  • Change .web extension of document page to part of path

  • Enable code splitting for the web runtime build

  • Give priority to document.title over h1 when announcing page change

  • Add webpack5 namespace to fix type errors

  • Add warning when image has unused sizes prop

  • Add experimental next-swc jest transform

  • Support --cache-strategy ESLint argument (fixes #29926)

  • Fixes #31060: NullReferenceException

  • Use loader-utils 2 for resolve-url-loader to fix ./data: urls in sass

  • Update reason message for isolatedModules and esModuleInterop

  • Add input/output test for 30091

  • Fix useId mismatches on hydration

  • Do not hide body when concurrentFeatures is enabled

  • Fix middleware i18n rewrites

  • next-swc: Add displayNameAndId of styled-components

  • Use require.resolve to detect "framework" packages (fix pnpm)

  • Add all cases where webpack5 type is used

  • Add test for styled-components SWC transform disabled

  • Add initial standalone build handling

  • middleware: Expose CryptoKey and globalThis.CryptoKey

  • Disable styled-components displayName in production

  • 31013: Add base path to preflight request url

  • Share collections in middleware vm context

  • Support assetPrefix specific protocol

  • Upgrade webpack

  • Update swc

  • Run middleware parser handler only for middleware modules

  • Update swc minifier

  • Fix process.env overriden in web runtime

  • Replaced useless let

  • Experimental next/jest config helper

  • Correctly assess node equality when nonce attribute is present

  • bugfix/i18n Do not support the second locale in the pathname

  • Ensure next/jest is published

  • Update swc for jsc.paths

  • next/jest: Ensure typeof window is not transformed in jsdom environment

  • Output where preference is saved

  • Upgrade webpack

  • Ensure asPath is correctly normalized in minimalMode with i18n

  • Automatically using different port to start dev server for non-explicit port

  • Resolve stream piper on complete shell for renderToReadableStream

  • middleware: Fetch resource may be a URL instance (or any stringifiable value)

  • Ensure NODE_ENV is replaced correctly with swc

  • Add support for jsxImportSource in tsconfig/jsconfig

  • 30724: Clear "x-middleware-next" header when chaining middlewares

  • Add eslint rule to prevent importing next/server outside of _middleware

  • Don't proxy middleware if host is the same

  • Add support for legacy decorators through tsconfig/jsconfig

  • Update swc & fix styled-jsx

  • Show (middleware only) when a middleware is added to the compiler

  • Add minify debug env var to investigate minifier bugs

  • Add filename to babel warning about anonymous function default exports

  • Refactor server/render for SSR streaming

  • Remove moment locale replace from craCompat as it's a default in Next.js 12

  • Fix basePath replacing server-side and normalizeLocalePath() when path is empty string

  • Close stream when fatal error occurs

  • middleware: Add request referrer support

Misc Changes

  • Fix test-pnp stalling in CI

  • Fix failed-loading-swc link in Troubleshooting

  • Ensure Git feature.manyFiles is enabled

  • Ensure swc dep is copied for isolated tests

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.