Releases: TimAnthonyAlexander/base-api-template
Releases · TimAnthonyAlexander/base-api-template
v1.9.5
v1.9.4.1
Immutable
release. Only release title and notes can be modified.
Patch on top of v1.9.4
Test maintenance follow-up to v1.9.4. No runtime/behavior changes.
Fixed
- Example & health Feature tests now pass on a clean checkout. The template ships
response.wrap_data=false(the new default), but the bundled tests still asserted the legacy{ data }envelope, so all 8 failed out of the box. Their assertions now target the actual top-level response shape (ok,db,cache.working), and the full suite is green (19 tests, 53 assertions).
Note
response.wrap_datastaysfalse— only the tests were adapted.
All v1.9.4 auth fixes (session persistence, password-hash leak, /me Bearer auth, unknown-email 401) and the baseapi/baseapi v1.9.4 upgrade are included.
v1.9.4
Immutable
release. Only release title and notes can be modified.
Auth fixes for fresh installations
This release fixes four auth bugs that every new project scaffolded from this template inherited, and upgrades the framework to baseapi/baseapi v1.9.4.
Fixed
- Session login never persisted.
LoginController/SignupControllerwrote$this->request->session['user_id']— a by-value copy of$_SESSIONthat PHP never persists — so a successful login was silently dropped on the very next request. They now write$_SESSIONdirectly. - Login crashed on an unknown email.
User::firstWhere()returnsnullfor an unknown email, andcheckPassword()was called on it, causing a fatal null-method error instead of a401. Now guarded withinstanceof User. - Password hash leaked in responses.
BaseModel::jsonSerialize()serializes every public property, including the bcryptpassword— exposed in login/signup/me responses and the$request->userpayload.Usernow overridesjsonSerialize()to strip it. /merejected API-token auth.MeControllerread$_SESSIONonly, returning401for validBearertoken requests (the SPA path). It now reads$request->userset byCombinedAuthMiddleware, working for both session and token auth.
Changed
- Upgraded
baseapi/baseapiv1.9.0→v1.9.4.
Known issue
- The bundled example/health Feature tests assume a
{ data }response envelope while the template shipsresponse.wrap_data=false. These failures are pre-existing and unrelated to this release.
v1.9.0.1
Immutable
release. Only release title and notes can be modified.
Fix
v1.9.0
Immutable
release. Only release title and notes can be modified.
Update
1.7.5: Sync
Immutable
release. Only release title and notes can be modified.
Update
v1.7.4.1: TranslationService update
Immutable
release. Only release title and notes can be modified.
Update transserv
v1.7.4: Sync
Immutable
release. Only release title and notes can be modified.
Upgrade baseapi template
v1.6.6: Sync
Immutable
release. Only release title and notes can be modified.
Update baseapi template
v1.6.4: Sync
Immutable
release. Only release title and notes can be modified.
Update