Closed danfinlay closed 8 years ago
Not much happening getting this merged.. is eth-lightwallet still being maintained?
@christianlundkvist
This flew under the radar a bit. Checked it out and looks good. @flyswatter can you bump the version in package.json and add a note in RELEASE-NOTES? After that I can merge and publish in npm. Thanks! 😃
Merging this now since I have some time. :) Will also update version and push to npm.
Ok done! :) Eventually I want to deprecate the old version.
This is a cleanup patch from the new constructor feature.
The
KeyStore.createVault
method relies on the underlyingnew
constructor, which we have issuing a deprecation warning, so now that warning is actually firing always.We were talking about getting rid of the
new
method eventually, but to actually stop using it while most of its methods are instance methods on the prototype would require a bit of a refactor.This is a cheap solution that avoids that refactor for the moment.
In the slightly longer term, we might want to make the current KeyStore class simply return another internal class, so it can use the
new
constructor internally, while only throwing the deprecation warning when its own new constructor is used.I'm opening to making that change to this PR, but wanted to open the discussion first.