Skip to content

fix(deps): update laminas packages (major) #20

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

renovate-github-action
Copy link

@renovate-github-action renovate-github-action commented Dec 9, 2024

This PR contains the following updates:

Package Type Update Change
laminas/laminas-cache (source) require major ^3.0 -> ^4.0
laminas/laminas-cache-storage-adapter-filesystem require major ^2.0 -> ^3.0
laminas/laminas-serializer (source) require major ^2.10 -> ^3.0

Release Notes

laminas/laminas-cache (laminas/laminas-cache)

v4.1.0

Compare Source

Release Notes for 4.1.0

Feature release (minor)

This release adds support for PHP 8.4.
4.1.0
  • Total issues resolved: 0
  • Total pull requests resolved: 5
  • Total contributors: 3
Dependencies,Enhancement
Dependencies,Enhancement,QA
Documentation,QA
Enhancement
renovate

v4.0.4

Compare Source

Release Notes for 4.0.4
4.0.4
  • Total issues resolved: 0
  • Total pull requests resolved: 3
  • Total contributors: 1
Documentation

v4.0.3

Compare Source

Release Notes for 4.0.3
4.0.3
  • Total issues resolved: 0
  • Total pull requests resolved: 1
  • Total contributors: 1
Bug

v4.0.2

Compare Source

Release Notes for 4.0.2

4.0.x bugfix release (patch)

4.0.2
  • Total issues resolved: 0
  • Total pull requests resolved: 1
  • Total contributors: 1
Bug

v4.0.1

Compare Source

Release Notes for 4.0.1

4.0.x bugfix release (patch)

4.0.1
  • Total issues resolved: 0
  • Total pull requests resolved: 1
  • Total contributors: 1
Bug

v4.0.0

Compare Source

Release Notes for 4.0.0

laminas-cache 4.0.0 is here and finally adds native types everywhere, adds support for psr/cache and psr/simple-cache v2 & v3 and introduces an all new metadata logic which allows adapters to provide metadata they actually support.

Please read more on how to migrate your project in our migration guideline.

Added
  • Every adapter which supports metadata now implements MetadataCapableInterface and provides a dedicated object containing all the metadata values it supports
  • Adds support for psr/cache and psr/simple-cache v2 & v3
Removed
  • supportedMetadata capability from Capabilities
  • KeyListIterator::CURRENT_AS_METADATA mode along with Laminas\Cache\Exception\MissingKeyException
  • automatic instantiation of SerializerInterface when calling PluginOptions#getSerializer
  • Increment and decrement feature from StorageInterface, so there is no more StorageInterface#incrementItem, StorageInterface#decrementItem, StorageInterface#decrementItems and StorageInterface#incrementItems
    • this also removes incrementItem, incrementItems, decrementItem, derementItems events (pre, post and exception)
  • dependency inversion on virtual package laminas/laminas-cache-storage-adapter-implementation which now allows laminas-cache to be required without a concrete storage adapter implementation
  • removed support for psr/cache and psr/simple-cache v1
Breaking Changes
  • AbstractAdapter and StorageInterface are not aware of the methods getMetadata anymore. These were moved to the new MetadataCapableInterface
  • Capabilities do not provide supportedMetadata anymore. The supported metadata is tied to the used storage adapter and thus, was already requiring projects to explicitly know the exact implementation of the cache backend in case of using these metadatas anyway
  • KeyListIterator and the corresponding IteratorInterface does not provide the mode CURRENT_AS_METADATA anymore
  • PluginOptions#getSerializer does not create a serializer anymore if a string option was passed, instead, the string is returned
  • Increment and decrement feature was removed from StorageInterface, so there is no more StorageInterface#incrementItem, StorageInterface#decrementItem, StorageInterface#decrementItems and StorageInterface#incrementItems
    • this also removes incrementItem, incrementItems, decrementItem, derementItems events (pre, post and exception)
  • Every method now has native return types
  • Every property now has native types
  • Every method argument now has native types
  • ObjectCache does not inherit the CallbackCache pattern anymore
4.0.0
  • Total issues resolved: 9
  • Total pull requests resolved: 18
  • Total contributors: 4
BC Break,Enhancement
Enhancement
Bug,Enhancement
BC Break,Feature Removal
BC Break
Feature Request
BC Break,Bug
Documentation
laminas/laminas-cache-storage-adapter-filesystem (laminas/laminas-cache-storage-adapter-filesystem)

v3.1.0

Compare Source

Release Notes for 3.1.0

Feature release (minor)

This release adds support for PHP 8.4.
3.1.0
  • Total issues resolved: 0
  • Total pull requests resolved: 2
  • Total contributors: 2
Enhancement

v3.0.0

Compare Source

Release Notes for 3.0.0

Backwards incompatible release (major)

laminas-cache-storage-adapter-filesystem 3.0.0 is here and finally adds native types everywhere, adds support for psr/cache and psr/simple-cache v2 & v3, supports laminas/laminas-cache v4 and introduces an all new metadata and persistence logic. The Filesystem does now persist the value as a serialized string along with the expiry date so that cache items can now have dedicated TTLs.

Added
  • Dedicated Metadata object for Filesystem#getMetadata
  • Adds support for psr/cache and psr/simple-cache v2 & v3 by introducing TTL per-item handling
  • Filesystem now allows passing a ClockInterface via its constructor
  • New option to configure unserializable classes (unserializable_classes) which can be passed as a Filesystem option as boolean or a non-empty-list<class-string> value. Defaults to true and can be modified according to the unserialize function documentation (value is passed to allowed_classes option of unserialize). This option is only used when there is no Serializer plugin attached to the storage adapter
  • FilesystemInteractionInterface does now provide a new method getFirstLineOfFile to have a performant way to read the cache expiry information without loading the whole file into memory
Changed
  • Filesystem adapter now supports per-item TTL and thus, the TTL is calculated on-write rather than on-read
  • The Filesystem adapter now uses .cache suffix which is not configurable anymore (used to be .dat) as the old .dat files might not be compatible anymore. This will probably introduce problems in projects which rely on existing files which are not generated when these are missing. It is also mandatory that if caches are created cross-project, that both projects use the same adapter version. Please keep this in mind when upgrading
  • FilesystemOptions does now prevent projects from updating the key pattern, the key pattern is fixed and must not change
  • FilesystemOptions has a modified key pattern and now allows dots (.) in cache keys. This is mandatory to have proper PSR-6 support which requires caches to support A-Z, a-z, 0-9, _, and .
  • Filesystem adapter now stores values as serialized strings within the cache file in case that there is no Serializer plugin attached to the adapter
Removed
  • Filesystem::METADATA_ATIME constant, use Metadata#lastAccessTime instead
  • Filesystem::METADATA_CTIME constant, use Metadata#creationTime instead
  • Filesystem::METADATA_MTIME constant, use Metadata#lastModifiedTime instead
  • Filesystem::METADATA_FILESIZE constant, use Metadata#filesize instead
  • Filesystem::METADATA_FILESPEC constant, use Metadata#filespec instead
  • FilesystemOptions#setSuffix as the suffix is not configurable anymore
  • FilesystemOptions#getSuffix as the suffix is not configurable anymore
  • FilesystemOptions#setTagSuffix as the tag suffix is not configurable anymore
  • FilesystemOptions#getTagSuffix as the tag suffix is not configurable anymore
  • FilesystemInteractionInterface#umask as it was not used
  • FilesystemInteractionInterface#touch as it is not used anymore
3.0.0
  • Total issues resolved: 1
  • Total pull requests resolved: 5
  • Total contributors: 2
Enhancement
BC Break,Enhancement
Enhancement,RFC,Won't Fix
BC Break
laminas/laminas-serializer (laminas/laminas-serializer)

v3.1.0

Compare Source

Release Notes for 3.1.0

Feature release (minor)

3.1.0
  • Total issues resolved: 0
  • Total pull requests resolved: 4
  • Total contributors: 3
Enhancement
renovate

v3.0.0

Compare Source

Release Notes for 3.0.0

Backwards incompatible release (major)

With v3.0.0, a huge maintenance release is rolled out.
Every property and every method is now fully typed, starting with method arguments up to object properties.
These kind of changes were necessary due to the changes in laminas-servicemanager v4.0.0 which is also fully typed starting with v4.0.

To reduce further maintenance effort, some niche serializers were dropped in favor or faster CI pipelines and due to the lack of cross-platform checks. Laminas wants to provide fully tested code which was not properly possible for at least the Wddx adapter.

The migration guide is available on the documentation website:
https://docs.laminas.dev/laminas-serializer/v3/migration/to-version-3/

Breaking Changes
  • All methods within this component now have typed arguments and typed return
  • All properties within this component are now typed
Removed
  • Laminas\Serializer\Serializer is removed in favor of proper dependency injection
  • Laminas\Serializer\Adapter\MsgPack is removed to reduce the amount of maintenance within this component
  • Laminas\Serializer\Adapter\PythonPickle is removed to reduce the amount of maintenance within this component
  • Laminas\Serializer\Adapter\Wddx is removed to reduce the amount of maintenance within this component
Changed
  • Due to the removal of Laminas\Serializer\Serializer, projects now have to either instantiate the default serializer implementation or inject it by consuming the Laminas\Serializer\Adapter\AdapterInterface service
Added
  • Laminas\Serializer\GenericSerializerFactory in case projects want to re-configure the default serializer (PhpSerialize) provided by the Laminas\Serializer\Adapter\AdapterInterface service
  • Compatibility with laminas/laminas-servicemanager v4.0.0 and therefore psr/container v2.0.0
3.0.0
  • Total issues resolved: 2
  • Total pull requests resolved: 12
  • Total contributors: 3
Documentation
Enhancement
Documentation,Enhancement
BC Break,Enhancement,Feature Removal
BC Break,Enhancement
BC Break,Documentation,Enhancement
BC Break,RFC

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant