(fix): 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)
This commit is contained in:
Anton Gilgur 2020-02-10 20:15:40 -05:00
parent 9c265b3df4
commit 9afc8df0a1
2 changed files with 4 additions and 4 deletions

6
package-lock.json generated
View File

@ -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": {

View File

@ -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",