Skip to content

Commit

Permalink
feat(nextjs): bump Next.js version to 12.0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
puku0x committed Dec 8, 2021
1 parent 01417d2 commit bb9749b
Show file tree
Hide file tree
Showing 8 changed files with 196 additions and 137 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@
"ejs": "^3.1.5",
"enhanced-resolve": "^5.8.3",
"eslint": "8.2.0",
"eslint-config-next": "12.0.0",
"eslint-config-next": "12.0.7",
"eslint-config-prettier": "^8.1.0",
"eslint-plugin-cypress": "^2.10.3",
"eslint-plugin-import": "2.25.2",
Expand Down Expand Up @@ -188,7 +188,7 @@
"mime": "2.4.4",
"mini-css-extract-plugin": "^2.1.0",
"minimatch": "3.0.4",
"next": "12.0.0",
"next": "12.0.7",
"next-sitemap": "^1.6.108",
"ng-packagr": "~13.0.0",
"ngrx-store-freeze": "0.2.4",
Expand Down
13 changes: 13 additions & 0 deletions packages/next/migrations.json
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,19 @@
"alwaysAddToPackageJson": false
}
}
},
"13.3.0": {
"version": "13.3.0-beta.0",
"packages": {
"next": {
"version": "12.0.7",
"alwaysAddToPackageJson": false
},
"eslint-config-next": {
"version": "12.0.7",
"alwaysAddToPackageJson": false
}
}
}
}
}
2 changes: 1 addition & 1 deletion packages/next/plugins/with-less.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function withLess({ lessLoaderOptions = {}, ...nextConfig }) {
let sassGlobalRule;

const cssRule = config.module.rules.find((rule) =>
rule.oneOf?.find((r) => r?.options?.__next_css_remove)
rule.oneOf?.find((r) => r?.[Symbol.for('__next_css_remove')])
);

const addLessToRuleTest = (test) => {
Expand Down
2 changes: 1 addition & 1 deletion packages/next/plugins/with-stylus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function withStylus({ stylusLoaderOptions = {}, ...nextConfig }: any) {
let sassGlobalRule;

const cssRule = config.module.rules.find((rule) =>
rule.oneOf?.find((r) => r?.options?.__next_css_remove)
rule.oneOf?.find((r) => r?.[Symbol.for('__next_css_remove')])
);

const addStylusRuleToTest = (test) => {
Expand Down
5 changes: 3 additions & 2 deletions packages/next/src/executors/build/build.impl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,10 @@ export default async function buildExecutor(
options: NextBuildBuilderOptions,
context: ExecutorContext
) {
let dependencies: DependentBuildableProjectNode[] = [];
process.env.NODE_ENV ||= 'production';
// Cast to any to overwrite NODE_ENV
(process.env as any).NODE_ENV ||= 'production';

let dependencies: DependentBuildableProjectNode[] = [];
const root = resolve(context.root, options.root);
const libsDir = join(context.root, workspaceLayout().libsDir);

Expand Down
4 changes: 3 additions & 1 deletion packages/next/src/executors/server/server.impl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,13 @@ export default async function* serveExecutor(
options: NextServeBuilderOptions,
context: ExecutorContext
) {
process.env.NODE_ENV = process.env.NODE_ENV
// Cast to any to overwrite NODE_ENV
(process.env as any).NODE_ENV = process.env.NODE_ENV
? process.env.NODE_ENV
: options.dev
? 'development'
: 'production';

let dependencies: DependentBuildableProjectNode[] = [];
const buildTarget = parseTargetString(options.buildTarget);
const baseUrl = `http://${options.hostname || 'localhost'}:${options.port}`;
Expand Down
4 changes: 2 additions & 2 deletions packages/next/src/utils/versions.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export const nxVersion = '*';

export const nextVersion = '12.0.0';
export const eslintConfigNextVersion = '12.0.0';
export const nextVersion = '12.0.7';
export const eslintConfigNextVersion = '12.0.7';
export const sassVersion = '1.43.2';
export const lessLoader = '10.2.0';
export const stylusLoader = '6.2.0';
Expand Down
299 changes: 171 additions & 128 deletions yarn.lock

Large diffs are not rendered by default.

0 comments on commit bb9749b

Please sign in to comment.