Releases: bavix/laravel-wallet
Releases · bavix/laravel-wallet
6.0.4
Added
What's Changed
- #303 verification of automatic wallet creation. by @rez1dent3 in #304
- Bump docsify from 4.11.6 to 4.12.0 by @dependabot in #306
- Bump prismjs from 1.22.0 to 1.23.0 by @dependabot in #307
- Update ar lang by @omarhen in #316
New Contributors
Full Changelog: 6.0.3...6.0.4
6.0.3
Added
- Add arabic locale; #302 @akhedrane
What's Changed
- Bump axios from 0.21.0 to 0.21.1 by @dependabot in #295
- add arabic locale by @akhedrane in #302
New Contributors
- @akhedrane made their first contribution in #302
Full Changelog: 6.0.2...6.0.3
6.0.2
Added
- Added
getWalletOrFail
method.
What's Changed
- 6.x bug fix by @rez1dent3 in #282
- Apply fixes from StyleCI by @rez1dent3 in #289
- Add getWalletOrFail method by @rez1dent3 in #288
Full Changelog: 6.0.1...6.0.2
6.0.1
Fixed
- Fixed a bug when updating the balance, refund and full write-off. #279 @vaibhavpandeyvpz
- Fixed bugs in unit tests.
What's Changed
- Apply fixes from StyleCI by @rez1dent3 in #281
- Apply fixes from StyleCI by @rez1dent3 in #283
- 5.x fix bug by @rez1dent3 in #280
- Apply fixes from StyleCI by @rez1dent3 in #284
Full Changelog: 6.0.0...6.0.1
5.5.1
Fixed
- Fixed a bug when updating the balance, refund and full write-off. #279 @vaibhavpandeyvpz
- Fixed bugs in unit tests.
What's Changed
- Apply fixes from StyleCI by @rez1dent3 in #281
Full Changelog: 5.5.0...5.5.1
6.0.0
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 methodfresh
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
toMathable
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
andMath
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
- Apply fixes from StyleCI by @rez1dent3 in #215
- Upgrade by @rez1dent3 in #212
- Fixed errors in the library on postgresql and mysql by @rez1dent3 in #217
- Develop by @rez1dent3 in #219
- Travis CI by @rez1dent3 in #220
- Apply fixes from StyleCI by @rez1dent3 in #223
- Apply fixes from StyleCI by @rez1dent3 in #224
- Add dependency brick/math by @rez1dent3 in #221
- add percona 8 & mariadb 10 by @rez1dent3 in #225
- Apply fixes from StyleCI by @rez1dent3 in #238
- Apply fixes from StyleCI by @rez1dent3 in #241
- Update infection/infection requirement from 0.17.* to 0.18 by @dependabot-preview in #251
- Major 6.x by @rez1dent3 in #222
- Apply fixes from StyleCI by @rez1dent3 in #262
- Apply fixes from StyleCI by @rez1dent3 in #263
- Apply fixes from StyleCI by @rez1dent3 in #266
- Apply fixes from StyleCI by @rez1dent3 in #267
- Apply fixes from StyleCI by @rez1dent3 in #269
- Improving the code with a static analyzer by @rez1dent3 in #268
- Apply fixes from StyleCI by @rez1dent3 in #270
- Apply fixes from StyleCI by @rez1dent3 in #275
- Major 6.x by @rez1dent3 in #257
Full Changelog: 5.3.2...6.0.0
5.5.0
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
- Travis CI by @rez1dent3 in #220
- Apply fixes from StyleCI by @rez1dent3 in #223
- Add dependency brick/math by @rez1dent3 in #221
Full Changelog: 5.4.0...5.5.0
5.4.0
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
- Apply fixes from StyleCI by @rez1dent3 in #215
- Upgrade by @rez1dent3 in #212
- Fixed errors in the library on postgresql and mysql by @rez1dent3 in #217
- Develop by @rez1dent3 in #219
Full Changelog: 5.3.2...5.4.0
5.3.2
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
- Update infection/infection requirement from 0.15.|0.16. to ^0.17.0 by @dependabot-preview in #200
- Laravel 8 by @rez1dent3 in #208
Full Changelog: 5.3.1...5.3.2
5.3.1
Fixed
- Fixed migration issue with db table prefix #195 @reedknight @cispl-shaswatad
What's Changed
- Pull195 by @rez1dent3 in #196
- Fixed migration issue with db table prefix by @reedknight in #195
- Develop by @rez1dent3 in #197
New Contributors
- @reedknight made their first contribution in #195
Full Changelog: 5.3.0...5.3.1