Skip to content

Commit 243e87a

Browse files
committed
remove obsolete warnings
1 parent 39589ff commit 243e87a

File tree

3 files changed

+1
-41
lines changed

3 files changed

+1
-41
lines changed

packages/next/src/build/webpack/loaders/next-flight-css-loader.ts

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,10 @@ const NextServerCSSLoader: webpack.LoaderDefinitionFunction<NextServerCSSLoaderO
1515
function (content) {
1616
this.cacheable && this.cacheable()
1717
const options = this.getOptions()
18-
let isCSSModule = options.cssModules
18+
const isCSSModule = options.cssModules
1919

2020
// Only add the checksum during development.
2121
if (process.env.NODE_ENV !== 'production') {
22-
// This check is only for backwards compatibility.
23-
// TODO: Remove this in the next major version (next 14)
24-
if (isCSSModule === undefined) {
25-
this.emitWarning(
26-
new Error(
27-
"No 'cssModules' option was found for the next-flight-css-loader plugin."
28-
)
29-
)
30-
isCSSModule =
31-
this.resourcePath.match(/\.module\.(css|sass|scss)$/) !== null
32-
}
3322
const checksum = crypto
3423
.createHash('sha1')
3524
.update(typeof content === 'string' ? Buffer.from(content) : content)

packages/next/src/server/config.ts

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -310,25 +310,6 @@ function assignDefaults(
310310
)
311311
}
312312

313-
// TODO: remove after next minor (current v13.1.1)
314-
if (Array.isArray(result.experimental?.outputFileTracingIgnores)) {
315-
if (!result.experimental) {
316-
result.experimental = {}
317-
}
318-
if (!result.experimental.outputFileTracingExcludes) {
319-
result.experimental.outputFileTracingExcludes = {}
320-
}
321-
if (!result.experimental.outputFileTracingExcludes['**/*']) {
322-
result.experimental.outputFileTracingExcludes['**/*'] = []
323-
}
324-
result.experimental.outputFileTracingExcludes['**/*'].push(
325-
...(result.experimental.outputFileTracingIgnores || [])
326-
)
327-
Log.warn(
328-
`\`outputFileTracingIgnores\` has been moved to \`experimental.outputFileTracingExcludes\`. Please update your ${configFileName} file accordingly.`
329-
)
330-
}
331-
332313
if (result.basePath !== '') {
333314
if (result.basePath === '/') {
334315
throw new Error(

packages/next/types/index.d.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -148,16 +148,6 @@ export type PageConfig = {
148148
runtime?: ServerRuntime
149149
unstable_runtimeJS?: false
150150
unstable_JsPreload?: false
151-
/**
152-
* @deprecated this config has been removed in favor of the next.config.js option
153-
*/
154-
// TODO: remove in next minor release (current v13.1.1)
155-
unstable_includeFiles?: string[]
156-
/**
157-
* @deprecated this config has been removed in favor of the next.config.js option
158-
*/
159-
// TODO: remove in next minor release (current v13.1.1)
160-
unstable_excludeFiles?: string[]
161151
}
162152

163153
export {

0 commit comments

Comments
 (0)