Skip to content

Bump next from 16.2.1 to 16.2.2#2

Merged
NiveditJain merged 1 commit into
open-source-cleanupfrom
dependabot/bun/next-16.2.2
Apr 6, 2026
Merged

Bump next from 16.2.1 to 16.2.2#2
NiveditJain merged 1 commit into
open-source-cleanupfrom
dependabot/bun/next-16.2.2

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot Bot commented on behalf of github Apr 6, 2026

Bumps next from 16.2.1 to 16.2.2.

Release notes

Sourced from next's releases.

v16.2.2

[!NOTE] This release is backporting bug fixes. It does not include all pending features/changes on canary.

Core Changes

  • backport: Move expanded adapters docs to API reference (#92115) (#92129)
  • Backport: TypeScript v6 deprecations for baseUrl and moduleResolution (#92130)
  • [create-next-app] Skip interactive prompts when CLI flags are provided (#91840)
  • next.config.js: Accept an option for serverFastRefresh (#91968)
  • Turbopack: enable server HMR for app route handlers (#91466)
  • Turbopack: exclude metadata routes from server HMR (#92034)
  • Fix CI for glibc linux builds
  • Backport: disable bmi2 in qfilter #92177
  • [backport] Fix CSS HMR on Safari (#92174)

Credits

Huge thanks to @​nextjs-bot, @​icyJoseph, @​ijjk, @​gaojude, @​wbinnssmith, @​lukesandberg, and @​bgw for helping!

Commits

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Apr 6, 2026
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 6, 2026

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Free

Run ID: ea2cd7a9-1a36-4adc-aee1-ad76d4ffb350

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Comment @coderabbitai help to get the list of available commands and usage tips.

@dependabot dependabot Bot force-pushed the dependabot/bun/next-16.2.2 branch from dc578f5 to 4076e63 Compare April 6, 2026 04:24
Bumps [next](https://github.com/vercel/next.js) from 16.2.1 to 16.2.2.
- [Release notes](https://github.com/vercel/next.js/releases)
- [Changelog](https://github.com/vercel/next.js/blob/canary/release.js)
- [Commits](vercel/next.js@v16.2.1...v16.2.2)

---
updated-dependencies:
- dependency-name: next
  dependency-version: 16.2.2
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot force-pushed the dependabot/bun/next-16.2.2 branch from 4076e63 to 241a629 Compare April 6, 2026 05:21
@NiveditJain NiveditJain merged commit 237fdd3 into open-source-cleanup Apr 6, 2026
1 check passed
@dependabot dependabot Bot deleted the dependabot/bun/next-16.2.2 branch April 6, 2026 05:25
NiveditJain added a commit that referenced this pull request Apr 30, 2026
* [docs] sanitize JSX attribute quotes in auto-translated MDX

The German translator periodically emits `<Tab title="Tab „Richtlinien"">`
where it intends `„…"` typographic quotes but uses ASCII `"` for the
closing — the inner straight `"` terminates the JSX attribute and the
real attribute close becomes a stray `"` before `>`, which trips
`mintlify validate` with `Unexpected character "`.

PR #229 fixed this once by hand on `docs/de/dashboard.mdx`. The next
auto-translation run regenerated the same broken markup, so the same
parse error landed on `main` again after #246.

Make it stick:

- `scripts/translate-docs/mdx-translator.ts` adds `sanitizeJsxAttributes`,
  which strips stray trailing ASCII `"` after a JSX attribute close and
  drops unmatched typographic opening quotes (`„`, `"`, `«`, `‹`, `「`,
  `『`) inside the same value. Matched pairs (e.g. `「ポリシー」`) are
  preserved. Wired into `translateMdxPage` ahead of `rewriteInternalLinks`.
- `scripts/translate-docs/translator.ts` extends rule #2 of the system
  prompt to forbid ASCII `"` inside JSX attribute values entirely, so
  the LLM is less likely to produce the pattern in the first place.
- `__tests__/scripts/translate-docs/mdx-translator.test.ts` covers the
  exact `de/dashboard.mdx` failure plus self-close, multi-attribute,
  matched typographic pairs, empty-value, and multiple-on-one-line cases.
- `docs/de/dashboard.mdx` drops the inner German quotes from the two
  `<Tab title>` attributes (mirrors #229) so CI on `main` goes green
  immediately rather than waiting for the next translation cycle.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

* [docs] address CodeRabbit review on sanitizeJsxAttributes

Two findings on PR #247:

1. mdx-translator.ts:50 — `cleaned.split(open).join("")` removed *every*
   occurrence of an opener when `opens > closes`, so a value containing
   one matched typographic pair plus one stray opener (e.g.
   `„Foo“ und „Bar`) lost the matched pair too. Fix: drop only the
   surplus = opens - closes openers, scanning from the right with
   `lastIndexOf` so the leftmost matched pair is preserved.

2. mdx-translator.test.ts — add a regression test for that mixed case
   (one matched „…“ pair + one dangling „) so the bug above can't
   recur.

Also drop the English curly “…” pair from the openings list. U+201C
is both the German closer and the English-curly opener, so processing
the English pair after the German pair would strip the very German
closer we just preserved. The remaining pairs (German, French ×2,
Japanese ×2) all have unambiguous openers.

1177 unit tests pass (was 1176 — the new mixed-case test is the +1).

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant