Skip to content

Commit 37e9515

Browse files
committed
remove deprecated stuff
1 parent 96d3b13 commit 37e9515

File tree

2 files changed

+0
-29
lines changed

2 files changed

+0
-29
lines changed

bin/convert-argv.js

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -128,26 +128,9 @@ module.exports = function(optimist, argv, convertOptions) {
128128
}
129129

130130
if(argv.watch) {
131-
// TODO remove this in next major version
132-
if(options.watch && typeof options.watch === "object") {
133-
console.warn("options.watch is deprecated: Use 'options.watchOptions' instead");
134-
options.watchOptions = options.watch;
135-
}
136-
// TODO remove this in next major version
137-
if(options.watchDelay) {
138-
console.warn("options.watchDelay is deprecated: Use 'options.watchOptions.aggregateTimeout' instead");
139-
options.watchOptions = options.watchOptions || {};
140-
options.watchOptions.aggregateTimeout = options.watchDelay;
141-
}
142131
options.watch = true;
143132
}
144133

145-
if(argv["watch-delay"]) {
146-
console.warn("--watch-delay is deprecated: Use '--watch-aggregate-timeout' instead");
147-
options.watchOptions = options.watchOptions || {};
148-
options.watchOptions.aggregateTimeout = +argv["watch-delay"];
149-
}
150-
151134
if(argv["watch-aggregate-timeout"]) {
152135
options.watchOptions = options.watchOptions || {};
153136
options.watchOptions.aggregateTimeout = +argv["watch-aggregate-timeout"];
@@ -322,12 +305,6 @@ module.exports = function(optimist, argv, convertOptions) {
322305
options.output.path = value;
323306
});
324307

325-
ifArg("output-file", function(value) {
326-
console.warn("output.file will be deprecated: Use 'output.filename' instead");
327-
ensureObject(options, "output");
328-
options.output.filename = value;
329-
});
330-
331308
ifArg("output-filename", function(value) {
332309
ensureObject(options, "output");
333310
options.output.filename = value;

lib/webpack.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,6 @@ function webpack(options, callback) {
3030
if(typeof callback !== "function") throw new Error("Invalid argument: callback");
3131
if(options.watch === true) {
3232
var watchOptions = (!Array.isArray(options) ? options : options[0]).watchOptions || {};
33-
// TODO remove this in next major version
34-
var watchDelay = (!Array.isArray(options) ? options : options[0]).watchDelay;
35-
if(watchDelay) {
36-
console.warn("options.watchDelay is deprecated: Use 'options.watchOptions.aggregateTimeout' instead");
37-
watchOptions.aggregateTimeout = watchDelay;
38-
}
3933
return compiler.watch(watchOptions, callback);
4034
}
4135
compiler.run(callback);

0 commit comments

Comments
 (0)