Skip to content

Releases: bearsunday/BEAR.QueryRepository

1.15.1

07 Feb 01:48
41468fa

Choose a tag to compare

What's Changed

Fixed

  • Replace deprecated DateTimeInterface::RFC7231 with Header::RFC7231 constant for PHP 8.5 compatibility (#173)
  • Centralize RFC 7231 date format in Header::RFC7231 used by all EtagSetter implementations

Full Changelog: 1.15.0...1.15.1

1.15.0

02 Feb 16:21
8e4ab37

Choose a tag to compare

What's Changed

Added

  • Add ServerContextInterface for coroutine-safe request handling in Swoole/RoadRunner environments
  • Add GlobalServerContext as default implementation using $_SERVER superglobal
  • Add RepositoryLoggerInterface with reset() method for long-running process support

Changed

  • Bind ServerContextInterface to GlobalServerContext in QueryRepositoryModule
  • Use ServerContextInterface in ResourceStorage instead of direct $_SERVER access

Full Changelog: 1.14.0...1.15.0

1.14.0

24 Jan 06:07

Choose a tag to compare

Added

  • LLM documentation (docs/llms.txt, docs/llms-full.txt) for AI-assisted development
  • JSON schema for RepositoryLogger output (docs/schemas/repository-log.json)
  • Cache dependency demos for AI log analysis
  • Cache dependency test coverage documentation

Changed

  • RepositoryLogger output changed to JSON format for structured logging
  • Updated .gitattributes to exclude development files from release
  • Require ray/aop ^2.19.1 and ray/di ^2.20 for PHP 8.5 compatibility
  • Updated copyright year to 2026

Fixed

  • UriTagTest typo in documentation

1.13.0

10 Nov 09:31
3891ae2

Choose a tag to compare

Changes

Changed

  • PHP 8 Attributes Migration: Removed doctrine/annotations and doctrine/cache dependencies, migrated to native PHP 8 attributes
  • Minimum PHP Version: Updated requirement from PHP 8.1 to PHP 8.2
  • Development Tools: Updated PHP_CodeSniffer to 4.0, Doctrine Coding Standard to 14.0, Slevomat Coding Standard to 8.24, PHPUnit to 11.5
  • Performance Improvements: Set ResourceStorage to singleton scope, optimized readonly class declarations for PHP 8.2
  • Enhanced Redis: Improved marshaller configuration with deflate compression support
  • Cross-Platform: Normalized URI separators and path handling for Windows/macOS/Linux
  • Documentation: Improved cache attribute and interceptor documentation with usage examples
  • Dependencies: Updated Symfony Cache to ^7.3, ray/aop to ^2.16, ray/di to ^2.17.2, vimeo/psalm to 6.12

Added

  • Migration Tools: Added rector-migrate.php for automated annotation-to-attribute migration
  • Migration Guide: Added ANNOTATION_TO_ATTRIBUTE.md with comprehensive migration instructions
  • PHP 8.4 & 8.5 Support: Added PHP 8.4 and 8.5 support in CI workflow
  • Documentation: Added CLAUDE.md with complete codebase architecture guide
  • Japanese Docs: Added README.ja.md

Removed

  • doctrine/annotations (abandoned package)
  • doctrine/cache (abandoned package)
  • Sodium marshaller related code

⚠️ Migration Required

Applications using annotations must migrate to PHP 8 attributes:

# Preview changes
vendor/bin/rector process src --config=vendor/bear/query-repository/rector-migrate.php --dry-run

# Apply migration
vendor/bin/rector process src --config=vendor/bear/query-repository/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

Why Not a Major Version Update?

While this release removes doctrine/annotations, we consider it a minor version (1.13.0) rather than a major version (2.0.0) for the following reasons:

No Public API Changes

  • All public interfaces, classes, and methods remain identical
  • The annotation-to-attribute migration is purely a syntax change
  • Existing code continues to work after applying the automated migration

Automated Migration Available

  • We provide Rector configuration for one-command migration
  • The migration process is safe, tested, and reversible
  • Migration Guide includes comprehensive documentation and troubleshooting

Semantic Versioning Perspective

  • Per semver, breaking changes are defined as incompatible API changes
  • While dependencies changed, the API contract remains stable
  • This follows the principle that if your code works on PHP 8.1+ with attributes, the upgrade path is clear and automated

Version Strategy

  • Version 1.12.x continues to support annotations (requires doctrine/annotations)
  • Version 1.13.0+ uses native PHP 8 attributes only
  • Users can choose the appropriate version for their needs

1.12.1

20 Jun 03:17
9e7ca85

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 1.12.0...1.12.1

1.12.0

11 Jan 10:08
85688a0

Choose a tag to compare

What's Changed

  • Fix type casting and update dependencies by @koriym in #159
  • Windows: Normalize URI separators in cache key generation by @koriym in #160

Full Changelog: 1.11.1...1.12.0

image

1.11.1

06 Jan 15:40
7997435

Choose a tag to compare

Bug Fix

The error that occurred when serializing the root object is fixed by making the singleton object that cannot be serialized.

シリアライズできないオブジェクトをシングルトンにしていたことで、ルートオブジェクトのシリアライズでエラーが発生していたのを修正します。

What's Changed

  • Update license copyright year(s) by @github-actions in #156
  • Remove unnecessary singleton scopes and update bindings by @koriym in #157
  • Update dependencies and enhance compatibility by @koriym in #158

Full Changelog: 1.11.0...1.11.1

1.11.0

26 Nov 11:13
6ad2c5d

Choose a tag to compare

What's Changed

  • Introduce StorageRedisDsnModule by @koriym in #144
  • Add PHP 8.4 to CI workflow by @koriym in #148
  • Enable Windows test compat by @koriym in #151
  • Update mobiledetect/mobiledetectlib dependency version and make it optional by @koriym in #152

Full Changelog: 1.10.1...1.11.0

Enable PHP 7.3 compat

16 Nov 16:38

Choose a tag to compare

This latest release for PHP 7.3.

It was made so that composer updates can be done on PHP 7.3 projects without problems. This release confirms that as of November 2024, it is possible to run composer create-projcet bear/skeleton on PHP 7.3 to install new projects.

This release is not intended to be practical, but to demonstrate the availability of BEAR.Sunday.

1.10.1

01 Nov 14:32
e77a21f

Choose a tag to compare

What's Changed

Full Changelog: 1.10.0...1.10.1