From db91a77032f4024878d56bde099b2b3765ff08d2 Mon Sep 17 00:00:00 2001 From: Gar Date: Tue, 11 Jul 2023 09:23:03 -0700 Subject: [PATCH] fix: remove "hashAlgorithm" from flatOptions BREAKING CHANGE: the hard-coded "hashAlgorithm" value is no longer being passed through flatOptions Nothing in npm is using this. --- workspaces/config/lib/definitions/index.js | 3 --- workspaces/config/test/definitions/index.js | 2 -- 2 files changed, 5 deletions(-) diff --git a/workspaces/config/lib/definitions/index.js b/workspaces/config/lib/definitions/index.js index 748f306bd2ce3..51c7aa7c352cf 100644 --- a/workspaces/config/lib/definitions/index.js +++ b/workspaces/config/lib/definitions/index.js @@ -25,9 +25,6 @@ const flatten = (obj, flat = {}) => { : /* istanbul ignore next - not configurable property */ undefined flat.nodeBin = process.env.NODE || process.execPath - // XXX should this be sha512? is it even relevant? - flat.hashAlgorithm = 'sha1' - return flat } diff --git a/workspaces/config/test/definitions/index.js b/workspaces/config/test/definitions/index.js index 26c2a7fdf84e2..35bf4bc6885fd 100644 --- a/workspaces/config/test/definitions/index.js +++ b/workspaces/config/test/definitions/index.js @@ -36,7 +36,6 @@ t.test('flatten', t => { '//foo.bar.com:_authToken': 'foobarbazquuxasdf', npmBin: '/path/to/npm', nodeBin: '/path/to/node', - hashAlgorithm: 'sha1', }) mockGlobals(t, { @@ -52,7 +51,6 @@ t.test('flatten', t => { '//foo.bar.com:_authToken': 'foobarbazquuxasdf', npmBin: '/path/to/npm', nodeBin: '/usr/local/bin/node.exe', - hashAlgorithm: 'sha1', }) t.end()