v5.0.0
What's Changed
New major version with the update of the package illuminate/database to version 12.x ✨:
Security 🛡️
- 🧯 Security: escape metaKey in joinToMeta() and add PostBuilder tests by @dimitriBouteille in #159
- 🚨 Security: replace esc_sql by $wpdb->prepare() in Database::bindParams by @dimitriBouteille in #155
- 🧯 Security: harden meta join to prevent SQL injection through identifiers by @dimitriBouteille in #163
Breaking Changes 🛠
- 🛟 Update illuminate/* to ^12.0 by @dimitriBouteille in #136
- 🛟 Update phpunit/phpunit to ^12.5 by @dimitriBouteille in #147
- 🧶 feat: serialize/unserialize option_value in Option model by @dimitriBouteille in #152
- 🥷 Database::$transactionCount is protected by @dimitriBouteille in #156
- 🐞 Fix: use belongsTo instead of hasOne for Post and Comment relations by @dimitriBouteille in #157
- 🐞 Fix: use belongsTo instead of hasOne for PostMeta, UserMeta, SiteMeta and Signup relations by @dimitriBouteille in #158
- ✂️ Deprecate AbstractMeta::getKey() in favor of getMetaKey() by @dimitriBouteille in #166
- 🗑️ Remove multisite feature by @dimitriBouteille in #169
New Features 💎
- 📏 Support decimal and custom_datetime casts in HasMetas by @dimitriBouteille in #167
Fixes ⛑️
- 🐞 Fix: add 'real' to primitiveMetaCastTypes and improve HasMetas unit tests by @dimitriBouteille in #160
- 🐞 Fix some issues in HasMetas by @dimitriBouteille in #164
- 📘 Fix wrong @method insert annotation on AbstractModel by @dimitriBouteille in #165
Other Changes 🖇️
- 💎 Add local testing env by @dimitriBouteille in #146
- Lock rector version, update header license by @dimitriBouteille in #154
- 🦾 Migrate WordPress test suite to wp-phpunit Composer package by @dimitriBouteille in #161
- 📖 Improve README.md by @dimitriBouteille in #168
- 🧪 Improve database tests by @dimitriBouteille in #171
- 🧪 Bump WP test matrix to 6.5–6.9 + latest by @dimitriBouteille in #172
- 🧪 Add and update database tests by @dimitriBouteille in #173
- 🛡️ Add security group in release.yml by @dimitriBouteille in #175
Current Eloquent Version: 12.x
Full Changelog: v4.3.1...v5.0.0