Skip to content

Releases: bavix/laravel-wallet

6.0.4

07 Apr 12:56
10e6972
Compare
Choose a tag to compare

Added

What's Changed

New Contributors

Full Changelog: 6.0.3...6.0.4

6.0.3

31 Jan 13:08
f93bac8
Compare
Choose a tag to compare

Added

What's Changed

New Contributors

Full Changelog: 6.0.2...6.0.3

6.0.2

28 Nov 19:42
f3c90dd
Compare
Choose a tag to compare

Added

  • Added getWalletOrFail method.

What's Changed

Full Changelog: 6.0.1...6.0.2

6.0.1

18 Nov 16:00
8dc1f04
Compare
Choose a tag to compare

Fixed

  • Fixed a bug when updating the balance, refund and full write-off. #279 @vaibhavpandeyvpz
  • Fixed bugs in unit tests.

What's Changed

Full Changelog: 6.0.0...6.0.1

5.5.1

18 Nov 15:25
bbfeb03
Compare
Choose a tag to compare

Fixed

  • Fixed a bug when updating the balance, refund and full write-off. #279 @vaibhavpandeyvpz
  • Fixed bugs in unit tests.

What's Changed

Full Changelog: 5.5.0...5.5.1

6.0.0

13 Nov 18:27
c21c97b
Compare
Choose a tag to compare

Added

  • Bigger and safer. There are never many tests. As always, new test cases have been added.
  • Package brick/math is now required.
  • Added examples of integrations with the cknow/laravel-money package in unit tests.
  • The Storable interface has an additional method fresh to clean up all data.
  • Added psalm, but not used yet.
  • Added phpmetrics, thanks to which it was possible to remove a lot of loops in the code.
  • Added meta column in wallet, now the package is more extensible. I moved currency from the config to the meta.
  • Added an icon to the documentation.
  • Added full support for php 8. We are waiting for the release.
  • Added adjustment method, it deals with balance adjustment. In automatic mode, it calculates the difference between the current amount on the balance sheet and for transactions, and if the balance does not converge, then finishes with a transaction.
  • Added the ability to initialize the default wallet with the required meta parameters (needed to work with currencies).
  • Added method negative to Mathable interface.

Changed

  • Now the package works exclusively with strings, there are fewer problems when working with large numbers.
  • Now, to work with cryptocurrencies, it is not necessary to install bcmath.
  • JS documentation is no longer dependent on CDN, everything is collected in one bundle.
  • Updated the command to refresh the balance, now without a transaction for all wallets. Use carefully.
  • Currencies are now in "wallets.meta.currency", please do not use the config for these cases.
  • English documentation has been slightly improved.
  • Updated phpunit to support php 8.

Removed

  • Removed php 7.2 support.
  • Drop package laravel/legacy-factories.
  • Remove BCMath and Math classes.

Fixed

  • Fixed a bug when withdrawing large funds from the wallet. Sometimes the number went beyond int64 and the exception fell on "negative number".

Deprecated

  • The key in the currencies config will be removed in 7.x. Use "wallet.meta.currency".

What's Changed

Full Changelog: 5.3.2...6.0.0

5.5.0

01 Oct 06:21
780270c
Compare
Choose a tag to compare

Added

  • Added brick/math dependency (Optional in version 5.x. If you already have a package installed, the library will switch to it automatically)
  • Added more php annotations, now it's easier to work with the library.
  • Updated travis. Now we check not only SQLite, but also mysql & postgres.

Fixed

  • Fixed memory leak in models.

Deprecated

  • class BCMath.
  • class Math.

What's Changed

Full Changelog: 5.4.0...5.5.0

5.4.0

30 Sep 07:02
9d8cbf8
Compare
Choose a tag to compare

Added

  • Temporarily added package (to develop) laravel/legacy-factories.

Changed

  • PHP 7.3+ support, 7.2 is no longer supported.
  • Formatted code using StyleCI.
  • The mysql/postgres balance refresh command no longer performs a single request update.
  • If you use standard laravel transactions and open it, the library will not open a new transaction.
    This removes a lot of errors that were sent to my email.
  • Removed automatic creation of the default wallet when calling createWallet. #218

Fixed

  • Fixed migrations for unit tests (your app should not be affected).
  • Fixed nested transactions in databases. This is now one transaction.
  • Fixed risk in unit tests for the postgres database.

What's Changed

Full Changelog: 5.3.2...5.4.0

5.3.2

31 Aug 10:05
cd63ceb
Compare
Choose a tag to compare

Added

  • Add support laravel ~8.0
  • Dependency Allowed illuminate/database ^8.0
  • Dependency Allowed doctrine/dbal ^3.0
  • Dependency Allowed infection/infection 0.17.*
  • Added new unit tests

What's Changed

Full Changelog: 5.3.1...5.3.2

5.3.1

18 Aug 06:17
1c26faf
Compare
Choose a tag to compare

Fixed

What's Changed

New Contributors

Full Changelog: 5.3.0...5.3.1