-
Notifications
You must be signed in to change notification settings - Fork 299
dist/hdkey.js (Maintainer Update: Critical bug in v0.6.1, now fixed with v0.6.2, please update!) #64
Comments
Here's how to reproduce the problem:
There will be an error reported in the console: If |
@holgerd77 can you have a look at this please? |
Even if I downgrade my version to 0.6.0 I still get the same error when I try to deploy remotely. I think it has something to do when yarn maybe. I'm also not able to use /dist/hdkey with 0.6.1. |
this is quite annoying, a upgrade of patch version shouldn't break anything which 0.6.1 breaks. |
Switching the package file from "^0.6.0" to "^0.6.0" without the caret worked for me. |
@axic @holgerd77 If a fix will be longer than a few days, it might be better to republish |
It's been not working for a while. Any appropriate fix soon? |
Sorry, I'm somewhat on a leave and won't find the time to fix this in the next 1-2 weeks. Can some of you guys submit a PR on this? |
(since this has already such a good error description, this should be a comprehensible amount of work to do) |
I think there is no easy solution to restore the old import path ( Some projects publish only the contents of their I would suggest we follow @sohkai suggestion and just republish 0.6.0 as 0.6.2 and then republish 0.6.1 as 0.7.0. This at least should give dependent projects the chance to update explicitly. |
Just googling on this, it's really impressive that there seems to be no way to set |
Seems to be actively discussed, no help here though: nodejs/node#21787 |
My current impulse is to put the original sources in a folder Anything speaking against this solution? |
This should do it, have submitted a PR (see above). Can someone have a thorough look at this (better two opinions!), in my experience stuff like this is always a bit hairier than it appears at first glance. I made sure that:
Nevertheless, a confirm of this would be really helpful. |
Ok, I now published this in the release above and tested the new release with the test script from Michael above. This is now working. Will leave this open for some confirmation that this works and generally some more days for reference. |
Also deprecated the old |
@holgerd77 Can confirm that this works, assuming no lock files have cached the 0.6.1 version. |
@sohkai Great, thanks! |
With the new 0.6.1 release, this:
Must be changed to:
Maybe that's not what you intended? Even though your pkg.json main points at
dist/
, a module reference like'ethereumjs-wallet/hdkey'
only works ifhdkey.js
is at the top-level of the package.In the published package, you could include an
hdkey.js
that's a one-liner:However, you would need to reorg the sources that get transpiled by babel under
src/
and update thebuild:dist
script accordingly.The text was updated successfully, but these errors were encountered: