Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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:
@headlessui/react
from^1.6.1
to^2.2.0
inpackage.json
.next
from^14.0.0
to15.0.3
,react
from^18.2.0
to19.0.0-rc-66855b96-20241106
, and addedbabel-plugin-react-compiler
19.0.0-beta-63b359f-20241101
inpackage.json
.@types/react
and@types/react-dom
to19.0.0-rc.1
inpackage.json
.Configuration Changes:
turbo
andsassOptions
configurations, and enabledreactCompiler
innext.config.mjs
.dev
script to use--turbopack
inpackage.json
.Refactoring to Use Promises:
params
andsearchParams
across multiple files, such assrc/app/[countryCode]/(main)/account/@dashboard/addresses/page.tsx
,src/app/[countryCode]/(main)/account/@dashboard/orders/details/[id]/page.tsx
, and others. (src/app/[countryCode]/(main)/account/@dashboard/addresses/page.tsxL13-R15, src/app/[countryCode]/(main)/account/@dashboard/orders/details/[id]/page.tsxL27-R28, src/app/[countryCode]/(main)/categories/[...category]/page.tsxL44-R45, src/app/[countryCode]/(main)/collections/[handle]/page.tsxL53-R54, src/app/[countryCode]/(main)/order/confirmed/[id]/page.tsxL32-R33, src/app/[countryCode]/(main)/page.tsxL13-R19, src/app/[countryCode]/(main)/products/[handle]/page.tsxL46-R47, src/app/[countryCode]/(main)/results/[query]/page.tsxL12-R21, src/app/[countryCode]/(main)/store/page.tsxL11-R22)Cookie Handling Enhancements:
src/lib/data/cookies.ts
to useUnsafeUnwrappedCookies
for handling cookies. [1] [2] [3]src/lib/data/onboarding.ts
to useawait cookies()
for setting cookies.Minor Code Improvements:
DisclosurePanel
import and replacedDisclosure.Panel
withDisclosurePanel
insrc/modules/account/components/account-info/index.tsx
. [1] [2] [3]useIntersection
hook to acceptRefObject<HTMLDivElement | null>
insrc/lib/hooks/use-in-view.tsx
.