Releases: mindplay-dk/timber
3.0.0
Version 3 doesn't really attempt to be backwards compatible - I haven't been actively using PHP for some years, so this release is a revived and modernized package for PHP 8, with a smaller scope.
Earlier versions of this package came with a Dispatcher and a URL builder, both of which have been removed from version 3.0.0
of this package:
-
The Dispatcher had no real connection with the Router itself, and was more like a proof of concept than a full-blown implementation - if you wish to upgrade to
3.0.0
, you can copy the dispatcher from the old version and use this as a basis for your own dispatcher. -
The URL builder also had no direct connection with the Router, as has been removed - you can find third-party packages on Packagist specifically for this purpose.
Major breaking changes:
Router::resolve()
now returns a union type of eitherResult
orError
.Registry
is now calledPatternRegistry
, andSymbol
is calledPattern
.
Minor breaking changes:
- Static type-hints were added.
Other than that, what remains is more or less the same.
Maintenance release
Adds support for PHP 8, removes support for older versions of PHP.
Minor update
Internally leverage the intl
extension for transliteration in UrlHelper::slug()
. (the previous custom transliteration code remains as a fallback.)
Feature and bugfix release
This release fixes a marginal bug in the URL template pattern regex, and adds some UrlHelper
improvements.
Minor bugfix
avoid shared state between tests avoid a minor bug (missing leading slash in Result::$url)
2.1.0
This release adds support for wildcard routes.
Note that there are minor internal BC breaks in the Match
model, which isn't exposed via the public API, and therefore this is not considered a major release, although this could impact you if you extended the Match
model.