From f486726bd171f9ac1fb54b229559df71b310f9a4 Mon Sep 17 00:00:00 2001 From: Anton Gilgur Date: Mon, 10 Feb 2020 20:15:40 -0500 Subject: [PATCH] (feat): upgrade object-hash to support async/await syntax - object-hash v2.0.2 adds/fixes support for async functions - object-hash v2 has no breaking changes, just drops testing of Node < 6 - Node 5 was EOL April 2018, and on top of that Node 6 was EOL April 2019, and Node 8 was EOL December 2019, so this is still more tested support than is necessary - objectHashIgnoreUnknownHack isn't useful for its original purpose to workaround this, but is still useful for other types of objects/syntaxes that object-hash may not handle yet (e.g. async generator functions), so leave the hack in - might be good to add a warning though? so that those who used this option for async/await can upgrade and remove it (and have a stable cache again) --- package-lock.json | 6 +++--- package.json | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index 0cba3da2..62f12231 100644 --- a/package-lock.json +++ b/package-lock.json @@ -956,9 +956,9 @@ "optional": true }, "object-hash": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/object-hash/-/object-hash-1.3.1.tgz", - "integrity": "sha512-OSuu/pU4ENM9kmREg0BdNrUDIl1heYa4mBZacJc+vVWz4GtAwu7jO8s4AIt2aGRUTqxykpWzI3Oqnsm13tTMDA==", + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/object-hash/-/object-hash-2.0.2.tgz", + "integrity": "sha512-b+2AKjAf6uQlxxv8ChHdM+VT4eeX+ZSwv+pk2xIXZWbo+yxn4/En1iC+GHe/OFYa9on0AhFF2PvuAcFHoiiHaA==", "dev": true }, "once": { diff --git a/package.json b/package.json index 11b4a983..914c853c 100644 --- a/package.json +++ b/package.json @@ -52,7 +52,7 @@ "colors": "1.3.3", "graphlib": "2.1.7", "lodash": "4.17.15", - "object-hash": "1.3.1", + "object-hash": "2.0.2", "rimraf": "3.0.0", "rollup": "^1.26.3 ", "rollup-plugin-commonjs": "10.1.0",