-
HonkingGoose authoredHonkingGoose authored
readme.md 1.96 KiB
Datasources
Datasources are used in Renovate primarily to fetch released versions of packages.
Follow the class-based programming style
New datasources must follow the class-based programming style.
Use the adoptium-java
datasource as a reference.
Add the datasource to the API in api.ts
so that the new datasource is usable. If you find Pending mocks!
errors in the Jest tests and your mocked URLs are correct, ensure the datasource is correctly registered.
getReleases
The minimum exported interface for a datasource is a function called getReleases
that takes a lookup config as input.
The config has:
-
packageName
: the package's full name including scope if present (e.g.@foo/bar
) -
registryUrls
: an array of registry Urls to try
getReleases
should return an object having: