renovate/lib/modules/datasource
Maxime Brunet 0049a94180
feat(pypi): support GCloud credentials for Google Artifact Registry (#31262)
2024-09-14 05:59:16 +00:00
..
__snapshots__ fix(datasource): remove unnecessary PyPI changelog URL overrides (#27725) 2024-03-15 19:46:07 +00:00
artifactory feat(datasource): `sourceUrl` & `releaseTimestamp` support (#29122) 2024-05-21 07:04:12 +00:00
aws-machine-image chore: eslint to enforce for typed imports (#30844) 2024-08-19 13:15:27 +00:00
aws-rds chore: eslint to enforce for typed imports (#30844) 2024-08-19 13:15:27 +00:00
azure-bicep-resource fix(datasource/bicep): suppress resourceFunctions (#28379) 2024-04-16 07:41:58 +00:00
azure-pipelines-tasks refactor(prettier): Force trailing commas (#25631) 2023-11-07 15:50:29 +00:00
bazel fix(bazel): use bazel-module versioning for bazel datasource (#25649) 2023-11-08 15:42:36 +00:00
bitbucket-tags fix: Align cache decorator parameters (#30862) 2024-08-19 07:34:36 +00:00
bitrise feat(datasources): add bitrise datasource (#30138) 2024-07-25 17:51:00 +00:00
cdnjs refactor(cdnjs): Use single cache namespace (#31032) 2024-08-27 18:02:39 +00:00
clojure fix(maven): Return `isPrivate` flag for default repo (#31061) 2024-08-28 05:22:16 +00:00
conan refactor(conan): Use single cache namespace (#31033) 2024-08-27 03:31:46 +00:00
conda feat(datasource): `sourceUrl` & `releaseTimestamp` support (#29122) 2024-05-21 07:04:12 +00:00
cpan feat(datasource): `sourceUrl` & `releaseTimestamp` support (#29122) 2024-05-21 07:04:12 +00:00
crate chore: eslint to enforce for typed imports (#30844) 2024-08-19 13:15:27 +00:00
custom docs: fix broken link (#30383) 2024-07-25 17:01:50 +00:00
dart feat(datasource): `sourceUrl` & `releaseTimestamp` support (#29122) 2024-05-21 07:04:12 +00:00
dart-version feat(datasource): `sourceUrl` & `releaseTimestamp` support (#29122) 2024-05-21 07:04:12 +00:00
deb feat(datasource): add debian datasource (#30071) 2024-08-28 17:26:56 +00:00
deno refactor(deno): Use single cache namespace (#31034) 2024-08-27 03:48:21 +00:00
docker feat(self-hosted): convert experimental vars to config options (#29137) 2024-08-19 15:45:49 +00:00
dotnet-version feat(datasource): `sourceUrl` & `releaseTimestamp` support (#29122) 2024-05-21 07:04:12 +00:00
endoflife-date refactor: Rename `EndoflifeDatePackagesource` to `EndoflifeDateDatasource` (#30898) 2024-08-20 04:55:57 +00:00
flutter-version feat(datasource): `sourceUrl` & `releaseTimestamp` support (#29122) 2024-05-21 07:04:12 +00:00
galaxy chore(deps): update typescript-eslint monorepo to v8 (major) (#30750) 2024-08-14 10:33:02 +00:00
galaxy-collection refactor(galaxy-collection): Use single cache namespace (#31036) 2024-08-27 18:03:31 +00:00
git-refs chore: eslint to enforce for typed imports (#30844) 2024-08-19 13:15:27 +00:00
git-tags chore: eslint to enforce for typed imports (#30844) 2024-08-19 13:15:27 +00:00
gitea-releases feat(datasource): `sourceUrl` & `releaseTimestamp` support (#29122) 2024-05-21 07:04:12 +00:00
gitea-tags feat(datasource): `sourceUrl` & `releaseTimestamp` support (#29122) 2024-05-21 07:04:12 +00:00
github-release-attachments refactor(github): Use single cache namespace for release attachments (#31037) 2024-08-27 03:32:15 +00:00
github-releases feat(datasource): `sourceUrl` & `releaseTimestamp` support (#29122) 2024-05-21 07:04:12 +00:00
github-runners fix(datasource/github-runners): deprecate macOS 12 runners (#30931) 2024-08-26 12:05:20 +00:00
github-tags feat(datasource): `sourceUrl` & `releaseTimestamp` support (#29122) 2024-05-21 07:04:12 +00:00
gitlab-packages feat(datasource): `sourceUrl` & `releaseTimestamp` support (#29122) 2024-05-21 07:04:12 +00:00
gitlab-releases feat(datasource): `sourceUrl` & `releaseTimestamp` support (#29122) 2024-05-21 07:04:12 +00:00
gitlab-tags refactor(gitlab-tags): Use single cache namespace (#31038) 2024-08-27 16:56:32 +00:00
glasskube-packages chore: eslint to enforce for typed imports (#30844) 2024-08-19 13:15:27 +00:00
go fix(go): Use more specific cache key for `getDigest()` (#31168) 2024-09-03 03:59:14 +00:00
golang-version feat(datasource): `sourceUrl` & `releaseTimestamp` support (#29122) 2024-05-21 07:04:12 +00:00
gradle-version chore: eslint to enforce for typed imports (#30844) 2024-08-19 13:15:27 +00:00
helm feat(datasource): `sourceUrl` & `releaseTimestamp` support (#29122) 2024-05-21 07:04:12 +00:00
hermit refactor(hermit): Use single cache namespace (#31052) 2024-08-27 19:27:32 +00:00
hex fix(datasource/hex): allow custom registries (#29534) 2024-06-08 07:12:18 +00:00
hexpm-bob feat(datasource): `sourceUrl` & `releaseTimestamp` support (#29122) 2024-05-21 07:04:12 +00:00
java-version refactor(prettier): Force trailing commas (#25631) 2023-11-07 15:50:29 +00:00
jenkins-plugins refactor(jenkins): Rename cache namespace (#30868) 2024-08-19 05:45:50 +00:00
kubernetes-api refactor(prettier): Force trailing commas (#25631) 2023-11-07 15:50:29 +00:00
maven refactor(maven): Change signatures for S3 resource checks (#31269) 2024-09-09 05:22:03 +00:00
node-version feat(datasource): `sourceUrl` & `releaseTimestamp` support (#29122) 2024-05-21 07:04:12 +00:00
npm feat(packageRules): migrate matchers and excludes (#28602) 2024-07-25 15:28:16 +02:00
nuget refactor(nuget): Rename cache namespace (#30880) 2024-08-19 15:39:58 +00:00
orb fix(datasource/orb): retrieve more releases (#31165) 2024-09-02 17:27:26 +00:00
packagist refactor(packagist): Use single cache namespace (#31053) 2024-08-27 19:26:53 +00:00
pod refactor(prettier): Force trailing commas (#25631) 2023-11-07 15:50:29 +00:00
puppet-forge feat(datasource): `sourceUrl` & `releaseTimestamp` support (#29122) 2024-05-21 07:04:12 +00:00
pypi feat(pypi): support GCloud credentials for Google Artifact Registry (#31262) 2024-09-14 05:59:16 +00:00
python-version refactor: Rename `EndoflifeDatePackagesource` to `EndoflifeDateDatasource` (#30898) 2024-08-20 04:55:57 +00:00
repology refactor(repology): Rename cache namespace (#30881) 2024-08-19 15:27:20 +00:00
ruby-version feat(datasource): `sourceUrl` & `releaseTimestamp` support (#29122) 2024-05-21 07:04:12 +00:00
rubygems chore: eslint to enforce for typed imports (#30844) 2024-08-19 13:15:27 +00:00
sbt-package fix(sbt-plugin): add new default registry URL (#29648) 2024-07-01 09:54:33 +00:00
sbt-plugin fix(sbt-plugin): add new default registry URL (#29648) 2024-07-01 09:54:33 +00:00
terraform-module feat(datasource): `sourceUrl` & `releaseTimestamp` support (#29122) 2024-05-21 07:04:12 +00:00
terraform-provider refactor(terraform-provider): Use single cache namespace (#31054) 2024-08-28 05:24:41 +00:00
unity3d chore: eslint to enforce for typed imports (#30844) 2024-08-19 13:15:27 +00:00
api.ts feat(datasource): add debian datasource (#30071) 2024-08-28 17:26:56 +00:00
common.spec.ts fix(constraintsFiltering): match exact string (#28868) 2024-05-06 13:06:53 +00:00
common.ts chore: improve logging for constraintsFiltering (#30280) 2024-07-21 08:04:05 +00:00
datasource.spec.ts refactor(prettier): Force trailing commas (#25631) 2023-11-07 15:50:29 +00:00
datasource.ts feat(datasource): `sourceUrl` & `releaseTimestamp` support (#29122) 2024-05-21 07:04:12 +00:00
index.spec.ts chore(deps): update typescript-eslint monorepo to v8 (major) (#30750) 2024-08-14 10:33:02 +00:00
index.ts feat: Stats for datasource cache (#30623) 2024-08-11 08:07:16 +00:00
metadata-manual.ts refactor(lib/data): move metadata-manual to lib/data (#30260) 2024-07-30 13:04:32 +00:00
metadata.spec.ts fix(datasource): remove unnecessary PyPI changelog URL overrides (#27725) 2024-03-15 19:46:07 +00:00
metadata.ts chore(deps): update typescript-eslint monorepo to v8 (major) (#30750) 2024-08-14 10:33:02 +00:00
readme.md docs: improve datasource readme (#23653) 2023-08-03 18:09:19 +00:00
schema.ts fix(datasource/cdnjs): update logic to accomodate api changes (#27212) 2024-02-11 10:57:56 +00:00
types.ts fix(sbt-plugin): add new default registry URL (#29648) 2024-07-01 09:54:33 +00:00
util.ts refactor(prettier): Force trailing commas (#25631) 2023-11-07 15:50:29 +00:00
utils.spec.ts refactor(prettier): Force trailing commas (#25631) 2023-11-07 15:50:29 +00:00

readme.md

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.