Releases: btcpayserver/btcpayserver-greenfield-php
Releases · btcpayserver/btcpayserver-greenfield-php
v2.0.0
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
: renamedgetInvoice()
togetLightningInvoice()
Client\LightningInternalNode
:getLightningInvoice()
andcreateLightningInvoice()
returnResult\LightningInvoice
(instead ofResult\Invoice
)Client\LightningInternalNode
:payLightningInvoice()
returnsResult\LightningPayment
(instead ofbool
)Client\Webhook
: removed deprecatedgetWebhooks()
, usegetStoreWebhooks()
insteadResult\AddressList
: removed deprecatedgetAddresses()
, useall()
insteadResult\Invoice
: renamedisFullyPaid()
toisSettled()
+ fixed itResult\Invoice
: removed misleading functionisPaid()
, no replacementResult\InvoiceList
: removed deprecatedgetInvoices()
, useall()
insteadResult\StorePaymentMethodCollection
: remove deprecatedgetPaymentMethods()
, useall()
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 ingetFeeRate()
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
v1.3.6
v1.3.5
v1.3.4
What's Changed
- Webhook: Added updateWebhook() by @ndeet in #56
- Fix markPayoutAsPaid in PullPayment.php by @Igi773 in #64
- Webhook example to use libraries webhook validation function. by @petzsch in #66
- Update payout_usage.php by @leonardooleg in #61
- Make autoApproveClaims optional. by @ndeet in #67
New Contributors
- @Igi773 made their first contribution in #64
- @leonardooleg made their first contribution in #61
Full Changelog: v1.3.3...v1.3.4
v1.3.3
What's Changed
- Added Max Fee Percent, Max Fee Flat to Pay Lightning Invoice by @barrydeen in #59
Full Changelog: v1.3.2...v1.3.3
v1.3.2
What's Changed
- Lightning Endpoints, PSR-4 Autoloading, UTXO GetAddress() by @barrydeen in #55
Full Changelog: v1.3.1...v1.3.2
v1.3.1
What's Changed
- Added WebhookCreated for
createWebhook
by @BitcoinMitchell in #52
Full Changelog: v1.3.0...v1.3.1
v1.3.0
What's Changed
- Adding cryptoCode to payment method. #33 @ndeet
- Add isPaidLate() to Invoice. #34 @petzsch
- Adding method to get webhook by id. #36 @ndeet
- Made isIncomingWebhookRequestValid() static + unit test to prove it's not a breaking change. #37 @woutersamaey
- PullPayment Methods #40 @barrydeen
- Allow curl options to be set for CurlClient #41 @damanic
- Store Wallet (On-Chain) Methods #43 @barrydeen
- Users Methods #44 @barrydeen
- Lightning Methods (Internal Node + Store) #45 @barrydeen
- Miscellaneous and Health GET Methods #46 @barrydeen
- Notification Methods, Results and Examples #47 @barrydeen
- Getters for All Result Objects #48 @barrydeen
- Webhook Getters and Missing Methods #50 @barrydeen
Deprecations as of v2.0.0
The following methods will be removed with v2.0.0 of this package:
Client\Webhook
: getWebhooks()
replaced by getStoreWebhooks()
- rename
- result changes from array to
WebhookList
which has anall()
method to be called. - https://github.com/btcpayserver/btcpayserver-greenfield-php/pull/50/files#diff-7181e5096dbe5f90ec9be207a5cce8cecf3031cd117e62faf029560128763ae3R13
Result\AddressList
: getAddresses()
replaced by all()
Result\InvoiceList
: getInvoices()
replaced by all()
Result\StorePaymentMethodCollection
: getPaymentMethods()
replaced by all()
New Contributors
Full Changelog: v1.2.0...v1.3.0
v1.2.0
What's Changed
- Added missing
isInvalid
method call by @BitcoinMitchell in #30 - Added getters for TransactionId and ReceivedDate by @woutersamaey in #31
New Contributors
- @BitcoinMitchell made their first contribution in #30
Full Changelog: v1.1.0...v1.2.0
v1.1.0
What's Changed
- Update README.md by @Pezhvak in #23
- Started using the ClientInterface + ability to customize the cURL client by @woutersamaey in #24
- Moved client to constructor as optional by @woutersamaey in #25
- Added missing return type, changed to void as it would always be true by @woutersamaey in #27
- Added ServerInfo call by @woutersamaey in #26
- New method "getAvailableStatusesForManualMarking()" by @woutersamaey in #28
New Contributors
Full Changelog: v1.0.0...v1.1.0