ln-paywall v0.4.0 Release Notes

Release Date: 2018-09-03 // over 5 years ago
  • ๐Ÿš€ > 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 a 500 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 to wall - this enables us to create a package called pay for client-side payments to the paywall in the future
    • ๐Ÿ”„ Changed: Moved all storage implementations to the new package storage
    • ๐Ÿ”„ Changed: Moved LNDoptions and DefaultLNDoptions to the from the wall (former pay) package to the ln 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 of LNDoptions
      • This also leads to the same kind of separation and loose coupling as with the storages
      • In addition it enables proper mocking of the LN client for tests (preparation for issue #10)
      • As well as own implementations of LN clients (preparation for issue #6)