Files
klz-cables.com/.pnpm-store/v10/files/6d/47281d771ad5e46aaa52b1b1062872e3ca87f93b522b89bc01f6b868c454c45d2b80095163ecccbf216c54f0d0fe2c43f7133495d88adfc2b07c1eecd9f2ae
Marc Mintel 5397309103
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

41 lines
1.8 KiB
Plaintext

/**
* Returns the version of Next.js installed in the project, or undefined if it cannot be determined.
*/
export declare function getNextjsVersion(): string | undefined;
/**
* Checks if the current Next.js version supports the runAfterProductionCompile hook.
* This hook was introduced in Next.js 15.4.1. (https://github.com/vercel/next.js/pull/77345)
*
* @param version - version string to check.
* @returns true if Next.js version is 15.4.1 or higher
*/
export declare function supportsProductionCompileHook(version: string): boolean;
/**
* Checks if the current Next.js version supports native debug ids for turbopack.
* This feature was first introduced in Next.js v15.6.0-canary.36 and marked stable in Next.js v16
*
* @param version - version string to check.
* @returns true if Next.js version supports native debug ids for turbopack builds
*/
export declare function supportsNativeDebugIds(version: string): boolean;
/**
* Checks if the given Next.js version requires the `experimental.instrumentationHook` option.
* Next.js 15.0.0 and higher (including certain RC and canary versions) no longer require this option
* and will print a warning if it is set.
*
* @param version - version string to check.
* @returns true if the version requires the instrumentationHook option to be set
*/
export declare function requiresInstrumentationHook(version: string): boolean;
/**
* Determines which bundler is actually being used based on environment variables,
* and CLI flags.
*
* @returns 'turbopack' or 'webpack'
*/
export declare function detectActiveBundler(): 'turbopack' | 'webpack';
/**
* Extract modules from project directory's package.json
*/
export declare function getPackageModules(projectDir: string): Record<string, string>;
//# sourceMappingURL=util.d.ts.map