Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade/nextjs 15 #2

Merged
merged 2 commits into from
Nov 8, 2024
Merged

Upgrade/nextjs 15 #2

merged 2 commits into from
Nov 8, 2024

Conversation

Mohmdev
Copy link
Owner

@Mohmdev Mohmdev commented Nov 8, 2024

This pull request includes various updates and improvements across different files, focusing on upgrading dependencies, refactoring code to use promises for parameters, and enhancing the handling of cookies. The most important changes are grouped by theme below.

Dependency Upgrades:

  • Upgraded @headlessui/react from ^1.6.1 to ^2.2.0 in package.json.
  • Upgraded next from ^14.0.0 to 15.0.3, react from ^18.2.0 to 19.0.0-rc-66855b96-20241106, and added babel-plugin-react-compiler 19.0.0-beta-63b359f-20241101 in package.json.
  • Updated @types/react and @types/react-dom to 19.0.0-rc.1 in package.json.

Configuration Changes:

  • Removed deprecated turbo and sassOptions configurations, and enabled reactCompiler in next.config.mjs.
  • Modified the dev script to use --turbopack in package.json.

Refactoring to Use Promises:

Cookie Handling Enhancements:

  • Updated src/lib/data/cookies.ts to use UnsafeUnwrappedCookies for handling cookies. [1] [2] [3]
  • Refactored src/lib/data/onboarding.ts to use await cookies() for setting cookies.

Minor Code Improvements:

  • Added DisclosurePanel import and replaced Disclosure.Panel with DisclosurePanel in src/modules/account/components/account-info/index.tsx. [1] [2] [3]
  • Updated useIntersection hook to accept RefObject<HTMLDivElement | null> in src/lib/hooks/use-in-view.tsx.

Copy link

vercel bot commented Nov 8, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
medusa-nextjs-2-0 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 8, 2024 8:05am

@Mohmdev Mohmdev merged commit 2b96667 into main Nov 8, 2024
2 of 3 checks passed
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