Skip to content

v2.0.0

Compare
Choose a tag to compare
@ndeet ndeet released this 27 Oct 22:27
· 21 commits to master since this release
406a775

ATTENTION: Take a 👀 on the breaking changes before upgrading.

Breaking changes:

  • Minimum PHP version bumped to 8.0 (as 7.4 is EOL November 2022)
  • Client\LightningInternalNode: renamed getInvoice() to getLightningInvoice()
  • Client\LightningInternalNode: getLightningInvoice() and createLightningInvoice() return Result\LightningInvoice (instead of Result\Invoice)
  • Client\LightningInternalNode: payLightningInvoice() returns Result\LightningPayment (instead of bool)
  • Client\Webhook: removed deprecated getWebhooks(), use getStoreWebhooks() instead
  • Result\AddressList: removed deprecated getAddresses(), use all() instead
  • Result\Invoice: renamed isFullyPaid() to isSettled() + fixed it
  • Result\Invoice: removed misleading function isPaid(), no replacement
  • Result\InvoiceList: removed deprecated getInvoices(), use all() instead
  • Result\StorePaymentMethodCollection: remove deprecated getPaymentMethods(), use all() instead

Changes/Fixes:

  • Updates to LightningInternalNode classes
  • Added Result\LightningPayment class
  • Added Result\LightningInvoice class
  • Fix PHP 8.1 deprecation warnings in Result\AbstractResult class
  • Result\ StoreOnChainWalletFeeRate: Fix wrong return type hint in getFeeRate()

Tests:

  • Added .env support to pass BTCPay variables
  • Added LightingInternalNodeTestClass

What's Changed

  • Update php version on github workflow by @utxo-one in #75
  • Update php version by @utxo-one in #76
  • Replace return type int with float by @Igi773 in #71
  • Lightning Internal Node Updates & Tests by @utxo-one in #74
  • Import Classes, Remove Deprecated Methods by @utxo-one in #78
  • V2 preparation by @ndeet in #80
  • Remove isPaid() and fix isSettled() to include late payment. by @ndeet in #81

Full Changelog: v1.3.6...v2.0.0