Skip to content

Releases: mindplay-dk/timber

3.0.0

28 Mar 08:51
Compare
Choose a tag to compare

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 either Result or Error.
  • Registry is now called PatternRegistry, and Symbol is called Pattern.

Minor breaking changes:

  • Static type-hints were added.

Other than that, what remains is more or less the same.

Maintenance release

25 Feb 10:19
6defdfa
Compare
Choose a tag to compare

Adds support for PHP 8, removes support for older versions of PHP.

Minor update

11 Aug 09:07
Compare
Choose a tag to compare

Internally leverage the intl extension for transliteration in UrlHelper::slug(). (the previous custom transliteration code remains as a fallback.)

Feature and bugfix release

10 Aug 14:29
Compare
Choose a tag to compare

This release fixes a marginal bug in the URL template pattern regex, and adds some UrlHelper improvements.

Minor bugfix

14 Jul 19:06
Compare
Choose a tag to compare
avoid shared state between tests

avoid a minor bug (missing leading slash in Result::$url)

2.1.0

20 Jan 16:13
Compare
Choose a tag to compare

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.