next 15.1.1-canary.19 → 15.1.1-canary.20
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.
Potentially problematic release.
This version of next might be problematic. Click here for more details.
- package/dist/bin/next +1 -1
- package/dist/build/index.js +2 -2
- 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/components/react-dev-overlay/_experimental/internal/components/Errors/ErrorPagination/styles.d.ts +2 -0
- package/dist/client/components/react-dev-overlay/_experimental/internal/components/Errors/ErrorPagination/styles.js +30 -0
- package/dist/client/components/react-dev-overlay/_experimental/internal/components/Errors/ErrorPagination/styles.js.map +1 -0
- package/dist/client/components/react-dev-overlay/_experimental/internal/styles/ComponentStyles.js +5 -3
- package/dist/client/components/react-dev-overlay/_experimental/internal/styles/ComponentStyles.js.map +1 -1
- package/dist/client/index.js +1 -1
- package/dist/compiled/next-server/app-page-experimental.runtime.dev.js +2 -2
- package/dist/compiled/next-server/app-page-experimental.runtime.dev.js.map +1 -1
- package/dist/compiled/next-server/app-page.runtime.dev.js +2 -2
- package/dist/compiled/next-server/app-page.runtime.dev.js.map +1 -1
- package/dist/esm/build/index.js +2 -2
- 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/components/react-dev-overlay/_experimental/internal/components/Errors/ErrorPagination/styles.js +15 -0
- package/dist/esm/client/components/react-dev-overlay/_experimental/internal/components/Errors/ErrorPagination/styles.js.map +1 -0
- package/dist/esm/client/components/react-dev-overlay/_experimental/internal/styles/ComponentStyles.js +3 -1
- package/dist/esm/client/components/react-dev-overlay/_experimental/internal/styles/ComponentStyles.js.map +1 -1
- package/dist/esm/client/index.js +1 -1
- package/dist/esm/server/config.js +1 -1
- package/dist/esm/server/dev/hot-reloader-turbopack.js +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/server/config.js +1 -1
- package/dist/server/dev/hot-reloader-turbopack.js +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/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 +15 -15
package/dist/bin/next
CHANGED
|
@@ -75,7 +75,7 @@ const program = new NextRootCommand();
|
|
|
75
75
|
program.name('next').description('The Next.js CLI allows you to develop, build, start your application, and more.').configureHelp({
|
|
76
76
|
formatHelp: (cmd, helper)=>(0, _formatclihelpoutput.formatCliHelpOutput)(cmd, helper),
|
|
77
77
|
subcommandTerm: (cmd)=>`${cmd.name()} ${cmd.usage()}`
|
|
78
|
-
}).helpCommand(false).helpOption('-h, --help', 'Displays this message.').version(`Next.js v${"15.1.1-canary.
|
|
78
|
+
}).helpCommand(false).helpOption('-h, --help', 'Displays this message.').version(`Next.js v${"15.1.1-canary.20"}`, '-v, --version', 'Outputs the Next.js version.');
|
|
79
79
|
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('--no-lint', 'Disables linting.').option('--no-mangling', 'Disables mangling.').option('--profile', 'Enables production profiling for React.').option('--experimental-app-only', 'Builds only App Router routes.').addOption(new _commander.Option('--experimental-turbo').hideHelp()).addOption(new _commander.Option('--experimental-build-mode [mode]', 'Uses an experimental build mode.').choices([
|
|
80
80
|
'compile',
|
|
81
81
|
'generate'
|
package/dist/build/index.js
CHANGED
|
@@ -358,7 +358,7 @@ async function build(dir, reactProductionProfiling = false, debugOutput = false,
|
|
|
358
358
|
const nextBuildSpan = (0, _trace.trace)('next-build', undefined, {
|
|
359
359
|
buildMode: experimentalBuildMode,
|
|
360
360
|
isTurboBuild: String(turboNextBuild),
|
|
361
|
-
version: "15.1.1-canary.
|
|
361
|
+
version: "15.1.1-canary.20"
|
|
362
362
|
});
|
|
363
363
|
_buildcontext.NextBuildContext.nextBuildSpan = nextBuildSpan;
|
|
364
364
|
_buildcontext.NextBuildContext.dir = dir;
|
|
@@ -705,7 +705,7 @@ async function build(dir, reactProductionProfiling = false, debugOutput = false,
|
|
|
705
705
|
// Files outside of the distDir can be "type": "module"
|
|
706
706
|
await writeFileUtf8(_path.default.join(distDir, 'package.json'), '{"type": "commonjs"}');
|
|
707
707
|
// These are written to distDir, so they need to come after creating and cleaning distDr.
|
|
708
|
-
await (0, _builddiagnostics.recordFrameworkVersion)("15.1.1-canary.
|
|
708
|
+
await (0, _builddiagnostics.recordFrameworkVersion)("15.1.1-canary.20");
|
|
709
709
|
await (0, _builddiagnostics.updateBuildDiagnostics)({
|
|
710
710
|
buildStage: 'start'
|
|
711
711
|
});
|
package/dist/build/swc/index.js
CHANGED
|
@@ -127,7 +127,7 @@ function _interop_require_wildcard(obj, nodeInterop) {
|
|
|
127
127
|
}
|
|
128
128
|
return newObj;
|
|
129
129
|
}
|
|
130
|
-
const nextVersion = "15.1.1-canary.
|
|
130
|
+
const nextVersion = "15.1.1-canary.20";
|
|
131
131
|
const ArchName = (0, _os.arch)();
|
|
132
132
|
const PlatformName = (0, _os.platform)();
|
|
133
133
|
function infoLog(...args) {
|
|
@@ -1489,7 +1489,7 @@ async function getBaseWebpackConfig(dir, { buildId, encryptionKey, config, compi
|
|
|
1489
1489
|
isClient && new _copyfileplugin.CopyFilePlugin({
|
|
1490
1490
|
// file path to build output of `@next/polyfill-nomodule`
|
|
1491
1491
|
filePath: require.resolve('./polyfills/polyfill-nomodule'),
|
|
1492
|
-
cacheKey: "15.1.1-canary.
|
|
1492
|
+
cacheKey: "15.1.1-canary.20",
|
|
1493
1493
|
name: `static/chunks/polyfills${dev ? '' : '-[hash]'}.js`,
|
|
1494
1494
|
minimize: false,
|
|
1495
1495
|
info: {
|
|
@@ -1717,7 +1717,7 @@ async function getBaseWebpackConfig(dir, { buildId, encryptionKey, config, compi
|
|
|
1717
1717
|
// - Next.js location on disk (some loaders use absolute paths and some resolve options depend on absolute paths)
|
|
1718
1718
|
// - Next.js version
|
|
1719
1719
|
// - next.config.js keys that affect compilation
|
|
1720
|
-
version: `${__dirname}|${"15.1.1-canary.
|
|
1720
|
+
version: `${__dirname}|${"15.1.1-canary.20"}|${configVars}`,
|
|
1721
1721
|
cacheDirectory: _path.default.join(distDir, 'cache', 'webpack'),
|
|
1722
1722
|
// For production builds, it's more efficient to compress all cache files together instead of compression each one individually.
|
|
1723
1723
|
// So we disable compression here and allow the build runner to take care of compressing the cache as a whole.
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "styles", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return styles;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
const _tagged_template_literal_loose = require("@swc/helpers/_/_tagged_template_literal_loose");
|
|
12
|
+
const _nooptemplate = require("../../../helpers/noop-template");
|
|
13
|
+
function _templateObject() {
|
|
14
|
+
const data = _tagged_template_literal_loose._([
|
|
15
|
+
"\n [data-nextjs-dialog-left-right] {\n display: flex;\n flex-direction: row;\n align-content: center;\n align-items: center;\n justify-content: space-between;\n }\n [data-nextjs-dialog-left-right] > nav {\n flex: 1;\n display: flex;\n align-items: center;\n margin-right: var(--size-gap);\n }\n [data-nextjs-dialog-left-right] > nav > button {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n\n width: calc(var(--size-gap-double) + var(--size-gap));\n height: calc(var(--size-gap-double) + var(--size-gap));\n font-size: 0;\n border: none;\n background-color: rgba(255, 85, 85, 0.1);\n color: var(--color-ansi-red);\n cursor: pointer;\n transition: background-color 0.25s ease;\n }\n [data-nextjs-dialog-left-right] > nav > button > svg {\n width: auto;\n height: calc(var(--size-gap) + var(--size-gap-half));\n }\n [data-nextjs-dialog-left-right] > nav > button:hover {\n background-color: rgba(255, 85, 85, 0.2);\n }\n [data-nextjs-dialog-left-right] > nav > button:disabled {\n background-color: rgba(255, 85, 85, 0.1);\n color: rgba(255, 85, 85, 0.4);\n cursor: not-allowed;\n }\n\n [data-nextjs-dialog-left-right] > nav > button:first-of-type {\n border-radius: var(--size-gap-half) 0 0 var(--size-gap-half);\n margin-right: 1px;\n }\n [data-nextjs-dialog-left-right] > nav > button:last-of-type {\n border-radius: 0 var(--size-gap-half) var(--size-gap-half) 0;\n }\n\n [data-nextjs-dialog-left-right] > button:last-of-type {\n border: 0;\n padding: 0;\n\n background-color: transparent;\n appearance: none;\n\n opacity: 0.4;\n transition: opacity 0.25s ease;\n\n color: var(--color-font);\n }\n [data-nextjs-dialog-left-right] > button:last-of-type:hover {\n opacity: 0.7;\n }\n"
|
|
16
|
+
]);
|
|
17
|
+
_templateObject = function() {
|
|
18
|
+
return data;
|
|
19
|
+
};
|
|
20
|
+
return data;
|
|
21
|
+
}
|
|
22
|
+
const styles = (0, _nooptemplate.noop)(_templateObject());
|
|
23
|
+
|
|
24
|
+
if ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {
|
|
25
|
+
Object.defineProperty(exports.default, '__esModule', { value: true });
|
|
26
|
+
Object.assign(exports.default, exports);
|
|
27
|
+
module.exports = exports.default;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../../../../../src/client/components/react-dev-overlay/_experimental/internal/components/Errors/ErrorPagination/styles.ts"],"sourcesContent":["import { noop as css } from '../../../helpers/noop-template'\n\nconst styles = css`\n [data-nextjs-dialog-left-right] {\n display: flex;\n flex-direction: row;\n align-content: center;\n align-items: center;\n justify-content: space-between;\n }\n [data-nextjs-dialog-left-right] > nav {\n flex: 1;\n display: flex;\n align-items: center;\n margin-right: var(--size-gap);\n }\n [data-nextjs-dialog-left-right] > nav > button {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n\n width: calc(var(--size-gap-double) + var(--size-gap));\n height: calc(var(--size-gap-double) + var(--size-gap));\n font-size: 0;\n border: none;\n background-color: rgba(255, 85, 85, 0.1);\n color: var(--color-ansi-red);\n cursor: pointer;\n transition: background-color 0.25s ease;\n }\n [data-nextjs-dialog-left-right] > nav > button > svg {\n width: auto;\n height: calc(var(--size-gap) + var(--size-gap-half));\n }\n [data-nextjs-dialog-left-right] > nav > button:hover {\n background-color: rgba(255, 85, 85, 0.2);\n }\n [data-nextjs-dialog-left-right] > nav > button:disabled {\n background-color: rgba(255, 85, 85, 0.1);\n color: rgba(255, 85, 85, 0.4);\n cursor: not-allowed;\n }\n\n [data-nextjs-dialog-left-right] > nav > button:first-of-type {\n border-radius: var(--size-gap-half) 0 0 var(--size-gap-half);\n margin-right: 1px;\n }\n [data-nextjs-dialog-left-right] > nav > button:last-of-type {\n border-radius: 0 var(--size-gap-half) var(--size-gap-half) 0;\n }\n\n [data-nextjs-dialog-left-right] > button:last-of-type {\n border: 0;\n padding: 0;\n\n background-color: transparent;\n appearance: none;\n\n opacity: 0.4;\n transition: opacity 0.25s ease;\n\n color: var(--color-font);\n }\n [data-nextjs-dialog-left-right] > button:last-of-type:hover {\n opacity: 0.7;\n }\n`\n\nexport { styles }\n"],"names":["styles","css"],"mappings":";;;;+BAoESA;;;eAAAA;;;;8BApEmB;;;;;;;;;;AAE5B,MAAMA,aAASC,kBAAG"}
|
package/dist/client/components/react-dev-overlay/_experimental/internal/styles/ComponentStyles.js
CHANGED
|
@@ -12,8 +12,9 @@ const _tagged_template_literal_loose = require("@swc/helpers/_/_tagged_template_
|
|
|
12
12
|
const _jsxruntime = require("react/jsx-runtime");
|
|
13
13
|
const _styles = require("../components/CodeFrame/styles");
|
|
14
14
|
const _Dialog = require("../components/Dialog");
|
|
15
|
-
const _styles1 = require("../components/
|
|
16
|
-
const _styles2 = require("../components/
|
|
15
|
+
const _styles1 = require("../components/Errors/ErrorPagination/styles");
|
|
16
|
+
const _styles2 = require("../components/Overlay/styles");
|
|
17
|
+
const _styles3 = require("../components/Terminal/styles");
|
|
17
18
|
const _Toast = require("../components/Toast");
|
|
18
19
|
const _VersionStalenessInfo = require("../components/VersionStalenessInfo");
|
|
19
20
|
const _BuildError = require("../container/BuildError");
|
|
@@ -31,6 +32,7 @@ function _templateObject() {
|
|
|
31
32
|
"\n ",
|
|
32
33
|
"\n ",
|
|
33
34
|
"\n ",
|
|
35
|
+
"\n ",
|
|
34
36
|
"\n "
|
|
35
37
|
]);
|
|
36
38
|
_templateObject = function() {
|
|
@@ -40,7 +42,7 @@ function _templateObject() {
|
|
|
40
42
|
}
|
|
41
43
|
function ComponentStyles() {
|
|
42
44
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)("style", {
|
|
43
|
-
children: (0, _nooptemplate.noop)(_templateObject(),
|
|
45
|
+
children: (0, _nooptemplate.noop)(_templateObject(), _styles2.styles, _Toast.styles, _Dialog.styles, _styles1.styles, _styles.styles, _styles3.styles, _BuildError.styles, _Errors.styles, _RuntimeError.styles, _VersionStalenessInfo.styles)
|
|
44
46
|
});
|
|
45
47
|
}
|
|
46
48
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../../../src/client/components/react-dev-overlay/_experimental/internal/styles/ComponentStyles.tsx"],"sourcesContent":["import { styles as codeFrame } from '../components/CodeFrame/styles'\nimport { styles as dialog } from '../components/Dialog'\nimport { styles as overlay } from '../components/Overlay/styles'\nimport { styles as terminal } from '../components/Terminal/styles'\nimport { styles as toast } from '../components/Toast'\nimport { styles as versionStaleness } from '../components/VersionStalenessInfo'\nimport { styles as buildErrorStyles } from '../container/BuildError'\nimport { styles as containerErrorStyles } from '../container/Errors'\nimport { styles as containerRuntimeErrorStyles } from '../container/RuntimeError'\nimport { noop as css } from '../helpers/noop-template'\n\nexport function ComponentStyles() {\n return (\n <style>\n {css`\n ${overlay}\n ${toast}\n ${dialog}\n ${codeFrame}\n ${terminal}\n ${buildErrorStyles}\n ${containerErrorStyles}\n ${containerRuntimeErrorStyles}\n ${versionStaleness}\n `}\n </style>\n )\n}\n"],"names":["ComponentStyles","style","css","overlay","toast","dialog","codeFrame","terminal","buildErrorStyles","containerErrorStyles","containerRuntimeErrorStyles","versionStaleness"],"mappings":";;;;+
|
|
1
|
+
{"version":3,"sources":["../../../../../../../src/client/components/react-dev-overlay/_experimental/internal/styles/ComponentStyles.tsx"],"sourcesContent":["import { styles as codeFrame } from '../components/CodeFrame/styles'\nimport { styles as dialog } from '../components/Dialog'\nimport { styles as pagination } from '../components/Errors/ErrorPagination/styles'\nimport { styles as overlay } from '../components/Overlay/styles'\nimport { styles as terminal } from '../components/Terminal/styles'\nimport { styles as toast } from '../components/Toast'\nimport { styles as versionStaleness } from '../components/VersionStalenessInfo'\nimport { styles as buildErrorStyles } from '../container/BuildError'\nimport { styles as containerErrorStyles } from '../container/Errors'\nimport { styles as containerRuntimeErrorStyles } from '../container/RuntimeError'\nimport { noop as css } from '../helpers/noop-template'\n\nexport function ComponentStyles() {\n return (\n <style>\n {css`\n ${overlay}\n ${toast}\n ${dialog}\n ${pagination}\n ${codeFrame}\n ${terminal}\n ${buildErrorStyles}\n ${containerErrorStyles}\n ${containerRuntimeErrorStyles}\n ${versionStaleness}\n `}\n </style>\n )\n}\n"],"names":["ComponentStyles","style","css","overlay","toast","dialog","pagination","codeFrame","terminal","buildErrorStyles","containerErrorStyles","containerRuntimeErrorStyles","versionStaleness"],"mappings":";;;;+BAYgBA;;;eAAAA;;;;;wBAZoB;wBACH;yBACI;yBACH;yBACC;uBACH;sCACW;4BACA;wBACI;8BACO;8BAC1B;;;;;;;;;;;;;;;;;;;;AAErB,SAASA;IACd,qBACE,qBAACC;sBACEC,kBAAG,qBACAC,eAAO,EACPC,aAAK,EACLC,cAAM,EACNC,eAAU,EACVC,cAAS,EACTC,eAAQ,EACRC,kBAAgB,EAChBC,cAAoB,EACpBC,oBAA2B,EAC3BC,4BAAgB;;AAI1B"}
|
package/dist/client/index.js
CHANGED
|
@@ -62,7 +62,7 @@ const _onrecoverableerror = require("./react-client-callbacks/on-recoverable-err
|
|
|
62
62
|
const _tracer = /*#__PURE__*/ _interop_require_default._(require("./tracing/tracer"));
|
|
63
63
|
const _reporttosocket = /*#__PURE__*/ _interop_require_default._(require("./tracing/report-to-socket"));
|
|
64
64
|
const _isnextroutererror = require("./components/is-next-router-error");
|
|
65
|
-
const version = "15.1.1-canary.
|
|
65
|
+
const version = "15.1.1-canary.20";
|
|
66
66
|
let router;
|
|
67
67
|
const emitter = (0, _mitt.default)();
|
|
68
68
|
const looseToArray = (input)=>[].slice.call(input);
|