From ee75c322d6f31a3279f5a7f15ee4122760b1cc94 Mon Sep 17 00:00:00 2001 From: Takatoshi Kondo Date: Thu, 6 Jan 2022 02:12:42 +0900 Subject: [PATCH] fix: remove collections.js dependency from number-allocator. (#1394) Since number-allocator https://www.npmjs.com/package/number-allocator 1.0.9, js-sdsl https://www.npmjs.com/package/js-sdsl is used insteaad of collections https://www.npmjs.com/package/collections. collections modify intrinsic type such as Array, it has unexpected side effect for users. So I removed the dependency of collections. It is a partial fix for #1392. Replacement for LRU map is still needed to remove collections dependency. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 9d0a9c443..ae2fbf1a0 100644 --- a/package.json +++ b/package.json @@ -71,7 +71,7 @@ "inherits": "^2.0.3", "minimist": "^1.2.5", "mqtt-packet": "^6.8.0", - "number-allocator": "^1.0.8", + "number-allocator": "^1.0.9", "pump": "^3.0.0", "readable-stream": "^3.6.0", "reinterval": "^1.1.0",