Simply including a collection breaks the crypto module.
The crypto.getHashes returns an empty array if called after a collection is loaded when it would usually return an array of supported hashes.
$ node
> var Map = require('collections/map')
undefined
> require('crypto').getHashes()
[]
>
I see #116, #95 and #94 but it looks like no shim fixes ever made it into master.
Based on how long it took to track this down, I unfortunately have to opt not to use this otherwise fantastic module. I'm not sure this will be fixed but I'm documenting this so that perhaps someone else can find it and save time debugging.
Simply including a collection breaks the crypto module.
The crypto.getHashes returns an empty array if called after a collection is loaded when it would usually return an array of supported hashes.
I see #116, #95 and #94 but it looks like no shim fixes ever made it into master.
Based on how long it took to track this down, I unfortunately have to opt not to use this otherwise fantastic module. I'm not sure this will be fixed but I'm documenting this so that perhaps someone else can find it and save time debugging.