renovate/lib/modules/datasource
2023-03-18 18:44:56 +00:00
..
__snapshots__ test: use jest v29 (#17151) 2022-08-16 14:22:29 +02:00
artifactory refactor(datasource): use packageName and not depName for datasource lookups (#20474) 2023-03-10 09:34:40 +01:00
aws-machine-image refactor(datasource): use packageName and not depName for datasource lookups (#20474) 2023-03-10 09:34:40 +01:00
aws-rds refactor(datasource): use packageName and not depName for datasource lookups (#20474) 2023-03-10 09:34:40 +01:00
azure-bicep-resource feat: add datasource, versioning and manager for Azure Bicep resources (#20755) 2023-03-14 18:29:25 +00:00
azure-pipelines-tasks refactor(datasource): use packageName and not depName for datasource lookups (#20474) 2023-03-10 09:34:40 +01:00
bitbucket-tags fix(bitbucket): use correct case (#21002) 2023-03-17 12:13:37 +00:00
cdnjs refactor(datasource): use packageName and not depName for datasource lookups (#20474) 2023-03-10 09:34:40 +01:00
clojure refactor(datasource): use packageName and not depName for datasource lookups (#20474) 2023-03-10 09:34:40 +01:00
conan refactor(datasource): use packageName and not depName for datasource lookups (#20474) 2023-03-10 09:34:40 +01:00
conda refactor(datasource): use packageName and not depName for datasource lookups (#20474) 2023-03-10 09:34:40 +01:00
cpan refactor(datasource): use packageName and not depName for datasource lookups (#20474) 2023-03-10 09:34:40 +01:00
crate refactor(datasource): use packageName and not depName for datasource lookups (#20474) 2023-03-10 09:34:40 +01:00
dart refactor(datasource): use packageName and not depName for datasource lookups (#20474) 2023-03-10 09:34:40 +01:00
dart-version refactor(datasource): use packageName and not depName for datasource lookups (#20474) 2023-03-10 09:34:40 +01:00
deno fix(regex): don’t escape forward slash in fileMatch (#19314) 2023-03-10 09:34:39 +01:00
docker refactor(datasource): use packageName and not depName for datasource lookups (#20474) 2023-03-10 09:34:40 +01:00
dotnet-version refactor(datasource): use packageName and not depName for datasource lookups (#20474) 2023-03-10 09:34:40 +01:00
flutter-version refactor(datasource): use packageName and not depName for datasource lookups (#20474) 2023-03-10 09:34:40 +01:00
galaxy refactor(datasource): use packageName and not depName for datasource lookups (#20474) 2023-03-10 09:34:40 +01:00
galaxy-collection refactor(datasource): use packageName and not depName for datasource lookups (#20474) 2023-03-10 09:34:40 +01:00
git-refs refactor(datasource): use packageName and not depName for datasource lookups (#20474) 2023-03-10 09:34:40 +01:00
git-tags refactor(datasource): use packageName and not depName for datasource lookups (#20474) 2023-03-10 09:34:40 +01:00
github-release-attachments feat(datasource/github-releases)!: digest computation use git tag, not file digest (#20178) 2023-03-10 09:34:40 +01:00
github-releases feat(datasource/github-releases)!: digest computation use git tag, not file digest (#20178) 2023-03-10 09:34:40 +01:00
github-tags feat(datasource/github-releases)!: digest computation use git tag, not file digest (#20178) 2023-03-10 09:34:40 +01:00
gitlab-packages refactor(datasource): use packageName and not depName for datasource lookups (#20474) 2023-03-10 09:34:40 +01:00
gitlab-releases feat(versioning)!: default to semver-coerced instead of semver (#20573) 2023-03-10 09:34:41 +01:00
gitlab-tags feat(versioning)!: default to semver-coerced instead of semver (#20573) 2023-03-10 09:34:41 +01:00
go fix(bitbucket): use correct case (#21002) 2023-03-17 12:13:37 +00:00
golang-version refactor(datasource): use packageName and not depName for datasource lookups (#20474) 2023-03-10 09:34:40 +01:00
gradle-version refactor(datasource): use packageName and not depName for datasource lookups (#20474) 2023-03-10 09:34:40 +01:00
helm refactor(datasource): use packageName and not depName for datasource lookups (#20474) 2023-03-10 09:34:40 +01:00
hermit fix(regex): don’t escape forward slash in fileMatch (#19314) 2023-03-10 09:34:39 +01:00
hex refactor(datasource): use packageName and not depName for datasource lookups (#20474) 2023-03-10 09:34:40 +01:00
hexpm-bob refactor(datasource): use packageName and not depName for datasource lookups (#20474) 2023-03-10 09:34:40 +01:00
java-version refactor(datasource): use packageName and not depName for datasource lookups (#20474) 2023-03-10 09:34:40 +01:00
jenkins-plugins refactor(datasource): use packageName and not depName for datasource lookups (#20474) 2023-03-10 09:34:40 +01:00
kubernetes-api refactor(datasource): use packageName and not depName for datasource lookups (#20474) 2023-03-10 09:34:40 +01:00
maven refactor(datasource): use packageName and not depName for datasource lookups (#20474) 2023-03-10 09:34:40 +01:00
node refactor(datasource): use packageName and not depName for datasource lookups (#20474) 2023-03-10 09:34:40 +01:00
npm chore(logs): lower lookup logging (#21027) 2023-03-18 18:44:56 +00:00
nuget refactor(datasource): use packageName and not depName for datasource lookups (#20474) 2023-03-10 09:34:40 +01:00
orb refactor(datasource): use packageName and not depName for datasource lookups (#20474) 2023-03-10 09:34:40 +01:00
packagist refactor(datasource): use packageName and not depName for datasource lookups (#20474) 2023-03-10 09:34:40 +01:00
pod refactor(datasource): use packageName and not depName for datasource lookups (#20474) 2023-03-10 09:34:40 +01:00
puppet-forge refactor(datasource): use packageName and not depName for datasource lookups (#20474) 2023-03-10 09:34:40 +01:00
pypi refactor(datasource): use packageName and not depName for datasource lookups (#20474) 2023-03-10 09:34:40 +01:00
repology feat(versioning)!: default to semver-coerced instead of semver (#20573) 2023-03-10 09:34:41 +01:00
ruby-version refactor(datasource): use packageName and not depName for datasource lookups (#20474) 2023-03-10 09:34:40 +01:00
rubygems refactor(datasource): use packageName and not depName for datasource lookups (#20474) 2023-03-10 09:34:40 +01:00
sbt-package refactor(datasource): use packageName and not depName for datasource lookups (#20474) 2023-03-10 09:34:40 +01:00
sbt-plugin refactor(datasource): use packageName and not depName for datasource lookups (#20474) 2023-03-10 09:34:40 +01:00
terraform-module refactor(datasource): use packageName and not depName for datasource lookups (#20474) 2023-03-10 09:34:40 +01:00
terraform-provider refactor(datasource): use packageName and not depName for datasource lookups (#20474) 2023-03-10 09:34:40 +01:00
api.ts fix(bitbucket): use correct case (#21002) 2023-03-17 12:13:37 +00:00
common.ts refactor(datasource): prefer packageName over depName in datasource (#20221) 2023-03-10 09:34:41 +01:00
datasource.spec.ts test: add new wrapper for partial (#20618) 2023-02-25 06:46:32 +00:00
datasource.ts feat(sbt-package): Fallback to Maven datasource for GitLab packages (#16817) 2022-08-01 11:05:17 +00:00
index.spec.ts feat(datasource): support range constraints filtering (#20842) 2023-03-15 06:12:08 +00:00
index.ts feat(datasource): support range constraints filtering (#20842) 2023-03-15 06:12:08 +00:00
metadata-manual.ts fix: switch changelog urls from http to https (#16349) 2022-07-01 04:57:07 +00:00
metadata.spec.ts feat(helm): improve subdirectory support (#19181) 2022-12-09 12:48:20 +01:00
metadata.ts feat(helm): improve subdirectory support (#19181) 2022-12-09 12:48:20 +01:00
readme.md fix(datasource): rename adoptium-java to java-version (#20245) 2023-02-13 07:54:20 +00:00
types.ts refactor(datasource): use packageName and not depName for datasource lookups (#20474) 2023-03-10 09:34:40 +01:00

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 java-version 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:

  • 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, has the 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.