Skip to content

Commit 677578f

Browse files
committed
Replace individual lodash packages with the main package
The main package is the only one that seems to be getting updates.
1 parent a53ea15 commit 677578f

7 files changed

Lines changed: 6 additions & 36 deletions

File tree

lib/api.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const escapeStringRegexp = require('escape-string-regexp');
77
const uniqueTempDir = require('unique-temp-dir');
88
const isCi = require('is-ci');
99
const resolveCwd = require('resolve-cwd');
10-
const debounce = require('lodash.debounce');
10+
const debounce = require('lodash/debounce');
1111
const Bluebird = require('bluebird');
1212
const getPort = require('get-port');
1313
const arrify = require('arrify');

lib/concordance-options.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
const util = require('util');
33
const ansiStyles = require('ansi-styles');
44
const stripAnsi = require('strip-ansi');
5-
const cloneDeepWith = require('lodash.clonedeepwith');
5+
const cloneDeepWith = require('lodash/cloneDeepWith');
66
const reactPlugin = require('@concordance/react');
77
const chalk = require('./chalk').get();
88

lib/context-ref.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
'use strict';
2-
const clone = require('lodash.clone');
2+
const clone = require('lodash/clone');
33

44
class ContextRef {
55
constructor() {

lib/run-status.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
22
const Emittery = require('emittery');
3-
const cloneDeep = require('lodash.clonedeep');
3+
const cloneDeep = require('lodash/cloneDeep');
44

55
class RunStatus extends Emittery {
66
constructor(files, parallelRuns) {

lib/watcher.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict';
22
const nodePath = require('path');
33
const debug = require('debug')('ava:watcher');
4-
const diff = require('lodash.difference');
4+
const diff = require('lodash/difference');
55
const chokidar = require('chokidar');
66
const flatten = require('arr-flatten');
77
const union = require('array-union');

package-lock.json

Lines changed: 0 additions & 25 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -105,12 +105,7 @@
105105
"is-observable": "^1.1.0",
106106
"is-plain-object": "^3.0.0",
107107
"is-promise": "^2.1.0",
108-
"lodash.clone": "^4.5.0",
109-
"lodash.clonedeep": "^4.5.0",
110-
"lodash.clonedeepwith": "^4.5.0",
111-
"lodash.debounce": "^4.0.3",
112-
"lodash.difference": "^4.3.0",
113-
"lodash.flatten": "^4.2.0",
108+
"lodash": "^4.17.11",
114109
"loud-rejection": "^2.1.0",
115110
"make-dir": "^3.0.0",
116111
"matcher": "^2.0.0",

0 commit comments

Comments
 (0)