Skip to content

Commit

Permalink
Merge branch 'canary' into shu/084c
Browse files Browse the repository at this point in the history
  • Loading branch information
shuding authored Dec 3, 2021
2 parents f213e90 + b194664 commit b9f02ac
Show file tree
Hide file tree
Showing 19 changed files with 25 additions and 33 deletions.
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@
"registry": "https://registry.npmjs.org/"
}
},
"version": "12.0.5-canary.17"
"version": "12.0.5-canary.18"
}
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
"test-unit": "yarn jest test/unit/",
"testonly": "yarn jest --runInBand",
"testheadless": "cross-env HEADLESS=true yarn testonly",
"testall": "yarn test -- --ci --forceExit && lerna run --scope @next/codemod test",
"genstats": "cross-env LOCAL_STATS=true node .github/actions/next-stats-action/src/index.js",
"git-reset": "git reset --hard HEAD",
"git-clean": "git clean -d -x -e node_modules -e packages -f",
Expand Down
2 changes: 1 addition & 1 deletion packages/create-next-app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "create-next-app",
"version": "12.0.5-canary.17",
"version": "12.0.5-canary.18",
"keywords": [
"react",
"next",
Expand Down
4 changes: 2 additions & 2 deletions packages/eslint-config-next/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eslint-config-next",
"version": "12.0.5-canary.17",
"version": "12.0.5-canary.18",
"description": "ESLint configuration used by NextJS.",
"main": "index.js",
"license": "MIT",
Expand All @@ -9,7 +9,7 @@
"directory": "packages/eslint-config-next"
},
"dependencies": {
"@next/eslint-plugin-next": "12.0.5-canary.17",
"@next/eslint-plugin-next": "12.0.5-canary.18",
"@rushstack/eslint-patch": "^1.0.8",
"@typescript-eslint/parser": "^5.0.0",
"eslint-import-resolver-node": "^0.3.4",
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-plugin-next/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@next/eslint-plugin-next",
"version": "12.0.5-canary.17",
"version": "12.0.5-canary.18",
"description": "ESLint plugin for NextJS.",
"main": "lib/index.js",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion packages/next-bundle-analyzer/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@next/bundle-analyzer",
"version": "12.0.5-canary.17",
"version": "12.0.5-canary.18",
"main": "index.js",
"license": "MIT",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion packages/next-codemod/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@next/codemod",
"version": "12.0.5-canary.17",
"version": "12.0.5-canary.18",
"license": "MIT",
"dependencies": {
"chalk": "4.1.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/next-env/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@next/env",
"version": "12.0.5-canary.17",
"version": "12.0.5-canary.18",
"keywords": [
"react",
"next",
Expand Down
2 changes: 1 addition & 1 deletion packages/next-mdx/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@next/mdx",
"version": "12.0.5-canary.17",
"version": "12.0.5-canary.18",
"main": "index.js",
"license": "MIT",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion packages/next-plugin-storybook/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@next/plugin-storybook",
"version": "12.0.5-canary.17",
"version": "12.0.5-canary.18",
"repository": {
"url": "vercel/next.js",
"directory": "packages/next-plugin-storybook"
Expand Down
2 changes: 1 addition & 1 deletion packages/next-polyfill-module/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@next/polyfill-module",
"version": "12.0.5-canary.17",
"version": "12.0.5-canary.18",
"description": "A standard library polyfill for ES Modules supporting browsers (Edge 16+, Firefox 60+, Chrome 61+, Safari 10.1+)",
"main": "dist/polyfill-module.js",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion packages/next-polyfill-nomodule/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@next/polyfill-nomodule",
"version": "12.0.5-canary.17",
"version": "12.0.5-canary.18",
"description": "A polyfill for non-dead, nomodule browsers.",
"main": "dist/polyfill-nomodule.js",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion packages/next-swc/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@next/swc",
"version": "12.0.5-canary.17",
"version": "12.0.5-canary.18",
"private": true,
"scripts": {
"build-native": "napi build --platform --cargo-name next_swc_napi native"
Expand Down
3 changes: 0 additions & 3 deletions packages/next/build/webpack/config/blocks/css/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ let postcssInstancePromise: Promise<any>
export async function lazyPostCSS(
rootDirectory: string,
supportedBrowsers: string[] | undefined,
strictPostcssConfiguration: boolean | undefined,
disablePostcssPresetEnv: boolean | undefined
) {
if (!postcssInstancePromise) {
Expand Down Expand Up @@ -117,7 +116,6 @@ export async function lazyPostCSS(
const postCssPlugins = await getPostCssPlugins(
rootDirectory,
supportedBrowsers,
strictPostcssConfiguration,
disablePostcssPresetEnv
)

Expand Down Expand Up @@ -145,7 +143,6 @@ export const css = curry(async function css(
lazyPostCSS(
ctx.rootDirectory,
ctx.supportedBrowsers,
ctx.future.strictPostcssConfiguration,
ctx.experimental.disablePostcssPresetEnv
)

Expand Down
8 changes: 4 additions & 4 deletions packages/next/build/webpack/config/blocks/css/plugins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,12 +117,12 @@ function getDefaultPlugins(
export async function getPostCssPlugins(
dir: string,
supportedBrowsers: string[] | undefined,
defaults: boolean = false,
disablePostcssPresetEnv: boolean = false
): Promise<import('postcss').AcceptedPlugin[]> {
let config = defaults
? null
: await findConfig<{ plugins: CssPluginCollection }>(dir, 'postcss')
let config = await findConfig<{ plugins: CssPluginCollection }>(
dir,
'postcss'
)

if (config == null) {
config = {
Expand Down
12 changes: 6 additions & 6 deletions packages/next/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "next",
"version": "12.0.5-canary.17",
"version": "12.0.5-canary.18",
"description": "The React Framework",
"main": "./dist/server/next.js",
"license": "MIT",
Expand Down Expand Up @@ -70,10 +70,10 @@
"@babel/runtime": "7.15.4",
"@hapi/accept": "5.0.2",
"@napi-rs/triples": "1.0.3",
"@next/env": "12.0.5-canary.17",
"@next/polyfill-module": "12.0.5-canary.17",
"@next/react-dev-overlay": "12.0.5-canary.17",
"@next/react-refresh-utils": "12.0.5-canary.17",
"@next/env": "12.0.5-canary.18",
"@next/polyfill-module": "12.0.5-canary.18",
"@next/react-dev-overlay": "12.0.5-canary.18",
"@next/react-refresh-utils": "12.0.5-canary.18",
"acorn": "8.5.0",
"assert": "2.0.0",
"browserify-zlib": "0.2.0",
Expand Down Expand Up @@ -156,7 +156,7 @@
"@babel/traverse": "7.15.0",
"@babel/types": "7.15.0",
"@napi-rs/cli": "1.2.1",
"@next/polyfill-nomodule": "12.0.5-canary.17",
"@next/polyfill-nomodule": "12.0.5-canary.18",
"@peculiar/webcrypto": "1.1.7",
"@taskr/clear": "1.1.0",
"@taskr/esnext": "1.1.0",
Expand Down
4 changes: 0 additions & 4 deletions packages/next/server/config-shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@ export type NextConfig = { [key: string]: any } & {
* @deprecated this options was moved to the top level
*/
webpack5?: false
strictPostcssConfiguration?: boolean
}
outputFileTracing?: boolean
staticPageGenerationTimeout?: number
Expand Down Expand Up @@ -255,9 +254,6 @@ export const defaultConfig: NextConfig = {
outputFileTracingRoot: process.env.NEXT_PRIVATE_OUTPUT_TRACE_ROOT || '',
outputStandalone: !!process.env.NEXT_PRIVATE_STANDALONE,
},
future: {
strictPostcssConfiguration: false,
},
}

export function normalizeConfig(phase: string, config: any) {
Expand Down
2 changes: 1 addition & 1 deletion packages/react-dev-overlay/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@next/react-dev-overlay",
"version": "12.0.5-canary.17",
"version": "12.0.5-canary.18",
"description": "A development-only overlay for developing React applications.",
"repository": {
"url": "vercel/next.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/react-refresh-utils/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@next/react-refresh-utils",
"version": "12.0.5-canary.17",
"version": "12.0.5-canary.18",
"description": "An experimental package providing utilities for React Refresh.",
"repository": {
"url": "vercel/next.js",
Expand Down

0 comments on commit b9f02ac

Please sign in to comment.