Skip to content

Latest commit

 

History

History
73 lines (53 loc) · 4.77 KB

CHANGELOG.md

File metadata and controls

73 lines (53 loc) · 4.77 KB

Change Log

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

The format is based on Keep a Changelog and this project adheres to Semantic Versioning.

  • Replace LocaleMiddleware with ServerRequestMiddleware. A new class, RequestContainer, can be injected or retrieved from the container to get the server request. It will be null if the request is not defined (called before it is injected into the container by Middleware or if there's no request, e.g., a Bakery command).
  • Fix #1264 - The browser locale is not applied automatically
  • Fix issue with sprunje using multiple listable fetched from database (Chat Reference)
  • Drop PHP 8.1 support, add PHP 8.3 support
  • Update to Laravel 10
  • Update to PHPUnit 10
  • Update to Monolog 3
  • Test against MariaDB #1238
  • The different loggers now implement their own interface
  • Change sprunje type-hinting, fixing issue with some many-to-many relations
  • New Twig function : config
  • Use our own RouterParser, wrapped around Slim's RouteParser. Allows to add 'fallback' routes when names routes are not found.

Bakery

  • Rework assets building command. This change allows new bakery command to update Npm assets, and eventually allows sprinkles to replace webpack with something else (eg. Vite). The new commands are :
    • assets:install : Alias for npm install.
    • assets:update : Alias for npm update.
    • assets:webpack : Alias for npm run dev, npm run build and npm run watch, each used to run Webpack Encore.
    • assets:build : Aggregator command for building assets. Includes by default assets:install and assets:webpack. Sub commands can be added to assets:build by listening to AssetsBuildCommandEvent.
    • The old webpack and build-assets command are still available, and now alias assets:build. bake also uses assets:build now.
  • New Bakery commands : serve & debug:twig
  • Add env for public URI, default back to empty string
  • Reenable CSRF protection for all routes.
  • Update DebugCommand : Split command into multiple subcommand and use DebugCommandEvent and DebugVerboseCommandEvent so custom command can be added to the debug command, like the bake command.
  • Add build-assets as alias to webpack command for legacy purpose.
  • Update for PHP-DI 7
  • Reenable clear-cache bakery command & route caching
  • Added AbstractInjector Middleware.
  • [Exceptions] SprunjeException now extends UserFacingException.
  • [Exceptions] UserFacingExceptionHandler renamed UserMessageExceptionHandler.
  • [Exceptions] ValidationExceptionHandler replaced removed (ValidationException now handled by UserMessageExceptionHandler).
  • [Exceptions] UserMessageExceptionHandler now add all UserMessageException interface instead of only UserFacingException class to alert stream and is used to handle all UserMessageException instead of UserFacingException.
  • [Exceptions] Added base UserFacingException and NotFoundException.
  • [Sprunje] Allow string for size and page option in applyPagination. Fix issue with Sprunje when $request->getQueryParams() is passed directly as Sprunje options.
  • Fix Array Cache store for testing
  • Add PHP 8.2 to test suite
  • [Model] Fix Call to a member function connection() on null issue with model query builder when no ConnectionResolver was available due to Eloquent not being booted yet.