N

next-upgrade

Обновление Next.js по гайдам и codemod

Обновляет Next.js до последней версии по официальным руководствам по миграции и codemod. Нужен при смене версий, запуске codemod и переходе между мажорными релизами.

Установка

$npx skills add https://github.com/openai/plugins/tree/5fd93af4cd0c623e020d0cc7e9ce178b4ac1f70f/plugins/vercel/skills/next-upgrade

Ставит скилл в текущий проект, CLI спросит, для каких агентов. С флагом -g - для всех проектов. Нужен Node.js.

Описание автора

Upgrade Next.js to the latest version following official migration guides and codemods. Use when upgrading Next.js versions, running codemods, or migrating between major releases.

Upgrade Next.js

Upgrade the current project to the latest Next.js version following official migration guides.

Instructions

  1. Detect current version: Read package.json to identify the current Next.js version and related dependencies (React, React DOM, etc.)

  2. Fetch the latest upgrade guide: Use WebFetch to get the official upgrade documentation:

  3. Determine upgrade path: Based on current version, identify which migration steps apply. For major version jumps, upgrade incrementally (e.g., 13 → 14 → 15).

  4. Run codemods first: Next.js provides codemods to automate breaking changes:

    npx @next/codemod@latest <transform> <path>

    Common transforms:

    • next-async-request-api - Updates async Request APIs (v15)
    • next-request-geo-ip - Migrates geo/ip properties (v15)
    • next-dynamic-access-named-export - Transforms dynamic imports (v15)
  5. Update dependencies: Upgrade Next.js and peer dependencies together:

    npm install next@latest react@latest react-dom@latest
  6. Review breaking changes: Check the upgrade guide for manual changes needed:

    • API changes (e.g., async params in v15)
    • Configuration changes in next.config.js
    • Deprecated features being removed
  7. Update TypeScript types (if applicable):

    npm install @types/react@latest @types/react-dom@latest
  8. Test the upgrade:

    • Run npm run build to check for build errors
    • Run npm run dev and test key functionality

Ещё из openai/plugins 536

  1. Aagents-sdkв один кликАгенты на Cloudflare Workers через Agents SDKopenai/plugins★ 7,3 тыс.
  2. Aandroid-emulator-qaв один кликПроверка Android-сценариев в эмулятореopenai/plugins★ 7,3 тыс.
  3. Bbuild-chatgpt-appв один кликПриложения ChatGPT на Apps SDKopenai/plugins★ 7,3 тыс.
  4. Cchatgpt-app-submissionв один кликПодготовка ChatGPT-приложения к ревьюopenai/plugins★ 7,3 тыс.
  5. Ccloudflareв один кликПлатформа Cloudflare: Workers, D1, R2openai/plugins★ 7,3 тыс.
  6. Eearnings-previewв один кликПревью отчётности компанииopenai/plugins★ 7,3 тыс.
  7. Nnotion-knowledge-captureв один кликРешения из чатов в страницы Notionopenai/plugins★ 7,3 тыс.
  8. Nnotion-meeting-intelligenceв один кликПодготовка к встречам по Notionopenai/plugins★ 7,3 тыс.
  9. Nnotion-research-documentationв один кликРесёрч по Notion и сборка документацииopenai/plugins★ 7,3 тыс.
  10. Nnotion-spec-to-implementationв один кликИз спецификаций Notion в план и задачиopenai/plugins★ 7,3 тыс.
Все скиллы openai/plugins →

Похожие скиллы

  1. Nnextlevelbuilder/ui-ux-pro-max-skillДизайн интерфейсов для разных платформnextlevelbuilder/ui-ux-pro-max-skill★ 132,5 тыс.
  2. Aartifacts-builderв один кликСложные HTML-артефакты claude.aiComposioHQ/awesome-claude-skills★ 76,3 тыс.
  3. Aaccessibility-complianceв один кликДоступные интерфейсы по WCAG 2.2wshobson/agents★ 40,2 тыс.
  4. Zzarazhangrui/frontend-slidesАнимированные презентации в HTMLzarazhangrui/frontend-slides★ 30,1 тыс.
  5. Ffrontend-designв один кликОсмысленный визуальный дизайн интерфейсовanthropics/skills★ 179,4 тыс.
  6. FFullstack Dev SkillsНабор из 67 скиллов для фулстекаjeffallan/claude-skills★ 11,7 тыс.
  7. Wweb-artifacts-builderв один кликСборка сложных веб-артефактов claude.aianthropics/skills★ 179,4 тыс.
  8. Aangular-migrationв один кликМиграция с AngularJS на Angularwshobson/agents★ 40,2 тыс.
Все скиллы раздела «Фронтенд и сайты» →