Commit graph

28 commits

Author SHA1 Message Date
Sergei Zharinov
5f4b9f9a3a
test: Fix test descriptions and enforce it via new linting rule (#11285) 2021-08-18 05:46:56 +00:00
Michael Kriese
4437106c03
test: add http mock (#11290) 2021-08-16 20:07:36 +02:00
Sergei Zharinov
71de9dc606
refactor(datasource): More explicit snapshot tests (#11199)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2021-08-10 11:24:32 +00:00
Sergei Zharinov
1392955a04
refactor: Identify tests relying on single snapshots (#11150)
Co-authored-by: Jamie Magee <jamie.magee@gmail.com>
2021-08-07 23:43:34 +00:00
Jamie Magee
3c31090469
refactor(galaxy): refactor ansible galaxy to a class (#10346) 2021-06-08 17:20:39 +02:00
Jamie Magee
621b77b2c7
refactor(datasource): migrate to class based datasource (#6747)
* 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>
2021-05-21 07:40:09 +02:00
Sergei Zharinov
ce51f05cef
feat(test): Detect test utils callers and simplify helpers (#9707) 2021-04-26 16:15:03 +02:00
Rhys Arkins
06c246ea02
feat(internal): fixedRegistries (#9124) 2021-03-14 20:58:47 +01:00
Michael Kriese
74d7691bef
refactor: optimize type usage (#8947) 2021-03-02 21:44:55 +01:00
Michael Kriese
91d2b4e1c5
feat: static modules (#8679)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2021-03-02 16:57:02 +01:00
Rhys Arkins
62bc64970a
feat: extractVersion (#7307)
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
2020-09-17 10:06:06 +02:00
Michael Kriese
e48ffa650a
feat(internal): make datasource loading syncronous (#6748) 2020-07-15 13:12:50 +02:00
Rhys Arkins
e95bd0ba3d
feat(host-rules): add support for disabling hosts (#6715)
* 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
2020-07-09 17:34:26 +02:00
Rhys Arkins
b69d4f29e5 refactor: add try/catch and logging to datasource wrapper 2020-06-25 09:37:26 +02:00
Rhys Arkins
031ad87b62 refactor: move ExternalHostError 2020-06-23 11:44:52 +02:00
Rhys Arkins
52a074e041
refactor: ExternalHostError (#6563) 2020-06-22 21:28:02 +02:00
Rhys Arkins
3d8e3ad12d
feat(internal): datasource registryStrategy (#6549) 2020-06-19 21:29:34 +02:00
Rhys Arkins
98681344c2 datasource/index 2020-06-19 10:11:24 +02:00
Rhys Arkins
53ca91301f
chore: import linting (#6105) 2020-05-01 18:03:48 +02:00
Rhys Arkins
f9c8cb46e2
refactor(datasource): getPkgReleases -> getReleases (#5867) 2020-04-04 08:53:52 +02:00
Michael Kriese
ae3d71387e
feat(internal): generate dynamic datasource imports (#5500) 2020-03-24 07:17:59 +01:00
Rhys Arkins
c60737a285 fix: revert datasource error handling changes 2020-03-12 12:48:57 +01:00
Rhys Arkins
bce6036a8e
fix: move datasource error handling into index (#5662) 2020-03-07 12:13:31 +01:00
Rhys Arkins
8ac0f571ff
fix(datasource): centralize lookupName check (#5661) 2020-03-07 10:19:47 +01:00
Rhys Arkins
6293edc19a
feat: replace datasource constants with IDs (#5595)
Co-Authored-By: Michael Kriese <michael.kriese@visualon.de>
2020-03-01 08:01:12 +01:00
Rhys Arkins
b610cf4dae
feat: rename github/gitlab datasources (#5581) 2020-02-27 21:36:31 +01:00
Rhys Arkins
2e0b2965ff chore: add datasource getters 2020-02-18 21:41:00 +01:00
Michael Kriese
26c03731a4
chore(datasource): move test files to lib (#5426) 2020-02-11 05:08:10 +00:00
Renamed from test/datasource/index.spec.ts (Browse further)