@openuiai/next 15.6.0-bun.24 → 15.6.0-bun.26
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/compiled/next-server/pages-api-turbo.runtime.dev.js +1 -1
- package/dist/compiled/next-server/pages-api-turbo.runtime.dev.js.map +1 -1
- package/dist/compiled/next-server/pages-api-turbo.runtime.prod.js +1 -1
- package/dist/compiled/next-server/pages-api-turbo.runtime.prod.js.map +1 -1
- package/dist/compiled/next-server/pages-turbo.runtime.dev.js +1 -1
- package/dist/compiled/next-server/pages-turbo.runtime.dev.js.map +1 -1
- package/dist/compiled/next-server/pages-turbo.runtime.prod.js +1 -1
- package/dist/compiled/next-server/pages-turbo.runtime.prod.js.map +1 -1
- package/dist/compiled/next-server/server.runtime.prod.js +14 -0
- package/dist/compiled/next-server/server.runtime.prod.js.map +1 -0
- 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/typescript/writeAppTypeDeclarations.js +2 -1
- package/dist/esm/lib/typescript/writeAppTypeDeclarations.js.map +1 -1
- package/dist/esm/lib/typescript/writeConfigurationDefaults.js +29 -0
- package/dist/esm/lib/typescript/writeConfigurationDefaults.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/server/require-hook.js +4 -1
- package/dist/esm/server/require-hook.js.map +1 -1
- package/dist/esm/shared/lib/canary-only.js +1 -1
- package/dist/lib/typescript/writeAppTypeDeclarations.js +2 -1
- package/dist/lib/typescript/writeAppTypeDeclarations.js.map +1 -1
- package/dist/lib/typescript/writeConfigurationDefaults.js +29 -0
- package/dist/lib/typescript/writeConfigurationDefaults.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/server/require-hook.js +4 -1
- package/dist/server/require-hook.js.map +1 -1
- package/dist/shared/lib/canary-only.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
|
@@ -226,7 +226,7 @@ class HotReloaderWebpack {
|
|
|
226
226
|
this.previewProps = previewProps;
|
|
227
227
|
this.rewrites = rewrites;
|
|
228
228
|
this.hotReloaderSpan = (0, _trace.trace)('hot-reloader', undefined, {
|
|
229
|
-
version: "15.6.0-bun.
|
|
229
|
+
version: "15.6.0-bun.25"
|
|
230
230
|
});
|
|
231
231
|
// Ensure the hotReloaderSpan is flushed immediately as it's the parentSpan for all processing
|
|
232
232
|
// of the current `next dev` invocation.
|
|
@@ -82,7 +82,7 @@ function logStartInfo({ networkUrl, appUrl, envInfo, experimentalFeatures, logBu
|
|
|
82
82
|
bundlerSuffix = ' (webpack)';
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
|
-
_log.bootstrap(`${(0, _picocolors.bold)((0, _picocolors.purple)(`${_log.prefixes.ready} Next.js ${"15.6.0-bun.
|
|
85
|
+
_log.bootstrap(`${(0, _picocolors.bold)((0, _picocolors.purple)(`${_log.prefixes.ready} Next.js ${"15.6.0-bun.25"}`))}${bundlerSuffix}`);
|
|
86
86
|
if (appUrl) {
|
|
87
87
|
_log.bootstrap(`- Local: ${appUrl}`);
|
|
88
88
|
}
|
|
@@ -155,7 +155,7 @@ async function getRequestHandlers({ dir, port, isDev, onDevServerCleanup, server
|
|
|
155
155
|
async function startServer(serverOptions) {
|
|
156
156
|
const { dir, isDev, hostname, minimalMode, allowRetry, keepAliveTimeout, selfSignedCertificate } = serverOptions;
|
|
157
157
|
let { port } = serverOptions;
|
|
158
|
-
process.title = `next-server (v${"15.6.0-bun.
|
|
158
|
+
process.title = `next-server (v${"15.6.0-bun.25"})`;
|
|
159
159
|
let handlersReady = ()=>{};
|
|
160
160
|
let handlersError = ()=>{};
|
|
161
161
|
let handlersPromise = new Promise((resolve, reject)=>{
|
|
@@ -30,8 +30,11 @@ _export(exports, {
|
|
|
30
30
|
});
|
|
31
31
|
const path = require('path');
|
|
32
32
|
const mod = require('module');
|
|
33
|
+
const fs = require('fs');
|
|
33
34
|
// Read package name dynamically to support forked packages
|
|
34
|
-
|
|
35
|
+
// Use a dynamic path that won't be resolved by bundlers
|
|
36
|
+
const packageJsonPath = path.join(__dirname, '../../package.json');
|
|
37
|
+
const PKG_NAME = JSON.parse(fs.readFileSync(packageJsonPath, 'utf8')).name;
|
|
35
38
|
const originalRequire = mod.prototype.require;
|
|
36
39
|
const resolveFilename = // @ts-expect-error
|
|
37
40
|
mod._resolveFilename;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/server/require-hook.ts"],"sourcesContent":["// Synchronously inject a require hook for webpack and webpack/. It's required to use the internal ncc webpack version.\n// This is needed for userland plugins to attach to the same webpack instance as Next.js'.\n// Individually compiled modules are as defined for the compilation in bundles/webpack/packages/*.\n\n// This module will only be loaded once per process.\nconst path = require('path') as typeof import('path')\nconst mod = require('module') as typeof import('module')\n\n// Read package name dynamically to support forked packages\nconst
|
|
1
|
+
{"version":3,"sources":["../../src/server/require-hook.ts"],"sourcesContent":["// Synchronously inject a require hook for webpack and webpack/. It's required to use the internal ncc webpack version.\n// This is needed for userland plugins to attach to the same webpack instance as Next.js'.\n// Individually compiled modules are as defined for the compilation in bundles/webpack/packages/*.\n\n// This module will only be loaded once per process.\nconst path = require('path') as typeof import('path')\nconst mod = require('module') as typeof import('module')\nconst fs = require('fs') as typeof import('fs')\n\n// Read package name dynamically to support forked packages\n// Use a dynamic path that won't be resolved by bundlers\nconst packageJsonPath = path.join(__dirname, '../../package.json')\nconst PKG_NAME = JSON.parse(fs.readFileSync(packageJsonPath, 'utf8')).name\nconst originalRequire = mod.prototype.require\nconst resolveFilename =\n // @ts-expect-error\n mod._resolveFilename\n\nlet resolve: typeof require.resolve = process.env.NEXT_MINIMAL\n ? // @ts-ignore\n __non_webpack_require__.resolve\n : require.resolve\n\nexport const hookPropertyMap = new Map()\n\nexport const defaultOverrides = {\n 'styled-jsx': path.dirname(resolve('styled-jsx/package.json')),\n 'styled-jsx/style': resolve('styled-jsx/style'),\n 'styled-jsx/style.js': resolve('styled-jsx/style'),\n}\n\nconst toResolveMap = (map: Record<string, string>): [string, string][] =>\n Object.entries(map).map(([key, value]) => [key, resolve(value)])\n\nexport function addHookAliases(aliases: [string, string][] = []) {\n for (const [key, value] of aliases) {\n hookPropertyMap.set(key, value)\n }\n}\n\naddHookAliases(toResolveMap(defaultOverrides))\n\n// @ts-expect-error\nmod._resolveFilename = function (\n originalResolveFilename: (\n request: string,\n parent: string,\n isMain: boolean,\n opts: any\n ) => string,\n requestMap: Map<string, string>,\n pkgName: string,\n request: string,\n parent: string,\n isMain: boolean,\n options: any\n) {\n const hookResolved = requestMap.get(request)\n if (hookResolved) request = hookResolved\n\n // Redirect next/dist/, next/font/, and next/package.json requests to the actual package name (supports forked packages)\n if (request.startsWith('next/dist/')) {\n request = request.replace('next/dist/', `${pkgName}/dist/`)\n } else if (request.startsWith('next/font/')) {\n request = request.replace('next/font/', `${pkgName}/font/`)\n } else if (request === 'next/package.json') {\n request = `${pkgName}/package.json`\n }\n\n return originalResolveFilename.call(mod, request, parent, isMain, options)\n\n // We use `bind` here to avoid referencing outside variables to create potential memory leaks.\n}.bind(null, resolveFilename, hookPropertyMap, PKG_NAME)\n\n// @ts-expect-error\n// This is a hack to make sure that if a user requires a Next.js module that wasn't bundled\n// that needs to point to the rendering runtime version, it will point to the correct one.\n// This can happen on `pages` when a user requires a dependency that uses next/image for example.\nmod.prototype.require = function (request: string) {\n if (request.endsWith('.shared-runtime')) {\n return originalRequire.call(\n this,\n `${PKG_NAME}/dist/server/route-modules/pages/vendored/contexts/${path.basename(\n request,\n '.shared-runtime'\n )}`\n )\n }\n\n // Redirect next/dist/, next/font/, and next/package.json requests to the actual package name (supports forked packages)\n if (request.startsWith('next/dist/')) {\n return originalRequire.call(this, request.replace('next/dist/', `${PKG_NAME}/dist/`))\n } else if (request.startsWith('next/font/')) {\n return originalRequire.call(this, request.replace('next/font/', `${PKG_NAME}/font/`))\n } else if (request === 'next/package.json') {\n return originalRequire.call(this, `${PKG_NAME}/package.json`)\n }\n\n return originalRequire.call(this, request)\n}\n"],"names":["addHookAliases","defaultOverrides","hookPropertyMap","path","require","mod","fs","packageJsonPath","join","__dirname","PKG_NAME","JSON","parse","readFileSync","name","originalRequire","prototype","resolveFilename","_resolveFilename","resolve","process","env","NEXT_MINIMAL","__non_webpack_require__","Map","dirname","toResolveMap","map","Object","entries","key","value","aliases","set","originalResolveFilename","requestMap","pkgName","request","parent","isMain","options","hookResolved","get","startsWith","replace","call","bind","endsWith","basename"],"mappings":"AAAA,uHAAuH;AACvH,0FAA0F;AAC1F,kGAAkG;AAElG,oDAAoD;;;;;;;;;;;;;;;;;IA8BpCA,cAAc;eAAdA;;IATHC,gBAAgB;eAAhBA;;IAFAC,eAAe;eAAfA;;;AAlBb,MAAMC,OAAOC,QAAQ;AACrB,MAAMC,MAAMD,QAAQ;AACpB,MAAME,KAAKF,QAAQ;AAEnB,2DAA2D;AAC3D,wDAAwD;AACxD,MAAMG,kBAAkBJ,KAAKK,IAAI,CAACC,WAAW;AAC7C,MAAMC,WAAWC,KAAKC,KAAK,CAACN,GAAGO,YAAY,CAACN,iBAAiB,SAASO,IAAI;AAC1E,MAAMC,kBAAkBV,IAAIW,SAAS,CAACZ,OAAO;AAC7C,MAAMa,kBACJ,mBAAmB;AACnBZ,IAAIa,gBAAgB;AAEtB,I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F,0FAA0F;AAC1F,iGAAiG;AACjGL,IAAIW,SAAS,CAACZ,OAAO,GAAG,SAAUiC,OAAe;IAC/C,IAAIA,QAAQU,QAAQ,CAAC,oBAAoB;QACvC,OAAOhC,gBAAgB8B,IAAI,CACzB,IAAI,EACJ,GAAGnC,SAAS,mDAAmD,EAAEP,KAAK6C,QAAQ,CAC5EX,SACA,oBACC;IAEP;IAEA,wHAAwH;IACxH,IAAIA,QAAQM,UAAU,CAAC,eAAe;QACpC,OAAO5B,gBAAgB8B,IAAI,CAAC,IAAI,EAAER,QAAQO,OAAO,CAAC,cAAc,GAAGlC,SAAS,MAAM,CAAC;IACrF,OAAO,IAAI2B,QAAQM,UAAU,CAAC,eAAe;QAC3C,OAAO5B,gBAAgB8B,IAAI,CAAC,IAAI,EAAER,QAAQO,OAAO,CAAC,cAAc,GAAGlC,SAAS,MAAM,CAAC;IACrF,OAAO,IAAI2B,YAAY,qBAAqB;QAC1C,OAAOtB,gBAAgB8B,IAAI,CAAC,IAAI,EAAE,GAAGnC,SAAS,aAAa,CAAC;IAC9D;IAEA,OAAOK,gBAAgB8B,IAAI,CAAC,IAAI,EAAER;AACpC","ignoreList":[0]}
|
|
@@ -22,7 +22,7 @@ _export(exports, {
|
|
|
22
22
|
});
|
|
23
23
|
function isStableBuild() {
|
|
24
24
|
var _process_env___NEXT_VERSION;
|
|
25
|
-
return !((_process_env___NEXT_VERSION = "15.6.0-bun.
|
|
25
|
+
return !((_process_env___NEXT_VERSION = "15.6.0-bun.25") == null ? void 0 : _process_env___NEXT_VERSION.includes('canary')) && !process.env.__NEXT_TEST_MODE && !process.env.NEXT_PRIVATE_LOCAL_DEV;
|
|
26
26
|
}
|
|
27
27
|
class CanaryOnlyError extends Error {
|
|
28
28
|
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 "15.6.0-bun.
|
|
14
|
+
if (typeof "15.6.0-bun.25" !== 'string') {
|
|
15
15
|
return [];
|
|
16
16
|
}
|
|
17
17
|
const payload = {
|
|
18
|
-
nextVersion: "15.6.0-bun.
|
|
18
|
+
nextVersion: "15.6.0-bun.25",
|
|
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_experimental_reactCompiler, _nextConfig_experimental_reactCompiler1;
|
|
14
14
|
// This should be an invariant, if it fails our build tooling is broken.
|
|
15
|
-
if (typeof "15.6.0-bun.
|
|
15
|
+
if (typeof "15.6.0-bun.25" !== 'string') {
|
|
16
16
|
return [];
|
|
17
17
|
}
|
|
18
18
|
const { images, i18n } = nextConfig || {};
|
|
19
19
|
const payload = {
|
|
20
|
-
nextVersion: "15.6.0-bun.
|
|
20
|
+
nextVersion: "15.6.0-bun.25",
|
|
21
21
|
nodeVersion: process.version,
|
|
22
22
|
cliCommand: event.cliCommand,
|
|
23
23
|
isSrcDir: event.isSrcDir,
|