Skip to content

Releases: ray-di/Ray.PsrCacheModule

1.5.1

10 Nov 02:54

Choose a tag to compare

Fixed

  • Remove legacy doctrine annotation comments from provider classes to prevent AnnotationException when using koriym/attributes with DualReader (#33, #34)

This patch release fixes an issue where legacy Doctrine annotation comments remaining in provider classes caused AnnotationException in downstream packages using koriym/attributes's DualReader to parse both annotations and PHP 8 attributes.

Full Changelog: 1.5.0...1.5.1

1.5.0

09 Nov 17:29

Choose a tag to compare

Changes

Changed

  • PHP 8.2+ Requirement: Updated minimum PHP version from ^8.1 to ^8.2
  • Symfony Cache Update: Updated dependency to ^6.0 || ^7.2
  • Removed doctrine/annotations: Eliminated abandoned dependency, migrated to native PHP 8 attributes
  • Code Modernization: Use readonly properties where applicable for immutability

Removed

  • Serializable interface from cache adapters (now use __serialize/__unserialize magic methods)
  • Unused Php73BcSerializableTrait class
  • Unused RedisInstance annotation class

Added

  • Migration Tools: Added rector-migrate.php for automated annotation-to-attribute migration
  • Migration Guide: Added ANNOTATION_TO_ATTRIBUTE.md with comprehensive migration instructions
  • Documentation: Added CLAUDE.md with project architecture and development workflow

Fixed

  • CI/CD workflows updated to latest GitHub Actions versions
  • Replace deprecated set-output with $GITHUB_OUTPUT
  • Add --ignore-platform-req=php for PHP 8.5 compatibility testing
  • rector-migrate.php: Remove hardcoded paths to allow users to specify their own project paths

⚠️ Migration Required

Applications using annotations must migrate to PHP 8 attributes:

# Preview changes
vendor/bin/rector process src --config=vendor/ray/psr-cache-module/rector-migrate.php --dry-run

# Apply migration
vendor/bin/rector process src --config=vendor/ray/psr-cache-module/rector-migrate.php

See ANNOTATION_TO_ATTRIBUTE.md for detailed migration guide.

Why This Change?

The doctrine/annotations package has been officially abandoned by its maintainers and will no longer receive updates or security patches. This change:

  • Eliminates security and compatibility risks from the abandoned package
  • Adopts native PHP 8 attributes as the modern standard
  • Improves performance (no runtime annotation parsing overhead)
  • Provides migration tooling for users to update their applications

Supported Annotations

The migration tool automatically converts:

  • @Local#[Local] - For non-shared cache (APCu/Filesystem)
  • @Shared#[Shared] - For shared cache (Redis/Memcached)
  • @CacheDir#[CacheDir] - Cache directory configuration
  • @CacheNamespace#[CacheNamespace] - Cache namespace configuration
  • @RedisConfig#[RedisConfig] - Redis connection configuration
  • @MemcacheConfig#[MemcacheConfig] - Memcached connection configuration

1.4.0

11 Jan 11:10
d550309

Choose a tag to compare

Windows

  • Enable Windows compat

What's Changed

  • Enable PHP 8.4 compat and bump symfony/cache v7 by @koriym in #23
  • Enable PHP 8.4 compat by @koriym in #28

Full Changelog: 1.3.4...1.4.0

image

1.3.4

13 May 18:23
25f510d

Choose a tag to compare

What's Changed

  • Binding a serializable PsrCacheModule memcached adapter instead of Symfony's adapter by @koriym in #22

Full Changelog: 1.3.3...1.3.4

1.3.3

12 May 09:37
308d0e9

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 1.3.2...1.3.3

1.3.2

21 Apr 08:21
f29fbd5

Choose a tag to compare

What's Changed

  • Fix codeCoverageIgnore by @NaokiTsuchiya in #16
  • Create Serializable Redis Adapter and ApcuAdapter disabled in CLI by @koriym in #17
  • Update memcache adapter serializable by @koriym in #18

Full Changelog: 1.3.1...1.3.2

1.3.1

01 Feb 12:51
e125046

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 1.3.0...1.3.1

1.3.0

15 Oct 13:20
af715ee

Choose a tag to compare

What's Changed

Full Changelog: 1.2.1...1.3.0

1.2.2

07 Oct 13:23
b2717a3

Choose a tag to compare

What's Changed

Full Changelog: 1.2.0...1.2.2

1.2.1

26 Jul 09:57
b2717a3

Choose a tag to compare

What's Changed

  • Update LocalCache to Apcu only by @koriym in #12

Full Changelog: 1.1.2...1.2.0

What's Changed

Full Changelog: 1.2.0...1.2.1