Skip to content

Commit

Permalink
dev dependencies: replace individual lodash functions (pouchdb#8907)
Browse files Browse the repository at this point in the history
* it's not clear if these individual functions' releases are kept up-to-date with main lodash module
* keeping multiple dependencies up-to-date is harder than working with a single lodash dependency
* the whole of lodash is available anyway in dev via sub-dependencies
  • Loading branch information
alxndrsn authored Apr 12, 2024
1 parent 41cc568 commit 9afecb2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion bin/dev-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

var watch = require('watch-glob');
var http_server = require('http-server');
var debounce = require('lodash.debounce');
const { debounce } = require('lodash');
var browserify = require('browserify');
var fs = require('fs');

Expand Down
3 changes: 1 addition & 2 deletions bin/update-package-json-for-publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ var path = require('path');
var glob = require('glob');
var findRequires = require('find-requires');
var builtinModules = require('builtin-modules');
var uniq = require('lodash.uniq');
var flatten = require('lodash.flatten');
const { flatten, uniq } = require('lodash');

var topPkg = JSON.parse(fs.readFileSync('./package.json', 'utf8'));
var modules = fs.readdirSync('./packages/node_modules');
Expand Down
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,7 @@
"istanbul": "0.4.5",
"istanbul-coveralls": "1.0.3",
"less": "3.9.0",
"lodash.debounce": "4.0.8",
"lodash.flatten": "4.4.0",
"lodash.uniq": "4.5.0",
"lodash": "4.17.21",
"marky": "1.2.5",
"median": "0.0.2",
"mkdirp": "0.5.1",
Expand Down

0 comments on commit 9afecb2

Please sign in to comment.