diff --git a/.changeset/twelve-cats-relax.md b/.changeset/twelve-cats-relax.md new file mode 100644 index 000000000000..354f4bc511a5 --- /dev/null +++ b/.changeset/twelve-cats-relax.md @@ -0,0 +1,6 @@ +--- +'@astrojs/vercel': major +--- + +Updates Node v18 'retiring' notice to 'deprecated' for Vercel adapter. +Removes removeDate from 'deprecated' notice text. diff --git a/packages/integrations/vercel/src/index.ts b/packages/integrations/vercel/src/index.ts index 9234e051aaf6..d00bf4598083 100644 --- a/packages/integrations/vercel/src/index.ts +++ b/packages/integrations/vercel/src/index.ts @@ -80,13 +80,10 @@ const SUPPORTED_NODE_VERSIONS: Record< } | { status: 'deprecated'; - removal: Date; } > = { 18: { - status: 'retiring', - removal: new Date('September 1 2025'), - warnDate: new Date('October 1 2024'), + status: 'deprecated', }, 20: { status: 'available', @@ -775,13 +772,10 @@ function getRuntime(process: NodeJS.Process, logger: AstroIntegrationLogger): Ru return `nodejs${major}.x`; } if (support.status === 'deprecated') { - const removeDate = new Intl.DateTimeFormat(undefined, { - dateStyle: 'long', - }).format(support.removal); logger.warn( `\n` + `\tYour project is being built for Node.js ${major} as the runtime.\n` + - `\tThis version is deprecated by Vercel Serverless Functions, and scheduled to be disabled on ${removeDate}.\n` + + `\tThis version is deprecated by Vercel Serverless Functions.\n` + `\tConsider upgrading your local version to 22.\n`, ); return `nodejs${major}.x`;