renovate/lib/datasource
2021-04-01 18:09:36 +02:00
..
__snapshots__ feat(internal): return registryUrl from datasources (#9177) 2021-03-17 13:34:47 +01:00
bitbucket-tags feat(internal): return registryUrl from datasources (#9177) 2021-03-17 13:34:47 +01:00
cdnjs feat(internal): return registryUrl from datasources (#9177) 2021-03-17 13:34:47 +01:00
clojure refactor: customRegistrySupport (#9142) 2021-03-15 13:56:23 +01:00
crate feat(internal): return registryUrl from datasources (#9177) 2021-03-17 13:34:47 +01:00
dart feat(internal): return registryUrl from datasources (#9177) 2021-03-17 13:34:47 +01:00
docker feat(internal): return registryUrl from datasources (#9177) 2021-03-17 13:34:47 +01:00
galaxy feat(internal): return registryUrl from datasources (#9177) 2021-03-17 13:34:47 +01:00
git-refs refactor: customRegistrySupport (#9142) 2021-03-15 13:56:23 +01:00
git-tags refactor: customRegistrySupport (#9142) 2021-03-15 13:56:23 +01:00
github-releases feat(internal): return registryUrl from datasources (#9177) 2021-03-17 13:34:47 +01:00
github-tags feat(internal): return registryUrl from datasources (#9177) 2021-03-17 13:34:47 +01:00
gitlab-tags feat(internal): return registryUrl from datasources (#9177) 2021-03-17 13:34:47 +01:00
go refactor: customRegistrySupport (#9142) 2021-03-15 13:56:23 +01:00
gradle-version feat(gradle-version): support unstable (#9262) 2021-03-24 07:24:14 +00:00
helm feat(internal): return registryUrl from datasources (#9177) 2021-03-17 13:34:47 +01:00
hex feat(internal): return registryUrl from datasources (#9177) 2021-03-17 13:34:47 +01:00
jenkins-plugins feat(internal): return registryUrl from datasources (#9177) 2021-03-17 13:34:47 +01:00
maven feat(internal): return registryUrl from datasources (#9177) 2021-03-17 13:34:47 +01:00
npm fix(npm): is.string check for npmrc 2021-04-01 18:09:36 +02:00
nuget feat(internal): return registryUrl from datasources (#9177) 2021-03-17 13:34:47 +01:00
orb feat(internal): return registryUrl from datasources (#9177) 2021-03-17 13:34:47 +01:00
packagist feat(internal): return registryUrl from datasources (#9177) 2021-03-17 13:34:47 +01:00
pod feat(internal): return registryUrl from datasources (#9177) 2021-03-17 13:34:47 +01:00
pypi feat(internal): return registryUrl from datasources (#9177) 2021-03-17 13:34:47 +01:00
repology feat(internal): return registryUrl from datasources (#9177) 2021-03-17 13:34:47 +01:00
ruby-version feat(internal): return registryUrl from datasources (#9177) 2021-03-17 13:34:47 +01:00
rubygems feat(internal): return registryUrl from datasources (#9177) 2021-03-17 13:34:47 +01:00
sbt-package feat(internal): return registryUrl from datasources (#9177) 2021-03-17 13:34:47 +01:00
sbt-plugin feat(internal): return registryUrl from datasources (#9177) 2021-03-17 13:34:47 +01:00
terraform-module feat(internal): return registryUrl from datasources (#9177) 2021-03-17 13:34:47 +01:00
terraform-provider feat(internal): return registryUrl from datasources (#9177) 2021-03-17 13:34:47 +01:00
api.ts refactor: remove git-submodules datasource (#9128) 2021-03-15 06:11:46 +00:00
common.ts refactor: optimize type usage (#8947) 2021-03-02 21:44:55 +01:00
index.spec.ts feat(internal): fixedRegistries (#9124) 2021-03-14 20:58:47 +01:00
index.ts feat(internal): return registryUrl from datasources (#9177) 2021-03-17 13:34:47 +01:00
metadata.spec.ts feat(datasource): Normalize releaseTimestamp field (#8753) 2021-02-18 15:04:14 +01:00
metadata.ts Add sharp to manualChangelogUrls (#9320) 2021-03-30 05:42:34 +02:00
readme.md docs: capitalize proper noun Docker (#9197) 2021-03-18 13:06:56 +00:00
types.ts feat(internal): return registryUrl from datasources (#9177) 2021-03-17 13:34:47 +01:00

Datasources

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

getReleases

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

The config contains:

  • lookupName: 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 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 getReleases
  • 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.