-
Notifications
You must be signed in to change notification settings - Fork 86
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
Next15 #279
Next15 #279
Conversation
This will also hopefully eventually address #49. For now, ironically, it adds even more unmet peer dependencies warnings |
a simple
|
After a few more pnpm updates, the state is the following:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Looks good to me! Reviewed everything up to 3b649cc in 1 minute and 29 seconds
More details
- Looked at
2400
lines of code in94
files - Skipped
1
files when reviewing. - Skipped posting
8
drafted comments based on config settings.
1. frontend/app/api/projects/[projectId]/traces/route.ts:7
- Draft comment:
The use ofPromise
forparams
in the function signature is unnecessary. Directly destructureparams
fromprops
without usingPromise
. This issue is present in multiple files. - Reason this comment was not posted:
Decided after close inspection that this draft comment was likely wrong and/or not actionable:
This is a Next.js API route, and in Next.js 13+, dynamic route parameters can be async. The Promise wrapper around params is actually correct for Next.js API routes with dynamic segments. The comment is suggesting a change that would break the functionality.
Maybe there's a better way to handle async params that I'm not aware of? Maybe this is an older version of Next.js where this pattern isn't needed?
The Promise type is part of Next.js's API route specification for dynamic routes. The current implementation follows Next.js best practices.
The comment should be deleted because it's suggesting a change that would break the functionality. The Promise type is correct and necessary here.
2. frontend/app/api/projects/[projectId]/traces/metrics/route.ts:7
- Draft comment:
The use ofPromise
forparams
in the function signature is unnecessary. Directly destructureparams
fromprops
without usingPromise
. This issue is present in multiple files. - Reason this comment was not posted:
Marked as duplicate.
3. frontend/app/api/projects/[projectId]/traces/workshop/[pipelineVersionId]/route.ts:7
- Draft comment:
The use ofPromise
forparams
in the function signature is unnecessary. Directly destructureparams
fromprops
without usingPromise
. This issue is present in multiple files. - Reason this comment was not posted:
Marked as duplicate.
4. frontend/app/api/projects/[projectId]/traces/[traceId]/route.ts:7
- Draft comment:
The use ofPromise
forparams
in the function signature is unnecessary. Directly destructureparams
fromprops
without usingPromise
. This issue is present in multiple files. - Reason this comment was not posted:
Marked as duplicate.
5. frontend/app/api/projects/[projectId]/templates/route.ts:7
- Draft comment:
The use ofPromise
forparams
in the function signature is unnecessary. Directly destructureparams
fromprops
without usingPromise
. This issue is present in multiple files. - Reason this comment was not posted:
Marked as duplicate.
6. frontend/app/api/projects/[projectId]/spans/route.ts:7
- Draft comment:
The use ofPromise
forparams
in the function signature is unnecessary. Directly destructureparams
fromprops
without usingPromise
. This issue is present in multiple files. - Reason this comment was not posted:
Marked as duplicate.
7. frontend/app/api/projects/[projectId]/spans/metrics/summary/route.ts:7
- Draft comment:
The use ofPromise
forparams
in the function signature is unnecessary. Directly destructureparams
fromprops
without usingPromise
. This issue is present in multiple files. - Reason this comment was not posted:
Marked as duplicate.
8. frontend/app/api/projects/[projectId]/spans/metrics/time/route.ts:7
- Draft comment:
The use ofPromise
forparams
in the function signature is unnecessary. Directly destructureparams
fromprops
without usingPromise
. This issue is present in multiple files. - Reason this comment was not posted:
Marked as duplicate.
Workflow ID: wflow_kN0EhkalFdEpw9MN
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
Work in progress: Next.js 15 migration.
Latest peer dependencies issues:
TODOs:
Dependency issues that we will likely be able to fix:
Dependency issues that will probs need some more time
react-day-picker@9
is not immediately straightforward. Track [bug]: Calender UI is messed up after updating to react-day-picker shadcn-ui/ui#5799(node:86854) [DEP0040] DeprecationWarning: The
punycodemodule is deprecated. Please use a userland alternative instead.
The dependency path to it is[email protected]
->@eslint/[email protected]
->[email protected]
->[email protected]
->[email protected]
. And eslintrc is a legacy package for support of.eslintrc.json
configurations. On a related note, I opened Migrate from .eslintrc.json to eslint.config.js #278. Looks like the closest to tracking issue is this: DeprecationWarning: Thepunycode
module is deprecated. Please use a userland alternative instead. eslint/eslint#19007 and it has links to workaround suggestions abour overridinguri-js
withfasturi
.Important
Migrate to Next.js 15 by updating API routes, handling async params, upgrading dependencies, and making code adjustments.
params
asPromise
inroute.ts
files across multiple directories.generateMetadata
and page components to handleparams
asPromise
inpage.tsx
files.Suspense
forPostHogPageView
inlayout.tsx
.react
andreact-dom
to19.0.0
inpackage.json
.@aws-sdk/client-s3
,@codemirror/language
,@supabase/supabase-js
, and other dependencies to latest versions.use-enter-submit.tsx
hook.serverExternalPackages: ["yjs"]
innext.config.js
.use-previous.tsx
to initializeuseRef
withnull
.calendar.tsx
andavatar-menu.tsx
.This description was created by
for 3b649cc. It will automatically update as commits are pushed.