renovate/lib/modules/datasource
2023-11-01 10:51:35 +00:00
..
__snapshots__ test: use jest v29 (#17151) 2022-08-16 14:22:29 +02:00
artifactory chore: update types reference 2023-08-15 11:31:15 +02:00
aws-machine-image feat(migrate): regexManagers -> customManagers (#24451) 2023-09-24 08:55:56 +00:00
aws-rds feat(migrate): regexManagers -> customManagers (#24451) 2023-09-24 08:55:56 +00:00
azure-bicep-resource refactor(azure-bicep-resource): Refactor schema usage (#21402) 2023-04-11 14:41:41 +00:00
azure-pipelines-tasks feat(datasource/azure-pipeline-tasks): read tasks from cdn (#22864) 2023-06-21 05:42:10 +00:00
bazel fix(datasource/bazel): use registryStrategy=hunt (#25520) 2023-11-01 10:51:35 +00:00
bitbucket-tags chore(deps): update dependency typescript to v5.2.2 (#24191) 2023-09-16 07:46:27 +00:00
cdnjs refactor(result): Reoder parameters for Result.parse (#24098) 2023-08-26 16:06:30 +00:00
clojure refactor(datasource): use packageName and not depName for datasource lookups (#20474) 2023-03-10 09:34:40 +01:00
conan fix: regEx definitions that used regex literal and separate flags (#24626) 2023-09-24 05:21:18 +00:00
conda fix: better branch code coverage (#24270) 2023-09-06 11:26:22 +00:00
cpan fix(datasource/cpan): add module.authorized condition for querying releases (#22445) 2023-05-27 03:43:46 +00:00
crate chore: update types reference 2023-08-15 11:31:15 +02:00
custom feat(migrate): regexManagers -> customManagers (#24451) 2023-09-24 08:55:56 +00:00
dart refactor(datasource): use packageName and not depName for datasource lookups (#20474) 2023-03-10 09:34:40 +01:00
dart-version fix: better branch code coverage (#24270) 2023-09-06 11:26:22 +00:00
deno chore: update types reference 2023-08-15 11:31:15 +02:00
docker feat(datasource/maven): Add Artifact Registry support via Google ADC (#24657) 2023-10-15 06:29:29 +00:00
dotnet-version refactor(schema): Enhanced "loose" collections (#21541) 2023-04-21 08:25:48 +00:00
endoflife-date feat(migrate): regexManagers -> customManagers (#24451) 2023-09-24 08:55:56 +00:00
flutter-version fix: better branch code coverage (#24270) 2023-09-06 11:26:22 +00:00
galaxy fix(datasource/galaxy): difference between v1 API on old implementation and new (#25257) 2023-10-17 13:04:00 +00:00
galaxy-collection fix(datasource/galaxy): use new hostname for existing API implementation (#25191) 2023-10-13 12:19:50 +00:00
git-refs docs: rewrite git-refs readme (#24643) 2023-09-25 14:03:07 +00:00
git-tags test(git-refs/git-tags): add types to mocked objects (#23096) 2023-07-03 19:20:06 +00:00
gitea-releases chore(deps): update dependency typescript to v5.2.2 (#24191) 2023-09-16 07:46:27 +00:00
gitea-tags chore(deps): update dependency typescript to v5.2.2 (#24191) 2023-09-16 07:46:27 +00:00
github-release-attachments refactor: replace hasha.fromStream with new fn hashStream (#25046) 2023-10-20 07:49:09 +00:00
github-releases test(perf): improve test speed (#24323) 2023-09-08 11:40:04 +00:00
github-runners feat(github-actions): support GitHub actions runners (#23633) 2023-08-08 19:59:41 +00:00
github-tags test(perf): improve test speed (#24323) 2023-09-08 11:40:04 +00:00
gitlab-packages feat(migrate): regexManagers -> customManagers (#24451) 2023-09-24 08:55:56 +00:00
gitlab-releases feat(migrate): regexManagers -> customManagers (#24451) 2023-09-24 08:55:56 +00:00
gitlab-tags feat(migrate): regexManagers -> customManagers (#24451) 2023-09-24 08:55:56 +00:00
go feat(go): Add support for Go host code.cloudfoundry.org (#25173) 2023-10-13 18:31:41 +00:00
golang-version refactor: exactOptionalPropertyTypes (#20761) 2023-03-19 16:09:46 +00:00
gradle-version chore: update types reference 2023-08-15 11:31:15 +02:00
helm test(perf): improve test speed (#24323) 2023-09-08 11:40:04 +00:00
hermit fix: better branch code coverage (#24270) 2023-09-06 11:26:22 +00:00
hex test(perf): improve test speed (#24323) 2023-09-08 11:40:04 +00:00
hexpm-bob fix: better branch code coverage (#24274) 2023-09-06 13:35:52 +00:00
java-version chore: update types reference 2023-08-15 11:31:15 +02:00
jenkins-plugins feat(jenkins-plugins): Add support for custom registries (#25358) 2023-10-25 09:03:04 +00:00
kubernetes-api feat(datasource/kubernetes-api): add flux types (#23442) 2023-07-19 08:12:15 +00:00
maven feat(datasource/maven): Add Artifact Registry support via Google ADC (#24657) 2023-10-15 06:29:29 +00:00
node-version chore: update types reference 2023-08-15 11:31:15 +02:00
npm test(perf): improve test speed (#24323) 2023-09-08 11:40:04 +00:00
nuget fix(nuget): gracefully accept a lack of a PackageBaseAddress resource (#25355) 2023-10-26 18:18:11 +00:00
orb refactor(datasource): use packageName and not depName for datasource lookups (#20474) 2023-03-10 09:34:40 +01:00
packagist refactor(packagist): Remove confusing schema error (#25243) 2023-10-17 05:55:21 +00:00
pod test(perf): improve test speed (#24323) 2023-09-08 11:40:04 +00:00
puppet-forge chore: update types reference 2023-08-15 11:31:15 +02:00
pypi test(perf): improve test speed (#24323) 2023-09-08 11:40:04 +00:00
repology feat(migrate): regexManagers -> customManagers (#24451) 2023-09-24 08:55:56 +00:00
ruby-version chore: update types reference 2023-08-15 11:31:15 +02:00
rubygems fix(rubygems): Ensure consistency between versions and metadata (#25127) 2023-10-30 13:37:56 +00:00
sbt-package fix: better branch code coverage (#24270) 2023-09-06 11:26:22 +00:00
sbt-plugin refactor(datasource): use packageName and not depName for datasource lookups (#20474) 2023-03-10 09:34:40 +01:00
terraform-module feat(terraform-module): always use 'source' as sourceUrl when available (#25008) 2023-10-04 13:48:32 +00:00
terraform-provider feat(terraform): Fetch ziphash for lock refreshes (#25059) 2023-10-30 08:59:21 +00:00
api.ts feat(datasource): add gitea-releases (#24140) 2023-08-29 12:56:08 +00:00
common.spec.ts feat: versionCompatibility (#24717) 2023-10-02 09:55:01 +00:00
common.ts feat: versionCompatibility (#24717) 2023-10-02 09:55:01 +00:00
datasource.spec.ts fix: improve branch coverage (#24282) 2023-09-08 10:56:56 +00:00
datasource.ts fix: improve branch coverage (#24282) 2023-09-08 10:56:56 +00:00
index.spec.ts fix: improve branch coverage (#24282) 2023-09-08 10:56:56 +00:00
index.ts feat: versionCompatibility (#24717) 2023-10-02 09:55:01 +00:00
metadata-manual.ts feat: override docker and helm package metadata (#19901) 2023-09-23 07:21:24 +00:00
metadata.spec.ts fix: improve branch coverage (#24282) 2023-09-08 10:56:56 +00:00
metadata.ts feat(helm): improve subdirectory support (#19181) 2022-12-09 12:48:20 +01:00
readme.md docs: improve datasource readme (#23653) 2023-08-03 18:09:19 +00:00
schema.ts refactor(cdnjs): Use zod schema and Result class (#23588) 2023-07-29 17:54:49 +00:00
types.ts feat: versionCompatibility (#24717) 2023-10-02 09:55:01 +00:00
util.ts feat(datasource/maven): Add Artifact Registry support via Google ADC (#24657) 2023-10-15 06:29:29 +00:00
utils.spec.ts feat(datasource/maven): Add Artifact Registry support via Google ADC (#24657) 2023-10-15 06:29:29 +00: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, make sure 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 (for example 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, for example tags: { latest: '3.0.0' }. This is only used by the followTags function

getDigest

Datasources that support digests (like Docker digests and Git commit hashes) 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 no digest is found, the getDigest function should return null.