Osumi Framework
es en eu v9.10.0 GitHub

Migration Guide: 9.8.3 → 9.8.4

Version 9.8.4 includes an HTTP status correction and improvements to route prefix handling and URL normalization.


Summary

Added

Changed

Removed


Impact on Existing Projects

For example, nested prefixes:

ORoute::prefix('/api', function(): void {
	ORoute::get('/health', HealthComponent::class);

	ORoute::prefix('/admin', function(): void {
		ORoute::post('/login', LoginComponent::class);
		ORoute::get('/me', MeComponent::class, [AdminAuthFilter::class]);
	});
});

Register these routes:

Route URLs are also normalized. For example:

ORoute::prefix('/api/', function(): void {
	ORoute::prefix('//admin///', function(): void {
		ORoute::get('//users/', UsersComponent::class);
	});
});

Registers the route as:

URL normalization is applied by the static ORoute methods get(), post(), put(), delete(), view(), group(), and prefix().

Purpose of This Update

This release aims to:


Backward Compatibility

Existing route declarations remain compatible. Route URLs containing duplicate or trailing slashes are now normalized to a single canonical path. Applications that rely on those slashes being significant should review their route definitions.


Developer Action Required

No action is required for typical applications. Review any route definitions that rely on duplicate or trailing slashes.


Notes

No database migration is required.