Releases: php-activerecord/activerecord
Releases · php-activerecord/activerecord
v2.0.3 - PHP 8.4 support
v2.0.2
v2.0.1
v2.0.0
Here it is at last, folks! I'm very proud to announce the first major release of this library in over a decade! So, what's new?
- now aligned more closely with modern ActiveRecord API (particularly the ability to chain commands together using the new
Relation
class) - CI moved to Github Actions
- redesigned unit test layout to exercise all tests with all adapters
- dropped unfinished features (such as OCI support)
- refreshed code with modern PHP language features (min version is now 8.1)
- rewrote documentation
- full support for phpstan (level 6), including dynamic extensions that dissolve ambiguity around methods with dynamic return types such as
Model::find
(make sure to importextension.neon
) - now using php-cs-fixer
- increased code coverage to 100%
And a thousand other little things.
Be advised that this is a breaking change! The PHP update alone would be enough to warrant careful consideration, but there are plenty of major API changes, as well. Be sure to have a look at the migration guide for more information, here.
What's Changed
- Fix tests by @shmax in #25
- Autoloader by @shmax in #31
- Fix test deprecations by @ipundit in #34
- phpstan by @shmax in #32
- update cs-fixer, apply to code by @shmax in #33
- add tests around Model:find return type by @shmax in #38
- clean up tests and book class in particular by @shmax in #39
- Fix for issue #35. Corrected ActiveRecordTest's so that capitalizatio… by @ipundit in #36
- dynamic stan extension for Model::find by @shmax in #41
- Fix documentation that led to Issue #37 by @ipundit in #42
- more dynamic phpstan extensions by @shmax in #44
- static checking for count_by by @shmax in #46
- Reorganize Model::$belongs_to, Model::$has_one by @shmax in #47
- composer test is now more convenient to use by @ipundit in #48
- PHPStan level 7 by @shmax in #43
- PHPStan level 8 by @shmax in #50
- clean up static delegate prop by @shmax in #52
- simplify has_one by @shmax in #53
- clean up comments, simplify a few things by @shmax in #54
- Fix for #55 by @ipundit in #56
- split workflow by @shmax in #59
- Fail tests on warnings or notices by @shmax in #57
- improve coverge by @shmax in #60
- remove native database types thing by @shmax in #61
- simplify by @shmax in #62
- Adopt modern Active Record patterns by @shmax in #63
- Support Relation Iterator by @shmax in #65
- troubleshoot sqlite tests by @shmax in #67
- add stan test file by @shmax in #68
- beef-up select by @shmax in #70
- add docs by @shmax in #71
- add comment by @shmax in #72
- support arrays to order by @shmax in #73
- test logger config methods by @shmax in #74
- Fixed select(), implemented pluck(), ids(), reselect(), none() by @ipundit in #69
- Move select processing to Table by @shmax in #77
- Optimize pluck, simplify stuff by @shmax in #78
- Start on HasAndBelongsToMany by @shmax in #76
- add tests, documentation by @shmax in #79
- use list by @shmax in #80
- Relation dynamic finders by @ipundit in #81
- A little cleanup by @shmax in #84
- Fix order()->first() bug by @ipundit in #85
- Static analysis for Relation::find_by by @shmax in #86
- Fix mixedcase by @shmax in #89
- cycle over all connections by @shmax in #88
- increase cov in Connection, remove unused by @shmax in #92
- use asserts by @shmax in #93
- move delete_all to relation by @shmax in #94
- More coverage tweaks by @shmax in #96
- improve coverage by @shmax in #97
- Bump vesion to 2.0.0.rc.1 by @shmax in #98
- add interface for cache by @shmax in #99
- Create extension.neon by @shmax in #100
- Integration fixes by @shmax in #101
- Modernize Model::update_all by @shmax in #103
- start on migration guide by @shmax in #95
- Improve coverage by @shmax in #104
- remove pointless override, simplify by @shmax in #105
- remove unused logic by @shmax in #106
- rejigger things to increase coverage by @shmax in #107
- alternate syntax by @shmax in #108
- throw RecordNotFound on empty find by @shmax in #109
- simplify count by @shmax in #110
- linting by @shmax in #112
- add rnf message by @shmax in #111
- fix logic by @shmax in #113
- fix type by @shmax in #114
- start on new docs by @shmax in #40
I want to give a big shout out to @ipundit who was the one who sort of kicked all this off, and contributed several key improvements.
Please enjoy, and don't be shy about reporting issues as they pop up.
Full Changelog: v1.1.11...2.0.0
2.0.0-rc.9
What's Changed
Full Changelog: 2.0.0-rc.8...2.0.0-rc.9
2.0.0-rc.10
2.0.0-rc.8
2.0.0-rc.7
What's Changed
Full Changelog: 2.0.0-rc6...2.0.0-rc.7