ldc-file-storage-service/CHANGELOG.md

3.6 KiB

Changelog

All notable changes to this project will be documented in this file.

[1.0.3] - 2026-11-04

🚀 Features

  • (StorageServiceConfig) Support scoped driver with boot-time underlying driver resolution

🎨 Styling

  • (tests) Fix spacing in docblock for allowedExtensions

[1.0.2] - 2026-11-04

🚀 Features

  • (StorageServiceConfig) Add prefix handling and validation

⚙️ Miscellaneous Tasks

  • (cliff.toml) Add spacing before release headings in changelog

[1.0.1] - 2026-11-04

🚀 Features

  • (StorageFilePath) Implement JsonSerializable interface

⚙️ Miscellaneous Tasks

  • Update .gitignore and add bun.lock and cliff.toml
  • (cliff.toml) Skip changelog commits in parser

[1.0.0] - 2026-11-03

🚀 Features

  • (Facades) Add StorageService facade with methods for file operations
  • (FileSanitizerImpl) Add mimeType and size to SanitizedFile
  • (StorageFilePath) Implement Stringable interface
  • (StorageService) Add methods to store files using SplFileObject
  • (MimeTypeChecker) Add unsupported MIME types for SVG and XML
  • (tests) Add initial test structure and example tests

🐛 Bug Fixes

  • (FileStream) Improve stream validation in constructor
  • (FileStream) Handle resource creation failure in constructor

🚜 Refactor

  • (DiskName) Implement Stringable interface
  • (StorageGatewayImpl) Specify return type for getStorageForDisk
  • (Exceptions) Format exception classes for consistency
  • (Utils, DiskName) Improve disk handling with enum support
  • (SanitizedFile) Remove unused Utils methods
  • (StorageService) Change remove methods to return bool
  • (FileStream) Ensure resource is closed in destructor
  • (exceptions) Replace StorageException with UnexpectedStorageException
  • (StorageServiceConfig) Rename getEligiblesDisks to getEligibleDisks
  • (StorageServiceProvider) Use Arr::string for driver assignment
  • (StorageServiceProvider) Improve disk configuration handling
  • (Utils) Remove unused Facade import and redundant check

🎨 Styling

  • (PathGenerators) Format code for consistency
  • (StorageService) Disable line length check for facade comments
  • (StorageService) Update phpcs line length disable comment

🧪 Testing

  • Add unit tests for DiskName, FileStream, and SanitizedFile
  • (DateHashPathGenerator) Add unit tests for path generation
  • (FileStream) Skip test for chmod 0000 in superuser environments
  • (StorageServiceConfig) Add unit tests for configuration validation
  • (FileSanitizerImpl) Add tests for file sanitization errors
  • (Utils) Add unit tests for disk existence and extension validation
  • (MimeTypeCheckerImpl) Ignore type argument for PHPStan
  • (FileSanitizerImpl) Add PHPDoc for allowedExtensions parameter
  • (MimeTypeCheckerImpl) Ignore type argument for PHPStan
  • (StorageGatewayImpl) Add unit tests for file storage operations
  • (StorageServiceImpl) Add unit tests for file operations

⚙️ Miscellaneous Tasks

  • Remove FileStorageHelper class
  • Update PHP CodeSniffer and add Pint configuration
  • Add .gitattributes for line endings and export-ignore rules
  • Update phpcs and phpstan configurations
  • (tests) Add .gitkeep files for Feature and Integration directories
  • (dependencies) Update phpstan-mockery version in composer.json