What's new
- Search in book comments and/or extra notes
- Support configuration per user and/or database consistently
- Use new Framework + refactor Database
Reminder: COPS 4.x releases require PHP 8.4+
Change log
4.5.1 - 20260623 Clean up refactor + search in comments and notes
- Changes in config/default.php file:
- new $config['cops_search_comments'] to search in book comments
- new $config['cops_search_notes'] to search in extra notes
- new $config['cops_search_strip_html'] to strip html tags for search
- Change Note fields to align with other Calibre classes + adapt API providers
- Add new search options for book comments or extra notes - see issue #174 from @cslondon
- Move Database classes and CustomColumns classes to their own namespace
- Remove deprecated static Database methods
4.4.11 - 20260621 Use config per request + refactor Database context
- Changes in config/default.php file:
- new $config['cops_templates_directory'] to adapt templates directory
- Update php/npm packages
- Deprecate most static Database methods for clean-up in next release
- Use DatabaseContext in constructors instead of database + config
- Use DatabaseContext in static methods instead of database + config
- Add HasDatabaseTrait to simplify Database method calls in classes
- Adapt other classes to make use of RequestConfig
- Refactor Database to use RequestConfig and split off DatabaseConnection
- Add RequestConfig to store user- and/or database-specific config
- Add HasConfigTrait to use instance method $this->config() in classes
- Add SessionInterface to allow other frameworks to replace Session
- Add HasLocaleTrait to pass along request locale to classes
- Change localize() and Translation to work with request locale
- Move RequestContext from HandlerManager to createHandler()
- Use Config::get('templates_directory') for templates directory
- Rename legacy and todo framework classes
- Remove deprecated FastRouter class based on nikic/fast-route
- Replace closures with arrow functions (rector)
- Update portuguese translation - see PR #173 from @horus68
Full Changelog: 4.3.5...4.5.1