Skip to content

fix: upgrade node to v22#2441

Merged
jonaslagoni merged 17 commits intoasyncapi:nextfrom
jonaslagoni:upgrade_node_2
Feb 10, 2026
Merged

fix: upgrade node to v22#2441
jonaslagoni merged 17 commits intoasyncapi:nextfrom
jonaslagoni:upgrade_node_2

Conversation

@jonaslagoni
Copy link
Member

Description

Related Issue

Checklist

  • The code follows the project's coding standards and is properly linted (npm run lint).
  • Tests have been added or updated to cover the changes.
  • Documentation has been updated to reflect the changes.
  • All tests pass successfully locally.(npm run test).

Additional Notes

@netlify
Copy link

netlify bot commented Feb 10, 2026

Deploy Preview for modelina canceled.

Name Link
🔨 Latest commit 9eba04a
🔍 Latest deploy log https://app.netlify.com/projects/modelina/deploys/698b8d52d86d70000887cbca

jonaslagoni and others added 16 commits February 10, 2026 19:06
- Upgrade next from 13.4.3 to 14.2.35
- Replace `next export` CLI with `output: 'export'` in next.config.js
- Add `images: { unoptimized: true }` for static export compatibility
- Update export script in package.json to use `next build`

Co-Authored-By: Claude <noreply@anthropic.com>
- Upgrade next to 15.5.12, react/react-dom to 19.x
- Upgrade TypeScript to 5.x, @types/node to 20, @types/react to latest
- Upgrade react-markdown to v9 with rehype-raw@7, rehype-slug@6, remark-gfm@4
- Upgrade @monaco-editor/react to 4.7.0 and framer-motion to latest for React 19 compat
- Fix React 19 JSX namespace in Heading.tsx
- Fix react-markdown v9 code component API (remove `inline` prop)
- Move api utility functions from pages/api/functions/ to src/api-functions/
  to fix Next.js 15 API route validation
- Fix MonacoEditorWrapper typescript type for deprecated API

Co-Authored-By: Claude <noreply@anthropic.com>
- Upgrade next to 16.1.6, @next/bundle-analyzer to 16.x
- Remove --no-lint flag from build script (removed in Next.js 16)
- eslint.ignoreDuringBuilds already configured in next.config.js
- eslint-config-next stays at v15 (v16 requires ESLint 9, separate concern)

Co-Authored-By: Claude <noreply@anthropic.com>
- Remove legacyBehavior from Link components in MobileNavMenu.tsx
- Remove nested <a> tags inside Link (not needed in Next.js 13+)
- Remove unnecessary passHref from Link in Button.tsx

Co-Authored-By: Claude <noreply@anthropic.com>
React 19 removed defaultProps support for function components,
causing onChange to be undefined and crash in debounce().
Move defaults to destructuring parameter defaults instead.

Co-Authored-By: Claude <noreply@anthropic.com>
- Node 16 → 20 (required by Next.js 16)
- NPM 8 → 10 (matches Node 20)
- publish directory .next → out (static export with output: 'export')

Co-Authored-By: Claude <noreply@anthropic.com>
@types/node@22 uses syntax that TypeScript 4.9 cannot parse, causing
CI build failures. Upgrade TypeScript to 5.6 and fix type errors:

- ConstrainedTypes.ts: cast Set iterator value (unknown → string)
- TypeScriptInputProcessor.ts: cast between ts.Program versions
  (project TS vs typescript-json-schema bundled TS)

Co-Authored-By: Claude <noreply@anthropic.com>
@types/node@22 uses syntax that TypeScript 4.9 cannot parse, causing
CI build failures. Upgrade TypeScript to 5.6 and fix type errors:

- ConstrainedTypes.ts: cast Set iterator value (unknown → string)
- TypeScriptInputProcessor.ts: cast between ts.Program versions
  (project TS vs typescript-json-schema bundled TS)

Co-Authored-By: Claude <noreply@anthropic.com>
integrate-with-next:
- Next.js 15 → 16, React 18 → 19, TypeScript 4.9 → 5.6
- Remove unused @next/font dependency
- Upgrade @testing-library/dom to v10, jest-dom to v6
- Upgrade @types/node to 22, @types/react to 19
- Update test snapshot for React 19

integrate-with-react:
- React 18 → 19
- Upgrade @testing-library/react to v16, user-event to v14

Co-Authored-By: Claude <noreply@anthropic.com>
- Remove cross-env from test script (CI sets CI=true natively)
- Regenerate lockfile after ts-jest removal

Co-Authored-By: Claude <noreply@anthropic.com>
- Upgrade TypeScript from 4.6.4 to ~5.6.0
- Add cross-env as devDependency (was used but not listed)
- Add engines field requiring Node >=22
- Regenerate package-lock.json

Co-Authored-By: Claude <noreply@anthropic.com>
@sonarqubecloud
Copy link

@jonaslagoni jonaslagoni merged commit 7a7454f into asyncapi:next Feb 10, 2026
16 checks passed
@jonaslagoni jonaslagoni deleted the upgrade_node_2 branch February 10, 2026 20:10
@asyncapi-bot
Copy link
Contributor

🎉 This PR is included in version 6.0.0-next.6 🎉

The release is available on:

Your semantic-release bot 📦🚀

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.

2 participants