github mikespub-org/seblucas-cops 3.1.1
3.1.1 Release candidate for COPS 3.x

latest releases: 3.2.2, 3.2.1, 3.2.0...
10 days ago

Overview

This is a release candidate for the new COPS 3.x code base. There are only minor functional changes (filter links), but the config files have moved, and all links in COPS now use route URLs by default.

Please report any issues or submit pull requests if you notice any bugs - thanks!

Breaking changes for 3.x release (PHP >= 8.2)

For everyone

  • move your customized config_local.php file to config/local.php on the web server/container
  • replace any feed.php links with index.php/feed for OPDS feeds in your e-reader

Less common

  • if you map the lib/ or test/ directory somewhere, like a docker compose file, web server config etc. you'll need to replace that with src/ or tests/ respectively
  • if you use other endpoints for links elsewhere, like the REST API for a widget, you'll need to use route URLs and replace restapi.php with index.php/restapi etc.

Change log

3.1.1 - 20240909 Release candidate for 3.x

  • Changes in config/default.php file:
    • new $config['cops_front_controller'] = '' value
  • Set front controller to remove index.php/ from route URLs

3.1.0 - 20240908 Breaking changes for 3.x

  • Changes in config/default.php file:
    • set $config['cops_use_route_urls'] = '1' as default
    • new $config['cops_twig_templates'] = ['twigged'] list
  • Split off templates from HtmlRenderer
  • BC: Redirect other endpoints + add deprecations
  • Split off RouteTest + fix route urls
  • Add basic middleware dispatcher
  • BC: Enable route urls by default in config/default.php
  • BC: Move config_.php files to config/.php to align dir structure
  • BC: Rename lib/ to src/ and test/ to tests/ to align dir structure

3.0.0 - 20240905 Update requirements (PHP >= 8.2)

  • Update phpunit tests + upgrade code with rector

2.8.2 - 20240905 More clean-up of handlers & renderers

  • Expand Data mimetypes to cover common EPUB file components
  • Add Response class + move notFound() + add redirect() and sendError()
  • Rename FileRenderer to FileResponse and inherit from Response
  • Replace header() and echo with Response() in handlers
  • Use FileResponse::sendFile() for covers and thumbnails
  • Fix monocle epub reader when using route urls
  • Move getting zip content from ZipFsHandler to EPubReader
  • Add GraphQL query field tests
  • Show filters in main page for bootstrap2 and twigged templates
  • Show links to PAGE_ALL in filters page to find all authors etc. for a filter
  • Pass along Response() from handler to renderer + align constructor args

Full Changelog: 2.8.1...3.1.1

Don't miss a new seblucas-cops release

NewReleases is sending notifications on new releases.