@openuiai/next 15.6.0-bun.34 → 15.6.0-bun.35

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.
Files changed (33) hide show
  1. package/dist/bin/next +1 -1
  2. package/dist/build/index.js +3 -3
  3. package/dist/build/swc/index.js +1 -1
  4. package/dist/build/webpack-config.js +2 -2
  5. package/dist/client/app-bootstrap.js +1 -1
  6. package/dist/client/index.js +1 -1
  7. package/dist/compiled/next-server/pages-api-turbo.runtime.dev.js +1 -1
  8. package/dist/compiled/next-server/pages-api-turbo.runtime.dev.js.map +1 -1
  9. package/dist/compiled/next-server/pages-turbo.runtime.dev.js +1 -1
  10. package/dist/compiled/next-server/pages-turbo.runtime.dev.js.map +1 -1
  11. package/dist/compiled/next-server/server.runtime.prod.js +5 -5
  12. package/dist/compiled/next-server/server.runtime.prod.js.map +1 -1
  13. package/dist/esm/build/index.js +3 -3
  14. package/dist/esm/build/swc/index.js +1 -1
  15. package/dist/esm/build/webpack-config.js +2 -2
  16. package/dist/esm/client/app-bootstrap.js +1 -1
  17. package/dist/esm/client/index.js +1 -1
  18. package/dist/esm/server/dev/hot-reloader-webpack.js +1 -1
  19. package/dist/esm/server/lib/app-info-log.js +1 -1
  20. package/dist/esm/server/lib/start-server.js +1 -1
  21. package/dist/esm/server/require-hook.js +10 -5
  22. package/dist/esm/server/require-hook.js.map +1 -1
  23. package/dist/esm/shared/lib/canary-only.js +1 -1
  24. package/dist/server/dev/hot-reloader-webpack.js +1 -1
  25. package/dist/server/lib/app-info-log.js +1 -1
  26. package/dist/server/lib/start-server.js +1 -1
  27. package/dist/server/require-hook.js +10 -5
  28. package/dist/server/require-hook.js.map +1 -1
  29. package/dist/shared/lib/canary-only.js +1 -1
  30. package/dist/telemetry/anonymous-meta.js +1 -1
  31. package/dist/telemetry/events/session-stopped.js +2 -2
  32. package/dist/telemetry/events/version.js +2 -2
  33. package/package.json +2 -2
@@ -301,7 +301,7 @@ export default async function build(dir, reactProductionProfiling = false, debug
301
301
  const nextBuildSpan = trace('next-build', undefined, {
302
302
  buildMode: experimentalBuildMode,
303
303
  isTurboBuild: String(isTurbopack),
304
- version: "15.6.0-bun.34"
304
+ version: "15.6.0-bun.35"
305
305
  });
306
306
  NextBuildContext.nextBuildSpan = nextBuildSpan;
307
307
  NextBuildContext.dir = dir;
@@ -780,7 +780,7 @@ export default async function build(dir, reactProductionProfiling = false, debug
780
780
  // Files outside of the distDir can be "type": "module"
781
781
  await writeFileUtf8(path.join(distDir, 'package.json'), '{"type": "commonjs"}');
782
782
  // These are written to distDir, so they need to come after creating and cleaning distDr.
783
- await recordFrameworkVersion("15.6.0-bun.34");
783
+ await recordFrameworkVersion("15.6.0-bun.35");
784
784
  await updateBuildDiagnostics({
785
785
  buildStage: 'start'
786
786
  });
@@ -2425,7 +2425,7 @@ export default async function build(dir, reactProductionProfiling = false, debug
2425
2425
  distDir,
2426
2426
  config,
2427
2427
  staticPages,
2428
- nextVersion: "15.6.0-bun.34",
2428
+ nextVersion: "15.6.0-bun.35",
2429
2429
  tracingRoot: outputFileTracingRoot,
2430
2430
  hasNodeMiddleware,
2431
2431
  hasInstrumentationHook,
@@ -11,7 +11,7 @@ import { isDeepStrictEqual } from 'util';
11
11
  import { getDefineEnv } from '../define-env';
12
12
  import { getReactCompilerLoader } from '../get-babel-loader-config';
13
13
  import { throwTurbopackInternalError } from '../../shared/lib/turbopack/internal-error';
14
- const nextVersion = "15.6.0-bun.34";
14
+ const nextVersion = "15.6.0-bun.35";
15
15
  const ArchName = arch();
16
16
  const PlatformName = platform();
17
17
  function infoLog(...args) {
@@ -1575,7 +1575,7 @@ export default async function getBaseWebpackConfig(dir, { buildId, encryptionKey
1575
1575
  isClient && new CopyFilePlugin({
1576
1576
  // file path to build output of `@next/polyfill-nomodule`
1577
1577
  filePath: require.resolve('./polyfills/polyfill-nomodule'),
1578
- cacheKey: "15.6.0-bun.34",
1578
+ cacheKey: "15.6.0-bun.35",
1579
1579
  name: `static/chunks/polyfills${dev ? '' : '-[hash]'}.js`,
1580
1580
  minimize: false,
1581
1581
  info: {
@@ -1756,7 +1756,7 @@ export default async function getBaseWebpackConfig(dir, { buildId, encryptionKey
1756
1756
  // - Next.js location on disk (some loaders use absolute paths and some resolve options depend on absolute paths)
1757
1757
  // - Next.js version
1758
1758
  // - next.config.js keys that affect compilation
1759
- version: `${__dirname}|${"15.6.0-bun.34"}|${configVars}`,
1759
+ version: `${__dirname}|${"15.6.0-bun.35"}|${configVars}`,
1760
1760
  cacheDirectory: path.join(distDir, 'cache', 'webpack'),
1761
1761
  // For production builds, it's more efficient to compress all cache files together instead of compression each one individually.
1762
1762
  // 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 = "15.6.0-bun.34";
8
+ const version = "15.6.0-bun.35";
9
9
  window.next = {
10
10
  version,
11
11
  appDir: true
@@ -26,7 +26,7 @@ import { SearchParamsContext, PathParamsContext } from '../shared/lib/hooks-clie
26
26
  import { onRecoverableError } from './react-client-callbacks/on-recoverable-error';
27
27
  import tracer from './tracing/tracer';
28
28
  import { isNextRouterError } from './components/is-next-router-error';
29
- export const version = "15.6.0-bun.34";
29
+ export const version = "15.6.0-bun.35";
30
30
  export let router;
31
31
  export const emitter = mitt();
32
32
  const looseToArray = (input)=>[].slice.call(input);
@@ -158,7 +158,7 @@ export default class HotReloaderWebpack {
158
158
  this.previewProps = previewProps;
159
159
  this.rewrites = rewrites;
160
160
  this.hotReloaderSpan = trace('hot-reloader', undefined, {
161
- version: "15.6.0-bun.34"
161
+ version: "15.6.0-bun.35"
162
162
  });
163
163
  // Ensure the hotReloaderSpan is flushed immediately as it's the parentSpan for all processing
164
164
  // of the current `next dev` invocation.
@@ -14,7 +14,7 @@ export function logStartInfo({ networkUrl, appUrl, envInfo, experimentalFeatures
14
14
  bundlerSuffix = ' (webpack)';
15
15
  }
16
16
  }
17
- Log.bootstrap(`${bold(purple(`${Log.prefixes.ready} Next.js ${"15.6.0-bun.34"}`))}${bundlerSuffix}`);
17
+ Log.bootstrap(`${bold(purple(`${Log.prefixes.ready} Next.js ${"15.6.0-bun.35"}`))}${bundlerSuffix}`);
18
18
  if (appUrl) {
19
19
  Log.bootstrap(`- Local: ${appUrl}`);
20
20
  }
@@ -87,7 +87,7 @@ export async function getRequestHandlers({ dir, port, isDev, onDevServerCleanup,
87
87
  export async function startServer(serverOptions) {
88
88
  const { dir, isDev, hostname, minimalMode, allowRetry, keepAliveTimeout, selfSignedCertificate } = serverOptions;
89
89
  let { port } = serverOptions;
90
- process.title = `next-server (v${"15.6.0-bun.34"})`;
90
+ process.title = `next-server (v${"15.6.0-bun.35"})`;
91
91
  let handlersReady = ()=>{};
92
92
  let handlersError = ()=>{};
93
93
  let handlersPromise = new Promise((resolve, reject)=>{
@@ -9,6 +9,10 @@ const fs = require('fs');
9
9
  // Use a dynamic path that won't be resolved by bundlers
10
10
  const packageJsonPath = path.join(__dirname, '../../package.json');
11
11
  const PKG_NAME = JSON.parse(fs.readFileSync(packageJsonPath, 'utf8')).name;
12
+ // Detect if package is installed via npm aliasing (e.g., "next": "npm:@openuiai/next")
13
+ // If __dirname contains /next/ rather than the actual package name, we're aliased
14
+ const isNpmAliased = __dirname.includes('/next/') && PKG_NAME !== 'next';
15
+ const EFFECTIVE_PKG_NAME = isNpmAliased ? 'next' : PKG_NAME;
12
16
  const originalRequire = mod.prototype.require;
13
17
  const resolveFilename = // @ts-expect-error
14
18
  mod._resolveFilename;
@@ -34,6 +38,7 @@ mod._resolveFilename = (function(originalResolveFilename, requestMap, pkgName, r
34
38
  const hookResolved = requestMap.get(request);
35
39
  if (hookResolved) request = hookResolved;
36
40
  // Redirect next/dist/, next/font/, and next/package.json requests to the actual package name (supports forked packages)
41
+ // Use pkgName for the replacement (this already accounts for npm aliasing)
37
42
  if (request.startsWith('next/dist/')) {
38
43
  request = request.replace('next/dist/', `${pkgName}/dist/`);
39
44
  } else if (request.startsWith('next/font/')) {
@@ -43,22 +48,22 @@ mod._resolveFilename = (function(originalResolveFilename, requestMap, pkgName, r
43
48
  }
44
49
  return originalResolveFilename.call(mod, request, parent, isMain, options);
45
50
  // We use `bind` here to avoid referencing outside variables to create potential memory leaks.
46
- }).bind(null, resolveFilename, hookPropertyMap, PKG_NAME);
51
+ }).bind(null, resolveFilename, hookPropertyMap, EFFECTIVE_PKG_NAME);
47
52
  // @ts-expect-error
48
53
  // This is a hack to make sure that if a user requires a Next.js module that wasn't bundled
49
54
  // that needs to point to the rendering runtime version, it will point to the correct one.
50
55
  // This can happen on `pages` when a user requires a dependency that uses next/image for example.
51
56
  mod.prototype.require = function(request) {
52
57
  if (request.endsWith('.shared-runtime')) {
53
- return originalRequire.call(this, `${PKG_NAME}/dist/server/route-modules/pages/vendored/contexts/${path.basename(request, '.shared-runtime')}`);
58
+ return originalRequire.call(this, `${EFFECTIVE_PKG_NAME}/dist/server/route-modules/pages/vendored/contexts/${path.basename(request, '.shared-runtime')}`);
54
59
  }
55
60
  // Redirect next/dist/, next/font/, and next/package.json requests to the actual package name (supports forked packages)
56
61
  if (request.startsWith('next/dist/')) {
57
- return originalRequire.call(this, request.replace('next/dist/', `${PKG_NAME}/dist/`));
62
+ return originalRequire.call(this, request.replace('next/dist/', `${EFFECTIVE_PKG_NAME}/dist/`));
58
63
  } else if (request.startsWith('next/font/')) {
59
- return originalRequire.call(this, request.replace('next/font/', `${PKG_NAME}/font/`));
64
+ return originalRequire.call(this, request.replace('next/font/', `${EFFECTIVE_PKG_NAME}/font/`));
60
65
  } else if (request === 'next/package.json') {
61
- return originalRequire.call(this, `${PKG_NAME}/package.json`);
66
+ return originalRequire.call(this, `${EFFECTIVE_PKG_NAME}/package.json`);
62
67
  }
63
68
  return originalRequire.call(this, request);
64
69
  };
@@ -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')\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(\n this,\n request.replace('next/dist/', `${PKG_NAME}/dist/`)\n )\n } else if (request.startsWith('next/font/')) {\n return originalRequire.call(\n this,\n request.replace('next/font/', `${PKG_NAME}/font/`)\n )\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":["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__","hookPropertyMap","Map","defaultOverrides","dirname","toResolveMap","map","Object","entries","key","value","addHookAliases","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;AACpD,MAAMA,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,K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AC;IACrC;IAEA,OAAOF,wBAAwBW,IAAI,CAAC3C,KAAKmC,SAASC,QAAQC,QAAQC;AAElE,8FAA8F;AAChG,CAAA,EAAEM,IAAI,CAAC,MAAMhC,iBAAiBO,iBAAiBd;AAE/C,mBAAmB;AACnB,2FAA2F;AAC3F,0FAA0F;AAC1F,iGAAiG;AACjGL,IAAIW,SAAS,CAACZ,OAAO,GAAG,SAAUoC,OAAe;IAC/C,IAAIA,QAAQU,QAAQ,CAAC,oBAAoB;QACvC,OAAOnC,gBAAgBiC,IAAI,CACzB,IAAI,EACJ,GAAGtC,SAAS,mDAAmD,EAAEP,KAAKgD,QAAQ,CAC5EX,SACA,oBACC;IAEP;IAEA,wHAAwH;IACxH,IAAIA,QAAQM,UAAU,CAAC,eAAe;QACpC,OAAO/B,gBAAgBiC,IAAI,CACzB,IAAI,EACJR,QAAQO,OAAO,CAAC,cAAc,GAAGrC,SAAS,MAAM,CAAC;IAErD,OAAO,IAAI8B,QAAQM,UAAU,CAAC,eAAe;QAC3C,OAAO/B,gBAAgBiC,IAAI,CACzB,IAAI,EACJR,QAAQO,OAAO,CAAC,cAAc,GAAGrC,SAAS,MAAM,CAAC;IAErD,OAAO,IAAI8B,YAAY,qBAAqB;QAC1C,OAAOzB,gBAAgBiC,IAAI,CAAC,IAAI,EAAE,GAAGtC,SAAS,aAAa,CAAC;IAC9D;IAEA,OAAOK,gBAAgBiC,IAAI,CAAC,IAAI,EAAER;AACpC","ignoreList":[0]}
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\n\n// Detect if package is installed via npm aliasing (e.g., \"next\": \"npm:@openuiai/next\")\n// If __dirname contains /next/ rather than the actual package name, we're aliased\nconst isNpmAliased = __dirname.includes('/next/') && PKG_NAME !== 'next'\nconst EFFECTIVE_PKG_NAME = isNpmAliased ? 'next' : PKG_NAME\n\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 // Use pkgName for the replacement (this already accounts for npm aliasing)\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, EFFECTIVE_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 `${EFFECTIVE_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(\n this,\n request.replace('next/dist/', `${EFFECTIVE_PKG_NAME}/dist/`)\n )\n } else if (request.startsWith('next/font/')) {\n return originalRequire.call(\n this,\n request.replace('next/font/', `${EFFECTIVE_PKG_NAME}/font/`)\n )\n } else if (request === 'next/package.json') {\n return originalRequire.call(this, `${EFFECTIVE_PKG_NAME}/package.json`)\n }\n\n return originalRequire.call(this, request)\n}\n"],"names":["path","require","mod","fs","packageJsonPath","join","__dirname","PKG_NAME","JSON","parse","readFileSync","name","isNpmAliased","includes","EFFECTIVE_PKG_NAME","originalRequire","prototype","resolveFilename","_resolveFilename","resolve","process","env","NEXT_MINIMAL","__non_webpack_require__","hookPropertyMap","Map","defaultOverrides","dirname","toResolveMap","map","Object","entries","key","value","addHookAliases","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;AACpD,MAAMA,OAAOC,QAAQ;AACrB,MAAMC,MAAMD,QAAQ;AACpB,MAAME,KAAKF,QAAQ;AAEnB,2DAA2D;AAC3D,wDAAwD;AACxD,MAAMG,kBAAkBJ,KAAKK,IAAI,CAACC,WAAW;AAC7C,MA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,UAAU,CAAC,eAAe;QAC3CN,UAAUA,QAAQO,OAAO,CAAC,cAAc,GAAGR,QAAQ,MAAM,CAAC;IAC5D,OAAO,IAAIC,YAAY,qBAAqB;QAC1CA,UAAU,GAAGD,QAAQ,aAAa,CAAC;IACrC;IAEA,OAAOF,wBAAwBW,IAAI,CAAC9C,KAAKsC,SAASC,QAAQC,QAAQC;AAElE,8FAA8F;AAChG,CAAA,EAAEM,IAAI,CAAC,MAAMhC,iBAAiBO,iBAAiBV;AAE/C,mBAAmB;AACnB,2FAA2F;AAC3F,0FAA0F;AAC1F,iGAAiG;AACjGZ,IAAIc,SAAS,CAACf,OAAO,GAAG,SAAUuC,OAAe;IAC/C,IAAIA,QAAQU,QAAQ,CAAC,oBAAoB;QACvC,OAAOnC,gBAAgBiC,IAAI,CACzB,IAAI,EACJ,GAAGlC,mBAAmB,mDAAmD,EAAEd,KAAKmD,QAAQ,CACtFX,SACA,oBACC;IAEP;IAEA,wHAAwH;IACxH,IAAIA,QAAQM,UAAU,CAAC,eAAe;QACpC,OAAO/B,gBAAgBiC,IAAI,CACzB,IAAI,EACJR,QAAQO,OAAO,CAAC,cAAc,GAAGjC,mBAAmB,MAAM,CAAC;IAE/D,OAAO,IAAI0B,QAAQM,UAAU,CAAC,eAAe;QAC3C,OAAO/B,gBAAgBiC,IAAI,CACzB,IAAI,EACJR,QAAQO,OAAO,CAAC,cAAc,GAAGjC,mBAAmB,MAAM,CAAC;IAE/D,OAAO,IAAI0B,YAAY,qBAAqB;QAC1C,OAAOzB,gBAAgBiC,IAAI,CAAC,IAAI,EAAE,GAAGlC,mBAAmB,aAAa,CAAC;IACxE;IAEA,OAAOC,gBAAgBiC,IAAI,CAAC,IAAI,EAAER;AACpC","ignoreList":[0]}
@@ -1,6 +1,6 @@
1
1
  export function isStableBuild() {
2
2
  var _process_env___NEXT_VERSION;
3
- return !((_process_env___NEXT_VERSION = "15.6.0-bun.34") == null ? void 0 : _process_env___NEXT_VERSION.includes('canary')) && !process.env.__NEXT_TEST_MODE && !process.env.NEXT_PRIVATE_LOCAL_DEV;
3
+ return !((_process_env___NEXT_VERSION = "15.6.0-bun.35") == null ? void 0 : _process_env___NEXT_VERSION.includes('canary')) && !process.env.__NEXT_TEST_MODE && !process.env.NEXT_PRIVATE_LOCAL_DEV;
4
4
  }
5
5
  export class CanaryOnlyError extends Error {
6
6
  constructor(arg){
@@ -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.34"
229
+ version: "15.6.0-bun.35"
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.34"}`))}${bundlerSuffix}`);
85
+ _log.bootstrap(`${(0, _picocolors.bold)((0, _picocolors.purple)(`${_log.prefixes.ready} Next.js ${"15.6.0-bun.35"}`))}${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.34"})`;
158
+ process.title = `next-server (v${"15.6.0-bun.35"})`;
159
159
  let handlersReady = ()=>{};
160
160
  let handlersError = ()=>{};
161
161
  let handlersPromise = new Promise((resolve, reject)=>{
@@ -35,6 +35,10 @@ const fs = require('fs');
35
35
  // Use a dynamic path that won't be resolved by bundlers
36
36
  const packageJsonPath = path.join(__dirname, '../../package.json');
37
37
  const PKG_NAME = JSON.parse(fs.readFileSync(packageJsonPath, 'utf8')).name;
38
+ // Detect if package is installed via npm aliasing (e.g., "next": "npm:@openuiai/next")
39
+ // If __dirname contains /next/ rather than the actual package name, we're aliased
40
+ const isNpmAliased = __dirname.includes('/next/') && PKG_NAME !== 'next';
41
+ const EFFECTIVE_PKG_NAME = isNpmAliased ? 'next' : PKG_NAME;
38
42
  const originalRequire = mod.prototype.require;
39
43
  const resolveFilename = // @ts-expect-error
40
44
  mod._resolveFilename;
@@ -60,6 +64,7 @@ mod._resolveFilename = (function(originalResolveFilename, requestMap, pkgName, r
60
64
  const hookResolved = requestMap.get(request);
61
65
  if (hookResolved) request = hookResolved;
62
66
  // Redirect next/dist/, next/font/, and next/package.json requests to the actual package name (supports forked packages)
67
+ // Use pkgName for the replacement (this already accounts for npm aliasing)
63
68
  if (request.startsWith('next/dist/')) {
64
69
  request = request.replace('next/dist/', `${pkgName}/dist/`);
65
70
  } else if (request.startsWith('next/font/')) {
@@ -69,22 +74,22 @@ mod._resolveFilename = (function(originalResolveFilename, requestMap, pkgName, r
69
74
  }
70
75
  return originalResolveFilename.call(mod, request, parent, isMain, options);
71
76
  // We use `bind` here to avoid referencing outside variables to create potential memory leaks.
72
- }).bind(null, resolveFilename, hookPropertyMap, PKG_NAME);
77
+ }).bind(null, resolveFilename, hookPropertyMap, EFFECTIVE_PKG_NAME);
73
78
  // @ts-expect-error
74
79
  // This is a hack to make sure that if a user requires a Next.js module that wasn't bundled
75
80
  // that needs to point to the rendering runtime version, it will point to the correct one.
76
81
  // This can happen on `pages` when a user requires a dependency that uses next/image for example.
77
82
  mod.prototype.require = function(request) {
78
83
  if (request.endsWith('.shared-runtime')) {
79
- return originalRequire.call(this, `${PKG_NAME}/dist/server/route-modules/pages/vendored/contexts/${path.basename(request, '.shared-runtime')}`);
84
+ return originalRequire.call(this, `${EFFECTIVE_PKG_NAME}/dist/server/route-modules/pages/vendored/contexts/${path.basename(request, '.shared-runtime')}`);
80
85
  }
81
86
  // Redirect next/dist/, next/font/, and next/package.json requests to the actual package name (supports forked packages)
82
87
  if (request.startsWith('next/dist/')) {
83
- return originalRequire.call(this, request.replace('next/dist/', `${PKG_NAME}/dist/`));
88
+ return originalRequire.call(this, request.replace('next/dist/', `${EFFECTIVE_PKG_NAME}/dist/`));
84
89
  } else if (request.startsWith('next/font/')) {
85
- return originalRequire.call(this, request.replace('next/font/', `${PKG_NAME}/font/`));
90
+ return originalRequire.call(this, request.replace('next/font/', `${EFFECTIVE_PKG_NAME}/font/`));
86
91
  } else if (request === 'next/package.json') {
87
- return originalRequire.call(this, `${PKG_NAME}/package.json`);
92
+ return originalRequire.call(this, `${EFFECTIVE_PKG_NAME}/package.json`);
88
93
  }
89
94
  return originalRequire.call(this, request);
90
95
  };
@@ -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')\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(\n this,\n request.replace('next/dist/', `${PKG_NAME}/dist/`)\n )\n } else if (request.startsWith('next/font/')) {\n return originalRequire.call(\n this,\n request.replace('next/font/', `${PKG_NAME}/font/`)\n )\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,IAAIC,UAAkCC,QAAQC,GAAG,CAACC,YAAY,GAE1DC,wBAAwBJ,OAAO,GAC/Bf,QAAQe,OAAO;AAEZ,MAAMjB,kBAAkB,IAAIsB;AAE5B,MAAMvB,mBAAmB;IAC9B,cAAcE,KAAKsB,OAAO,CAACN,QAAQ;IACnC,oBAAoBA,QAAQ;IAC5B,uBAAuBA,QAAQ;AACjC;AAEA,MAAMO,eAAe,CAACC,MACpBC,OAAOC,OAAO,CAACF,KAAKA,GAAG,CAAC,CAAC,CAACG,KAAKC,MAAM,GAAK;YAACD;YAAKX,QAAQY;SAAO;AAE1D,SAA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,SAAS,MAAM,CAAC;IAErD,OAAO,IAAI2B,QAAQM,UAAU,CAAC,eAAe;QAC3C,OAAO5B,gBAAgB8B,IAAI,CACzB,IAAI,EACJR,QAAQO,OAAO,CAAC,cAAc,GAAGlC,SAAS,MAAM,CAAC;IAErD,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]}
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\n\n// Detect if package is installed via npm aliasing (e.g., \"next\": \"npm:@openuiai/next\")\n// If __dirname contains /next/ rather than the actual package name, we're aliased\nconst isNpmAliased = __dirname.includes('/next/') && PKG_NAME !== 'next'\nconst EFFECTIVE_PKG_NAME = isNpmAliased ? 'next' : PKG_NAME\n\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 // Use pkgName for the replacement (this already accounts for npm aliasing)\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, EFFECTIVE_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 `${EFFECTIVE_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(\n this,\n request.replace('next/dist/', `${EFFECTIVE_PKG_NAME}/dist/`)\n )\n } else if (request.startsWith('next/font/')) {\n return originalRequire.call(\n this,\n request.replace('next/font/', `${EFFECTIVE_PKG_NAME}/font/`)\n )\n } else if (request === 'next/package.json') {\n return originalRequire.call(this, `${EFFECTIVE_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","isNpmAliased","includes","EFFECTIVE_PKG_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;;;;;;;;;;;;;;;;;IAoCpCA,cAAc;eAAdA;;IATHC,gBAAgB;eAAhBA;;IAFAC,eAAe;eAAfA;;;AAxBb,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;AAE1E,uFAAuF;AACvF,kFAAkF;AAClF,MAAMC,eAAeN,UAAUO,QAAQ,CAAC,aAAaN,aAAa;AAClE,MAAMO,qBAAqBF,eAAe,SAASL;AAEnD,MAAMQ,kBAAkBb,IAAIc,SAAS,CAACf,OAAO;AAC7C,MAAMgB,kBACJ,mBAAmB;AACnBf,IAAIgB,gBAAgB;AAEtB,IAAIC,UAAkCC,QAAQC,GAAG,CAACC,YAAY,GAE1DC,wBAAwBJ,OAAO,GAC/BlB,QAAQkB,OAAO;AAEZ,MAAMpB,kBAAkB,IAAIyB;AAE5B,MAAM1B,mBAAmB;IAC9B,cAAcE,KAAKyB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,IAAI,CACzB,IAAI,EACJ,GAAG/B,mBAAmB,mDAAmD,EAAEd,KAAKgD,QAAQ,CACtFX,SACA,oBACC;IAEP;IAEA,wHAAwH;IACxH,IAAIA,QAAQM,UAAU,CAAC,eAAe;QACpC,OAAO5B,gBAAgB8B,IAAI,CACzB,IAAI,EACJR,QAAQO,OAAO,CAAC,cAAc,GAAG9B,mBAAmB,MAAM,CAAC;IAE/D,OAAO,IAAIuB,QAAQM,UAAU,CAAC,eAAe;QAC3C,OAAO5B,gBAAgB8B,IAAI,CACzB,IAAI,EACJR,QAAQO,OAAO,CAAC,cAAc,GAAG9B,mBAAmB,MAAM,CAAC;IAE/D,OAAO,IAAIuB,YAAY,qBAAqB;QAC1C,OAAOtB,gBAAgB8B,IAAI,CAAC,IAAI,EAAE,GAAG/B,mBAAmB,aAAa,CAAC;IACxE;IAEA,OAAOC,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.34") == null ? void 0 : _process_env___NEXT_VERSION.includes('canary')) && !process.env.__NEXT_TEST_MODE && !process.env.NEXT_PRIVATE_LOCAL_DEV;
25
+ return !((_process_env___NEXT_VERSION = "15.6.0-bun.35") == 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){
@@ -81,7 +81,7 @@ function getAnonymousMeta() {
81
81
  isWsl: _iswsl.default,
82
82
  isCI: _ciinfo.isCI,
83
83
  ciName: _ciinfo.isCI && _ciinfo.name || null,
84
- nextVersion: "15.6.0-bun.34"
84
+ nextVersion: "15.6.0-bun.35"
85
85
  };
86
86
  return traits;
87
87
  }
@@ -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.34" !== 'string') {
14
+ if (typeof "15.6.0-bun.35" !== 'string') {
15
15
  return [];
16
16
  }
17
17
  const payload = {
18
- nextVersion: "15.6.0-bun.34",
18
+ nextVersion: "15.6.0-bun.35",
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.34" !== 'string') {
15
+ if (typeof "15.6.0-bun.35" !== 'string') {
16
16
  return [];
17
17
  }
18
18
  const { images, i18n } = nextConfig || {};
19
19
  const payload = {
20
- nextVersion: "15.6.0-bun.34",
20
+ nextVersion: "15.6.0-bun.35",
21
21
  nodeVersion: process.version,
22
22
  cliCommand: event.cliCommand,
23
23
  isSrcDir: event.isSrcDir,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openuiai/next",
3
- "version": "15.6.0-bun.34",
3
+ "version": "15.6.0-bun.35",
4
4
  "description": "The React Framework - Self-Hosted First Fork with Full Bun Support",
5
5
  "main": "./dist/server/next.js",
6
6
  "license": "MIT",
@@ -102,7 +102,7 @@
102
102
  ]
103
103
  },
104
104
  "dependencies": {
105
- "@openuiai/env": "15.6.0-bun.34",
105
+ "@openuiai/env": "15.6.0-bun.35",
106
106
  "@swc/helpers": "0.5.15",
107
107
  "caniuse-lite": "^1.0.30001579",
108
108
  "postcss": "8.4.31",