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

Chore/update next 15 #1756

Merged
merged 15 commits into from
Feb 13, 2025
Merged

Chore/update next 15 #1756

merged 15 commits into from
Feb 13, 2025

Conversation

brendan-defi
Copy link
Collaborator

@brendan-defi brendan-defi commented Feb 12, 2025

What changed? Why?

  • Updated nextjs from v14.2.10 to v15.1.6
  • Updated frames/render from v0.3.14 to v0.5.5
  • Updated next-related packages (@next/bundle-analyzer, eslint-config-next) to v15.1.6
  • Updated next config in apps/web to accommodate the version updates

Notes to reviewers

How has it been tested?

  • Locally and with vercel preview

    • console free of unexpected errors (expected errors pertain to image loading, which restricts to cloudinary, which is only available in prod)
    • routes tested: /, /about, /bootcamp, /build, /ecosystem, /jobs, /third-party-cookies
    • basenames routes tested: /names, /name/shrek
  • tested claiming a basename
    image

@brendan-defi brendan-defi marked this pull request as draft February 12, 2025 19:14
Copy link

vercel bot commented Feb 12, 2025

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

Name Status Preview Comments Updated (UTC)
base-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 13, 2025 0:09am
web-base-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 13, 2025 0:09am

@cb-heimdall
Copy link
Collaborator

cb-heimdall commented Feb 12, 2025

✅ Heimdall Review Status

Requirement Status More Info
Reviews 2/1
Denominator calculation
Show calculation
1 if user is bot 0
1 if user is external 0
From .codeflow.yml 1
Additional review requirements
Show calculation
Max 0
0
From CODEOWNERS 0
Global minimum 0
Max 1
1
1 if commit is unverified 0
Sum 1

kirkas
kirkas previously approved these changes Feb 12, 2025
@cb-heimdall cb-heimdall dismissed kirkas’s stale review February 12, 2025 20:59

Approved review 2613145324 from kirkas is now dismissed due to new commit. Re-request for approval.

@@ -36,9 +36,6 @@ const baseConfig = {

// Enable strict mode in development
reactStrictMode: !isProdEnv,

// Minify for production builds
swcMinify: false,
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no longer valid property in next config

@@ -35,7 +35,7 @@ body {
height: 100%;
margin: 0;
min-height: 100vh;
font-family: '__coinbaseDisplay_7118f1';
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

outdated font reference, replaced with var

@@ -5,6 +5,10 @@ module.exports = {
'plugin:react/jsx-runtime',
'eslint-config-prettier',
],
parserOptions: {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

resolves build issue:

Error while loading rule '@typescript-eslint/no-unsafe-argument': You have used a rule which requires parserServices to be generated. You must therefore provide a value for the "parserOptions.project" property for @typescript-eslint/parser.
➤ YN0000: Parser: /home/runner/work/web/web/apps/web/node_modules/eslint-config-next/node_modules/@typescript-eslint/parser/dist/index.js
➤ YN0000: Occurred while linting /home/runner/work/web/web/apps/web/app/(base-org)/(root)/page.tsx

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kirkas not sure why I get this build error now, but any issue with this addition?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems fine

export type MappedDiscountData = {
[key in Discount]?: DiscountData;
};
export type MappedDiscountData = Partial<Record<Discount, DiscountData>>;
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kirkas not sure why popped up now, but I was getting "unused variable key" error.

i believe my change is equivalent but doesn't introduce the unused variable. would be nice if you could confirm


export function findFirstValidDiscount(
aggregatedData: MappedDiscountData,
): DiscountData | undefined {
const priorityOrder: Partial<{ [key in Discount]: number }> & { default: 3 } = {
const priorityOrder: Partial<Record<Discount, number>> & { default: 3 } = {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kirkas same "unused key" error

const validators: {
[key in ProofTableNamespace]: Record<number, Address>;
} = {
const validators: Record<ProofTableNamespace, Record<number, Address>> = {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kirkas same unused key error

Comment on lines -33 to +34
[key in DiscountType]?: DiscountValue;
};
export type DiscountTypes = Partial<Record<DiscountType, DiscountValue>>;

export type PreviousClaims = {
[key in DiscountType]?: PreviousClaim;
};
export type PreviousClaims = Partial<Record<DiscountType, PreviousClaim>>;
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kirkas same unused key error

@brendan-defi brendan-defi mentioned this pull request Feb 13, 2025
Copy link
Collaborator

@kirkas kirkas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - would follow the codeflow deploys closely, maybe do a dev deploy?

@brendan-defi brendan-defi merged commit 3c892b2 into master Feb 13, 2025
9 checks passed
@brendan-defi brendan-defi deleted the chore/update-next-15 branch February 13, 2025 19:12
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.

4 participants