@openuiai/next 16.0.4 → 16.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin/next +1 -1
- package/dist/build/index.js +3 -3
- package/dist/build/swc/index.js +1 -1
- package/dist/build/webpack-config.js +2 -2
- package/dist/client/app-bootstrap.js +1 -1
- package/dist/client/index.js +1 -1
- package/dist/esm/build/index.js +3 -3
- package/dist/esm/build/swc/index.js +1 -1
- package/dist/esm/build/webpack-config.js +2 -2
- package/dist/esm/client/app-bootstrap.js +1 -1
- package/dist/esm/client/index.js +1 -1
- package/dist/esm/lib/resolve-from.js +16 -2
- package/dist/esm/lib/resolve-from.js.map +1 -1
- package/dist/esm/server/dev/hot-reloader-webpack.js +1 -1
- package/dist/esm/server/lib/app-info-log.js +1 -1
- package/dist/esm/server/lib/start-server.js +1 -1
- package/dist/esm/shared/lib/errors/canary-only-config-error.js +1 -1
- package/dist/lib/resolve-from.js +16 -2
- package/dist/lib/resolve-from.js.map +1 -1
- package/dist/server/dev/hot-reloader-webpack.js +1 -1
- package/dist/server/lib/app-info-log.js +1 -1
- package/dist/server/lib/start-server.js +1 -1
- package/dist/shared/lib/errors/canary-only-config-error.js +1 -1
- package/dist/telemetry/anonymous-meta.js +1 -1
- package/dist/telemetry/events/session-stopped.js +2 -2
- package/dist/telemetry/events/version.js +2 -2
- package/package.json +1 -1
package/dist/bin/next
CHANGED
|
@@ -79,7 +79,7 @@ const program = new NextRootCommand();
|
|
|
79
79
|
program.name('next').description('The Next.js CLI allows you to develop, build, start your application, and more.').configureHelp({
|
|
80
80
|
formatHelp: (cmd, helper)=>(0, _formatclihelpoutput.formatCliHelpOutput)(cmd, helper),
|
|
81
81
|
subcommandTerm: (cmd)=>`${cmd.name()} ${cmd.usage()}`
|
|
82
|
-
}).helpCommand(false).helpOption('-h, --help', 'Displays this message.').version(`Next.js v${"16.0.
|
|
82
|
+
}).helpCommand(false).helpOption('-h, --help', 'Displays this message.').version(`Next.js v${"16.0.5"}`, '-v, --version', 'Outputs the Next.js version.');
|
|
83
83
|
program.command('build').description('Creates an optimized production build of your application. The output displays information about each route.').argument('[directory]', `A directory on which to build the application. ${(0, _picocolors.italic)('If no directory is provided, the current directory will be used.')}`).option('-d, --debug', 'Enables a more verbose build output.').option('--debug-prerender', 'Enables debug mode for prerendering. Not for production use!').option('--no-mangling', 'Disables mangling.').option('--profile', 'Enables production profiling for React.').option('--experimental-app-only', 'Builds only App Router routes.').option('--webpack', 'Builds using webpack.').addOption(new _commander.Option('--experimental-build-mode [mode]', 'Uses an experimental build mode.').choices([
|
|
84
84
|
'compile',
|
|
85
85
|
'generate',
|
package/dist/build/index.js
CHANGED
|
@@ -373,7 +373,7 @@ async function build(dir, reactProductionProfiling = false, debugOutput = false,
|
|
|
373
373
|
try {
|
|
374
374
|
const nextBuildSpan = (0, _trace.trace)('next-build', undefined, {
|
|
375
375
|
buildMode: experimentalBuildMode,
|
|
376
|
-
version: "16.0.
|
|
376
|
+
version: "16.0.5"
|
|
377
377
|
});
|
|
378
378
|
_buildcontext.NextBuildContext.nextBuildSpan = nextBuildSpan;
|
|
379
379
|
_buildcontext.NextBuildContext.dir = dir;
|
|
@@ -886,7 +886,7 @@ async function build(dir, reactProductionProfiling = false, debugOutput = false,
|
|
|
886
886
|
// Files outside of the distDir can be "type": "module"
|
|
887
887
|
await writeFileUtf8(_path.default.join(distDir, 'package.json'), '{"type": "commonjs"}');
|
|
888
888
|
// These are written to distDir, so they need to come after creating and cleaning distDr.
|
|
889
|
-
await (0, _builddiagnostics.recordFrameworkVersion)("16.0.
|
|
889
|
+
await (0, _builddiagnostics.recordFrameworkVersion)("16.0.5");
|
|
890
890
|
await (0, _builddiagnostics.updateBuildDiagnostics)({
|
|
891
891
|
buildStage: 'start'
|
|
892
892
|
});
|
|
@@ -2535,7 +2535,7 @@ async function build(dir, reactProductionProfiling = false, debugOutput = false,
|
|
|
2535
2535
|
configOutDir: _path.default.join(dir, configOutDir),
|
|
2536
2536
|
staticPages,
|
|
2537
2537
|
serverPropsPages,
|
|
2538
|
-
nextVersion: "16.0.
|
|
2538
|
+
nextVersion: "16.0.5",
|
|
2539
2539
|
tracingRoot: outputFileTracingRoot,
|
|
2540
2540
|
hasNodeMiddleware,
|
|
2541
2541
|
hasInstrumentationHook,
|
package/dist/build/swc/index.js
CHANGED
|
@@ -128,7 +128,7 @@ function _interop_require_wildcard(obj, nodeInterop) {
|
|
|
128
128
|
}
|
|
129
129
|
return newObj;
|
|
130
130
|
}
|
|
131
|
-
const nextVersion = "16.0.
|
|
131
|
+
const nextVersion = "16.0.5";
|
|
132
132
|
const ArchName = (0, _os.arch)();
|
|
133
133
|
const PlatformName = (0, _os.platform)();
|
|
134
134
|
function infoLog(...args) {
|
|
@@ -1713,7 +1713,7 @@ async function getBaseWebpackConfig(dir, { buildId, encryptionKey, config, compi
|
|
|
1713
1713
|
isClient && new _copyfileplugin.CopyFilePlugin({
|
|
1714
1714
|
// file path to build output of `@next/polyfill-nomodule`
|
|
1715
1715
|
filePath: require.resolve('./polyfills/polyfill-nomodule'),
|
|
1716
|
-
cacheKey: "16.0.
|
|
1716
|
+
cacheKey: "16.0.5",
|
|
1717
1717
|
name: `static/chunks/polyfills${dev ? '' : '-[hash]'}.js`,
|
|
1718
1718
|
minimize: false,
|
|
1719
1719
|
info: {
|
|
@@ -1904,7 +1904,7 @@ async function getBaseWebpackConfig(dir, { buildId, encryptionKey, config, compi
|
|
|
1904
1904
|
// - Next.js location on disk (some loaders use absolute paths and some resolve options depend on absolute paths)
|
|
1905
1905
|
// - Next.js version
|
|
1906
1906
|
// - next.config.js keys that affect compilation
|
|
1907
|
-
version: `${__dirname}|${"16.0.
|
|
1907
|
+
version: `${__dirname}|${"16.0.5"}|${configVars}`,
|
|
1908
1908
|
cacheDirectory: _path.default.join(distDir, 'cache', 'webpack'),
|
|
1909
1909
|
// For production builds, it's more efficient to compress all cache files together instead of compression each one individually.
|
|
1910
1910
|
// So we disable compression here and allow the build runner to take care of compressing the cache as a whole.
|
|
@@ -15,7 +15,7 @@ Object.defineProperty(exports, "appBootstrap", {
|
|
|
15
15
|
});
|
|
16
16
|
const _assetprefix = require("./asset-prefix");
|
|
17
17
|
const _setattributesfromprops = require("./set-attributes-from-props");
|
|
18
|
-
const version = "16.0.
|
|
18
|
+
const version = "16.0.5";
|
|
19
19
|
window.next = {
|
|
20
20
|
version,
|
|
21
21
|
appDir: true
|
package/dist/client/index.js
CHANGED
|
@@ -60,7 +60,7 @@ const _hooksclientcontextsharedruntime = require("../shared/lib/hooks-client-con
|
|
|
60
60
|
const _onrecoverableerror = require("./react-client-callbacks/on-recoverable-error");
|
|
61
61
|
const _tracer = /*#__PURE__*/ _interop_require_default._(require("./tracing/tracer"));
|
|
62
62
|
const _isnextroutererror = require("./components/is-next-router-error");
|
|
63
|
-
const version = "16.0.
|
|
63
|
+
const version = "16.0.5";
|
|
64
64
|
let router;
|
|
65
65
|
const emitter = (0, _mitt.default)();
|
|
66
66
|
const looseToArray = (input)=>[].slice.call(input);
|
package/dist/esm/build/index.js
CHANGED
|
@@ -305,7 +305,7 @@ export default async function build(dir, reactProductionProfiling = false, debug
|
|
|
305
305
|
try {
|
|
306
306
|
const nextBuildSpan = trace('next-build', undefined, {
|
|
307
307
|
buildMode: experimentalBuildMode,
|
|
308
|
-
version: "16.0.
|
|
308
|
+
version: "16.0.5"
|
|
309
309
|
});
|
|
310
310
|
NextBuildContext.nextBuildSpan = nextBuildSpan;
|
|
311
311
|
NextBuildContext.dir = dir;
|
|
@@ -818,7 +818,7 @@ export default async function build(dir, reactProductionProfiling = false, debug
|
|
|
818
818
|
// Files outside of the distDir can be "type": "module"
|
|
819
819
|
await writeFileUtf8(path.join(distDir, 'package.json'), '{"type": "commonjs"}');
|
|
820
820
|
// These are written to distDir, so they need to come after creating and cleaning distDr.
|
|
821
|
-
await recordFrameworkVersion("16.0.
|
|
821
|
+
await recordFrameworkVersion("16.0.5");
|
|
822
822
|
await updateBuildDiagnostics({
|
|
823
823
|
buildStage: 'start'
|
|
824
824
|
});
|
|
@@ -2467,7 +2467,7 @@ export default async function build(dir, reactProductionProfiling = false, debug
|
|
|
2467
2467
|
configOutDir: path.join(dir, configOutDir),
|
|
2468
2468
|
staticPages,
|
|
2469
2469
|
serverPropsPages,
|
|
2470
|
-
nextVersion: "16.0.
|
|
2470
|
+
nextVersion: "16.0.5",
|
|
2471
2471
|
tracingRoot: outputFileTracingRoot,
|
|
2472
2472
|
hasNodeMiddleware,
|
|
2473
2473
|
hasInstrumentationHook,
|
|
@@ -8,7 +8,7 @@ import { eventSwcLoadFailure } from '../../telemetry/events/swc-load-failure';
|
|
|
8
8
|
import { patchIncorrectLockfile } from '../../lib/patch-incorrect-lockfile';
|
|
9
9
|
import { downloadNativeNextSwc, downloadWasmSwc } from '../../lib/download-swc';
|
|
10
10
|
import { getDefineEnv } from '../define-env';
|
|
11
|
-
const nextVersion = "16.0.
|
|
11
|
+
const nextVersion = "16.0.5";
|
|
12
12
|
const ArchName = arch();
|
|
13
13
|
const PlatformName = platform();
|
|
14
14
|
function infoLog(...args) {
|
|
@@ -1610,7 +1610,7 @@ export default async function getBaseWebpackConfig(dir, { buildId, encryptionKey
|
|
|
1610
1610
|
isClient && new CopyFilePlugin({
|
|
1611
1611
|
// file path to build output of `@next/polyfill-nomodule`
|
|
1612
1612
|
filePath: require.resolve('./polyfills/polyfill-nomodule'),
|
|
1613
|
-
cacheKey: "16.0.
|
|
1613
|
+
cacheKey: "16.0.5",
|
|
1614
1614
|
name: `static/chunks/polyfills${dev ? '' : '-[hash]'}.js`,
|
|
1615
1615
|
minimize: false,
|
|
1616
1616
|
info: {
|
|
@@ -1801,7 +1801,7 @@ export default async function getBaseWebpackConfig(dir, { buildId, encryptionKey
|
|
|
1801
1801
|
// - Next.js location on disk (some loaders use absolute paths and some resolve options depend on absolute paths)
|
|
1802
1802
|
// - Next.js version
|
|
1803
1803
|
// - next.config.js keys that affect compilation
|
|
1804
|
-
version: `${__dirname}|${"16.0.
|
|
1804
|
+
version: `${__dirname}|${"16.0.5"}|${configVars}`,
|
|
1805
1805
|
cacheDirectory: path.join(distDir, 'cache', 'webpack'),
|
|
1806
1806
|
// For production builds, it's more efficient to compress all cache files together instead of compression each one individually.
|
|
1807
1807
|
// So we disable compression here and allow the build runner to take care of compressing the cache as a whole.
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* - next/script with `beforeInteractive` strategy
|
|
6
6
|
*/ import { getAssetPrefix } from './asset-prefix';
|
|
7
7
|
import { setAttributesFromProps } from './set-attributes-from-props';
|
|
8
|
-
const version = "16.0.
|
|
8
|
+
const version = "16.0.5";
|
|
9
9
|
window.next = {
|
|
10
10
|
version,
|
|
11
11
|
appDir: true
|
package/dist/esm/client/index.js
CHANGED
|
@@ -25,7 +25,7 @@ import { SearchParamsContext, PathParamsContext } from '../shared/lib/hooks-clie
|
|
|
25
25
|
import { onRecoverableError } from './react-client-callbacks/on-recoverable-error';
|
|
26
26
|
import tracer from './tracing/tracer';
|
|
27
27
|
import { isNextRouterError } from './components/is-next-router-error';
|
|
28
|
-
export const version = "16.0.
|
|
28
|
+
export const version = "16.0.5";
|
|
29
29
|
export let router;
|
|
30
30
|
export const emitter = mitt();
|
|
31
31
|
const looseToArray = (input)=>[].slice.call(input);
|
|
@@ -3,6 +3,8 @@ import path from 'path';
|
|
|
3
3
|
import isError from './is-error';
|
|
4
4
|
import { realpathSync } from './realpath';
|
|
5
5
|
const Module = require('module');
|
|
6
|
+
// Detect Bun runtime
|
|
7
|
+
const isBun = typeof globalThis.Bun !== 'undefined';
|
|
6
8
|
export const resolveFrom = (fromDirectory, moduleId, silent)=>{
|
|
7
9
|
if (typeof fromDirectory !== 'string') {
|
|
8
10
|
throw Object.defineProperty(new TypeError(`Expected \`fromDir\` to be of type \`string\`, got \`${typeof fromDirectory}\``), "__NEXT_ERROR_CODE", {
|
|
@@ -30,13 +32,25 @@ export const resolveFrom = (fromDirectory, moduleId, silent)=>{
|
|
|
30
32
|
}
|
|
31
33
|
}
|
|
32
34
|
const fromFile = path.join(fromDirectory, 'noop.js');
|
|
33
|
-
const resolveFileName = ()
|
|
34
|
-
Module._resolveFilename
|
|
35
|
+
const resolveFileName = ()=>{
|
|
36
|
+
// Use Bun's native resolution when available - Module._resolveFilename
|
|
37
|
+
// has compatibility issues with Bun's module system
|
|
38
|
+
if (isBun) {
|
|
39
|
+
var _globalThis_Bun;
|
|
40
|
+
// @ts-expect-error - Bun types are not fully available
|
|
41
|
+
const bunResolve = (_globalThis_Bun = globalThis.Bun) == null ? void 0 : _globalThis_Bun.resolveSync;
|
|
42
|
+
if (typeof bunResolve === 'function') {
|
|
43
|
+
return bunResolve(moduleId, fromDirectory);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
// @ts-expect-error
|
|
47
|
+
return Module._resolveFilename(moduleId, {
|
|
35
48
|
id: fromFile,
|
|
36
49
|
filename: fromFile,
|
|
37
50
|
paths: // @ts-expect-error
|
|
38
51
|
Module._nodeModulePaths(fromDirectory)
|
|
39
52
|
});
|
|
53
|
+
};
|
|
40
54
|
if (silent) {
|
|
41
55
|
try {
|
|
42
56
|
return resolveFileName();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/lib/resolve-from.ts"],"sourcesContent":["// source: https://github.com/sindresorhus/resolve-from\nimport path from 'path'\nimport isError from './is-error'\nimport { realpathSync } from './realpath'\n\nconst Module = require('module') as typeof import('module')\n\nexport const resolveFrom = (\n fromDirectory: string,\n moduleId: string,\n silent?: boolean\n) => {\n if (typeof fromDirectory !== 'string') {\n throw new TypeError(\n `Expected \\`fromDir\\` to be of type \\`string\\`, got \\`${typeof fromDirectory}\\``\n )\n }\n\n if (typeof moduleId !== 'string') {\n throw new TypeError(\n `Expected \\`moduleId\\` to be of type \\`string\\`, got \\`${typeof moduleId}\\``\n )\n }\n\n try {\n fromDirectory = realpathSync(fromDirectory)\n } catch (error: unknown) {\n if (isError(error) && error.code === 'ENOENT') {\n fromDirectory = path.resolve(fromDirectory)\n } else if (silent) {\n return\n } else {\n throw error\n }\n }\n\n const fromFile = path.join(fromDirectory, 'noop.js')\n\n const resolveFileName = ()
|
|
1
|
+
{"version":3,"sources":["../../../src/lib/resolve-from.ts"],"sourcesContent":["// source: https://github.com/sindresorhus/resolve-from\nimport path from 'path'\nimport isError from './is-error'\nimport { realpathSync } from './realpath'\n\nconst Module = require('module') as typeof import('module')\n\n// Detect Bun runtime\nconst isBun = typeof globalThis.Bun !== 'undefined'\n\nexport const resolveFrom = (\n fromDirectory: string,\n moduleId: string,\n silent?: boolean\n) => {\n if (typeof fromDirectory !== 'string') {\n throw new TypeError(\n `Expected \\`fromDir\\` to be of type \\`string\\`, got \\`${typeof fromDirectory}\\``\n )\n }\n\n if (typeof moduleId !== 'string') {\n throw new TypeError(\n `Expected \\`moduleId\\` to be of type \\`string\\`, got \\`${typeof moduleId}\\``\n )\n }\n\n try {\n fromDirectory = realpathSync(fromDirectory)\n } catch (error: unknown) {\n if (isError(error) && error.code === 'ENOENT') {\n fromDirectory = path.resolve(fromDirectory)\n } else if (silent) {\n return\n } else {\n throw error\n }\n }\n\n const fromFile = path.join(fromDirectory, 'noop.js')\n\n const resolveFileName = () => {\n // Use Bun's native resolution when available - Module._resolveFilename\n // has compatibility issues with Bun's module system\n if (isBun) {\n // @ts-expect-error - Bun types are not fully available\n const bunResolve = globalThis.Bun?.resolveSync\n if (typeof bunResolve === 'function') {\n return bunResolve(moduleId, fromDirectory)\n }\n }\n\n // @ts-expect-error\n return Module._resolveFilename(moduleId, {\n id: fromFile,\n filename: fromFile,\n paths:\n // @ts-expect-error\n Module._nodeModulePaths(fromDirectory),\n })\n }\n\n if (silent) {\n try {\n return resolveFileName()\n } catch (error) {\n return\n }\n }\n\n return resolveFileName()\n}\n"],"names":["path","isError","realpathSync","Module","require","isBun","globalThis","Bun","resolveFrom","fromDirectory","moduleId","silent","TypeError","error","code","resolve","fromFile","join","resolveFileName","bunResolve","resolveSync","_resolveFilename","id","filename","paths","_nodeModulePaths"],"mappings":"AAAA,uDAAuD;AACvD,OAAOA,UAAU,OAAM;AACvB,OAAOC,aAAa,aAAY;AAChC,SAASC,YAAY,QAAQ,aAAY;AAEzC,MAAMC,SAASC,QAAQ;AAEvB,qBAAqB;AACrB,MAAMC,QAAQ,OAAOC,WAAWC,GAAG,KAAK;AAExC,OAAO,MAAMC,cAAc,CACzBC,eACAC,UACAC;IAEA,IAAI,OAAOF,kBAAkB,UAAU;QACrC,MAAM,qBAEL,CAFK,IAAIG,UACR,CAAC,qDAAqD,EAAE,OAAOH,cAAc,EAAE,CAAC,GAD5E,qBAAA;mBAAA;wBAAA;0BAAA;QAEN;IACF;IAEA,IAAI,OAAOC,aAAa,UAAU;QAChC,MAAM,qBAEL,CAFK,IAAIE,UACR,CAAC,sDAAsD,EAAE,OAAOF,SAAS,EAAE,CAAC,GADxE,qBAAA;mBAAA;wBAAA;0BAAA;QAEN;IACF;IAEA,IAAI;QACFD,gBAAgBP,aAAaO;IAC/B,EAAE,OAAOI,OAAgB;QACvB,IAAIZ,QAAQY,UAAUA,MAAMC,IAAI,KAAK,UAAU;YAC7CL,gBAAgBT,KAAKe,OAAO,CAACN;QAC/B,OAAO,IAAIE,QAAQ;YACjB;QACF,OAAO;YACL,MAAME;QACR;IACF;IAEA,MAAMG,WAAWhB,KAAKiB,IAAI,CAACR,eAAe;IAE1C,MAAMS,kBAAkB;QACtB,uEAAuE;QACvE,oDAAoD;QACpD,IAAIb,OAAO;gBAEUC;YADnB,uDAAuD;YACvD,MAAMa,cAAab,kBAAAA,WAAWC,GAAG,qBAAdD,gBAAgBc,WAAW;YAC9C,IAAI,OAAOD,eAAe,YAAY;gBACpC,OAAOA,WAAWT,UAAUD;YAC9B;QACF;QAEA,mBAAmB;QACnB,OAAON,OAAOkB,gBAAgB,CAACX,UAAU;YACvCY,IAAIN;YACJO,UAAUP;YACVQ,OACE,mBAAmB;YACnBrB,OAAOsB,gBAAgB,CAAChB;QAC5B;IACF;IAEA,IAAIE,QAAQ;QACV,IAAI;YACF,OAAOO;QACT,EAAE,OAAOL,OAAO;YACd;QACF;IACF;IAEA,OAAOK;AACT,EAAC","ignoreList":[0]}
|
|
@@ -163,7 +163,7 @@ export default class HotReloaderWebpack {
|
|
|
163
163
|
this.previewProps = previewProps;
|
|
164
164
|
this.rewrites = rewrites;
|
|
165
165
|
this.hotReloaderSpan = trace('hot-reloader', undefined, {
|
|
166
|
-
version: "16.0.
|
|
166
|
+
version: "16.0.5"
|
|
167
167
|
});
|
|
168
168
|
// Ensure the hotReloaderSpan is flushed immediately as it's the parentSpan for all processing
|
|
169
169
|
// of the current `next dev` invocation.
|
|
@@ -20,7 +20,7 @@ export function logStartInfo({ networkUrl, appUrl, envInfo, experimentalFeatures
|
|
|
20
20
|
if (parts.length > 0) {
|
|
21
21
|
versionSuffix = ` (${parts.join(', ')})`;
|
|
22
22
|
}
|
|
23
|
-
Log.bootstrap(`${bold(purple(`${Log.prefixes.ready} Next.js ${"16.0.
|
|
23
|
+
Log.bootstrap(`${bold(purple(`${Log.prefixes.ready} Next.js ${"16.0.5"}`))}${versionSuffix}`);
|
|
24
24
|
if (appUrl) {
|
|
25
25
|
Log.bootstrap(`- Local: ${appUrl}`);
|
|
26
26
|
}
|
|
@@ -110,7 +110,7 @@ export async function getRequestHandlers({ dir, port, isDev, onDevServerCleanup,
|
|
|
110
110
|
export async function startServer(serverOptions) {
|
|
111
111
|
const { dir, isDev, hostname, minimalMode, allowRetry, keepAliveTimeout, selfSignedCertificate } = serverOptions;
|
|
112
112
|
let { port } = serverOptions;
|
|
113
|
-
process.title = `next-server (v${"16.0.
|
|
113
|
+
process.title = `next-server (v${"16.0.5"})`;
|
|
114
114
|
let handlersReady = ()=>{};
|
|
115
115
|
let handlersError = ()=>{};
|
|
116
116
|
let handlersPromise = new Promise((resolve, reject)=>{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export function isStableBuild() {
|
|
2
|
-
return !"16.0.
|
|
2
|
+
return !"16.0.5"?.includes('canary') && !process.env.__NEXT_TEST_MODE && !process.env.NEXT_PRIVATE_LOCAL_DEV;
|
|
3
3
|
}
|
|
4
4
|
export class CanaryOnlyConfigError extends Error {
|
|
5
5
|
constructor(arg){
|
package/dist/lib/resolve-from.js
CHANGED
|
@@ -18,6 +18,8 @@ function _interop_require_default(obj) {
|
|
|
18
18
|
};
|
|
19
19
|
}
|
|
20
20
|
const Module = require('module');
|
|
21
|
+
// Detect Bun runtime
|
|
22
|
+
const isBun = typeof globalThis.Bun !== 'undefined';
|
|
21
23
|
const resolveFrom = (fromDirectory, moduleId, silent)=>{
|
|
22
24
|
if (typeof fromDirectory !== 'string') {
|
|
23
25
|
throw Object.defineProperty(new TypeError(`Expected \`fromDir\` to be of type \`string\`, got \`${typeof fromDirectory}\``), "__NEXT_ERROR_CODE", {
|
|
@@ -45,13 +47,25 @@ const resolveFrom = (fromDirectory, moduleId, silent)=>{
|
|
|
45
47
|
}
|
|
46
48
|
}
|
|
47
49
|
const fromFile = _path.default.join(fromDirectory, 'noop.js');
|
|
48
|
-
const resolveFileName = ()
|
|
49
|
-
Module._resolveFilename
|
|
50
|
+
const resolveFileName = ()=>{
|
|
51
|
+
// Use Bun's native resolution when available - Module._resolveFilename
|
|
52
|
+
// has compatibility issues with Bun's module system
|
|
53
|
+
if (isBun) {
|
|
54
|
+
var _globalThis_Bun;
|
|
55
|
+
// @ts-expect-error - Bun types are not fully available
|
|
56
|
+
const bunResolve = (_globalThis_Bun = globalThis.Bun) == null ? void 0 : _globalThis_Bun.resolveSync;
|
|
57
|
+
if (typeof bunResolve === 'function') {
|
|
58
|
+
return bunResolve(moduleId, fromDirectory);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
// @ts-expect-error
|
|
62
|
+
return Module._resolveFilename(moduleId, {
|
|
50
63
|
id: fromFile,
|
|
51
64
|
filename: fromFile,
|
|
52
65
|
paths: // @ts-expect-error
|
|
53
66
|
Module._nodeModulePaths(fromDirectory)
|
|
54
67
|
});
|
|
68
|
+
};
|
|
55
69
|
if (silent) {
|
|
56
70
|
try {
|
|
57
71
|
return resolveFileName();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/lib/resolve-from.ts"],"sourcesContent":["// source: https://github.com/sindresorhus/resolve-from\nimport path from 'path'\nimport isError from './is-error'\nimport { realpathSync } from './realpath'\n\nconst Module = require('module') as typeof import('module')\n\nexport const resolveFrom = (\n fromDirectory: string,\n moduleId: string,\n silent?: boolean\n) => {\n if (typeof fromDirectory !== 'string') {\n throw new TypeError(\n `Expected \\`fromDir\\` to be of type \\`string\\`, got \\`${typeof fromDirectory}\\``\n )\n }\n\n if (typeof moduleId !== 'string') {\n throw new TypeError(\n `Expected \\`moduleId\\` to be of type \\`string\\`, got \\`${typeof moduleId}\\``\n )\n }\n\n try {\n fromDirectory = realpathSync(fromDirectory)\n } catch (error: unknown) {\n if (isError(error) && error.code === 'ENOENT') {\n fromDirectory = path.resolve(fromDirectory)\n } else if (silent) {\n return\n } else {\n throw error\n }\n }\n\n const fromFile = path.join(fromDirectory, 'noop.js')\n\n const resolveFileName = ()
|
|
1
|
+
{"version":3,"sources":["../../src/lib/resolve-from.ts"],"sourcesContent":["// source: https://github.com/sindresorhus/resolve-from\nimport path from 'path'\nimport isError from './is-error'\nimport { realpathSync } from './realpath'\n\nconst Module = require('module') as typeof import('module')\n\n// Detect Bun runtime\nconst isBun = typeof globalThis.Bun !== 'undefined'\n\nexport const resolveFrom = (\n fromDirectory: string,\n moduleId: string,\n silent?: boolean\n) => {\n if (typeof fromDirectory !== 'string') {\n throw new TypeError(\n `Expected \\`fromDir\\` to be of type \\`string\\`, got \\`${typeof fromDirectory}\\``\n )\n }\n\n if (typeof moduleId !== 'string') {\n throw new TypeError(\n `Expected \\`moduleId\\` to be of type \\`string\\`, got \\`${typeof moduleId}\\``\n )\n }\n\n try {\n fromDirectory = realpathSync(fromDirectory)\n } catch (error: unknown) {\n if (isError(error) && error.code === 'ENOENT') {\n fromDirectory = path.resolve(fromDirectory)\n } else if (silent) {\n return\n } else {\n throw error\n }\n }\n\n const fromFile = path.join(fromDirectory, 'noop.js')\n\n const resolveFileName = () => {\n // Use Bun's native resolution when available - Module._resolveFilename\n // has compatibility issues with Bun's module system\n if (isBun) {\n // @ts-expect-error - Bun types are not fully available\n const bunResolve = globalThis.Bun?.resolveSync\n if (typeof bunResolve === 'function') {\n return bunResolve(moduleId, fromDirectory)\n }\n }\n\n // @ts-expect-error\n return Module._resolveFilename(moduleId, {\n id: fromFile,\n filename: fromFile,\n paths:\n // @ts-expect-error\n Module._nodeModulePaths(fromDirectory),\n })\n }\n\n if (silent) {\n try {\n return resolveFileName()\n } catch (error) {\n return\n }\n }\n\n return resolveFileName()\n}\n"],"names":["resolveFrom","Module","require","isBun","globalThis","Bun","fromDirectory","moduleId","silent","TypeError","realpathSync","error","isError","code","path","resolve","fromFile","join","resolveFileName","bunResolve","resolveSync","_resolveFilename","id","filename","paths","_nodeModulePaths"],"mappings":"AAAA,uDAAuD;;;;;+BAU1CA;;;eAAAA;;;6DATI;gEACG;0BACS;;;;;;AAE7B,MAAMC,SAASC,QAAQ;AAEvB,qBAAqB;AACrB,MAAMC,QAAQ,OAAOC,WAAWC,GAAG,KAAK;AAEjC,MAAML,cAAc,CACzBM,eACAC,UACAC;IAEA,IAAI,OAAOF,kBAAkB,UAAU;QACrC,MAAM,qBAEL,CAFK,IAAIG,UACR,CAAC,qDAAqD,EAAE,OAAOH,cAAc,EAAE,CAAC,GAD5E,qBAAA;mBAAA;wBAAA;0BAAA;QAEN;IACF;IAEA,IAAI,OAAOC,aAAa,UAAU;QAChC,MAAM,qBAEL,CAFK,IAAIE,UACR,CAAC,sDAAsD,EAAE,OAAOF,SAAS,EAAE,CAAC,GADxE,qBAAA;mBAAA;wBAAA;0BAAA;QAEN;IACF;IAEA,IAAI;QACFD,gBAAgBI,IAAAA,sBAAY,EAACJ;IAC/B,EAAE,OAAOK,OAAgB;QACvB,IAAIC,IAAAA,gBAAO,EAACD,UAAUA,MAAME,IAAI,KAAK,UAAU;YAC7CP,gBAAgBQ,aAAI,CAACC,OAAO,CAACT;QAC/B,OAAO,IAAIE,QAAQ;YACjB;QACF,OAAO;YACL,MAAMG;QACR;IACF;IAEA,MAAMK,WAAWF,aAAI,CAACG,IAAI,CAACX,eAAe;IAE1C,MAAMY,kBAAkB;QACtB,uEAAuE;QACvE,oDAAoD;QACpD,IAAIf,OAAO;gBAEUC;YADnB,uDAAuD;YACvD,MAAMe,cAAaf,kBAAAA,WAAWC,GAAG,qBAAdD,gBAAgBgB,WAAW;YAC9C,IAAI,OAAOD,eAAe,YAAY;gBACpC,OAAOA,WAAWZ,UAAUD;YAC9B;QACF;QAEA,mBAAmB;QACnB,OAAOL,OAAOoB,gBAAgB,CAACd,UAAU;YACvCe,IAAIN;YACJO,UAAUP;YACVQ,OACE,mBAAmB;YACnBvB,OAAOwB,gBAAgB,CAACnB;QAC5B;IACF;IAEA,IAAIE,QAAQ;QACV,IAAI;YACF,OAAOU;QACT,EAAE,OAAOP,OAAO;YACd;QACF;IACF;IAEA,OAAOO;AACT","ignoreList":[0]}
|
|
@@ -231,7 +231,7 @@ class HotReloaderWebpack {
|
|
|
231
231
|
this.previewProps = previewProps;
|
|
232
232
|
this.rewrites = rewrites;
|
|
233
233
|
this.hotReloaderSpan = (0, _trace.trace)('hot-reloader', undefined, {
|
|
234
|
-
version: "16.0.
|
|
234
|
+
version: "16.0.5"
|
|
235
235
|
});
|
|
236
236
|
// Ensure the hotReloaderSpan is flushed immediately as it's the parentSpan for all processing
|
|
237
237
|
// of the current `next dev` invocation.
|
|
@@ -88,7 +88,7 @@ function logStartInfo({ networkUrl, appUrl, envInfo, experimentalFeatures, logBu
|
|
|
88
88
|
if (parts.length > 0) {
|
|
89
89
|
versionSuffix = ` (${parts.join(', ')})`;
|
|
90
90
|
}
|
|
91
|
-
_log.bootstrap(`${(0, _picocolors.bold)((0, _picocolors.purple)(`${_log.prefixes.ready} Next.js ${"16.0.
|
|
91
|
+
_log.bootstrap(`${(0, _picocolors.bold)((0, _picocolors.purple)(`${_log.prefixes.ready} Next.js ${"16.0.5"}`))}${versionSuffix}`);
|
|
92
92
|
if (appUrl) {
|
|
93
93
|
_log.bootstrap(`- Local: ${appUrl}`);
|
|
94
94
|
}
|
|
@@ -178,7 +178,7 @@ async function getRequestHandlers({ dir, port, isDev, onDevServerCleanup, server
|
|
|
178
178
|
async function startServer(serverOptions) {
|
|
179
179
|
const { dir, isDev, hostname, minimalMode, allowRetry, keepAliveTimeout, selfSignedCertificate } = serverOptions;
|
|
180
180
|
let { port } = serverOptions;
|
|
181
|
-
process.title = `next-server (v${"16.0.
|
|
181
|
+
process.title = `next-server (v${"16.0.5"})`;
|
|
182
182
|
let handlersReady = ()=>{};
|
|
183
183
|
let handlersError = ()=>{};
|
|
184
184
|
let handlersPromise = new Promise((resolve, reject)=>{
|
|
@@ -21,7 +21,7 @@ _export(exports, {
|
|
|
21
21
|
}
|
|
22
22
|
});
|
|
23
23
|
function isStableBuild() {
|
|
24
|
-
return !"16.0.
|
|
24
|
+
return !"16.0.5"?.includes('canary') && !process.env.__NEXT_TEST_MODE && !process.env.NEXT_PRIVATE_LOCAL_DEV;
|
|
25
25
|
}
|
|
26
26
|
class CanaryOnlyConfigError extends Error {
|
|
27
27
|
constructor(arg){
|
|
@@ -11,11 +11,11 @@ Object.defineProperty(exports, "eventCliSessionStopped", {
|
|
|
11
11
|
const EVENT_VERSION = 'NEXT_CLI_SESSION_STOPPED';
|
|
12
12
|
function eventCliSessionStopped(event) {
|
|
13
13
|
// This should be an invariant, if it fails our build tooling is broken.
|
|
14
|
-
if (typeof "16.0.
|
|
14
|
+
if (typeof "16.0.5" !== 'string') {
|
|
15
15
|
return [];
|
|
16
16
|
}
|
|
17
17
|
const payload = {
|
|
18
|
-
nextVersion: "16.0.
|
|
18
|
+
nextVersion: "16.0.5",
|
|
19
19
|
nodeVersion: process.version,
|
|
20
20
|
cliCommand: event.cliCommand,
|
|
21
21
|
durationMilliseconds: event.durationMilliseconds,
|
|
@@ -12,12 +12,12 @@ const EVENT_VERSION = 'NEXT_CLI_SESSION_STARTED';
|
|
|
12
12
|
function eventCliSession(nextConfig, event) {
|
|
13
13
|
var _nextConfig_experimental_staleTimes, _nextConfig_experimental_staleTimes1, _nextConfig_reactCompiler, _nextConfig_reactCompiler1;
|
|
14
14
|
// This should be an invariant, if it fails our build tooling is broken.
|
|
15
|
-
if (typeof "16.0.
|
|
15
|
+
if (typeof "16.0.5" !== 'string') {
|
|
16
16
|
return [];
|
|
17
17
|
}
|
|
18
18
|
const { images, i18n } = nextConfig || {};
|
|
19
19
|
const payload = {
|
|
20
|
-
nextVersion: "16.0.
|
|
20
|
+
nextVersion: "16.0.5",
|
|
21
21
|
nodeVersion: process.version,
|
|
22
22
|
cliCommand: event.cliCommand,
|
|
23
23
|
isSrcDir: event.isSrcDir,
|