v0.4.0 (2018-09-03)
Warning: This release contains a lot of renamings and refactorings, so your code will most definitely break. But it paves the way to upcoming features and makes some things easier, like automated testing.
- Added: Package-level documentation
- Improved: In case of an invalid preimage the error response is much more detailed now. It differentiates between several reasons why the preimage is invalid. Additionally more cases of invalid requests are detected now, so a proper
400 Bad Request
is returned instead of a500 Internal Server Error
. (Issue #11) - Improved: Increased performance when creating multiple middleware instances, because the LN client implementation can now be passed into the middleware factory function and be reused across multiple middleware instances. Previously the LN client was created internally, and a new instance was created with every middleware instance.
- Not measured, but probably a bit lower memory consumption and a bit less traffic. Probably not much regarding speed.
- Fixed: Wrong spelling in an error message
Breaking changes
- Changed: Renamed package from
pay
towall
- this enables us to create a package calledpay
for client-side payments to the paywall in the future - Changed: Moved all storage implementations to the new package
storage
- Changed: Moved
LNDoptions
andDefaultLNDoptions
to the from thewall
(formerpay
) package to theln
package- This leads to the same kind of separation and loose coupling as with the storages
- Changed: All middleware factory functions now take a
LNclient
as second parameter instead ofLNDoptions