renovate/lib/datasource
2019-10-15 10:14:49 +02:00
..
cargo fix: Registry failure on HTTP status =500 (#4546) 2019-09-26 12:13:32 +02:00
dart fix: Registry failure on HTTP status =500 (#4546) 2019-09-26 12:13:32 +02:00
docker fix(docker): ECR logging 2019-10-10 18:15:37 +02:00
git-tags chore(datasource): add more type annotations (#4312) 2019-08-19 16:44:11 +02:00
github chore(datasource): add more type annotations (#4312) 2019-08-19 16:44:11 +02:00
gitlab fix: typescript types (#4390) 2019-08-28 06:46:48 +02:00
go fix: Revert "refactor: use re2 instead of RegExp (#4441)" 2019-10-15 10:14:49 +02:00
gradle-version feat(datasource): convert to ts (#4183) 2019-08-15 06:30:16 +02:00
helm feat: helm requirements.yaml support (#3805) 2019-10-14 15:54:23 +02:00
hex feat: Elixir support (#4496) 2019-10-04 09:13:14 +02:00
maven fix(maven): Fixes issue with private maven registry on amazon s3 (#4646) 2019-10-15 06:40:39 +02:00
npm fix(datasource): parse npm repository (#4505) 2019-09-17 12:50:11 +02:00
nuget fix(datasource): nuget should check all feeds (#4504) 2019-09-17 12:55:22 +02:00
orb chore(datasource): add more type annotations (#4312) 2019-08-19 16:44:11 +02:00
packagist fix(packagist): registry-failure for ECONNRESET 2019-10-10 18:02:48 +02:00
pypi fix(pypi): Support devpi simple index URL. (#4508) 2019-09-18 10:27:32 +02:00
ruby-version fix: typescript types (#4390) 2019-08-28 06:46:48 +02:00
rubygems refactor: releaseDate -> releaseTimestamp 2019-08-25 06:28:01 +02:00
sbt chore(datasource): add more type annotations (#4312) 2019-08-19 16:44:11 +02:00
terraform chore(datasource): add more type annotations (#4312) 2019-08-19 16:44:11 +02:00
common.ts feat(worker): convert parts to typescript (#4388) 2019-09-03 07:25:32 +02:00
index.ts feat: helm requirements.yaml support (#3805) 2019-10-14 15:54:23 +02:00
metadata.ts feat(datasource): convert to ts (#4183) 2019-08-15 06:30:16 +02:00
readme.md feat: replace purl with datasource (#3154) 2019-02-04 09:41:22 +01:00

Datasources

Datasources are used in Renovate primarily to fetch released versions of packages.

getPkgReleases

The minimum exported interface for a datasource is a function called getPkgReleases that takes a lookup config as input.

The config contains:

  • lookupName: the package's full name including scope if present (e.g. @foo/bar)
  • lookupType: used only when there is a need to specify different types of lookups within the same datasource
  • registryUrls: an array of registry Urls to try

getPkgReleases should return an object containing:

  • releases: an array of strings of matched versions. This is the only mandatory field.
  • deprecationMessage: a string description of the package's deprecation notice, if applicable
  • sourceUrl: a HTTP URL pointing to the source code (e.g. on GitHub)
  • homepage: a HTTP URL for the package's homepage. Ideally should be empty if the homepage and sourceUrl are the same
  • changelogUrl: a URL pointing to the package's Changelog (could be a markdown file, for example). If not present then Renovate will search the sourceUrl for a changelog file.
  • tags: an object mapping tag -> version, e.g. tags: { latest: '3.0.0' }. This is only used by the followTags function.

getDigest

Datasources that support the concept of digests (e.g. docker digests and git commit hashes) also can export a getDigest function.

The getDigest function has two inputs:

  • config: the Renovate config for the package being updated, contains same fields as getPkgReleases
  • newValue: the version or value to retrieve the digest for

The getDigest function returns a string output representing the digest value. If none is found then a return value of null should be returned.

getPreset

This function is supported by npm, github and gitlab for retrieving a Renovate preset.