renovate/lib/datasource
2020-12-18 19:13:14 +01:00
..
__snapshots__ feat(internal): datasource registryStrategy (#6549) 2020-06-19 21:29:34 +02:00
cdnjs refactor: use ls-lint (#7956) 2020-12-11 13:29:43 +01:00
clojure fix(clojure): set registryStrategy 2020-06-22 22:51:03 +02:00
crate refactor: use ls-lint (#7956) 2020-12-11 13:29:43 +01:00
dart refactor: use ls-lint (#7956) 2020-12-11 13:29:43 +01:00
docker refactor: use ls-lint (#7956) 2020-12-11 13:29:43 +01:00
galaxy refactor: use ls-lint (#7956) 2020-12-11 13:29:43 +01:00
git-refs build(deps): update dependency simple-git to v2 (#6783) 2020-07-21 14:52:24 +02:00
git-submodules chore(eslint): fixing some eslint warnings (#7382) 2020-10-05 18:12:01 +02:00
git-tags build(deps): update dependency simple-git to v2 (#6783) 2020-07-21 14:52:24 +02:00
github-releases refactor: use ls-lint (#7956) 2020-12-11 13:29:43 +01:00
github-tags refactor: use ls-lint (#7956) 2020-12-11 13:29:43 +01:00
gitlab-tags refactor: use ls-lint (#7956) 2020-12-11 13:29:43 +01:00
go refactor: use ls-lint (#7956) 2020-12-11 13:29:43 +01:00
gradle-version refactor: use ls-lint (#7956) 2020-12-11 13:29:43 +01:00
helm fix(helm-datasource): wrong commitMessageTopic template (#8074) 2020-12-18 19:13:14 +01:00
hex refactor: use ls-lint (#7956) 2020-12-11 13:29:43 +01:00
jenkins-plugins refactor: use ls-lint (#7956) 2020-12-11 13:29:43 +01:00
maven logs: debug unsupported maven protocol 2020-12-14 09:11:48 +01:00
npm refactor: use ls-lint (#7956) 2020-12-11 13:29:43 +01:00
nuget fix(nuget): don’t warn for 3.0.0-rc version 2020-12-13 12:09:17 +01:00
orb refactor: use ls-lint (#7956) 2020-12-11 13:29:43 +01:00
packagist refactor: use ls-lint (#7956) 2020-12-11 13:29:43 +01:00
pod refactor: use ls-lint (#7956) 2020-12-11 13:29:43 +01:00
pypi refactor: use ls-lint (#7956) 2020-12-11 13:29:43 +01:00
repology fix(repology): Correctly resolve packageName to repology project again (#7997) 2020-12-16 07:22:46 +01:00
ruby-version refactor: use ls-lint (#7956) 2020-12-11 13:29:43 +01:00
rubygems refactor: use ls-lint (#7956) 2020-12-11 13:29:43 +01:00
sbt-package refactor: convert all path to upath (#7712) 2020-11-12 21:46:08 +01:00
sbt-plugin refactor: convert all path to upath (#7712) 2020-11-12 21:46:08 +01:00
terraform-module refactor: use ls-lint (#7956) 2020-12-11 13:29:43 +01:00
terraform-provider refactor: use ls-lint (#7956) 2020-12-11 13:29:43 +01:00
cache.ts refactor: rename globalCache to packageCache (#6580) 2020-06-25 08:32:55 +02:00
common.ts feat(npm): migrate and deprecate unpublishSafe (#7464) 2020-12-11 10:09:58 +01:00
index.spec.ts feat: extractVersion (#7307) 2020-09-17 10:06:06 +02:00
index.ts chore(eslint): fixing some eslint warnings (#7382) 2020-10-05 18:12:01 +02:00
metadata.spec.ts fix(pypi): support more project urls (#6420) 2020-06-03 13:31:41 +02:00
metadata.ts feat: add datasource metadata (#7996) 2020-12-15 09:17:56 +01:00
readme.md refactor(datasource): getPkgReleases -> getReleases (#5867) 2020-04-04 08:53:52 +02: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.