Skip to content

Releases: alleyinteractive/mantle-framework

v1.14.1

21 Nov 18:59
57e26e8

Choose a tag to compare

Added

  • Added closure support for the stale and expire TTLs in the flexible cache middleware.
  • Added custom cache key support to the HTTP Client cache middleware and flexible cache middleware.

Changed

  • Dropped more code support for PHPUnit versions prior to 10.

v1.14.0

14 Nov 18:18
3c3ed70

Choose a tag to compare

Added

  • Added laravel/serializable-closure as a dependency to mantle-framework/support to support serialization of closures.
  • Added support for Mantle\Types\Validator attributes on service providers to conditionally boot them based on custom logic.
  • Added Mantle\Types\Attributes\Admin and Mantle\Types\Attributes\Request validator attributes.

Changed

  • Bumped minimum PHPUnit version to 10.0.7.
    New projects should not pin a version and inherit the latest from the framework or mantle-framework/testing.
  • 📌 Potentially breaking change: 📌 Backup and restore WordPress globals (wp_post_statuses, wp_post_types, and wp_taxonomies) before any test runs and then restore it before each test to prevent side effects from tests that modify these globals. It will also ensure that meta, post types, and taxonomies that are registered on init (before any test has run when WordPress is booted) are preserved between tests. Previously, meta keys were always unregistered between tests and any post types or taxonomies registered during a test would persist to the next test.
    Note: This is not supported in PHPUnit versions prior to 10.
  • Post meta is no longer unregistered on tearDown. You can now opt into unregistering all meta using the Unregister_All_Meta_Keys trait.
  • The framework is now compatible with PHPStan level 8. Many types have been added throughout the framework to support this.

v1.13.4

12 Nov 14:43
8fdbb6c

Choose a tag to compare

  • Bump symfony/http-foundation to ^7.3.7 to address security issue.

v1.13.3

29 Oct 17:21
fede12f

Choose a tag to compare

No changes, re-released to fix a bad tag.

v1.13.2

29 Oct 16:41
1b7cca4

Choose a tag to compare

Fixed

  • Fixed issue where is_dir() is called with multiple arguments in the console kernel.

v1.13.1

28 Oct 19:16
d09f591

Choose a tag to compare

Fixed

  • Fixed issue with wpmu_delete_blog() not being loaded before use.

v1.13.0

27 Oct 19:22
69ba271

Choose a tag to compare

Added

  • Added scheduled() state to post factory to create scheduled posts.
  • Added create_ordered_set_and_get() method to factories to create and retrieve an ordered set of models.
  • Added collect_many() and collect_many_and_get() methods to factories to create multiple models and return them as a collection.
  • Added support for passing callables as model attributes in factories.
  • Added PermalinkStructure attribute to set the permalink structure during tests.
  • Added scheduled() state to post factory to create scheduled posts.
  • Added create_ordered_set_and_get() method to factories to create and retrieve an ordered set of models.
  • Added collect_many() and collect_many_and_get() methods to factories to create multiple models and return them as a collection.
  • Added support for passing callables as model attributes in factories.
  • Added PermalinkStructure attribute to set the permalink structure during tests.

Changed

  • Clear $_COOKIE and $_SESSION in addition to other superglobals when cleaning the global scope between tests.
  • Added Deprecation attribute to some already-deprecated methods in the framework to better indicate their deprecation status.

Fixed

  • Fixed issue where Mantle\Types\Validator is used within mantle-framework/support but mantle-framework/types is not a dependency.

v1.12.4

21 Oct 20:39
a45d1e0

Choose a tag to compare

Fixed

  • Fixed issue with unserialization of cached HTTP client requests causing errors due to uninitialized properties (again).

v1.12.3

21 Oct 17:55
9ddc72f

Choose a tag to compare

Fixed

  • Fixed issue with unserialization of cached HTTP client requests causing errors due to uninitialized properties.

v1.12.2

21 Oct 16:11
63f2c71

Choose a tag to compare

Fixed

  • Fixed issue with the url property in Mantle\Http_Client\Response not being initialized properly.