* refactor(datasource): migrate to class based datasource
A small experiment into what OOP/class based datasources might look like. Picked Cdnjs as it's the smallest & simplest.
With this approach we can share common logic, like error handling, rate limiting, etc. between different datasources, instead of having to reimplement it each time we write a new datasource. Currently there's nothing shared, as it's only 1 datasource, but the interesting stuff will come with the 2nd datasource
* Apply suggestions from code review
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
* remove renaming ClojureDatasource to datasource in tests
Co-authored-by: Rhys Arkins <rhys@arkins.net>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
Adds a new option extractVersion which allows for extracting a substring of raw versions from datasources, to be used as the actual version.
Closes#7297, Closes#6793
* feat(host-rules): support disabling hosts
Adds “enabled” to the list of recognized configuration options for hostRules. A host or domain can be disabled by setting `”enabled”: false` within the host rule. Also added presets :disabledHost() and :disableDomain().
* docs
* tests
* Update configuration-options.md
* fixes