Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minimal dep upgrade - avoid alpha/beta, use the latest minor #20411

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/next/compiled/cacache/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/next/compiled/cache-loader/cjs.js

Large diffs are not rendered by default.

21 changes: 0 additions & 21 deletions packages/next/compiled/mkdirp/LICENSE

This file was deleted.

1 change: 0 additions & 1 deletion packages/next/compiled/mkdirp/index.js

This file was deleted.

1 change: 0 additions & 1 deletion packages/next/compiled/mkdirp/package.json

This file was deleted.

118 changes: 108 additions & 10 deletions packages/next/compiled/webpack/bundle4.js
Original file line number Diff line number Diff line change
Expand Up @@ -36026,6 +36026,112 @@ module.exports = function isExtendable(val) {
};


/***/ }),

/***/ 50998:
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

var path = __webpack_require__(85622);
var fs = __webpack_require__(35747);
var _0777 = parseInt('0777', 8);

module.exports = mkdirP.mkdirp = mkdirP.mkdirP = mkdirP;

function mkdirP (p, opts, f, made) {
if (typeof opts === 'function') {
f = opts;
opts = {};
}
else if (!opts || typeof opts !== 'object') {
opts = { mode: opts };
}

var mode = opts.mode;
var xfs = opts.fs || fs;

if (mode === undefined) {
mode = _0777
}
if (!made) made = null;

var cb = f || function () {};
p = path.resolve(p);

xfs.mkdir(p, mode, function (er) {
if (!er) {
made = made || p;
return cb(null, made);
}
switch (er.code) {
case 'ENOENT':
if (path.dirname(p) === p) return cb(er);
mkdirP(path.dirname(p), opts, function (er, made) {
if (er) cb(er, made);
else mkdirP(p, opts, cb, made);
});
break;

// In the case of any other error, just see if there's a dir
// there already. If so, then hooray! If not, then something
// is borked.
default:
xfs.stat(p, function (er2, stat) {
// if the stat fails, then that's super weird.
// let the original error be the failure reason.
if (er2 || !stat.isDirectory()) cb(er, made)
else cb(null, made);
});
break;
}
});
}

mkdirP.sync = function sync (p, opts, made) {
if (!opts || typeof opts !== 'object') {
opts = { mode: opts };
}

var mode = opts.mode;
var xfs = opts.fs || fs;

if (mode === undefined) {
mode = _0777
}
if (!made) made = null;

p = path.resolve(p);

try {
xfs.mkdirSync(p, mode);
made = made || p;
}
catch (err0) {
switch (err0.code) {
case 'ENOENT' :
made = sync(path.dirname(p), opts, made);
sync(p, opts, made);
break;

// In the case of any other error, just see if there's a dir
// there already. If so, then hooray! If not, then something
// is borked.
default:
var stat;
try {
stat = xfs.statSync(p);
}
catch (err1) {
throw err0;
}
if (!stat.isDirectory()) throw err0;
break;
}
}

return made;
};


/***/ }),

/***/ 57925:
Expand Down Expand Up @@ -78469,7 +78575,7 @@ module.exports = (a, b) => {

const fs = __webpack_require__(35747);
const path = __webpack_require__(85622);
const mkdirp = __webpack_require__(94327);
const mkdirp = __webpack_require__(50998);
const { Tracer } = __webpack_require__(92430);
const validateOptions = __webpack_require__(33225);
const schema = __webpack_require__(49049);
Expand Down Expand Up @@ -86822,7 +86928,7 @@ module.exports = class NodeMainTemplatePlugin {

const fs = __webpack_require__(35747);
const path = __webpack_require__(85622);
const mkdirp = __webpack_require__(94327);
const mkdirp = __webpack_require__(50998);

class NodeOutputFileSystem {
constructor() {
Expand Down Expand Up @@ -105830,14 +105936,6 @@ module.exports = require("next/dist/compiled/is-wsl");;

/***/ }),

/***/ 94327:
/***/ (function(module) {

"use strict";
module.exports = require("next/dist/compiled/mkdirp");;

/***/ }),

/***/ 36386:
/***/ (function(module) {

Expand Down
15 changes: 7 additions & 8 deletions packages/next/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
]
},
"dependencies": {
"@ampproject/toolbox-optimizer": "2.7.1-alpha.0",
"@ampproject/toolbox-optimizer": "2.7.5",
"@babel/runtime": "7.12.5",
"@hapi/accept": "5.0.1",
"@next/env": "10.0.6-canary.4",
Expand All @@ -69,11 +69,11 @@
"@next/react-refresh-utils": "10.0.6-canary.4",
"@opentelemetry/api": "0.14.0",
"ast-types": "0.13.2",
"browserslist": "4.14.6",
"browserslist": "4.16.1",
"buffer": "5.6.0",
"caniuse-lite": "^1.0.30001113",
"chalk": "2.4.2",
"chokidar": "3.4.3",
"chokidar": "3.5.1",
"crypto-browserify": "3.12.0",
"css-loader": "4.3.0",
"cssnano-simple": "1.2.1",
Expand All @@ -87,7 +87,7 @@
"p-limit": "3.1.0",
"path-browserify": "1.0.1",
"pnp-webpack-plugin": "1.6.4",
"postcss": "8.1.7",
"postcss": "8.2.4",
"process": "0.11.10",
"prop-types": "15.7.2",
"raw-body": "2.4.1",
Expand All @@ -96,10 +96,10 @@
"resolve-url-loader": "3.1.2",
"stream-browserify": "3.0.0",
"style-loader": "1.2.1",
"styled-jsx": "3.3.2",
"styled-jsx": "3.4.1",
"use-subscription": "1.5.1",
"vm-browserify": "1.1.2",
"watchpack": "2.0.0-beta.13"
"watchpack": "2.1.0"
},
"optionalDependencies": {
"sharp": "0.26.3"
Expand Down Expand Up @@ -206,7 +206,6 @@
"loader-utils": "2.0.0",
"lodash.curry": "4.1.1",
"lru-cache": "5.1.1",
"mkdirp": "0.5.3",
"nanoid": "3.1.20",
"neo-async": "2.6.1",
"ora": "4.0.4",
Expand All @@ -216,7 +215,7 @@
"postcss-preset-env": "6.7.0",
"postcss-scss": "3.0.4",
"recast": "0.18.5",
"sass-loader": "10.0.5",
"sass-loader": "10.1.1",
"schema-utils": "2.7.1",
"semver": "7.3.2",
"send": "0.17.1",
Expand Down
9 changes: 0 additions & 9 deletions packages/next/taskfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -349,14 +349,6 @@ export async function ncc_lru_cache(task, opts) {
.target('compiled/lru-cache')
}
// eslint-disable-next-line camelcase
externals['mkdirp'] = 'next/dist/compiled/mkdirp'
export async function ncc_mkdirp(task, opts) {
await task
.source(opts.src || relative(__dirname, require.resolve('mkdirp')))
.ncc({ packageName: 'mkdirp', externals })
.target('compiled/mkdirp')
}
// eslint-disable-next-line camelcase
externals['nanoid'] = 'next/dist/compiled/nanoid'
export async function ncc_nanoid(task, opts) {
await task
Expand Down Expand Up @@ -677,7 +669,6 @@ export async function ncc(task) {
'ncc_loader_utils',
'ncc_lodash_curry',
'ncc_lru_cache',
'ncc_mkdirp',
'ncc_nanoid',
'ncc_neo_async',
'ncc_ora',
Expand Down
Loading