Unverified Commit d1418740 authored by Sebastian "Sebbie" Silbermann's avatar Sebastian "Sebbie" Silbermann Committed by GitHub

Bump TypeScript to 6.0 (#91257)

parent 6d82715d
import type { Metadata } from 'next'
import type React from 'react'
// @ts-expect-error - Fixed once Next.js 16.2.0 is used.
import './globals.css'
export const metadata: Metadata = {
......
......@@ -39,6 +39,6 @@
"postcss": "^8.5",
"tailwindcss": "^4.1.9",
"tw-animate-css": "1.3.3",
"typescript": "^5"
"typescript": "6.0.2"
}
}
......@@ -26,6 +26,6 @@
"eslint": "9.37.0",
"eslint-config-next": "canary",
"tailwindcss": "4.1.13",
"typescript": "^5"
"typescript": "6.0.2"
}
}
......@@ -14,6 +14,7 @@
"jsx": "react-jsx",
"lib": ["ESNext", "DOM"],
"target": "esnext",
"ignoreDeprecations": "6.0",
// modules
"baseUrl": ".",
"module": "node16",
......
......@@ -142,11 +142,11 @@
"@next/eslint-plugin-next": "workspace:*",
"@next/font": "workspace:*",
"@next/mdx": "workspace:*",
"@next/playwright": "workspace:*",
"@next/plugin-storybook": "workspace:*",
"@next/polyfill-module": "workspace:*",
"@next/polyfill-nomodule": "workspace:*",
"@next/swc": "workspace:*",
"@next/playwright": "workspace:*",
"@next/third-parties": "workspace:*",
"@opentelemetry/api": "1.4.1",
"@picocss/pico": "1.5.10",
......@@ -302,7 +302,7 @@
"tsec": "0.2.1",
"tsx": "4.19.2",
"turbo": "2.9.4",
"typescript": "5.9.2",
"typescript": "6.0.2",
"typescript-eslint": "8.46.0",
"unfetch": "4.2.0",
"wait-port": "0.2.2",
......@@ -349,7 +349,9 @@
"@types/node@20.17.6": "patches/@types__node@20.17.6.patch",
"taskr@1.1.0": "patches/taskr@1.1.0.patch",
"minizlib@3.1.0": "patches/minizlib@3.1.0.patch",
"http-proxy@1.18.1": "patches/http-proxy@1.18.1.patch"
"http-proxy@1.18.1": "patches/http-proxy@1.18.1.patch",
"web-vitals@4.2.1": "patches/web-vitals@4.2.1.patch",
"@rspack/core@1.6.7": "patches/@rspack__core@1.6.7.patch"
}
}
}
......@@ -5,7 +5,10 @@
"strict": true,
"resolveJsonModule": true,
"esModuleInterop": true,
"outDir": "dist",
"rootDir": ".",
"skipLibCheck": false
},
"exclude": ["templates", "dist"]
"exclude": ["templates", "dist"],
"files": ["index.ts"]
}
......@@ -34,7 +34,7 @@
"devDependencies": {
"@types/eslint": "9.6.1",
"@types/eslint-plugin-jsx-a11y": "6.10.1",
"typescript": "5.9.2"
"typescript": "6.0.2"
},
"scripts": {
"dev": "pnpm build",
......
......@@ -22,7 +22,7 @@
"scripts": {
"dev": "pnpm build",
"build": "swc -d dist src && pnpm types",
"types": "tsc src/index.ts --skipLibCheck --declaration --emitDeclarationOnly --esModuleInterop --declarationDir dist",
"types": "tsc --project tsconfig.json --skipLibCheck --declaration --emitDeclarationOnly --esModuleInterop --declarationDir dist",
"prepublishOnly": "cd ../../ && turbo run build"
}
}
......@@ -2,7 +2,10 @@
"compilerOptions": {
"module": "commonjs",
"target": "es2019",
"esModuleInterop": true
"esModuleInterop": true,
"noImplicitAny": false,
"rootDir": "src",
"strictNullChecks": false
},
"include": ["src/**/*"],
"exclude": ["node_modules"]
......
......@@ -25,6 +25,6 @@
"@types/fontkit": "2.0.0",
"@vercel/ncc": "0.34.0",
"fontkit": "2.0.2",
"typescript": "5.9.2"
"typescript": "6.0.2"
}
}
......@@ -6,7 +6,8 @@
"esModuleInterop": true,
"target": "es2019",
"outDir": "dist",
"rootDir": "src"
"rootDir": "src",
"types": ["jest", "node"]
},
"include": ["src/**/*.ts"]
}
......@@ -40,6 +40,6 @@
"@types/jscodeshift": "0.11.0",
"@types/prompts": "2.4.2",
"@types/semver": "7.3.1",
"typescript": "5.9.2"
"typescript": "6.0.2"
}
}
import type { Element as CheerioElement, Node as CheerioNode } from 'cheerio'
import fs from 'fs'
import path from 'path'
import execa from 'execa'
......@@ -196,11 +198,14 @@ class CraTransform {
const documentPage = path.join(this.pagesDir, `_document.${pageExt}`)
const catchAllPage = path.join(this.pagesDir, `[[...slug]].${pageExt}`)
const gatherTextChildren = (children: CheerioElement[]) => {
const gatherTextChildren = (children: CheerioNode[]) => {
return children
.map((child) => {
if (child.type === 'text') {
return child.data
// `data` only exists on Data nodes according to types so this is sus.
// @ts-expect-error - Found when upgrading to TypeScript 6.0.
const text = child.data
return text
}
return ''
})
......
......@@ -3,9 +3,15 @@
"module": "commonjs",
"sourceMap": true,
"esModuleInterop": true,
"noImplicitAny": false,
"target": "ES2022",
"downlevelIteration": true,
"preserveWatchOutput": true
"ignoreDeprecations": "6.0",
"preserveWatchOutput": true,
"strictFunctionTypes": false,
"strictNullChecks": false,
"types": ["node"],
"useUnknownInCatchVariables": false
},
"include": ["**/*.ts"],
"exclude": ["node_modules", "transforms/__testfixtures__/**"]
......
......@@ -2,6 +2,7 @@
"compilerOptions": {
"target": "es2015",
"moduleResolution": "node",
"ignoreDeprecations": "6.0",
"strict": true,
"resolveJsonModule": true,
"esModuleInterop": true,
......
......@@ -27,6 +27,6 @@
},
"devDependencies": {
"@playwright/test": "1.58.2",
"typescript": "5.9.2"
"typescript": "6.0.2"
}
}
......@@ -3,10 +3,12 @@
"strict": true,
"esModuleInterop": true,
"target": "es2019",
"lib": ["dom", "dom.iterable", "esnext"],
"outDir": "dist",
"module": "commonjs",
"rootDir": "src",
"declaration": true
"declaration": true,
"types": ["node"]
},
"include": ["src/**/*.ts"],
"exclude": ["node_modules"]
......
......@@ -2,11 +2,14 @@
"compilerOptions": {
"target": "es2022",
"moduleResolution": "node",
"ignoreDeprecations": "6.0",
"strict": true,
"resolveJsonModule": true,
"esModuleInterop": true,
"skipLibCheck": false,
"lib": ["es2022", "dom"]
"lib": ["es2022", "dom"],
"rootDir": "src",
"types": ["jest"]
},
"include": ["src/**/*.ts"],
"exclude": ["node_modules", "dist"]
......
......@@ -343,7 +343,7 @@
"text-table": "0.2.0",
"timers-browserify": "2.0.12",
"tty-browserify": "0.0.1",
"typescript": "5.9.2",
"typescript": "6.0.2",
"ua-parser-js": "1.0.35",
"unistore": "3.4.1",
"util": "0.12.4",
......
// imports polyfill from `@next/polyfill-module` after build.
export {}
......@@ -16,10 +16,10 @@ function shouldIgnorePath(modulePath: string): boolean {
)
}
export const base = curry(function base(
ctx: ConfigurationContext,
config: webpack.Configuration
) {
export const base: (
ctx: ConfigurationContext
) => (config: webpack.Configuration) => webpack.Configuration = curry(
function base(ctx: ConfigurationContext, config: webpack.Configuration) {
config.mode = ctx.isDevelopment ? 'development' : 'production'
config.name = ctx.isServer
? ctx.isEdgeRuntime
......@@ -70,13 +70,15 @@ export const base = curry(function base(
if (process.env.NEXT_RSPACK) {
config.plugins.push(
new (getRspackCore().EvalSourceMapDevToolPlugin)({
moduleFilenameTemplate: config.output?.devtoolModuleFilenameTemplate,
moduleFilenameTemplate:
config.output?.devtoolModuleFilenameTemplate,
})
)
} else {
config.plugins.push(
new EvalSourceMapDevToolPlugin({
moduleFilenameTemplate: config.output?.devtoolModuleFilenameTemplate,
moduleFilenameTemplate:
config.output?.devtoolModuleFilenameTemplate,
shouldIgnorePath,
})
)
......@@ -87,4 +89,5 @@ export const base = curry(function base(
// config.module.strictExportPresence = !isWebpack5
return config
})
}
)
......@@ -144,10 +144,10 @@ export async function lazyPostCSS(
return postcssInstancePromise
}
export const css = curry(async function css(
ctx: ConfigurationContext,
config: webpack.Configuration
) {
export const css: (
ctx: ConfigurationContext
) => (config: webpack.Configuration) => Promise<webpack.Configuration> = curry(
async function css(ctx: ConfigurationContext, config: webpack.Configuration) {
const isRspack = Boolean(process.env.NEXT_RSPACK)
const {
prependData: sassPrependData,
......@@ -215,7 +215,11 @@ export const css = curry(async function css(
markRemovable({
sideEffects: false,
test: fontLoaderTarget,
use: getNextFontLoader(ctx, lazyPostCSSInitializer, fontLoaderPath),
use: getNextFontLoader(
ctx,
lazyPostCSSInitializer,
fontLoaderPath
),
}),
],
})
......@@ -643,4 +647,5 @@ export const css = curry(async function css(
const fn = pipe(...fns)
return fn(config)
})
}
)
......@@ -6,10 +6,13 @@ import { pipe } from '../../utils'
import type { ConfigurationContext, ConfigurationFn } from '../../utils'
import { getCustomDocumentImageError } from './messages'
export const images = curry(async function images(
export const images: (
ctx: ConfigurationContext
) => (config: webpack.Configuration) => Promise<webpack.Configuration> = curry(
async function images(
_ctx: ConfigurationContext,
config: webpack.Configuration
) {
) {
const fns: ConfigurationFn[] = [
loader({
oneOf: [
......@@ -29,4 +32,5 @@ export const images = curry(async function images(
const fn = pipe(...fns)
return fn(config)
})
}
)
import curry from 'next/dist/compiled/lodash.curry'
import type { webpack } from 'next/dist/compiled/webpack/webpack'
export const loader = curry(function loader(
rule: webpack.RuleSetRule,
config: webpack.Configuration
) {
export const loader: (
rule: webpack.RuleSetRule
) => (config: webpack.Configuration) => webpack.Configuration = curry(
function loader(rule: webpack.RuleSetRule, config: webpack.Configuration) {
if (!config.module) {
config.module = { rules: [] }
}
......@@ -22,12 +22,16 @@ export const loader = curry(function loader(
config.module.rules?.push(rule)
return config
})
}
)
export const unshiftLoader = curry(function unshiftLoader(
export const unshiftLoader: (
rule: webpack.RuleSetRule
) => (config: webpack.Configuration) => webpack.Configuration = curry(
function unshiftLoader(
rule: webpack.RuleSetRule,
config: webpack.Configuration
) {
) {
if (!config.module) {
config.module = { rules: [] }
}
......@@ -45,15 +49,20 @@ export const unshiftLoader = curry(function unshiftLoader(
config.module.rules?.unshift(rule)
return config
})
}
)
export const plugin = curry(function plugin(
export const plugin: (
p: webpack.WebpackPluginInstance
) => (config: webpack.Configuration) => webpack.Configuration = curry(
function plugin(
p: webpack.WebpackPluginInstance,
config: webpack.Configuration
) {
) {
if (!config.plugins) {
config.plugins = []
}
config.plugins.push(p)
return config
})
}
)
(function(){"use strict";var __webpack_modules__={36:function(e,t,s){const n=s(753);e.exports=n.default},753:function(e,t,s){Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(s(310));var o=_interopRequireDefault(s(17));var r=_interopRequireDefault(s(894));var a=s(808);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}async function loader(e){const t=this.getOptions(r.default);const s=this.async();let i;try{i=(0,a.getSassImplementation)(this,t.implementation)}catch(e){s(e);return}const c=typeof t.sourceMap==="boolean"?t.sourceMap:this.sourceMap;const l=typeof i.compileStringAsync==="undefined"?"legacy":typeof t.api==="undefined"?"modern":t.api;const p=await(0,a.getSassOptions)(this,t,e,i,c,l);const u=typeof t.webpackImporter==="boolean"?t.webpackImporter:true;if(u){const e=l==="modern"||l==="modern-compiler";if(!e){const{includePaths:e}=p;p.importer.push((0,a.getWebpackImporter)(this,i,e))}else{p.importers.push((0,a.getModernWebpackImporter)(this,i,[]))}}let d;try{d=(0,a.getCompileFn)(this,i,l)}catch(e){s(e);return}let f;try{f=await d(p)}catch(e){if(e.span&&typeof e.span.url!=="undefined"){this.addDependency(n.default.fileURLToPath(e.span.url))}else if(typeof e.file!=="undefined"){this.addDependency(o.default.normalize(e.file))}s((0,a.errorFactory)(e));return}let m=f.sourceMap?f.sourceMap:f.map?JSON.parse(f.map):null;if(m&&c){m=(0,a.normalizeSourceMap)(m,this.rootContext)}if(typeof f.loadedUrls!=="undefined"){f.loadedUrls.filter((e=>e.protocol==="file:")).forEach((e=>{const t=n.default.fileURLToPath(e);if(o.default.isAbsolute(t)){this.addDependency(t)}}))}else if(typeof f.stats!=="undefined"&&typeof f.stats.includedFiles!=="undefined"){f.stats.includedFiles.forEach((e=>{const t=o.default.normalize(e);if(o.default.isAbsolute(t)){this.addDependency(t)}}))}s(null,f.css.toString(),m)}var i=t["default"]=loader},808:function(__unused_webpack_module,exports,__nccwpck_require__){Object.defineProperty(exports,"__esModule",{value:true});exports.errorFactory=errorFactory;exports.getCompileFn=getCompileFn;exports.getModernWebpackImporter=getModernWebpackImporter;exports.getSassImplementation=getSassImplementation;exports.getSassOptions=getSassOptions;exports.getWebpackImporter=getWebpackImporter;exports.getWebpackResolver=getWebpackResolver;exports.normalizeSourceMap=normalizeSourceMap;var _url=_interopRequireDefault(__nccwpck_require__(310));var _path=_interopRequireDefault(__nccwpck_require__(17));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function getDefaultSassImplementation(){let sassImplPkg="sass";try{eval("require").resolve("sass-embedded");sassImplPkg="sass-embedded"}catch(ignoreError){try{eval("require").resolve("sass")}catch(_ignoreError){try{eval("require").resolve("node-sass");sassImplPkg="node-sass"}catch(e){sassImplPkg="sass"}}}return __nccwpck_require__(438)}function getSassImplementation(e,t){let s=t;if(!s){s=getDefaultSassImplementation()}if(typeof s==="string"){s=require(s)}const{info:n}=s;if(!n){throw new Error("Unknown Sass implementation.")}const o=n.split("\t");if(o.length<2){throw new Error(`Unknown Sass implementation "${n}".`)}const[r]=o;if(r==="dart-sass"){return s}else if(r==="node-sass"){return s}else if(r==="sass-embedded"){return s}throw new Error(`Unknown Sass implementation "${r}".`)}function isProductionLikeMode(e){return e.mode==="production"||!e.mode}function proxyCustomImporters(e,t){return[].concat(e).map((e=>function proxyImporter(...s){const n={...this,webpackLoaderContext:t};return e.apply(n,s)}))}async function getSassOptions(e,t,s,n,o,r){const a=t.sassOptions?typeof t.sassOptions==="function"?t.sassOptions(e)||{}:t.sassOptions:{};const i={...a,data:t.additionalData?typeof t.additionalData==="function"?await t.additionalData(s,e):`${t.additionalData}\n${s}`:s};if(!i.logger){const s=t.warnRuleAsWarning!==false;const n=e.getLogger("sass-loader");const formatSpan=e=>`Warning on line ${e.start.line}, column ${e.start.column} of ${e.url||"-"}:${e.start.line}:${e.start.column}:\n`;const formatDebugSpan=e=>`[debug:${e.start.line}:${e.start.column}] `;i.logger={debug(e,t){let s="";if(t.span){s=formatDebugSpan(t.span)}s+=e;n.debug(s)},warn(t,o){let r="";if(o.deprecation){r+="Deprecation "}if(o.span){r+=formatSpan(o.span)}r+=t;if(o.span&&o.span.context){r+=`\n\n${o.span.start.line} | ${o.span.context}`}if(o.stack&&o.stack!=="null"){r+=`\n\n${o.stack}`}if(s){const t=new Error(r);t.name="SassWarning";t.stack=null;e.emitWarning(t)}else{n.warn(r)}}}}const c=r==="modern"||r==="modern-compiler";const{resourcePath:l}=e;if(c){i.url=_url.default.pathToFileURL(l);if(!i.style&&isProductionLikeMode(e)){i.style="compressed"}if(o){i.sourceMap=true;i.sourceMapIncludeSources=true}if(typeof i.syntax==="undefined"){const e=_path.default.extname(l);if(e&&e.toLowerCase()===".scss"){i.syntax="scss"}else if(e&&e.toLowerCase()===".sass"){i.syntax="indented"}else if(e&&e.toLowerCase()===".css"){i.syntax="css"}}i.loadPaths=[].concat((i.loadPaths?i.loadPaths.slice():[]).map((e=>_path.default.isAbsolute(e)?e:_path.default.join(process.cwd(),e)))).concat(process.env.SASS_PATH?process.env.SASS_PATH.split(process.platform==="win32"?";":":"):[]);i.importers=i.importers?Array.isArray(i.importers)?i.importers.slice():[i.importers]:[]}else{i.file=l;if(!i.outputStyle&&isProductionLikeMode(e)){i.outputStyle="compressed"}if(o){i.sourceMap=true;i.outFile=_path.default.join(e.rootContext,"style.css.map");i.sourceMapContents=true;i.omitSourceMapUrl=true;i.sourceMapEmbed=false}const s=_path.default.extname(l);if(s&&s.toLowerCase()===".sass"&&typeof i.indentedSyntax==="undefined"){i.indentedSyntax=true}else{i.indentedSyntax=Boolean(i.indentedSyntax)}i.importer=i.importer?proxyCustomImporters(Array.isArray(i.importer)?i.importer.slice():[i.importer],e):[];if(t.webpackImporter===false&&i.importer.length===0){i.importer=undefined}i.includePaths=[].concat(process.cwd()).concat((i.includePaths?i.includePaths.slice():[]).map((e=>_path.default.isAbsolute(e)?e:_path.default.join(process.cwd(),e)))).concat(process.env.SASS_PATH?process.env.SASS_PATH.split(process.platform==="win32"?";":":"):[]);if(typeof i.charset==="undefined"){i.charset=true}}return i}const MODULE_REQUEST_REGEX=/^[^?]*~/;const IS_MODULE_IMPORT=/^~([^/]+|[^/]+\/|@[^/]+[/][^/]+|@[^/]+\/?|@[^/]+[/][^/]+\/)$/;const IS_PKG_SCHEME=/^pkg:/i;function getPossibleRequests(e,t=false,s=false){let n=e;if(t){if(MODULE_REQUEST_REGEX.test(e)){n=n.replace(MODULE_REQUEST_REGEX,"")}if(IS_PKG_SCHEME.test(e)){n=`${n.slice(4)}`;return[...new Set([n,e])]}if(IS_MODULE_IMPORT.test(e)||IS_PKG_SCHEME.test(e)){n=n[n.length-1]==="/"?n:`${n}/`;return[...new Set([n,e])]}}const o=_path.default.extname(n).toLowerCase();if(o===".css"){return s?[]:[e]}const r=_path.default.dirname(n);const a=r==="."?"":`${r}/`;const i=_path.default.basename(n);const c=_path.default.basename(n,o);return[...new Set([].concat(s?[`${a}_${c}.import${o}`,`${a}${c}.import${o}`]:[]).concat([`${a}_${i}`,`${a}${i}`]).concat(t?[e]:[]))]}function promiseResolve(e){return(t,s)=>new Promise(((n,o)=>{e(t,s,((e,t)=>{if(e){o(e)}else{n(t)}}))}))}async function startResolving(e){if(e.length===0){return Promise.reject()}const[{possibleRequests:t}]=e;if(t.length===0){return Promise.reject()}const[{resolve:s,context:n}]=e;try{return await s(n,t[0])}catch(s){const[,...n]=t;if(n.length===0){const[,...t]=e;return startResolving(t)}e[0].possibleRequests=n;return startResolving(e)}}const IS_SPECIAL_MODULE_IMPORT=/^~[^/]+$/;const IS_NATIVE_WIN32_PATH=/^[a-z]:[/\\]|^\\\\/i;function getWebpackResolver(e,t,s=[]){const n=t&&typeof t.compileStringAsync!=="undefined";const o=promiseResolve(e({alias:[],aliasFields:[],conditionNames:[],descriptionFiles:[],extensions:[".sass",".scss",".css"],exportsFields:[],mainFields:[],mainFiles:["_index","index"],modules:[],restrictions:[/\.((sa|sc|c)ss)$/i],preferRelative:true}));const r=promiseResolve(e({alias:[],aliasFields:[],conditionNames:[],descriptionFiles:[],extensions:[".sass",".scss",".css"],exportsFields:[],mainFields:[],mainFiles:["_index.import","_index","index.import","index"],modules:[],restrictions:[/\.((sa|sc|c)ss)$/i],preferRelative:true}));const a=promiseResolve(e({dependencyType:"sass",conditionNames:["sass","style","..."],mainFields:["sass","style","main","..."],mainFiles:["_index","index","..."],extensions:[".sass",".scss",".css"],restrictions:[/\.((sa|sc|c)ss)$/i],preferRelative:true}));const i=promiseResolve(e({dependencyType:"sass",conditionNames:["sass","style","..."],mainFields:["sass","style","main","..."],mainFiles:["_index.import","_index","index.import","index","..."],extensions:[".sass",".scss",".css"],restrictions:[/\.((sa|sc|c)ss)$/i],preferRelative:true}));return(e,t,c)=>{if(!n&&!_path.default.isAbsolute(e)){return Promise.reject()}const l=t;const p=l.slice(0,5).toLowerCase()==="file:";if(p){try{t=_url.default.fileURLToPath(l)}catch(e){t=t.slice(7)}}let u=[];const d=!IS_SPECIAL_MODULE_IMPORT.test(t)&&!IS_PKG_SCHEME.test(t)&&!p&&!l.startsWith("/")&&!IS_NATIVE_WIN32_PATH.test(l);if(s.length>0&&d){const a=getPossibleRequests(t,false,c);if(!n){u=u.concat({resolve:c?r:o,context:_path.default.dirname(e),possibleRequests:a})}u=u.concat(s.map((e=>({resolve:c?r:o,context:e,possibleRequests:a}))))}const f=getPossibleRequests(t,true,c);u=u.concat({resolve:c?i:a,context:_path.default.dirname(e),possibleRequests:f});return startResolving(u)}}const MATCH_CSS=/\.css$/i;function getModernWebpackImporter(e,t,s){const n=getWebpackResolver(e.getResolve,t,s);return{async canonicalize(t,s){const{fromImport:o}=s;const r=s.containingUrl?_url.default.fileURLToPath(s.containingUrl.toString()):e.resourcePath;let a;try{a=await n(r,t,o)}catch(e){return null}e.addDependency(_path.default.normalize(a));return _url.default.pathToFileURL(a)},async load(t){const s=_path.default.extname(t.pathname);let n;if(s&&s.toLowerCase()===".scss"){n="scss"}else if(s&&s.toLowerCase()===".sass"){n="indented"}else if(s&&s.toLowerCase()===".css"){n="css"}else{n="scss"}try{const s=await new Promise(((s,n)=>{const o=_url.default.fileURLToPath(t);e.fs.readFile(o,"utf8",((e,t)=>{if(e){n(e);return}s(t)}))}));return{contents:s,syntax:n,sourceMapUrl:t}}catch(e){return null}}}}function getWebpackImporter(e,t,s){const n=getWebpackResolver(e.getResolve,t,s);return function importer(t,s,o){const{fromImport:r}=this;n(s,t,typeof r==="undefined"?true:r).then((t=>{e.addDependency(_path.default.normalize(t));o({file:t.replace(MATCH_CSS,"")})})).catch((()=>{o({file:t})}))}}let nodeSassJobQueue=null;const sassModernCompilers=new WeakMap;function getCompileFn(e,t,s){if(typeof t.compileStringAsync!=="undefined"){if(s==="modern"){return e=>{const{data:s,...n}=e;return t.compileStringAsync(s,n)}}if(s==="modern-compiler"){return async s=>{const n=e._compiler;const{data:o,...r}=s;if(n){if(!sassModernCompilers.has(n)){const e=await t.initAsyncCompiler();if(!sassModernCompilers.has(n)){sassModernCompilers.set(n,e);n.hooks.shutdown.tap("sass-loader",(()=>{e.dispose()}))}else{e.dispose()}}return sassModernCompilers.get(n).compileStringAsync(o,r)}return t.compileStringAsync(o,r)}}return e=>new Promise(((s,n)=>{t.render(e,((e,t)=>{if(e){n(e);return}s(t)}))}))}if(s==="modern"||s==="modern-compiler"){throw new Error("Modern API is not supported for 'node-sass'")}if(nodeSassJobQueue===null){const e=Number(process.env.UV_THREADPOOL_SIZE||4);const s=__nccwpck_require__(175);nodeSassJobQueue=s.queue(t.render.bind(t),e-1)}return e=>new Promise(((t,s)=>{nodeSassJobQueue.push.bind(nodeSassJobQueue)(e,((e,n)=>{if(e){s(e);return}t(n)}))}))}const ABSOLUTE_SCHEME=/^[A-Za-z0-9+\-.]+:/;function getURLType(e){if(e[0]==="/"){if(e[1]==="/"){return"scheme-relative"}return"path-absolute"}if(IS_NATIVE_WIN32_PATH.test(e)){return"path-absolute"}return ABSOLUTE_SCHEME.test(e)?"absolute":"path-relative"}function normalizeSourceMap(e,t){const s=e;if(typeof s.file!=="undefined"){delete s.file}s.sourceRoot="";s.sources=s.sources.map((e=>{const s=getURLType(e);if(s==="absolute"&&/^file:/i.test(e)){return _url.default.fileURLToPath(e)}else if(s==="path-relative"){return _path.default.resolve(t,_path.default.normalize(e))}return e}));return s}function errorFactory(e){let t;if(e.formatted){t=e.formatted.replace(/^(.+)?Error: /,"")}else{t=(e.message||e.toString()).replace(/^(.+)?Error: /,"")}const s=new Error(t,{cause:e});s.name=e.name;s.stack=null;return s}},175:function(e){e.exports=require("next/dist/compiled/neo-async")},17:function(e){e.exports=require("path")},438:function(e){e.exports=require("sass")},310:function(e){e.exports=require("url")},894:function(e){e.exports=JSON.parse('{"title":"Sass Loader options","type":"object","properties":{"implementation":{"description":"The implementation of the sass to be used.","link":"https://github.com/webpack-contrib/sass-loader#implementation","anyOf":[{"type":"string"},{"type":"object"}]},"api":{"description":"Switch between old and modern API for `sass` (`Dart Sass`) and `Sass Embedded` implementations.","link":"https://github.com/webpack-contrib/sass-loader#sassoptions","enum":["legacy","modern","modern-compiler"]},"sassOptions":{"description":"Options for `node-sass` or `sass` (`Dart Sass`) implementation.","link":"https://github.com/webpack-contrib/sass-loader#sassoptions","anyOf":[{"type":"object","additionalProperties":true},{"instanceof":"Function"}]},"additionalData":{"description":"Prepends/Appends `Sass`/`SCSS` code before the actual entry file.","link":"https://github.com/webpack-contrib/sass-loader#additionaldata","anyOf":[{"type":"string"},{"instanceof":"Function"}]},"sourceMap":{"description":"Enables/Disables generation of source maps.","link":"https://github.com/webpack-contrib/sass-loader#sourcemap","type":"boolean"},"webpackImporter":{"description":"Enables/Disables default `webpack` importer.","link":"https://github.com/webpack-contrib/sass-loader#webpackimporter","type":"boolean"},"warnRuleAsWarning":{"description":"Treats the \'@warn\' rule as a webpack warning.","link":"https://github.com/webpack-contrib/sass-loader#warnruleaswarning","type":"boolean"}},"additionalProperties":false}')}};var __webpack_module_cache__={};function __nccwpck_require__(e){var t=__webpack_module_cache__[e];if(t!==undefined){return t.exports}var s=__webpack_module_cache__[e]={exports:{}};var n=true;try{__webpack_modules__[e](s,s.exports,__nccwpck_require__);n=false}finally{if(n)delete __webpack_module_cache__[e]}return s.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var __webpack_exports__=__nccwpck_require__(36);module.exports=__webpack_exports__})();
\ No newline at end of file
(function(){"use strict";var __webpack_modules__={163:function(e,t,s){const n=s(260);e.exports=n.default},260:function(e,t,s){Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=_interopRequireDefault(s(310));var o=_interopRequireDefault(s(17));var r=_interopRequireDefault(s(122));var a=s(232);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}async function loader(e){const t=this.getOptions(r.default);const s=this.async();let i;try{i=(0,a.getSassImplementation)(this,t.implementation)}catch(e){s(e);return}const c=typeof t.sourceMap==="boolean"?t.sourceMap:this.sourceMap;const l=typeof i.compileStringAsync==="undefined"?"legacy":typeof t.api==="undefined"?"modern":t.api;const p=await(0,a.getSassOptions)(this,t,e,i,c,l);const u=typeof t.webpackImporter==="boolean"?t.webpackImporter:true;if(u){const e=l==="modern"||l==="modern-compiler";if(!e){const{includePaths:e}=p;p.importer.push((0,a.getWebpackImporter)(this,i,e))}else{p.importers.push((0,a.getModernWebpackImporter)(this,i,[]))}}let d;try{d=(0,a.getCompileFn)(this,i,l)}catch(e){s(e);return}let f;try{f=await d(p)}catch(e){if(e.span&&typeof e.span.url!=="undefined"){this.addDependency(n.default.fileURLToPath(e.span.url))}else if(typeof e.file!=="undefined"){this.addDependency(o.default.normalize(e.file))}s((0,a.errorFactory)(e));return}let m=f.sourceMap?f.sourceMap:f.map?JSON.parse(f.map):null;if(m&&c){m=(0,a.normalizeSourceMap)(m,this.rootContext)}if(typeof f.loadedUrls!=="undefined"){f.loadedUrls.filter((e=>e.protocol==="file:")).forEach((e=>{const t=n.default.fileURLToPath(e);if(o.default.isAbsolute(t)){this.addDependency(t)}}))}else if(typeof f.stats!=="undefined"&&typeof f.stats.includedFiles!=="undefined"){f.stats.includedFiles.forEach((e=>{const t=o.default.normalize(e);if(o.default.isAbsolute(t)){this.addDependency(t)}}))}s(null,f.css.toString(),m)}var i=t["default"]=loader},232:function(__unused_webpack_module,exports,__nccwpck_require__){Object.defineProperty(exports,"__esModule",{value:true});exports.errorFactory=errorFactory;exports.getCompileFn=getCompileFn;exports.getModernWebpackImporter=getModernWebpackImporter;exports.getSassImplementation=getSassImplementation;exports.getSassOptions=getSassOptions;exports.getWebpackImporter=getWebpackImporter;exports.getWebpackResolver=getWebpackResolver;exports.normalizeSourceMap=normalizeSourceMap;var _url=_interopRequireDefault(__nccwpck_require__(310));var _path=_interopRequireDefault(__nccwpck_require__(17));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function getDefaultSassImplementation(){let sassImplPkg="sass";try{eval("require").resolve("sass-embedded");sassImplPkg="sass-embedded"}catch(ignoreError){try{eval("require").resolve("sass")}catch(_ignoreError){try{eval("require").resolve("node-sass");sassImplPkg="node-sass"}catch(e){sassImplPkg="sass"}}}return __nccwpck_require__(438)}function getSassImplementation(e,t){let s=t;if(!s){s=getDefaultSassImplementation()}if(typeof s==="string"){s=require(s)}const{info:n}=s;if(!n){throw new Error("Unknown Sass implementation.")}const o=n.split("\t");if(o.length<2){throw new Error(`Unknown Sass implementation "${n}".`)}const[r]=o;if(r==="dart-sass"){return s}else if(r==="node-sass"){return s}else if(r==="sass-embedded"){return s}throw new Error(`Unknown Sass implementation "${r}".`)}function isProductionLikeMode(e){return e.mode==="production"||!e.mode}function proxyCustomImporters(e,t){return[].concat(e).map((e=>function proxyImporter(...s){const n={...this,webpackLoaderContext:t};return e.apply(n,s)}))}async function getSassOptions(e,t,s,n,o,r){const a=t.sassOptions?typeof t.sassOptions==="function"?t.sassOptions(e)||{}:t.sassOptions:{};const i={...a,data:t.additionalData?typeof t.additionalData==="function"?await t.additionalData(s,e):`${t.additionalData}\n${s}`:s};if(!i.logger){const s=t.warnRuleAsWarning!==false;const n=e.getLogger("sass-loader");const formatSpan=e=>`Warning on line ${e.start.line}, column ${e.start.column} of ${e.url||"-"}:${e.start.line}:${e.start.column}:\n`;const formatDebugSpan=e=>`[debug:${e.start.line}:${e.start.column}] `;i.logger={debug(e,t){let s="";if(t.span){s=formatDebugSpan(t.span)}s+=e;n.debug(s)},warn(t,o){let r="";if(o.deprecation){r+="Deprecation "}if(o.span){r+=formatSpan(o.span)}r+=t;if(o.span&&o.span.context){r+=`\n\n${o.span.start.line} | ${o.span.context}`}if(o.stack&&o.stack!=="null"){r+=`\n\n${o.stack}`}if(s){const t=new Error(r);t.name="SassWarning";t.stack=null;e.emitWarning(t)}else{n.warn(r)}}}}const c=r==="modern"||r==="modern-compiler";const{resourcePath:l}=e;if(c){i.url=_url.default.pathToFileURL(l);if(!i.style&&isProductionLikeMode(e)){i.style="compressed"}if(o){i.sourceMap=true;i.sourceMapIncludeSources=true}if(typeof i.syntax==="undefined"){const e=_path.default.extname(l);if(e&&e.toLowerCase()===".scss"){i.syntax="scss"}else if(e&&e.toLowerCase()===".sass"){i.syntax="indented"}else if(e&&e.toLowerCase()===".css"){i.syntax="css"}}i.loadPaths=[].concat((i.loadPaths?i.loadPaths.slice():[]).map((e=>_path.default.isAbsolute(e)?e:_path.default.join(process.cwd(),e)))).concat(process.env.SASS_PATH?process.env.SASS_PATH.split(process.platform==="win32"?";":":"):[]);i.importers=i.importers?Array.isArray(i.importers)?i.importers.slice():[i.importers]:[]}else{i.file=l;if(!i.outputStyle&&isProductionLikeMode(e)){i.outputStyle="compressed"}if(o){i.sourceMap=true;i.outFile=_path.default.join(e.rootContext,"style.css.map");i.sourceMapContents=true;i.omitSourceMapUrl=true;i.sourceMapEmbed=false}const s=_path.default.extname(l);if(s&&s.toLowerCase()===".sass"&&typeof i.indentedSyntax==="undefined"){i.indentedSyntax=true}else{i.indentedSyntax=Boolean(i.indentedSyntax)}i.importer=i.importer?proxyCustomImporters(Array.isArray(i.importer)?i.importer.slice():[i.importer],e):[];if(t.webpackImporter===false&&i.importer.length===0){i.importer=undefined}i.includePaths=[].concat(process.cwd()).concat((i.includePaths?i.includePaths.slice():[]).map((e=>_path.default.isAbsolute(e)?e:_path.default.join(process.cwd(),e)))).concat(process.env.SASS_PATH?process.env.SASS_PATH.split(process.platform==="win32"?";":":"):[]);if(typeof i.charset==="undefined"){i.charset=true}}return i}const MODULE_REQUEST_REGEX=/^[^?]*~/;const IS_MODULE_IMPORT=/^~([^/]+|[^/]+\/|@[^/]+[/][^/]+|@[^/]+\/?|@[^/]+[/][^/]+\/)$/;const IS_PKG_SCHEME=/^pkg:/i;function getPossibleRequests(e,t=false,s=false){let n=e;if(t){if(MODULE_REQUEST_REGEX.test(e)){n=n.replace(MODULE_REQUEST_REGEX,"")}if(IS_PKG_SCHEME.test(e)){n=`${n.slice(4)}`;return[...new Set([n,e])]}if(IS_MODULE_IMPORT.test(e)||IS_PKG_SCHEME.test(e)){n=n[n.length-1]==="/"?n:`${n}/`;return[...new Set([n,e])]}}const o=_path.default.extname(n).toLowerCase();if(o===".css"){return s?[]:[e]}const r=_path.default.dirname(n);const a=r==="."?"":`${r}/`;const i=_path.default.basename(n);const c=_path.default.basename(n,o);return[...new Set([].concat(s?[`${a}_${c}.import${o}`,`${a}${c}.import${o}`]:[]).concat([`${a}_${i}`,`${a}${i}`]).concat(t?[e]:[]))]}function promiseResolve(e){return(t,s)=>new Promise(((n,o)=>{e(t,s,((e,t)=>{if(e){o(e)}else{n(t)}}))}))}async function startResolving(e){if(e.length===0){return Promise.reject()}const[{possibleRequests:t}]=e;if(t.length===0){return Promise.reject()}const[{resolve:s,context:n}]=e;try{return await s(n,t[0])}catch(s){const[,...n]=t;if(n.length===0){const[,...t]=e;return startResolving(t)}e[0].possibleRequests=n;return startResolving(e)}}const IS_SPECIAL_MODULE_IMPORT=/^~[^/]+$/;const IS_NATIVE_WIN32_PATH=/^[a-z]:[/\\]|^\\\\/i;function getWebpackResolver(e,t,s=[]){const n=t&&typeof t.compileStringAsync!=="undefined";const o=promiseResolve(e({alias:[],aliasFields:[],conditionNames:[],descriptionFiles:[],extensions:[".sass",".scss",".css"],exportsFields:[],mainFields:[],mainFiles:["_index","index"],modules:[],restrictions:[/\.((sa|sc|c)ss)$/i],preferRelative:true}));const r=promiseResolve(e({alias:[],aliasFields:[],conditionNames:[],descriptionFiles:[],extensions:[".sass",".scss",".css"],exportsFields:[],mainFields:[],mainFiles:["_index.import","_index","index.import","index"],modules:[],restrictions:[/\.((sa|sc|c)ss)$/i],preferRelative:true}));const a=promiseResolve(e({dependencyType:"sass",conditionNames:["sass","style","..."],mainFields:["sass","style","main","..."],mainFiles:["_index","index","..."],extensions:[".sass",".scss",".css"],restrictions:[/\.((sa|sc|c)ss)$/i],preferRelative:true}));const i=promiseResolve(e({dependencyType:"sass",conditionNames:["sass","style","..."],mainFields:["sass","style","main","..."],mainFiles:["_index.import","_index","index.import","index","..."],extensions:[".sass",".scss",".css"],restrictions:[/\.((sa|sc|c)ss)$/i],preferRelative:true}));return(e,t,c)=>{if(!n&&!_path.default.isAbsolute(e)){return Promise.reject()}const l=t;const p=l.slice(0,5).toLowerCase()==="file:";if(p){try{t=_url.default.fileURLToPath(l)}catch(e){t=t.slice(7)}}let u=[];const d=!IS_SPECIAL_MODULE_IMPORT.test(t)&&!IS_PKG_SCHEME.test(t)&&!p&&!l.startsWith("/")&&!IS_NATIVE_WIN32_PATH.test(l);if(s.length>0&&d){const a=getPossibleRequests(t,false,c);if(!n){u=u.concat({resolve:c?r:o,context:_path.default.dirname(e),possibleRequests:a})}u=u.concat(s.map((e=>({resolve:c?r:o,context:e,possibleRequests:a}))))}const f=getPossibleRequests(t,true,c);u=u.concat({resolve:c?i:a,context:_path.default.dirname(e),possibleRequests:f});return startResolving(u)}}const MATCH_CSS=/\.css$/i;function getModernWebpackImporter(e,t,s){const n=getWebpackResolver(e.getResolve,t,s);return{async canonicalize(t,s){const{fromImport:o}=s;const r=s.containingUrl?_url.default.fileURLToPath(s.containingUrl.toString()):e.resourcePath;let a;try{a=await n(r,t,o)}catch(e){return null}e.addDependency(_path.default.normalize(a));return _url.default.pathToFileURL(a)},async load(t){const s=_path.default.extname(t.pathname);let n;if(s&&s.toLowerCase()===".scss"){n="scss"}else if(s&&s.toLowerCase()===".sass"){n="indented"}else if(s&&s.toLowerCase()===".css"){n="css"}else{n="scss"}try{const s=await new Promise(((s,n)=>{const o=_url.default.fileURLToPath(t);e.fs.readFile(o,"utf8",((e,t)=>{if(e){n(e);return}s(t)}))}));return{contents:s,syntax:n,sourceMapUrl:t}}catch(e){return null}}}}function getWebpackImporter(e,t,s){const n=getWebpackResolver(e.getResolve,t,s);return function importer(t,s,o){const{fromImport:r}=this;n(s,t,typeof r==="undefined"?true:r).then((t=>{e.addDependency(_path.default.normalize(t));o({file:t.replace(MATCH_CSS,"")})})).catch((()=>{o({file:t})}))}}let nodeSassJobQueue=null;const sassModernCompilers=new WeakMap;function getCompileFn(e,t,s){if(typeof t.compileStringAsync!=="undefined"){if(s==="modern"){return e=>{const{data:s,...n}=e;return t.compileStringAsync(s,n)}}if(s==="modern-compiler"){return async s=>{const n=e._compiler;const{data:o,...r}=s;if(n){if(!sassModernCompilers.has(n)){const e=await t.initAsyncCompiler();if(!sassModernCompilers.has(n)){sassModernCompilers.set(n,e);n.hooks.shutdown.tap("sass-loader",(()=>{e.dispose()}))}else{e.dispose()}}return sassModernCompilers.get(n).compileStringAsync(o,r)}return t.compileStringAsync(o,r)}}return e=>new Promise(((s,n)=>{t.render(e,((e,t)=>{if(e){n(e);return}s(t)}))}))}if(s==="modern"||s==="modern-compiler"){throw new Error("Modern API is not supported for 'node-sass'")}if(nodeSassJobQueue===null){const e=Number(process.env.UV_THREADPOOL_SIZE||4);const s=__nccwpck_require__(175);nodeSassJobQueue=s.queue(t.render.bind(t),e-1)}return e=>new Promise(((t,s)=>{nodeSassJobQueue.push.bind(nodeSassJobQueue)(e,((e,n)=>{if(e){s(e);return}t(n)}))}))}const ABSOLUTE_SCHEME=/^[A-Za-z0-9+\-.]+:/;function getURLType(e){if(e[0]==="/"){if(e[1]==="/"){return"scheme-relative"}return"path-absolute"}if(IS_NATIVE_WIN32_PATH.test(e)){return"path-absolute"}return ABSOLUTE_SCHEME.test(e)?"absolute":"path-relative"}function normalizeSourceMap(e,t){const s=e;if(typeof s.file!=="undefined"){delete s.file}s.sourceRoot="";s.sources=s.sources.map((e=>{const s=getURLType(e);if(s==="absolute"&&/^file:/i.test(e)){return _url.default.fileURLToPath(e)}else if(s==="path-relative"){return _path.default.resolve(t,_path.default.normalize(e))}return e}));return s}function errorFactory(e){let t;if(e.formatted){t=e.formatted.replace(/^(.+)?Error: /,"")}else{t=(e.message||e.toString()).replace(/^(.+)?Error: /,"")}const s=new Error(t,{cause:e});s.name=e.name;s.stack=null;return s}},175:function(e){e.exports=require("next/dist/compiled/neo-async")},17:function(e){e.exports=require("path")},438:function(e){e.exports=require("sass")},310:function(e){e.exports=require("url")},122:function(e){e.exports=JSON.parse('{"title":"Sass Loader options","type":"object","properties":{"implementation":{"description":"The implementation of the sass to be used.","link":"https://github.com/webpack-contrib/sass-loader#implementation","anyOf":[{"type":"string"},{"type":"object"}]},"api":{"description":"Switch between old and modern API for `sass` (`Dart Sass`) and `Sass Embedded` implementations.","link":"https://github.com/webpack-contrib/sass-loader#sassoptions","enum":["legacy","modern","modern-compiler"]},"sassOptions":{"description":"Options for `node-sass` or `sass` (`Dart Sass`) implementation.","link":"https://github.com/webpack-contrib/sass-loader#sassoptions","anyOf":[{"type":"object","additionalProperties":true},{"instanceof":"Function"}]},"additionalData":{"description":"Prepends/Appends `Sass`/`SCSS` code before the actual entry file.","link":"https://github.com/webpack-contrib/sass-loader#additionaldata","anyOf":[{"type":"string"},{"instanceof":"Function"}]},"sourceMap":{"description":"Enables/Disables generation of source maps.","link":"https://github.com/webpack-contrib/sass-loader#sourcemap","type":"boolean"},"webpackImporter":{"description":"Enables/Disables default `webpack` importer.","link":"https://github.com/webpack-contrib/sass-loader#webpackimporter","type":"boolean"},"warnRuleAsWarning":{"description":"Treats the \'@warn\' rule as a webpack warning.","link":"https://github.com/webpack-contrib/sass-loader#warnruleaswarning","type":"boolean"}},"additionalProperties":false}')}};var __webpack_module_cache__={};function __nccwpck_require__(e){var t=__webpack_module_cache__[e];if(t!==undefined){return t.exports}var s=__webpack_module_cache__[e]={exports:{}};var n=true;try{__webpack_modules__[e](s,s.exports,__nccwpck_require__);n=false}finally{if(n)delete __webpack_module_cache__[e]}return s.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var __webpack_exports__=__nccwpck_require__(163);module.exports=__webpack_exports__})();
\ No newline at end of file
const GlobalURLPattern =
// @ts-expect-error: URLPattern is not available in Node.js
typeof URLPattern === 'undefined' ? undefined : URLPattern
export { GlobalURLPattern as URLPattern }
{
"extends": "./tsconfig.json",
"compilerOptions": {
"rootDir": "src"
},
// Copied from tsconfig.json to not overwrite.
"exclude": [
"dist",
......
......@@ -9,6 +9,8 @@
"module": "ESNext",
"target": "ES2018",
"moduleResolution": "node",
"ignoreDeprecations": "6.0",
"types": ["trusted-types", "jest", "node"],
"paths": {
// Required absolute paths.
// We rewrite these here so that they aren't also input files which would fail tsc with
......
declare module 'react-refresh/runtime' {
export function injectIntoGlobalHook(...args: any[]): void
export function register(...args: any[]): void
export function createSignatureFunctionForTransform(...args: any[]): any
export function getFamilyByType(...args: any[]): any
export function isLikelyComponentType(...args: any[]): boolean
export function performReactRefresh(...args: any[]): void
const RefreshRuntime: {
injectIntoGlobalHook: typeof injectIntoGlobalHook
register: typeof register
createSignatureFunctionForTransform: typeof createSignatureFunctionForTransform
getFamilyByType: typeof getFamilyByType
isLikelyComponentType: typeof isLikelyComponentType
performReactRefresh: typeof performReactRefresh
}
export default RefreshRuntime
}
......@@ -2,12 +2,16 @@
"compilerOptions": {
"module": "commonjs",
"sourceMap": true,
"strict": false,
"esModuleInterop": true,
"target": "es2015",
"lib": ["dom"],
"lib": ["dom", "es2020"],
"downlevelIteration": true,
"ignoreDeprecations": "6.0",
"preserveWatchOutput": true,
"skipLibCheck": true,
"outDir": "dist",
"types": ["node"],
"paths": {
"webpack": ["../../node_modules/webpack5"]
}
......
......@@ -30,7 +30,7 @@
"next": "16.2.1-canary.38",
"outdent": "0.8.0",
"prettier": "2.5.1",
"typescript": "5.9.2"
"typescript": "6.0.2"
},
"peerDependencies": {
"next": "^13.0.0 || ^14.0.0 || ^15.0.0 || ^16.0.0-beta.0",
......
diff --git a/dist/Compilation.d.ts b/dist/Compilation.d.ts
index 271fec0c74ef7fc7a12e9a917dbc5e8cd4f67302..fc02438b27889e4cbffd3561efa0619bbb13ad94 100644
--- a/dist/Compilation.d.ts
+++ b/dist/Compilation.d.ts
@@ -414,4 +414,6 @@ export declare class Entries implements Map<string, EntryData> {
delete(key: string): boolean;
get(key: string): EntryData | undefined;
keys(): ReturnType<Map<string, EntryData>["keys"]>;
+ getOrInsert(key: string, defaultValue: EntryData): EntryData;
+ getOrInsertComputed(key: string, callback: (key: string) => EntryData): EntryData;
}
diff --git a/dist/modules/types.d.ts b/dist/modules/types.d.ts
index 080d3667303398f9ee8cf782c43f2230ea72ef53..cdfe14ad4bdbe07023301dae36e7ea64a5048bf4 100644
--- a/dist/modules/types.d.ts
+++ b/dist/modules/types.d.ts
@@ -27,7 +27,8 @@ declare global {
}
interface PerformanceEventTiming extends PerformanceEntry {
duration: DOMHighResTimeStamp;
- interactionId: number;
+ // Waiting for https://github.com/GoogleChrome/web-vitals/commit/a92f8a78bce9e400366bc29db5fc23fdf23db469
+ readonly interactionId: number;
}
interface LayoutShiftAttribution {
node?: Node;
......@@ -25,6 +25,9 @@ overrides:
packageExtensionsChecksum: sha256-ylDR55omOZlT4Sfpfh6n7mO2r/cLCmlirAikJ/E/LAw=
patchedDependencies:
'@rspack/core@1.6.7':
hash: 4cf28ea116b0e27c7c80b09035905f9d16a7b18d1f2b7d312fc80d42cd57068d
path: patches/@rspack__core@1.6.7.patch
'@types/node@20.17.6':
hash: 9c31d25336aea4076b3cb942c35e59fd160c540947f01ea455a060367153f9fd
path: patches/@types__node@20.17.6.patch
......@@ -40,6 +43,9 @@ patchedDependencies:
taskr@1.1.0:
hash: 1d0f571943b5d4761d4f2f39723796e402dd317f14a7c714e2021d3f12cc481c
path: patches/taskr@1.1.0.patch
web-vitals@4.2.1:
hash: f4d0a6719cc28520df7c47a0e2c2641759c2a0ad06ad57868c4c9d0567d4276d
path: patches/web-vitals@4.2.1.patch
webpack-sources@3.2.3:
hash: 26afc15966a3fc37a3d1d366312a95ce66723513f6a3a720e4166a37147da8bd
path: patches/webpack-sources@3.2.3.patch
......@@ -146,7 +152,7 @@ importers:
version: 1.5.10
'@rspack/core':
specifier: 1.6.7
version: 1.6.7(@swc/helpers@0.5.15)
version: 1.6.7(patch_hash=4cf28ea116b0e27c7c80b09035905f9d16a7b18d1f2b7d312fc80d42cd57068d)(@swc/helpers@0.5.15)
'@slack/web-api':
specifier: 7.9.1
version: 7.9.1
......@@ -305,7 +311,7 @@ importers:
version: 2.31.0(eslint@9.37.0(jiti@2.6.1))
eslint-plugin-jest:
specifier: 27.6.3
version: 27.6.3(eslint@9.37.0(jiti@2.6.1))(jest@29.7.0(@types/node@20.17.6(patch_hash=9c31d25336aea4076b3cb942c35e59fd160c540947f01ea455a060367153f9fd))(babel-plugin-macros@3.1.0))(typescript@5.9.2)
version: 27.6.3(eslint@9.37.0(jiti@2.6.1))(jest@29.7.0(@types/node@20.17.6(patch_hash=9c31d25336aea4076b3cb942c35e59fd160c540947f01ea455a060367153f9fd))(babel-plugin-macros@3.1.0))(typescript@6.0.2)
eslint-plugin-jsdoc:
specifier: 48.0.4
version: 48.0.4(eslint@9.37.0(jiti@2.6.1))
......@@ -593,7 +599,7 @@ importers:
version: 1.2.2
tsec:
specifier: 0.2.1
version: 0.2.1(@bazel/bazelisk@1.19.0)(typescript@5.9.2)
version: 0.2.1(@bazel/bazelisk@1.19.0)(typescript@6.0.2)
tsx:
specifier: 4.19.2
version: 4.19.2
......@@ -601,11 +607,11 @@ importers:
specifier: 2.9.4
version: 2.9.4
typescript:
specifier: 5.9.2
version: 5.9.2
specifier: 6.0.2
version: 6.0.2
typescript-eslint:
specifier: 8.46.0
version: 8.46.0(eslint@9.37.0(jiti@2.6.1))(typescript@5.9.2)
version: 8.46.0(eslint@9.37.0(jiti@2.6.1))(typescript@6.0.2)
unfetch:
specifier: 4.2.0
version: 4.2.0
......@@ -719,8 +725,8 @@ importers:
specifier: 1.3.3
version: 1.3.3
typescript:
specifier: ^5
version: 5.9.2
specifier: 6.0.2
version: 6.0.2
apps/docs:
dependencies:
......@@ -766,13 +772,13 @@ importers:
version: 9.37.0(jiti@2.6.1)
eslint-config-next:
specifier: canary
version: 16.2.0-canary.91(eslint-plugin-import-x@4.3.1(eslint@9.37.0(jiti@2.6.1))(typescript@5.9.2))(eslint@9.37.0(jiti@2.6.1))(typescript@5.9.2)
version: 16.2.0-canary.91(eslint-plugin-import-x@4.3.1(eslint@9.37.0(jiti@2.6.1))(typescript@6.0.2))(eslint@9.37.0(jiti@2.6.1))(typescript@6.0.2)
tailwindcss:
specifier: 4.1.13
version: 4.1.13
typescript:
specifier: ^5
version: 5.9.2
specifier: 6.0.2
version: 6.0.2
bench/app-router-server:
dependencies:
......@@ -1027,10 +1033,10 @@ importers:
version: 0.3.9
eslint-import-resolver-typescript:
specifier: ^3.5.2
version: 3.10.1(eslint-plugin-import-x@4.3.1(eslint@9.37.0(jiti@2.6.1))(typescript@5.9.2))(eslint-plugin-import@2.32.0)(eslint@9.37.0(jiti@2.6.1))
version: 3.10.1(eslint-plugin-import-x@4.3.1(eslint@9.37.0(jiti@2.6.1))(typescript@6.0.2))(eslint-plugin-import@2.32.0)(eslint@9.37.0(jiti@2.6.1))
eslint-plugin-import:
specifier: ^2.32.0
version: 2.32.0(@typescript-eslint/parser@8.46.0(eslint@9.37.0(jiti@2.6.1))(typescript@5.9.2))(eslint-import-resolver-typescript@3.10.1)(eslint@9.37.0(jiti@2.6.1))
version: 2.32.0(@typescript-eslint/parser@8.46.0(eslint@9.37.0(jiti@2.6.1))(typescript@6.0.2))(eslint-import-resolver-typescript@3.10.1)(eslint@9.37.0(jiti@2.6.1))
eslint-plugin-jsx-a11y:
specifier: ^6.10.0
version: 6.10.2(eslint@9.37.0(jiti@2.6.1))
......@@ -1045,7 +1051,7 @@ importers:
version: 16.4.0
typescript-eslint:
specifier: ^8.46.0
version: 8.46.0(eslint@9.37.0(jiti@2.6.1))(typescript@5.9.2)
version: 8.46.0(eslint@9.37.0(jiti@2.6.1))(typescript@6.0.2)
devDependencies:
'@types/eslint':
specifier: 9.6.1
......@@ -1054,8 +1060,8 @@ importers:
specifier: 6.10.1
version: 6.10.1(jiti@2.6.1)
typescript:
specifier: 5.9.2
version: 5.9.2
specifier: 6.0.2
version: 6.0.2
packages/eslint-plugin-internal:
devDependencies:
......@@ -1088,8 +1094,8 @@ importers:
specifier: 2.0.2
version: 2.0.2
typescript:
specifier: 5.9.2
version: 5.9.2
specifier: 6.0.2
version: 6.0.2
packages/next:
dependencies:
......@@ -1237,7 +1243,7 @@ importers:
version: 1.58.2
'@rspack/core':
specifier: 1.6.7
version: 1.6.7(@swc/helpers@0.5.15)
version: 1.6.7(patch_hash=4cf28ea116b0e27c7c80b09035905f9d16a7b18d1f2b7d312fc80d42cd57068d)(@swc/helpers@0.5.15)
'@storybook/addon-a11y':
specifier: 8.6.0
version: 8.6.0(storybook@8.6.0(prettier@3.6.2))
......@@ -1255,10 +1261,10 @@ importers:
version: 8.6.0(react-dom@19.3.0-canary-fef12a01-20260413(react@19.3.0-canary-fef12a01-20260413))(react@19.3.0-canary-fef12a01-20260413)(storybook@8.6.0(prettier@3.6.2))
'@storybook/react':
specifier: 8.6.0
version: 8.6.0(@storybook/test@8.6.0(storybook@8.6.0(prettier@3.6.2)))(react-dom@19.3.0-canary-fef12a01-20260413(react@19.3.0-canary-fef12a01-20260413))(react@19.3.0-canary-fef12a01-20260413)(storybook@8.6.0(prettier@3.6.2))(typescript@5.9.2)
version: 8.6.0(@storybook/test@8.6.0(storybook@8.6.0(prettier@3.6.2)))(react-dom@19.3.0-canary-fef12a01-20260413(react@19.3.0-canary-fef12a01-20260413))(react@19.3.0-canary-fef12a01-20260413)(storybook@8.6.0(prettier@3.6.2))(typescript@6.0.2)
'@storybook/react-webpack5':
specifier: 8.6.0
version: 8.6.0(@rspack/core@1.6.7(@swc/helpers@0.5.15))(@storybook/test@8.6.0(storybook@8.6.0(prettier@3.6.2)))(@swc/core@1.11.24(@swc/helpers@0.5.15))(esbuild@0.25.9)(react-dom@19.3.0-canary-fef12a01-20260413(react@19.3.0-canary-fef12a01-20260413))(react@19.3.0-canary-fef12a01-20260413)(storybook@8.6.0(prettier@3.6.2))(typescript@5.9.2)
version: 8.6.0(@rspack/core@1.6.7(patch_hash=4cf28ea116b0e27c7c80b09035905f9d16a7b18d1f2b7d312fc80d42cd57068d)(@swc/helpers@0.5.15))(@storybook/test@8.6.0(storybook@8.6.0(prettier@3.6.2)))(@swc/core@1.11.24(@swc/helpers@0.5.15))(esbuild@0.25.9)(react-dom@19.3.0-canary-fef12a01-20260413(react@19.3.0-canary-fef12a01-20260413))(react@19.3.0-canary-fef12a01-20260413)(storybook@8.6.0(prettier@3.6.2))(typescript@6.0.2)
'@storybook/test':
specifier: 8.6.0
version: 8.6.0(storybook@8.6.0(prettier@3.6.2))
......@@ -1483,7 +1489,7 @@ importers:
version: 3.12.0
css-loader:
specifier: 7.1.2
version: 7.1.2(@rspack/core@1.6.7(@swc/helpers@0.5.15))(webpack@5.98.0(@swc/core@1.11.24(@swc/helpers@0.5.15))(esbuild@0.25.9))
version: 7.1.2(@rspack/core@1.6.7(patch_hash=4cf28ea116b0e27c7c80b09035905f9d16a7b18d1f2b7d312fc80d42cd57068d)(@swc/helpers@0.5.15))(webpack@5.98.0(@swc/core@1.11.24(@swc/helpers@0.5.15))(esbuild@0.25.9))
css.escape:
specifier: 1.5.1
version: 1.5.1
......@@ -1576,7 +1582,7 @@ importers:
version: 2.4.4(webpack@5.98.0(@swc/core@1.11.24(@swc/helpers@0.5.15))(esbuild@0.25.9))
msw:
specifier: 2.3.0
version: 2.3.0(typescript@5.9.2)
version: 2.3.0(typescript@6.0.2)
nanoid:
specifier: 3.1.32
version: 3.1.32
......@@ -1663,7 +1669,7 @@ importers:
version: 2.5.0
sass-loader:
specifier: 16.0.5
version: 16.0.5(@rspack/core@1.6.7(@swc/helpers@0.5.15))(sass@1.77.8)(webpack@5.98.0(@swc/core@1.11.24(@swc/helpers@0.5.15))(esbuild@0.25.9))
version: 16.0.5(@rspack/core@1.6.7(patch_hash=4cf28ea116b0e27c7c80b09035905f9d16a7b18d1f2b7d312fc80d42cd57068d)(@swc/helpers@0.5.15))(sass@1.77.8)(webpack@5.98.0(@swc/core@1.11.24(@swc/helpers@0.5.15))(esbuild@0.25.9))
schema-utils2:
specifier: npm:schema-utils@2.7.1
version: schema-utils@2.7.1
......@@ -1749,8 +1755,8 @@ importers:
specifier: 0.0.1
version: 0.0.1
typescript:
specifier: 5.9.2
version: 5.9.2
specifier: 6.0.2
version: 6.0.2
ua-parser-js:
specifier: 1.0.35
version: 1.0.35
......@@ -1768,7 +1774,7 @@ importers:
version: 2.4.0
web-vitals:
specifier: 4.2.1
version: 4.2.1
version: 4.2.1(patch_hash=f4d0a6719cc28520df7c47a0e2c2641759c2a0ad06ad57868c4c9d0567d4276d)
webpack:
specifier: 5.98.0
version: 5.98.0(@swc/core@1.11.24(@swc/helpers@0.5.15))(esbuild@0.25.9)
......@@ -1850,8 +1856,8 @@ importers:
specifier: 7.3.1
version: 7.3.1
typescript:
specifier: 5.9.2
version: 5.9.2
specifier: 6.0.2
version: 6.0.2
packages/next-env:
devDependencies:
......@@ -1883,8 +1889,8 @@ importers:
specifier: 1.58.2
version: 1.58.2
typescript:
specifier: 5.9.2
version: 5.9.2
specifier: 6.0.2
version: 6.0.2
packages/next-plugin-storybook: {}
......@@ -1922,7 +1928,7 @@ importers:
version: 29.7.0(@types/node@20.17.6(patch_hash=9c31d25336aea4076b3cb942c35e59fd160c540947f01ea455a060367153f9fd))(babel-plugin-macros@3.1.0)
ts-jest:
specifier: ^29.1.0
version: 29.4.5(@babel/core@7.26.10)(@jest/transform@29.7.0)(@jest/types@29.6.3)(babel-jest@29.7.0(@babel/core@7.26.10))(jest-util@29.7.0)(jest@29.7.0(@types/node@20.17.6(patch_hash=9c31d25336aea4076b3cb942c35e59fd160c540947f01ea455a060367153f9fd))(babel-plugin-macros@3.1.0))(typescript@5.9.2)
version: 29.4.5(@babel/core@7.26.10)(@jest/transform@29.7.0)(@jest/types@29.6.3)(babel-jest@29.7.0(@babel/core@7.26.10))(jest-util@29.7.0)(jest@29.7.0(@types/node@20.17.6(patch_hash=9c31d25336aea4076b3cb942c35e59fd160c540947f01ea455a060367153f9fd))(babel-plugin-macros@3.1.0))(typescript@6.0.2)
packages/next-rspack:
dependencies:
......@@ -1970,8 +1976,8 @@ importers:
specifier: 2.5.1
version: 2.5.1
typescript:
specifier: 5.9.2
version: 5.9.2
specifier: 6.0.2
version: 6.0.2
turbopack/crates/turbopack-cli/js:
dependencies:
......@@ -16046,7 +16052,6 @@ packages:
engines: {node: '>=0.6.0', teleport: '>=0.2.0'}
deprecated: |-
You or someone you depend on is using Q, the JavaScript Promise library that gave JavaScript developers strong feelings about promises. They can almost certainly migrate to the native JavaScript promise now. Thank you literally everyone for joining me in this bet against the odds. Be excellent to each other.
(For a CapTP with native promises, see @endo/eventual-send and @endo/captp)
qs@6.11.0:
......@@ -18250,6 +18255,11 @@ packages:
engines: {node: '>=14.17'}
hasBin: true
typescript@6.0.2:
resolution: {integrity: sha512-bGdAIrZ0wiGDo5l8c++HWtbaNCWTS4UTv7RaTH/ThVIgjkveJt83m74bBHMJkuCbslY8ixgLBVZJIOiQlQTjfQ==}
engines: {node: '>=14.17'}
hasBin: true
ua-parser-js@0.7.31:
resolution: {integrity: sha512-qLK/Xe9E2uzmYI3qLeOmI0tEOt+TBBQyUIAh4aAgU05FVYzeZrKUdkAZfBNVGRaHVgV0TDkdEngJSw/SyQchkQ==}
deprecated: You are using an outdated version of ua-parser-js. Please update to ua-parser-js v0.7.33 / v1.0.33 / v2.0.0 (or later) to avoid ReDoS vulnerability [CVE-2022-25927](https://github.com/advisories/GHSA-fhg7-m89q-25r3)
......@@ -22080,7 +22090,7 @@ snapshots:
'@next/rspack-core@1.0.2(@swc/helpers@0.5.15)':
dependencies:
'@next/rspack-binding': 1.0.2
'@rspack/core': 1.6.7(@swc/helpers@0.5.15)
'@rspack/core': 1.6.7(patch_hash=4cf28ea116b0e27c7c80b09035905f9d16a7b18d1f2b7d312fc80d42cd57068d)(@swc/helpers@0.5.15)
transitivePeerDependencies:
- '@swc/helpers'
......@@ -23558,7 +23568,7 @@ snapshots:
'@rspack/binding-win32-ia32-msvc': 1.6.7
'@rspack/binding-win32-x64-msvc': 1.6.7
'@rspack/core@1.6.7(@swc/helpers@0.5.15)':
'@rspack/core@1.6.7(patch_hash=4cf28ea116b0e27c7c80b09035905f9d16a7b18d1f2b7d312fc80d42cd57068d)(@swc/helpers@0.5.15)':
dependencies:
'@module-federation/runtime-tools': 0.21.6
'@rspack/binding': 1.6.7
......@@ -23825,7 +23835,7 @@ snapshots:
react: 19.3.0-canary-fef12a01-20260413
react-dom: 19.3.0-canary-fef12a01-20260413(react@19.3.0-canary-fef12a01-20260413)
'@storybook/builder-webpack5@8.6.0(@rspack/core@1.6.7(@swc/helpers@0.5.15))(@swc/core@1.11.24(@swc/helpers@0.5.15))(esbuild@0.25.9)(storybook@8.6.0(prettier@3.6.2))(typescript@5.9.2)':
'@storybook/builder-webpack5@8.6.0(@rspack/core@1.6.7(patch_hash=4cf28ea116b0e27c7c80b09035905f9d16a7b18d1f2b7d312fc80d42cd57068d)(@swc/helpers@0.5.15))(@swc/core@1.11.24(@swc/helpers@0.5.15))(esbuild@0.25.9)(storybook@8.6.0(prettier@3.6.2))(typescript@6.0.2)':
dependencies:
'@storybook/core-webpack': 8.6.0(storybook@8.6.0(prettier@3.6.2))
'@types/semver': 7.5.6
......@@ -23833,10 +23843,10 @@ snapshots:
case-sensitive-paths-webpack-plugin: 2.4.0
cjs-module-lexer: 1.4.1
constants-browserify: 1.0.0
css-loader: 6.11.0(@rspack/core@1.6.7(@swc/helpers@0.5.15))(webpack@5.98.0(@swc/core@1.11.24(@swc/helpers@0.5.15))(esbuild@0.25.9))
css-loader: 6.11.0(@rspack/core@1.6.7(patch_hash=4cf28ea116b0e27c7c80b09035905f9d16a7b18d1f2b7d312fc80d42cd57068d)(@swc/helpers@0.5.15))(webpack@5.98.0(@swc/core@1.11.24(@swc/helpers@0.5.15))(esbuild@0.25.9))
es-module-lexer: 1.6.0
fork-ts-checker-webpack-plugin: 8.0.0(typescript@5.9.2)(webpack@5.98.0(@swc/core@1.11.24(@swc/helpers@0.5.15))(esbuild@0.25.9))
html-webpack-plugin: 5.6.3(@rspack/core@1.6.7(@swc/helpers@0.5.15))(webpack@5.98.0(@swc/core@1.11.24(@swc/helpers@0.5.15))(esbuild@0.25.9))
fork-ts-checker-webpack-plugin: 8.0.0(typescript@6.0.2)(webpack@5.98.0(@swc/core@1.11.24(@swc/helpers@0.5.15))(esbuild@0.25.9))
html-webpack-plugin: 5.6.3(@rspack/core@1.6.7(patch_hash=4cf28ea116b0e27c7c80b09035905f9d16a7b18d1f2b7d312fc80d42cd57068d)(@swc/helpers@0.5.15))(webpack@5.98.0(@swc/core@1.11.24(@swc/helpers@0.5.15))(esbuild@0.25.9))
magic-string: 0.30.19
path-browserify: 1.0.1
process: 0.11.10
......@@ -23853,7 +23863,7 @@ snapshots:
webpack-hot-middleware: 2.26.1
webpack-virtual-modules: 0.6.2
optionalDependencies:
typescript: 5.9.2
typescript: 6.0.2
transitivePeerDependencies:
- '@rspack/core'
- '@swc/core'
......@@ -23917,11 +23927,11 @@ snapshots:
dependencies:
storybook: 8.6.0(prettier@3.6.2)
'@storybook/preset-react-webpack@8.6.0(@storybook/test@8.6.0(storybook@8.6.0(prettier@3.6.2)))(@swc/core@1.11.24(@swc/helpers@0.5.15))(esbuild@0.25.9)(react-dom@19.3.0-canary-fef12a01-20260413(react@19.3.0-canary-fef12a01-20260413))(react@19.3.0-canary-fef12a01-20260413)(storybook@8.6.0(prettier@3.6.2))(typescript@5.9.2)':
'@storybook/preset-react-webpack@8.6.0(@storybook/test@8.6.0(storybook@8.6.0(prettier@3.6.2)))(@swc/core@1.11.24(@swc/helpers@0.5.15))(esbuild@0.25.9)(react-dom@19.3.0-canary-fef12a01-20260413(react@19.3.0-canary-fef12a01-20260413))(react@19.3.0-canary-fef12a01-20260413)(storybook@8.6.0(prettier@3.6.2))(typescript@6.0.2)':
dependencies:
'@storybook/core-webpack': 8.6.0(storybook@8.6.0(prettier@3.6.2))
'@storybook/react': 8.6.0(@storybook/test@8.6.0(storybook@8.6.0(prettier@3.6.2)))(react-dom@19.3.0-canary-fef12a01-20260413(react@19.3.0-canary-fef12a01-20260413))(react@19.3.0-canary-fef12a01-20260413)(storybook@8.6.0(prettier@3.6.2))(typescript@5.9.2)
'@storybook/react-docgen-typescript-plugin': 1.0.6--canary.9.0c3f3b7.0(typescript@5.9.2)(webpack@5.98.0(@swc/core@1.11.24(@swc/helpers@0.5.15))(esbuild@0.25.9))
'@storybook/react': 8.6.0(@storybook/test@8.6.0(storybook@8.6.0(prettier@3.6.2)))(react-dom@19.3.0-canary-fef12a01-20260413(react@19.3.0-canary-fef12a01-20260413))(react@19.3.0-canary-fef12a01-20260413)(storybook@8.6.0(prettier@3.6.2))(typescript@6.0.2)
'@storybook/react-docgen-typescript-plugin': 1.0.6--canary.9.0c3f3b7.0(typescript@6.0.2)(webpack@5.98.0(@swc/core@1.11.24(@swc/helpers@0.5.15))(esbuild@0.25.9))
'@types/semver': 7.5.6
find-up: 5.0.0
magic-string: 0.30.19
......@@ -23934,7 +23944,7 @@ snapshots:
tsconfig-paths: 4.2.0
webpack: 5.98.0(@swc/core@1.11.24(@swc/helpers@0.5.15))(esbuild@0.25.9)
optionalDependencies:
typescript: 5.9.2
typescript: 6.0.2
transitivePeerDependencies:
- '@storybook/test'
- '@swc/core'
......@@ -23947,16 +23957,16 @@ snapshots:
dependencies:
storybook: 8.6.0(prettier@3.6.2)
'@storybook/react-docgen-typescript-plugin@1.0.6--canary.9.0c3f3b7.0(typescript@5.9.2)(webpack@5.98.0(@swc/core@1.11.24(@swc/helpers@0.5.15))(esbuild@0.25.9))':
'@storybook/react-docgen-typescript-plugin@1.0.6--canary.9.0c3f3b7.0(typescript@6.0.2)(webpack@5.98.0(@swc/core@1.11.24(@swc/helpers@0.5.15))(esbuild@0.25.9))':
dependencies:
debug: 4.1.1
endent: 2.1.0
find-cache-dir: 3.3.1
flat-cache: 3.2.0
micromatch: 4.0.8
react-docgen-typescript: 2.2.2(typescript@5.9.2)
react-docgen-typescript: 2.2.2(typescript@6.0.2)
tslib: 2.8.1
typescript: 5.9.2
typescript: 6.0.2
webpack: 5.98.0(@swc/core@1.11.24(@swc/helpers@0.5.15))(esbuild@0.25.9)
transitivePeerDependencies:
- supports-color
......@@ -23967,16 +23977,16 @@ snapshots:
react-dom: 19.3.0-canary-fef12a01-20260413(react@19.3.0-canary-fef12a01-20260413)
storybook: 8.6.0(prettier@3.6.2)
'@storybook/react-webpack5@8.6.0(@rspack/core@1.6.7(@swc/helpers@0.5.15))(@storybook/test@8.6.0(storybook@8.6.0(prettier@3.6.2)))(@swc/core@1.11.24(@swc/helpers@0.5.15))(esbuild@0.25.9)(react-dom@19.3.0-canary-fef12a01-20260413(react@19.3.0-canary-fef12a01-20260413))(react@19.3.0-canary-fef12a01-20260413)(storybook@8.6.0(prettier@3.6.2))(typescript@5.9.2)':
'@storybook/react-webpack5@8.6.0(@rspack/core@1.6.7(patch_hash=4cf28ea116b0e27c7c80b09035905f9d16a7b18d1f2b7d312fc80d42cd57068d)(@swc/helpers@0.5.15))(@storybook/test@8.6.0(storybook@8.6.0(prettier@3.6.2)))(@swc/core@1.11.24(@swc/helpers@0.5.15))(esbuild@0.25.9)(react-dom@19.3.0-canary-fef12a01-20260413(react@19.3.0-canary-fef12a01-20260413))(react@19.3.0-canary-fef12a01-20260413)(storybook@8.6.0(prettier@3.6.2))(typescript@6.0.2)':
dependencies:
'@storybook/builder-webpack5': 8.6.0(@rspack/core@1.6.7(@swc/helpers@0.5.15))(@swc/core@1.11.24(@swc/helpers@0.5.15))(esbuild@0.25.9)(storybook@8.6.0(prettier@3.6.2))(typescript@5.9.2)
'@storybook/preset-react-webpack': 8.6.0(@storybook/test@8.6.0(storybook@8.6.0(prettier@3.6.2)))(@swc/core@1.11.24(@swc/helpers@0.5.15))(esbuild@0.25.9)(react-dom@19.3.0-canary-fef12a01-20260413(react@19.3.0-canary-fef12a01-20260413))(react@19.3.0-canary-fef12a01-20260413)(storybook@8.6.0(prettier@3.6.2))(typescript@5.9.2)
'@storybook/react': 8.6.0(@storybook/test@8.6.0(storybook@8.6.0(prettier@3.6.2)))(react-dom@19.3.0-canary-fef12a01-20260413(react@19.3.0-canary-fef12a01-20260413))(react@19.3.0-canary-fef12a01-20260413)(storybook@8.6.0(prettier@3.6.2))(typescript@5.9.2)
'@storybook/builder-webpack5': 8.6.0(@rspack/core@1.6.7(patch_hash=4cf28ea116b0e27c7c80b09035905f9d16a7b18d1f2b7d312fc80d42cd57068d)(@swc/helpers@0.5.15))(@swc/core@1.11.24(@swc/helpers@0.5.15))(esbuild@0.25.9)(storybook@8.6.0(prettier@3.6.2))(typescript@6.0.2)
'@storybook/preset-react-webpack': 8.6.0(@storybook/test@8.6.0(storybook@8.6.0(prettier@3.6.2)))(@swc/core@1.11.24(@swc/helpers@0.5.15))(esbuild@0.25.9)(react-dom@19.3.0-canary-fef12a01-20260413(react@19.3.0-canary-fef12a01-20260413))(react@19.3.0-canary-fef12a01-20260413)(storybook@8.6.0(prettier@3.6.2))(typescript@6.0.2)
'@storybook/react': 8.6.0(@storybook/test@8.6.0(storybook@8.6.0(prettier@3.6.2)))(react-dom@19.3.0-canary-fef12a01-20260413(react@19.3.0-canary-fef12a01-20260413))(react@19.3.0-canary-fef12a01-20260413)(storybook@8.6.0(prettier@3.6.2))(typescript@6.0.2)
react: 19.3.0-canary-fef12a01-20260413
react-dom: 19.3.0-canary-fef12a01-20260413(react@19.3.0-canary-fef12a01-20260413)
storybook: 8.6.0(prettier@3.6.2)
optionalDependencies:
typescript: 5.9.2
typescript: 6.0.2
transitivePeerDependencies:
- '@rspack/core'
- '@storybook/test'
......@@ -23986,7 +23996,7 @@ snapshots:
- uglify-js
- webpack-cli
'@storybook/react@8.6.0(@storybook/test@8.6.0(storybook@8.6.0(prettier@3.6.2)))(react-dom@19.3.0-canary-fef12a01-20260413(react@19.3.0-canary-fef12a01-20260413))(react@19.3.0-canary-fef12a01-20260413)(storybook@8.6.0(prettier@3.6.2))(typescript@5.9.2)':
'@storybook/react@8.6.0(@storybook/test@8.6.0(storybook@8.6.0(prettier@3.6.2)))(react-dom@19.3.0-canary-fef12a01-20260413(react@19.3.0-canary-fef12a01-20260413))(react@19.3.0-canary-fef12a01-20260413)(storybook@8.6.0(prettier@3.6.2))(typescript@6.0.2)':
dependencies:
'@storybook/components': 8.6.0(storybook@8.6.0(prettier@3.6.2))
'@storybook/global': 5.0.0
......@@ -23999,7 +24009,7 @@ snapshots:
storybook: 8.6.0(prettier@3.6.2)
optionalDependencies:
'@storybook/test': 8.6.0(storybook@8.6.0(prettier@3.6.2))
typescript: 5.9.2
typescript: 6.0.2
'@storybook/test-runner@0.21.0(@swc/helpers@0.5.15)(@types/node@20.17.6(patch_hash=9c31d25336aea4076b3cb942c35e59fd160c540947f01ea455a060367153f9fd))(babel-plugin-macros@3.1.0)(debug@4.1.1)(storybook@8.6.0(prettier@3.6.2))':
dependencies:
......@@ -24789,41 +24799,41 @@ snapshots:
dependencies:
'@types/yargs-parser': 21.0.0
'@typescript-eslint/eslint-plugin@8.46.0(@typescript-eslint/parser@8.46.0(eslint@9.37.0(jiti@2.6.1))(typescript@5.9.2))(eslint@9.37.0(jiti@2.6.1))(typescript@5.9.2)':
'@typescript-eslint/eslint-plugin@8.46.0(@typescript-eslint/parser@8.46.0(eslint@9.37.0(jiti@2.6.1))(typescript@6.0.2))(eslint@9.37.0(jiti@2.6.1))(typescript@6.0.2)':
dependencies:
'@eslint-community/regexpp': 4.12.1
'@typescript-eslint/parser': 8.46.0(eslint@9.37.0(jiti@2.6.1))(typescript@5.9.2)
'@typescript-eslint/parser': 8.46.0(eslint@9.37.0(jiti@2.6.1))(typescript@6.0.2)
'@typescript-eslint/scope-manager': 8.46.0
'@typescript-eslint/type-utils': 8.46.0(eslint@9.37.0(jiti@2.6.1))(typescript@5.9.2)
'@typescript-eslint/utils': 8.46.0(eslint@9.37.0(jiti@2.6.1))(typescript@5.9.2)
'@typescript-eslint/type-utils': 8.46.0(eslint@9.37.0(jiti@2.6.1))(typescript@6.0.2)
'@typescript-eslint/utils': 8.46.0(eslint@9.37.0(jiti@2.6.1))(typescript@6.0.2)
'@typescript-eslint/visitor-keys': 8.46.0
eslint: 9.37.0(jiti@2.6.1)
graphemer: 1.4.0
ignore: 7.0.5
natural-compare: 1.4.0
ts-api-utils: 2.1.0(typescript@5.9.2)
typescript: 5.9.2
ts-api-utils: 2.1.0(typescript@6.0.2)
typescript: 6.0.2
transitivePeerDependencies:
- supports-color
'@typescript-eslint/parser@8.46.0(eslint@9.37.0(jiti@2.6.1))(typescript@5.9.2)':
'@typescript-eslint/parser@8.46.0(eslint@9.37.0(jiti@2.6.1))(typescript@6.0.2)':
dependencies:
'@typescript-eslint/scope-manager': 8.46.0
'@typescript-eslint/types': 8.46.0
'@typescript-eslint/typescript-estree': 8.46.0(typescript@5.9.2)
'@typescript-eslint/typescript-estree': 8.46.0(typescript@6.0.2)
'@typescript-eslint/visitor-keys': 8.46.0
debug: 4.4.0
eslint: 9.37.0(jiti@2.6.1)
typescript: 5.9.2
typescript: 6.0.2
transitivePeerDependencies:
- supports-color
'@typescript-eslint/project-service@8.46.0(typescript@5.9.2)':
'@typescript-eslint/project-service@8.46.0(typescript@6.0.2)':
dependencies:
'@typescript-eslint/tsconfig-utils': 8.46.0(typescript@5.9.2)
'@typescript-eslint/tsconfig-utils': 8.46.0(typescript@6.0.2)
'@typescript-eslint/types': 8.46.0
debug: 4.4.0
typescript: 5.9.2
typescript: 6.0.2
transitivePeerDependencies:
- supports-color
......@@ -24837,19 +24847,19 @@ snapshots:
'@typescript-eslint/types': 8.46.0
'@typescript-eslint/visitor-keys': 8.46.0
'@typescript-eslint/tsconfig-utils@8.46.0(typescript@5.9.2)':
'@typescript-eslint/tsconfig-utils@8.46.0(typescript@6.0.2)':
dependencies:
typescript: 5.9.2
typescript: 6.0.2
'@typescript-eslint/type-utils@8.46.0(eslint@9.37.0(jiti@2.6.1))(typescript@5.9.2)':
'@typescript-eslint/type-utils@8.46.0(eslint@9.37.0(jiti@2.6.1))(typescript@6.0.2)':
dependencies:
'@typescript-eslint/types': 8.46.0
'@typescript-eslint/typescript-estree': 8.46.0(typescript@5.9.2)
'@typescript-eslint/utils': 8.46.0(eslint@9.37.0(jiti@2.6.1))(typescript@5.9.2)
'@typescript-eslint/typescript-estree': 8.46.0(typescript@6.0.2)
'@typescript-eslint/utils': 8.46.0(eslint@9.37.0(jiti@2.6.1))(typescript@6.0.2)
debug: 4.4.0
eslint: 9.37.0(jiti@2.6.1)
ts-api-utils: 2.1.0(typescript@5.9.2)
typescript: 5.9.2
ts-api-utils: 2.1.0(typescript@6.0.2)
typescript: 6.0.2
transitivePeerDependencies:
- supports-color
......@@ -24857,7 +24867,7 @@ snapshots:
'@typescript-eslint/types@8.46.0': {}
'@typescript-eslint/typescript-estree@5.62.0(typescript@5.9.2)':
'@typescript-eslint/typescript-estree@5.62.0(typescript@6.0.2)':
dependencies:
'@typescript-eslint/types': 5.62.0
'@typescript-eslint/visitor-keys': 5.62.0
......@@ -24865,16 +24875,16 @@ snapshots:
globby: 11.1.0
is-glob: 4.0.3
semver: 7.6.3
tsutils: 3.21.0(typescript@5.9.2)
tsutils: 3.21.0(typescript@6.0.2)
optionalDependencies:
typescript: 5.9.2
typescript: 6.0.2
transitivePeerDependencies:
- supports-color
'@typescript-eslint/typescript-estree@8.46.0(typescript@5.9.2)':
'@typescript-eslint/typescript-estree@8.46.0(typescript@6.0.2)':
dependencies:
'@typescript-eslint/project-service': 8.46.0(typescript@5.9.2)
'@typescript-eslint/tsconfig-utils': 8.46.0(typescript@5.9.2)
'@typescript-eslint/project-service': 8.46.0(typescript@6.0.2)
'@typescript-eslint/tsconfig-utils': 8.46.0(typescript@6.0.2)
'@typescript-eslint/types': 8.46.0
'@typescript-eslint/visitor-keys': 8.46.0
debug: 4.4.0
......@@ -24882,19 +24892,19 @@ snapshots:
is-glob: 4.0.3
minimatch: 9.0.5
semver: 7.6.3
ts-api-utils: 2.1.0(typescript@5.9.2)
typescript: 5.9.2
ts-api-utils: 2.1.0(typescript@6.0.2)
typescript: 6.0.2
transitivePeerDependencies:
- supports-color
'@typescript-eslint/utils@5.62.0(eslint@9.37.0(jiti@2.6.1))(typescript@5.9.2)':
'@typescript-eslint/utils@5.62.0(eslint@9.37.0(jiti@2.6.1))(typescript@6.0.2)':
dependencies:
'@eslint-community/eslint-utils': 4.9.0(eslint@9.37.0(jiti@2.6.1))
'@types/json-schema': 7.0.15
'@types/semver': 7.5.6
'@typescript-eslint/scope-manager': 5.62.0
'@typescript-eslint/types': 5.62.0
'@typescript-eslint/typescript-estree': 5.62.0(typescript@5.9.2)
'@typescript-eslint/typescript-estree': 5.62.0(typescript@6.0.2)
eslint: 9.37.0(jiti@2.6.1)
eslint-scope: 5.1.1
semver: 7.6.3
......@@ -24902,14 +24912,14 @@ snapshots:
- supports-color
- typescript
'@typescript-eslint/utils@8.46.0(eslint@9.37.0(jiti@2.6.1))(typescript@5.9.2)':
'@typescript-eslint/utils@8.46.0(eslint@9.37.0(jiti@2.6.1))(typescript@6.0.2)':
dependencies:
'@eslint-community/eslint-utils': 4.9.0(eslint@9.37.0(jiti@2.6.1))
'@typescript-eslint/scope-manager': 8.46.0
'@typescript-eslint/types': 8.46.0
'@typescript-eslint/typescript-estree': 8.46.0(typescript@5.9.2)
'@typescript-eslint/typescript-estree': 8.46.0(typescript@6.0.2)
eslint: 9.37.0(jiti@2.6.1)
typescript: 5.9.2
typescript: 6.0.2
transitivePeerDependencies:
- supports-color
......@@ -27159,7 +27169,7 @@ snapshots:
postcss: 8.4.31
postcss-selector-parser: 6.1.2
css-loader@6.11.0(@rspack/core@1.6.7(@swc/helpers@0.5.15))(webpack@5.98.0(@swc/core@1.11.24(@swc/helpers@0.5.15))(esbuild@0.25.9)):
css-loader@6.11.0(@rspack/core@1.6.7(patch_hash=4cf28ea116b0e27c7c80b09035905f9d16a7b18d1f2b7d312fc80d42cd57068d)(@swc/helpers@0.5.15))(webpack@5.98.0(@swc/core@1.11.24(@swc/helpers@0.5.15))(esbuild@0.25.9)):
dependencies:
icss-utils: 5.1.0(postcss@8.5.3)
postcss: 8.5.3
......@@ -27170,10 +27180,10 @@ snapshots:
postcss-value-parser: 4.2.0
semver: 7.6.3
optionalDependencies:
'@rspack/core': 1.6.7(@swc/helpers@0.5.15)
'@rspack/core': 1.6.7(patch_hash=4cf28ea116b0e27c7c80b09035905f9d16a7b18d1f2b7d312fc80d42cd57068d)(@swc/helpers@0.5.15)
webpack: 5.98.0(@swc/core@1.11.24(@swc/helpers@0.5.15))(esbuild@0.25.9)
css-loader@7.1.2(@rspack/core@1.6.7(@swc/helpers@0.5.15))(webpack@5.98.0(@swc/core@1.11.24(@swc/helpers@0.5.15))(esbuild@0.25.9)):
css-loader@7.1.2(@rspack/core@1.6.7(patch_hash=4cf28ea116b0e27c7c80b09035905f9d16a7b18d1f2b7d312fc80d42cd57068d)(@swc/helpers@0.5.15))(webpack@5.98.0(@swc/core@1.11.24(@swc/helpers@0.5.15))(esbuild@0.25.9)):
dependencies:
icss-utils: 5.1.0(postcss@8.5.3)
postcss: 8.5.3
......@@ -27184,7 +27194,7 @@ snapshots:
postcss-value-parser: 4.2.0
semver: 7.6.3
optionalDependencies:
'@rspack/core': 1.6.7(@swc/helpers@0.5.15)
'@rspack/core': 1.6.7(patch_hash=4cf28ea116b0e27c7c80b09035905f9d16a7b18d1f2b7d312fc80d42cd57068d)(@swc/helpers@0.5.15)
webpack: 5.98.0(@swc/core@1.11.24(@swc/helpers@0.5.15))(esbuild@0.25.9)
css-prefers-color-scheme@6.0.3(postcss@8.4.31):
......@@ -28497,20 +28507,20 @@ snapshots:
optionalDependencies:
source-map: 0.6.1
eslint-config-next@16.2.0-canary.91(eslint-plugin-import-x@4.3.1(eslint@9.37.0(jiti@2.6.1))(typescript@5.9.2))(eslint@9.37.0(jiti@2.6.1))(typescript@5.9.2):
eslint-config-next@16.2.0-canary.91(eslint-plugin-import-x@4.3.1(eslint@9.37.0(jiti@2.6.1))(typescript@6.0.2))(eslint@9.37.0(jiti@2.6.1))(typescript@6.0.2):
dependencies:
'@next/eslint-plugin-next': 16.2.0-canary.91
eslint: 9.37.0(jiti@2.6.1)
eslint-import-resolver-node: 0.3.9
eslint-import-resolver-typescript: 3.10.1(eslint-plugin-import-x@4.3.1(eslint@9.37.0(jiti@2.6.1))(typescript@5.9.2))(eslint-plugin-import@2.32.0)(eslint@9.37.0(jiti@2.6.1))
eslint-import-resolver-typescript: 3.10.1(eslint-plugin-import-x@4.3.1(eslint@9.37.0(jiti@2.6.1))(typescript@6.0.2))(eslint-plugin-import@2.32.0)(eslint@9.37.0(jiti@2.6.1))
eslint-plugin-import: 2.32.0(eslint-import-resolver-typescript@3.10.1)(eslint@9.37.0(jiti@2.6.1))
eslint-plugin-jsx-a11y: 6.10.2(eslint@9.37.0(jiti@2.6.1))
eslint-plugin-react: 7.37.0(eslint@9.37.0(jiti@2.6.1))
eslint-plugin-react-hooks: 7.0.0(eslint@9.37.0(jiti@2.6.1))
globals: 16.4.0
typescript-eslint: 8.46.0(eslint@9.37.0(jiti@2.6.1))(typescript@5.9.2)
typescript-eslint: 8.46.0(eslint@9.37.0(jiti@2.6.1))(typescript@6.0.2)
optionalDependencies:
typescript: 5.9.2
typescript: 6.0.2
transitivePeerDependencies:
- '@typescript-eslint/parser'
- eslint-import-resolver-webpack
......@@ -28530,7 +28540,7 @@ snapshots:
transitivePeerDependencies:
- supports-color
eslint-import-resolver-typescript@3.10.1(eslint-plugin-import-x@4.3.1(eslint@9.37.0(jiti@2.6.1))(typescript@5.9.2))(eslint-plugin-import@2.32.0)(eslint@9.37.0(jiti@2.6.1)):
eslint-import-resolver-typescript@3.10.1(eslint-plugin-import-x@4.3.1(eslint@9.37.0(jiti@2.6.1))(typescript@6.0.2))(eslint-plugin-import@2.32.0)(eslint@9.37.0(jiti@2.6.1)):
dependencies:
'@nolyfill/is-core-module': 1.0.39
debug: 4.4.0
......@@ -28541,8 +28551,8 @@ snapshots:
tinyglobby: 0.2.15
unrs-resolver: 1.11.1
optionalDependencies:
eslint-plugin-import: 2.32.0(@typescript-eslint/parser@8.46.0(eslint@9.37.0(jiti@2.6.1))(typescript@5.9.2))(eslint-import-resolver-typescript@3.10.1)(eslint@9.37.0(jiti@2.6.1))
eslint-plugin-import-x: 4.3.1(eslint@9.37.0(jiti@2.6.1))(typescript@5.9.2)
eslint-plugin-import: 2.32.0(@typescript-eslint/parser@8.46.0(eslint@9.37.0(jiti@2.6.1))(typescript@6.0.2))(eslint-import-resolver-typescript@3.10.1)(eslint@9.37.0(jiti@2.6.1))
eslint-plugin-import-x: 4.3.1(eslint@9.37.0(jiti@2.6.1))(typescript@6.0.2)
transitivePeerDependencies:
- supports-color
......@@ -28576,14 +28586,14 @@ snapshots:
transitivePeerDependencies:
- supports-color
eslint-module-utils@2.12.1(@typescript-eslint/parser@8.46.0(eslint@9.37.0(jiti@2.6.1))(typescript@5.9.2))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.10.1)(eslint@9.37.0(jiti@2.6.1)):
eslint-module-utils@2.12.1(@typescript-eslint/parser@8.46.0(eslint@9.37.0(jiti@2.6.1))(typescript@6.0.2))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.10.1)(eslint@9.37.0(jiti@2.6.1)):
dependencies:
debug: 3.2.7
optionalDependencies:
'@typescript-eslint/parser': 8.46.0(eslint@9.37.0(jiti@2.6.1))(typescript@5.9.2)
'@typescript-eslint/parser': 8.46.0(eslint@9.37.0(jiti@2.6.1))(typescript@6.0.2)
eslint: 9.37.0(jiti@2.6.1)
eslint-import-resolver-node: 0.3.9
eslint-import-resolver-typescript: 3.10.1(eslint-plugin-import-x@4.3.1(eslint@9.37.0(jiti@2.6.1))(typescript@5.9.2))(eslint-plugin-import@2.32.0)(eslint@9.37.0(jiti@2.6.1))
eslint-import-resolver-typescript: 3.10.1(eslint-plugin-import-x@4.3.1(eslint@9.37.0(jiti@2.6.1))(typescript@6.0.2))(eslint-plugin-import@2.32.0)(eslint@9.37.0(jiti@2.6.1))
transitivePeerDependencies:
- supports-color
......@@ -28593,9 +28603,9 @@ snapshots:
eslint-utils: 3.0.0(eslint@9.37.0(jiti@2.6.1))
estraverse: 5.3.0
eslint-plugin-import-x@4.3.1(eslint@9.37.0(jiti@2.6.1))(typescript@5.9.2):
eslint-plugin-import-x@4.3.1(eslint@9.37.0(jiti@2.6.1))(typescript@6.0.2):
dependencies:
'@typescript-eslint/utils': 8.46.0(eslint@9.37.0(jiti@2.6.1))(typescript@5.9.2)
'@typescript-eslint/utils': 8.46.0(eslint@9.37.0(jiti@2.6.1))(typescript@6.0.2)
debug: 4.4.3
doctrine: 3.0.0
eslint: 9.37.0(jiti@2.6.1)
......@@ -28638,7 +28648,7 @@ snapshots:
- eslint-import-resolver-webpack
- supports-color
eslint-plugin-import@2.32.0(@typescript-eslint/parser@8.46.0(eslint@9.37.0(jiti@2.6.1))(typescript@5.9.2))(eslint-import-resolver-typescript@3.10.1)(eslint@9.37.0(jiti@2.6.1)):
eslint-plugin-import@2.32.0(@typescript-eslint/parser@8.46.0(eslint@9.37.0(jiti@2.6.1))(typescript@6.0.2))(eslint-import-resolver-typescript@3.10.1)(eslint@9.37.0(jiti@2.6.1)):
dependencies:
'@rtsao/scc': 1.1.0
array-includes: 3.1.9
......@@ -28649,7 +28659,7 @@ snapshots:
doctrine: 2.1.0
eslint: 9.37.0(jiti@2.6.1)
eslint-import-resolver-node: 0.3.9
eslint-module-utils: 2.12.1(@typescript-eslint/parser@8.46.0(eslint@9.37.0(jiti@2.6.1))(typescript@5.9.2))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.10.1)(eslint@9.37.0(jiti@2.6.1))
eslint-module-utils: 2.12.1(@typescript-eslint/parser@8.46.0(eslint@9.37.0(jiti@2.6.1))(typescript@6.0.2))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.10.1)(eslint@9.37.0(jiti@2.6.1))
hasown: 2.0.2
is-core-module: 2.16.1
is-glob: 4.0.3
......@@ -28661,7 +28671,7 @@ snapshots:
string.prototype.trimend: 1.0.9
tsconfig-paths: 3.15.0
optionalDependencies:
'@typescript-eslint/parser': 8.46.0(eslint@9.37.0(jiti@2.6.1))(typescript@5.9.2)
'@typescript-eslint/parser': 8.46.0(eslint@9.37.0(jiti@2.6.1))(typescript@6.0.2)
transitivePeerDependencies:
- eslint-import-resolver-typescript
- eslint-import-resolver-webpack
......@@ -28678,7 +28688,7 @@ snapshots:
doctrine: 2.1.0
eslint: 9.37.0(jiti@2.6.1)
eslint-import-resolver-node: 0.3.9
eslint-module-utils: 2.12.1(@typescript-eslint/parser@8.46.0(eslint@9.37.0(jiti@2.6.1))(typescript@5.9.2))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.10.1)(eslint@9.37.0(jiti@2.6.1))
eslint-module-utils: 2.12.1(@typescript-eslint/parser@8.46.0(eslint@9.37.0(jiti@2.6.1))(typescript@6.0.2))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.10.1)(eslint@9.37.0(jiti@2.6.1))
hasown: 2.0.2
is-core-module: 2.16.1
is-glob: 4.0.3
......@@ -28694,9 +28704,9 @@ snapshots:
- eslint-import-resolver-webpack
- supports-color
eslint-plugin-jest@27.6.3(eslint@9.37.0(jiti@2.6.1))(jest@29.7.0(@types/node@20.17.6(patch_hash=9c31d25336aea4076b3cb942c35e59fd160c540947f01ea455a060367153f9fd))(babel-plugin-macros@3.1.0))(typescript@5.9.2):
eslint-plugin-jest@27.6.3(eslint@9.37.0(jiti@2.6.1))(jest@29.7.0(@types/node@20.17.6(patch_hash=9c31d25336aea4076b3cb942c35e59fd160c540947f01ea455a060367153f9fd))(babel-plugin-macros@3.1.0))(typescript@6.0.2):
dependencies:
'@typescript-eslint/utils': 5.62.0(eslint@9.37.0(jiti@2.6.1))(typescript@5.9.2)
'@typescript-eslint/utils': 5.62.0(eslint@9.37.0(jiti@2.6.1))(typescript@6.0.2)
eslint: 9.37.0(jiti@2.6.1)
optionalDependencies:
jest: 29.7.0(@types/node@20.17.6(patch_hash=9c31d25336aea4076b3cb942c35e59fd160c540947f01ea455a060367153f9fd))(babel-plugin-macros@3.1.0)
......@@ -29599,7 +29609,7 @@ snapshots:
forever-agent@0.6.1: {}
fork-ts-checker-webpack-plugin@8.0.0(typescript@5.9.2)(webpack@5.98.0(@swc/core@1.11.24(@swc/helpers@0.5.15))(esbuild@0.25.9)):
fork-ts-checker-webpack-plugin@8.0.0(typescript@6.0.2)(webpack@5.98.0(@swc/core@1.11.24(@swc/helpers@0.5.15))(esbuild@0.25.9)):
dependencies:
'@babel/code-frame': 7.26.2
chalk: 4.1.2
......@@ -29613,7 +29623,7 @@ snapshots:
schema-utils: 3.2.0
semver: 7.6.3
tapable: 2.2.1
typescript: 5.9.2
typescript: 6.0.2
webpack: 5.98.0(@swc/core@1.11.24(@swc/helpers@0.5.15))(esbuild@0.25.9)
form-data@2.3.3:
......@@ -30559,7 +30569,7 @@ snapshots:
html-void-elements@3.0.0: {}
html-webpack-plugin@5.6.3(@rspack/core@1.6.7(@swc/helpers@0.5.15))(webpack@5.98.0(@swc/core@1.11.24(@swc/helpers@0.5.15))(esbuild@0.25.9)):
html-webpack-plugin@5.6.3(@rspack/core@1.6.7(patch_hash=4cf28ea116b0e27c7c80b09035905f9d16a7b18d1f2b7d312fc80d42cd57068d)(@swc/helpers@0.5.15))(webpack@5.98.0(@swc/core@1.11.24(@swc/helpers@0.5.15))(esbuild@0.25.9)):
dependencies:
'@types/html-minifier-terser': 6.1.0
html-minifier-terser: 6.1.0
......@@ -30567,7 +30577,7 @@ snapshots:
pretty-error: 4.0.0
tapable: 2.2.1
optionalDependencies:
'@rspack/core': 1.6.7(@swc/helpers@0.5.15)
'@rspack/core': 1.6.7(patch_hash=4cf28ea116b0e27c7c80b09035905f9d16a7b18d1f2b7d312fc80d42cd57068d)(@swc/helpers@0.5.15)
webpack: 5.98.0(@swc/core@1.11.24(@swc/helpers@0.5.15))(esbuild@0.25.9)
htmlparser2@3.10.1:
......@@ -34033,7 +34043,7 @@ snapshots:
int64-buffer: 0.1.10
isarray: 1.0.0
msw@2.3.0(typescript@5.9.2):
msw@2.3.0(typescript@6.0.2):
dependencies:
'@bundled-es-modules/cookie': 2.0.0
'@bundled-es-modules/statuses': 1.0.1
......@@ -34053,7 +34063,7 @@ snapshots:
type-fest: 4.18.3
yargs: 17.7.2
optionalDependencies:
typescript: 5.9.2
typescript: 6.0.2
multicast-dns@7.2.5:
dependencies:
......@@ -36294,9 +36304,9 @@ snapshots:
minimist: 1.2.8
strip-json-comments: 2.0.1
react-docgen-typescript@2.2.2(typescript@5.9.2):
react-docgen-typescript@2.2.2(typescript@6.0.2):
dependencies:
typescript: 5.9.2
typescript: 6.0.2
react-docgen@7.1.0:
dependencies:
......@@ -37255,11 +37265,11 @@ snapshots:
safer-buffer@2.1.2: {}
sass-loader@16.0.5(@rspack/core@1.6.7(@swc/helpers@0.5.15))(sass@1.77.8)(webpack@5.98.0(@swc/core@1.11.24(@swc/helpers@0.5.15))(esbuild@0.25.9)):
sass-loader@16.0.5(@rspack/core@1.6.7(patch_hash=4cf28ea116b0e27c7c80b09035905f9d16a7b18d1f2b7d312fc80d42cd57068d)(@swc/helpers@0.5.15))(sass@1.77.8)(webpack@5.98.0(@swc/core@1.11.24(@swc/helpers@0.5.15))(esbuild@0.25.9)):
dependencies:
neo-async: 2.6.2
optionalDependencies:
'@rspack/core': 1.6.7(@swc/helpers@0.5.15)
'@rspack/core': 1.6.7(patch_hash=4cf28ea116b0e27c7c80b09035905f9d16a7b18d1f2b7d312fc80d42cd57068d)(@swc/helpers@0.5.15)
sass: 1.77.8
webpack: 5.98.0(@swc/core@1.11.24(@swc/helpers@0.5.15))(esbuild@0.25.9)
......@@ -38717,13 +38727,13 @@ snapshots:
trough@2.1.0: {}
ts-api-utils@2.1.0(typescript@5.9.2):
ts-api-utils@2.1.0(typescript@6.0.2):
dependencies:
typescript: 5.9.2
typescript: 6.0.2
ts-dedent@2.2.0: {}
ts-jest@29.4.5(@babel/core@7.26.10)(@jest/transform@29.7.0)(@jest/types@29.6.3)(babel-jest@29.7.0(@babel/core@7.26.10))(jest-util@29.7.0)(jest@29.7.0(@types/node@20.17.6(patch_hash=9c31d25336aea4076b3cb942c35e59fd160c540947f01ea455a060367153f9fd))(babel-plugin-macros@3.1.0))(typescript@5.9.2):
ts-jest@29.4.5(@babel/core@7.26.10)(@jest/transform@29.7.0)(@jest/types@29.6.3)(babel-jest@29.7.0(@babel/core@7.26.10))(jest-util@29.7.0)(jest@29.7.0(@types/node@20.17.6(patch_hash=9c31d25336aea4076b3cb942c35e59fd160c540947f01ea455a060367153f9fd))(babel-plugin-macros@3.1.0))(typescript@6.0.2):
dependencies:
bs-logger: 0.2.6
fast-json-stable-stringify: 2.1.0
......@@ -38734,7 +38744,7 @@ snapshots:
make-error: 1.3.6
semver: 7.7.3
type-fest: 4.41.0
typescript: 5.9.2
typescript: 6.0.2
yargs-parser: 21.1.1
optionalDependencies:
'@babel/core': 7.26.10
......@@ -38756,12 +38766,12 @@ snapshots:
minimist: 1.2.8
strip-bom: 3.0.0
tsec@0.2.1(@bazel/bazelisk@1.19.0)(typescript@5.9.2):
tsec@0.2.1(@bazel/bazelisk@1.19.0)(typescript@6.0.2):
dependencies:
'@bazel/bazelisk': 1.19.0
glob: 7.1.7
minimatch: 3.1.2
typescript: 5.9.2
typescript: 6.0.2
tslib@1.11.1: {}
......@@ -38775,10 +38785,10 @@ snapshots:
tslib@2.8.1: {}
tsutils@3.21.0(typescript@5.9.2):
tsutils@3.21.0(typescript@6.0.2):
dependencies:
tslib: 1.14.1
typescript: 5.9.2
typescript: 6.0.2
tsx@4.19.2:
dependencies:
......@@ -38904,14 +38914,14 @@ snapshots:
typedarray@0.0.6: {}
typescript-eslint@8.46.0(eslint@9.37.0(jiti@2.6.1))(typescript@5.9.2):
typescript-eslint@8.46.0(eslint@9.37.0(jiti@2.6.1))(typescript@6.0.2):
dependencies:
'@typescript-eslint/eslint-plugin': 8.46.0(@typescript-eslint/parser@8.46.0(eslint@9.37.0(jiti@2.6.1))(typescript@5.9.2))(eslint@9.37.0(jiti@2.6.1))(typescript@5.9.2)
'@typescript-eslint/parser': 8.46.0(eslint@9.37.0(jiti@2.6.1))(typescript@5.9.2)
'@typescript-eslint/typescript-estree': 8.46.0(typescript@5.9.2)
'@typescript-eslint/utils': 8.46.0(eslint@9.37.0(jiti@2.6.1))(typescript@5.9.2)
'@typescript-eslint/eslint-plugin': 8.46.0(@typescript-eslint/parser@8.46.0(eslint@9.37.0(jiti@2.6.1))(typescript@6.0.2))(eslint@9.37.0(jiti@2.6.1))(typescript@6.0.2)
'@typescript-eslint/parser': 8.46.0(eslint@9.37.0(jiti@2.6.1))(typescript@6.0.2)
'@typescript-eslint/typescript-estree': 8.46.0(typescript@6.0.2)
'@typescript-eslint/utils': 8.46.0(eslint@9.37.0(jiti@2.6.1))(typescript@6.0.2)
eslint: 9.37.0(jiti@2.6.1)
typescript: 5.9.2
typescript: 6.0.2
transitivePeerDependencies:
- supports-color
......@@ -38919,6 +38929,8 @@ snapshots:
typescript@5.9.2: {}
typescript@6.0.2: {}
ua-parser-js@0.7.31: {}
ua-parser-js@1.0.35: {}
......@@ -39606,7 +39618,7 @@ snapshots:
web-namespaces@1.1.4: {}
web-vitals@4.2.1: {}
web-vitals@4.2.1(patch_hash=f4d0a6719cc28520df7c47a0e2c2641759c2a0ad06ad57868c4c9d0567d4276d): {}
web-worker@1.3.0: {}
......@@ -86,6 +86,7 @@ describe('typescript-plugin - client-boundary', () => {
length: diagnostic.length,
}))
// TODO: Should flag _arrowFunctionConditional in TypeScript 6.x.
expect(totalDiagnostics).toMatchInlineSnapshot(`
{
"app/non-serializable-props.tsx": [
......@@ -101,12 +102,6 @@ describe('typescript-plugin - client-boundary', () => {
"messageText": "Props must be serializable for components in the "use client" entry file. "_arrowFunctionTypeAlias" is a function that's not a Server Action. Rename "_arrowFunctionTypeAlias" either to "action" or have its name end with "Action" e.g. "_arrowFunctionTypeAliasAction" to indicate it is a Server Action.",
"start": 197,
},
{
"code": 71007,
"length": 19,
"messageText": "Props must be serializable for components in the "use client" entry file. "_arrowFunctionConditional" is a function that's not a Server Action. Rename "_arrowFunctionConditional" either to "action" or have its name end with "Action" e.g. "_arrowFunctionConditionalAction" to indicate it is a Server Action.",
"start": 249,
},
{
"code": 71007,
"length": 5,
......
/** @type {import('next').NextConfig} */
const nextConfig = {
typescript: {
// Using import assertions which are not supported since TypeScript 6.0
ignoreBuildErrors: true,
},
}
module.exports = nextConfig
......@@ -47,7 +47,7 @@ describe('css-url-deployment-id', () => {
}
// Extract all url() references from the CSS
const urlMatches = allCssContent.match(/url\([^)]+\)/g) || []
const urlMatches: string[] = allCssContent.match(/url\([^)]+\)/g) || []
// Filter to only asset URLs (images and fonts), excluding data URIs
const assetUrls = urlMatches.filter(
......@@ -95,7 +95,8 @@ describe('css-url-deployment-id', () => {
}
// Find image references from CSS modules (page.module.css)
const imageUrls = allCssContent.match(/url\([^)]+\.png[^)]*\)/g) || []
const imageUrls: string[] =
allCssContent.match(/url\([^)]+\.png[^)]*\)/g) || []
expect(imageUrls.length).toBeGreaterThanOrEqual(1)
for (const imageUrl of imageUrls) {
......@@ -103,7 +104,8 @@ describe('css-url-deployment-id', () => {
}
// Find font references from CSS modules
const fontUrls = allCssContent.match(/url\([^)]+\.woff2[^)]*\)/g) || []
const fontUrls: string[] =
allCssContent.match(/url\([^)]+\.woff2[^)]*\)/g) || []
expect(fontUrls.length).toBeGreaterThanOrEqual(1)
for (const fontUrl of fontUrls) {
......
/* eslint-env jest */
import { createFile, existsSync, readFile, writeFile, remove } from 'fs-extra'
import { nextBuild } from 'next-test-utils'
import { nextTestSetup } from 'e2e-utils'
import path from 'path'
const strictRouteTypes =
process.env.__NEXT_EXPERIMENTAL_STRICT_ROUTE_TYPES === 'true'
;(process.env.TURBOPACK_DEV ? describe.skip : describe)(
'tsconfig.json verifier',
() => {
const appDir = path.join(__dirname, '../')
const tsConfig = path.join(appDir, 'tsconfig.json')
const tsConfigBase = path.join(appDir, 'tsconfig.base.json')
beforeEach(async () => {
await remove(tsConfig)
await remove(tsConfigBase)
describe('tsconfig.json verifier', () => {
const { next } = nextTestSetup({
files: path.join(__dirname, '../'),
skipStart: true,
})
afterEach(async () => {
await remove(tsConfig)
await remove(tsConfigBase)
const tsConfig = () => path.join(next.testDir, 'tsconfig.json')
const tsConfigBase = () => path.join(next.testDir, 'tsconfig.base.json')
beforeEach(async () => {
await remove(tsConfig())
await remove(tsConfigBase())
})
it('Creates a default tsconfig.json when one is missing', async () => {
expect(existsSync(tsConfig)).toBe(false)
const { code } = await nextBuild(appDir)
expect(code).toBe(0)
expect(existsSync(tsConfig())).toBe(false)
const { exitCode } = await next.build()
expect(exitCode).toBe(0)
if (strictRouteTypes) {
expect(await readFile(tsConfig, 'utf8')).toMatchInlineSnapshot(`
expect(await readFile(tsConfig(), 'utf8')).toMatchInlineSnapshot(`
"{
"compilerOptions": {
"target": "ES2017",
......@@ -69,7 +66,7 @@ const strictRouteTypes =
"
`)
} else {
expect(await readFile(tsConfig, 'utf8')).toMatchInlineSnapshot(`
expect(await readFile(tsConfig(), 'utf8')).toMatchInlineSnapshot(`
"{
"compilerOptions": {
"target": "ES2017",
......@@ -114,21 +111,18 @@ const strictRouteTypes =
})
it('Works with an empty tsconfig.json (docs)', async () => {
expect(existsSync(tsConfig)).toBe(false)
expect(existsSync(tsConfig())).toBe(false)
await createFile(tsConfig)
await createFile(tsConfig())
await new Promise((resolve) => setTimeout(resolve, 500))
expect(await readFile(tsConfig, 'utf8')).toBe('')
expect(await readFile(tsConfig(), 'utf8')).toBe('')
const { code, stderr, stdout } = await nextBuild(appDir, undefined, {
stderr: true,
stdout: true,
})
expect(stderr + stdout).not.toContain('moduleResolution')
expect(code).toBe(0)
const { exitCode, cliOutput } = await next.build()
expect(cliOutput).not.toContain('moduleResolution')
expect(exitCode).toBe(0)
if (strictRouteTypes) {
expect(await readFile(tsConfig, 'utf8')).toMatchInlineSnapshot(`
expect(await readFile(tsConfig(), 'utf8')).toMatchInlineSnapshot(`
"{
"compilerOptions": {
"target": "ES2017",
......@@ -168,7 +162,7 @@ const strictRouteTypes =
"
`)
} else {
expect(await readFile(tsConfig, 'utf8')).toMatchInlineSnapshot(`
expect(await readFile(tsConfig(), 'utf8')).toMatchInlineSnapshot(`
"{
"compilerOptions": {
"target": "ES2017",
......@@ -213,10 +207,10 @@ const strictRouteTypes =
})
it('Updates an existing tsconfig.json without losing comments', async () => {
expect(existsSync(tsConfig)).toBe(false)
expect(existsSync(tsConfig())).toBe(false)
await writeFile(
tsConfig,
tsConfig(),
`
// top-level comment
{
......@@ -233,13 +227,13 @@ const strictRouteTypes =
`
)
await new Promise((resolve) => setTimeout(resolve, 500))
const { code } = await nextBuild(appDir)
expect(code).toBe(0)
const { exitCode } = await next.build()
expect(exitCode).toBe(0)
// Weird comma placement until this issue is resolved:
// https://github.com/kaelzhang/node-comment-json/issues/21
if (strictRouteTypes) {
expect(await readFile(tsConfig, 'utf8')).toMatchInlineSnapshot(`
expect(await readFile(tsConfig(), 'utf8')).toMatchInlineSnapshot(`
"// top-level comment
{
// in-object comment 1
......@@ -287,7 +281,7 @@ const strictRouteTypes =
"
`)
} else {
expect(await readFile(tsConfig, 'utf8')).toMatchInlineSnapshot(`
expect(await readFile(tsConfig(), 'utf8')).toMatchInlineSnapshot(`
"// top-level comment
{
// in-object comment 1
......@@ -339,115 +333,19 @@ const strictRouteTypes =
}
})
it('allows you to set commonjs module mode', async () => {
expect(existsSync(tsConfig)).toBe(false)
await writeFile(
tsConfig,
`{ "compilerOptions": { "esModuleInterop": false, "module": "commonjs" } }`
)
await new Promise((resolve) => setTimeout(resolve, 500))
const { code } = await nextBuild(appDir)
expect(code).toBe(0)
if (strictRouteTypes) {
expect(await readFile(tsConfig, 'utf8')).toMatchInlineSnapshot(`
"{
"compilerOptions": {
"esModuleInterop": true,
"module": "commonjs",
"target": "ES2017",
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true,
"skipLibCheck": true,
"strict": false,
"noEmit": true,
"incremental": true,
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "react-jsx",
"plugins": [
{
"name": "next"
}
],
"strictNullChecks": true
},
"include": [
"next-env.d.ts",
"**/*.mts",
"**/*.ts",
"**/*.tsx"
],
"exclude": [
"node_modules"
]
}
"
`)
} else {
expect(await readFile(tsConfig, 'utf8')).toMatchInlineSnapshot(`
"{
"compilerOptions": {
"esModuleInterop": true,
"module": "commonjs",
"target": "ES2017",
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true,
"skipLibCheck": true,
"strict": false,
"noEmit": true,
"incremental": true,
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "react-jsx",
"plugins": [
{
"name": "next"
}
],
"strictNullChecks": true
},
"include": [
"next-env.d.ts",
".next/types/**/*.ts",
".next/dev/types/**/*.ts",
"**/*.mts",
"**/*.ts",
"**/*.tsx"
],
"exclude": [
"node_modules"
]
}
"
`)
}
})
it('allows you to set es2020 module mode', async () => {
expect(existsSync(tsConfig)).toBe(false)
expect(existsSync(tsConfig())).toBe(false)
await writeFile(
tsConfig,
tsConfig(),
`{ "compilerOptions": { "esModuleInterop": false, "module": "es2020" } }`
)
await new Promise((resolve) => setTimeout(resolve, 500))
const { code } = await nextBuild(appDir)
expect(code).toBe(0)
const { exitCode } = await next.build()
expect(exitCode).toBe(0)
if (strictRouteTypes) {
expect(await readFile(tsConfig, 'utf8')).toMatchInlineSnapshot(`
expect(await readFile(tsConfig(), 'utf8')).toMatchInlineSnapshot(`
"{
"compilerOptions": {
"esModuleInterop": true,
......@@ -487,7 +385,7 @@ const strictRouteTypes =
"
`)
} else {
expect(await readFile(tsConfig, 'utf8')).toMatchInlineSnapshot(`
expect(await readFile(tsConfig(), 'utf8')).toMatchInlineSnapshot(`
"{
"compilerOptions": {
"esModuleInterop": true,
......@@ -532,22 +430,19 @@ const strictRouteTypes =
})
it('allows you to set node16 moduleResolution mode', async () => {
expect(existsSync(tsConfig)).toBe(false)
expect(existsSync(tsConfig())).toBe(false)
await writeFile(
tsConfig,
tsConfig(),
`{ "compilerOptions": { "esModuleInterop": false, "moduleResolution": "node16", "module": "node16" } }`
)
await new Promise((resolve) => setTimeout(resolve, 500))
const { code, stderr, stdout } = await nextBuild(appDir, undefined, {
stderr: true,
stdout: true,
})
expect(stderr + stdout).not.toContain('moduleResolution')
expect(code).toBe(0)
const { exitCode, cliOutput } = await next.build()
expect(cliOutput).not.toContain('moduleResolution')
expect(exitCode).toBe(0)
if (strictRouteTypes) {
expect(await readFile(tsConfig, 'utf8')).toMatchInlineSnapshot(`
expect(await readFile(tsConfig(), 'utf8')).toMatchInlineSnapshot(`
"{
"compilerOptions": {
"esModuleInterop": true,
......@@ -587,7 +482,7 @@ const strictRouteTypes =
"
`)
} else {
expect(await readFile(tsConfig, 'utf8')).toMatchInlineSnapshot(`
expect(await readFile(tsConfig(), 'utf8')).toMatchInlineSnapshot(`
"{
"compilerOptions": {
"esModuleInterop": true,
......@@ -632,22 +527,19 @@ const strictRouteTypes =
})
it('allows you to set bundler moduleResolution mode', async () => {
expect(existsSync(tsConfig)).toBe(false)
expect(existsSync(tsConfig())).toBe(false)
await writeFile(
tsConfig,
tsConfig(),
`{ "compilerOptions": { "esModuleInterop": false, "moduleResolution": "bundler" } }`
)
await new Promise((resolve) => setTimeout(resolve, 500))
const { code, stderr, stdout } = await nextBuild(appDir, undefined, {
stderr: true,
stdout: true,
})
expect(stderr + stdout).not.toContain('moduleResolution')
expect(code).toBe(0)
const { exitCode, cliOutput } = await next.build()
expect(cliOutput).not.toContain('moduleResolution')
expect(exitCode).toBe(0)
if (strictRouteTypes) {
expect(await readFile(tsConfig, 'utf8')).toMatchInlineSnapshot(`
expect(await readFile(tsConfig(), 'utf8')).toMatchInlineSnapshot(`
"{
"compilerOptions": {
"esModuleInterop": true,
......@@ -687,7 +579,7 @@ const strictRouteTypes =
"
`)
} else {
expect(await readFile(tsConfig, 'utf8')).toMatchInlineSnapshot(`
expect(await readFile(tsConfig(), 'utf8')).toMatchInlineSnapshot(`
"{
"compilerOptions": {
"esModuleInterop": true,
......@@ -732,19 +624,16 @@ const strictRouteTypes =
})
it('allows you to set target mode', async () => {
expect(existsSync(tsConfig)).toBe(false)
expect(existsSync(tsConfig())).toBe(false)
await writeFile(tsConfig, `{ "compilerOptions": { "target": "es2022" } }`)
await writeFile(tsConfig(), `{ "compilerOptions": { "target": "es2022" } }`)
await new Promise((resolve) => setTimeout(resolve, 500))
const { code, stderr, stdout } = await nextBuild(appDir, undefined, {
stderr: true,
stdout: true,
})
expect(stderr + stdout).not.toContain('target')
expect(code).toBe(0)
const { exitCode, cliOutput } = await next.build()
expect(cliOutput).not.toContain('target')
expect(exitCode).toBe(0)
if (strictRouteTypes) {
expect(await readFile(tsConfig, 'utf8')).toMatchInlineSnapshot(`
expect(await readFile(tsConfig(), 'utf8')).toMatchInlineSnapshot(`
"{
"compilerOptions": {
"target": "es2022",
......@@ -784,7 +673,7 @@ const strictRouteTypes =
"
`)
} else {
expect(await readFile(tsConfig, 'utf8')).toMatchInlineSnapshot(`
expect(await readFile(tsConfig(), 'utf8')).toMatchInlineSnapshot(`
"{
"compilerOptions": {
"target": "es2022",
......@@ -829,22 +718,19 @@ const strictRouteTypes =
})
it('allows you to set node16 module mode', async () => {
expect(existsSync(tsConfig)).toBe(false)
expect(existsSync(tsConfig())).toBe(false)
await writeFile(
tsConfig,
tsConfig(),
`{ "compilerOptions": { "esModuleInterop": false, "module": "node16", "moduleResolution": "node16" } }`
)
await new Promise((resolve) => setTimeout(resolve, 500))
const { code, stderr, stdout } = await nextBuild(appDir, undefined, {
stderr: true,
stdout: true,
})
expect(stderr + stdout).not.toContain('moduleResolution')
expect(code).toBe(0)
const { exitCode, cliOutput } = await next.build()
expect(cliOutput).not.toContain('moduleResolution')
expect(exitCode).toBe(0)
if (strictRouteTypes) {
expect(await readFile(tsConfig, 'utf8')).toMatchInlineSnapshot(`
expect(await readFile(tsConfig(), 'utf8')).toMatchInlineSnapshot(`
"{
"compilerOptions": {
"esModuleInterop": true,
......@@ -884,7 +770,7 @@ const strictRouteTypes =
"
`)
} else {
expect(await readFile(tsConfig, 'utf8')).toMatchInlineSnapshot(`
expect(await readFile(tsConfig(), 'utf8')).toMatchInlineSnapshot(`
"{
"compilerOptions": {
"esModuleInterop": true,
......@@ -929,22 +815,19 @@ const strictRouteTypes =
})
it('allows you to set verbatimModuleSyntax true without adding isolatedModules', async () => {
expect(existsSync(tsConfig)).toBe(false)
expect(existsSync(tsConfig())).toBe(false)
await writeFile(
tsConfig,
tsConfig(),
`{ "compilerOptions": { "verbatimModuleSyntax": true } }`
)
await new Promise((resolve) => setTimeout(resolve, 500))
const { code, stderr, stdout } = await nextBuild(appDir, undefined, {
stderr: true,
stdout: true,
})
expect(stderr + stdout).not.toContain('isolatedModules')
expect(code).toBe(0)
const { exitCode, cliOutput } = await next.build()
expect(cliOutput).not.toContain('isolatedModules')
expect(exitCode).toBe(0)
if (strictRouteTypes) {
expect(await readFile(tsConfig, 'utf8')).toMatchInlineSnapshot(`
expect(await readFile(tsConfig(), 'utf8')).toMatchInlineSnapshot(`
"{
"compilerOptions": {
"verbatimModuleSyntax": true,
......@@ -984,7 +867,7 @@ const strictRouteTypes =
"
`)
} else {
expect(await readFile(tsConfig, 'utf8')).toMatchInlineSnapshot(`
expect(await readFile(tsConfig(), 'utf8')).toMatchInlineSnapshot(`
"{
"compilerOptions": {
"verbatimModuleSyntax": true,
......@@ -1029,11 +912,11 @@ const strictRouteTypes =
})
it('allows you to set verbatimModuleSyntax true via extends without adding isolatedModules', async () => {
expect(existsSync(tsConfig)).toBe(false)
expect(existsSync(tsConfigBase)).toBe(false)
expect(existsSync(tsConfig())).toBe(false)
expect(existsSync(tsConfigBase())).toBe(false)
await writeFile(
tsConfigBase,
tsConfigBase(),
`{
"compilerOptions": {
"verbatimModuleSyntax": true,
......@@ -1072,26 +955,23 @@ const strictRouteTypes =
]
}`
)
await writeFile(tsConfig, `{ "extends": "./tsconfig.base.json" }`)
await writeFile(tsConfig(), `{ "extends": "./tsconfig.base.json" }`)
await new Promise((resolve) => setTimeout(resolve, 500))
const { code, stderr, stdout } = await nextBuild(appDir, undefined, {
stderr: true,
stdout: true,
})
expect(stderr + stdout).not.toContain('isolatedModules')
expect(code).toBe(0)
const { exitCode, cliOutput } = await next.build()
expect(cliOutput).not.toContain('isolatedModules')
expect(exitCode).toBe(0)
expect(await readFile(tsConfig, 'utf8')).toMatchInlineSnapshot(
expect(await readFile(tsConfig(), 'utf8')).toMatchInlineSnapshot(
`"{ "extends": "./tsconfig.base.json" }"`
)
})
it('allows you to extend another configuration file', async () => {
expect(existsSync(tsConfig)).toBe(false)
expect(existsSync(tsConfigBase)).toBe(false)
expect(existsSync(tsConfig())).toBe(false)
expect(existsSync(tsConfigBase())).toBe(false)
await writeFile(
tsConfigBase,
tsConfigBase(),
`
{
"compilerOptions": {
......@@ -1134,27 +1014,24 @@ const strictRouteTypes =
)
await new Promise((resolve) => setTimeout(resolve, 500))
await writeFile(tsConfig, `{ "extends": "./tsconfig.base.json" }`)
await writeFile(tsConfig(), `{ "extends": "./tsconfig.base.json" }`)
await new Promise((resolve) => setTimeout(resolve, 500))
const { code, stderr, stdout } = await nextBuild(appDir, undefined, {
stderr: true,
stdout: true,
})
expect(stderr + stdout).not.toContain('moduleResolution')
expect(code).toBe(0)
const { exitCode, cliOutput } = await next.build()
expect(cliOutput).not.toContain('moduleResolution')
expect(exitCode).toBe(0)
expect(await readFile(tsConfig, 'utf8')).toMatchInlineSnapshot(
expect(await readFile(tsConfig(), 'utf8')).toMatchInlineSnapshot(
`"{ "extends": "./tsconfig.base.json" }"`
)
})
it('creates compilerOptions when you extend another config', async () => {
expect(existsSync(tsConfig)).toBe(false)
expect(existsSync(tsConfigBase)).toBe(false)
expect(existsSync(tsConfig())).toBe(false)
expect(existsSync(tsConfigBase())).toBe(false)
await writeFile(
tsConfigBase,
tsConfigBase(),
`
{
"compilerOptions": {
......@@ -1196,44 +1073,151 @@ const strictRouteTypes =
)
await new Promise((resolve) => setTimeout(resolve, 500))
await writeFile(tsConfig, `{ "extends": "./tsconfig.base.json" }`)
await writeFile(tsConfig(), `{ "extends": "./tsconfig.base.json" }`)
await new Promise((resolve) => setTimeout(resolve, 500))
const { code, stderr, stdout } = await nextBuild(appDir, undefined, {
stderr: true,
stdout: true,
})
expect(stderr + stdout).not.toContain('moduleResolution')
expect(code).toBe(0)
const { exitCode, cliOutput } = await next.build()
expect(cliOutput).not.toContain('moduleResolution')
expect(exitCode).toBe(0)
expect(await readFile(tsConfig, 'utf8')).toMatchInlineSnapshot(
expect(await readFile(tsConfig(), 'utf8')).toMatchInlineSnapshot(
`"{ "extends": "./tsconfig.base.json" }"`
)
})
// TODO: Enable this test when repo has upgraded to TypeScript 5.4. Currently tested as E2E: tsconfig-module-preserve
it.skip('allows you to skip moduleResolution, esModuleInterop and resolveJsonModule when using "module: preserve"', async () => {
expect(existsSync(tsConfig)).toBe(false)
expect(existsSync(tsConfig())).toBe(false)
await writeFile(
tsConfig,
tsConfig(),
`{ "compilerOptions": { "module": "preserve" } }`
)
await new Promise((resolve) => setTimeout(resolve, 500))
const { code, stderr, stdout } = await nextBuild(appDir, undefined, {
stderr: true,
stdout: true,
})
expect(stderr + stdout).not.toContain('moduleResolution')
expect(stderr + stdout).not.toContain('esModuleInterop')
expect(stderr + stdout).not.toContain('resolveJsonModule')
expect(code).toBe(0)
const { exitCode, cliOutput } = await next.build()
expect(cliOutput).not.toContain('moduleResolution')
expect(cliOutput).not.toContain('esModuleInterop')
expect(cliOutput).not.toContain('resolveJsonModule')
expect(exitCode).toBe(0)
if (strictRouteTypes) {
expect(await readFile(tsConfig, 'utf8')).toMatchInlineSnapshot()
expect(await readFile(tsConfig(), 'utf8')).toMatchInlineSnapshot()
} else {
expect(await readFile(tsConfig, 'utf8')).toMatchInlineSnapshot()
expect(await readFile(tsConfig(), 'utf8')).toMatchInlineSnapshot()
}
})
})
describe('tsconfig.json verifier 5.x', () => {
const { next } = nextTestSetup({
files: path.join(__dirname, '../'),
skipStart: true,
dependencies: {
typescript: '5.9.3',
},
})
const tsConfig = () => path.join(next.testDir, 'tsconfig.json')
const tsConfigBase = () => path.join(next.testDir, 'tsconfig.base.json')
beforeEach(async () => {
await remove(tsConfig())
await remove(tsConfigBase())
})
it('allows you to set commonjs module mode', async () => {
expect(existsSync(tsConfig())).toBe(false)
await writeFile(
tsConfig(),
`{ "compilerOptions": { "esModuleInterop": false, "module": "commonjs" } }`
)
await new Promise((resolve) => setTimeout(resolve, 500))
const { exitCode } = await next.build()
expect(exitCode).toBe(0)
if (strictRouteTypes) {
expect(await readFile(tsConfig(), 'utf8')).toMatchInlineSnapshot(`
"{
"compilerOptions": {
"esModuleInterop": true,
"module": "commonjs",
"target": "ES2017",
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true,
"skipLibCheck": true,
"strict": false,
"noEmit": true,
"incremental": true,
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "react-jsx",
"plugins": [
{
"name": "next"
}
],
"strictNullChecks": true
},
"include": [
"next-env.d.ts",
"**/*.mts",
"**/*.ts",
"**/*.tsx"
],
"exclude": [
"node_modules"
]
}
"
`)
} else {
expect(await readFile(tsConfig(), 'utf8')).toMatchInlineSnapshot(`
"{
"compilerOptions": {
"esModuleInterop": true,
"module": "commonjs",
"target": "ES2017",
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true,
"skipLibCheck": true,
"strict": false,
"noEmit": true,
"incremental": true,
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "react-jsx",
"plugins": [
{
"name": "next"
}
)
],
"strictNullChecks": true
},
"include": [
"next-env.d.ts",
".next/types/**/*.ts",
".next/dev/types/**/*.ts",
"**/*.mts",
"**/*.ts",
"**/*.tsx"
],
"exclude": [
"node_modules"
]
}
"
`)
}
})
})
......@@ -9,6 +9,7 @@
"module": "ESNext",
"target": "ESNext",
"moduleResolution": "node",
"ignoreDeprecations": "6.0",
"types": ["react", "jest", "node", "trusted-types", "jest-extended"],
"paths": {
"development-sandbox": ["./test/lib/development-sandbox"],
......
......@@ -9,6 +9,7 @@
"jsx": "react-jsx",
"lib": ["ESNext", "DOM"],
"target": "esnext",
"ignoreDeprecations": "6.0",
// modules
"baseUrl": ".",
......
......@@ -16,6 +16,7 @@
// environment
"lib": ["ESNext"],
"target": "esnext",
"ignoreDeprecations": "6.0",
// modules
"baseUrl": ".",
......
......@@ -3,6 +3,7 @@
"strict": true,
"target": "ES2022",
"module": "NodeNext",
"rootDir": ".",
"types": ["node"],
"outDir": "dist",
"declaration": true,
......
......@@ -3,6 +3,7 @@
"target": "ES2018",
"module": "commonjs",
"moduleResolution": "node",
"ignoreDeprecations": "6.0",
"strict": true,
"importHelpers": false,
"noEmitHelpers": false,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment