26 Commits

Author SHA1 Message Date
Michael Kriese 320f770c36 fix(cache): hash URL credentials in cache keys
Co-Authored-By: Claude Fable 5.1 <michael.kriese+claude-code@mend.io>
Co-Authored-By: Claude Opus 5 <michael.kriese+claude-code@mend.io>
Co-Authored-By: Claude Opus 5.5 <michael.kriese+claude-code@mend.io>
2026-10-20 09:05:00 +01:00
Jamie Tanna 1886fd23ba chore(datasource): downgrade log level to TRACE (#43010)
This gets very noisy quickly, otherwise.

And add a `.once` so there's some level of insight.
2026-04-30 19:49:52 +00:00
Jamie Tanna e37388d91f feat: allow separate versioning for constraints (#42966)
* feat: allow separate versioning for constraints

As noted in #31831, there are times where it can be useful to override
the version that a given datasource uses, when performing
`constraintsFiltering=strict.`

This should only be applicable to the "additional" constraints, so we
make sure to validate this.

As this is new functionality, any misconfiguration should be marked as
an error.

We can make sure to provide a real-world usecase for this (taking
inspiration from `rails`' versioning of the `rubygems` constraint).

This will be used in the future by the extraction of the `go` directive,
which requires a different versioning to the default `semver`.

* fixup! feat: allow separate versioning for constraints

* fixup! feat: allow separate versioning for constraints

Co-authored-by: Claude Sonnet 4.6 <jamie.tanna+claude-code@mend.io>

* extra-log-context

---------

Co-authored-by: Claude Sonnet 4.6 <jamie.tanna+claude-code@mend.io>
2026-04-29 13:00:15 +00:00
Jamie Tanna 3049ef2244 chore(datasource): fix log messages (#42963) 2026-04-28 09:52:40 +00:00
Jamie Tanna 423aa9ff3f fix(datasource): handle both config and release constraints as a range (#42922)
* chore(datasource): add missing parentheses

* fix(datasource): handle both config and release constraints as a range

In the case that the user's config is a range, but the release itself
provides an exact value for the constraint, we currently do not
correctly filter it.
2026-04-27 14:24:02 +00:00
Jamie Tanna a8310d0be5 chore(datasource): add trace logging for applyConstraintsFiltering (#42929)
* chore(datasource): add trace logging for `applyConstraintsFiltering`

As a way to provide more additional information to users who are
debugging when `constraintsFiltering=strict`, we can add some TRACE
logs.

We can use the prefix `applyConstraintsFiltering` for all log lines, so
we can use `logLevelRemap` more easily.

* test(datasource): add coverage

Co-authored-by: Claude Sonnet 4.6 <jamie.tanna+claude-code@mend.io>

---------

Co-authored-by: Claude Sonnet 4.6 <jamie.tanna+claude-code@mend.io>
2026-04-27 12:38:42 +00:00
Jamie Tanna 300035a700 chore(workers/repository): provide more detail when rolling back (#42818)
* chore(workers/repository): provide more detail when rolling back

To help debug the case where rollbacks are being initiated, we can:

- add slightly more information to the `Filtered out ...` log line
- add `prBodyNotes` to the resulting PR

This requires we expose the `prBodyNotes` field to `LookupUpdate`, and
the `packageName` and `datasource` to `RollbackConfig`, so we can log
them.

* chore(modules/datasource): log `datasource` and `packageName` when filtering

For more context when reviewing the logs.
2026-04-24 16:23:45 +00:00
Jamie Tanna 1044a80642 chore(types): add a strong type for ToolName and ConstraintName (#42589)
* chore(types): add a strong type for `ToolName`s

Until #41849, we can use our local definitions of the tool names that
Containerbase supports by extracting out a `ToolName` type.

* fixup! chore(types): add a strong type for `ToolName`s

Co-authored-by: Claude Opus 4.6 <jamie.tanna+claude-code@mend.io>
Co-authored-by: gpt-4.1 <jamie.tanna+github-copilot@mend.io>

* fixup! fixup! chore(types): add a strong type for `ToolName`s

* no-never

* simplify

* coverage

* sq

* warn

* sq

* fixup! sq

* sq

* fixup! sq

---------

Co-authored-by: Claude Opus 4.6 <jamie.tanna+claude-code@mend.io>
Co-authored-by: gpt-4.1 <jamie.tanna+github-copilot@mend.io>
2026-04-14 08:55:42 +00:00
Sergei Zharinov 9d857c1f68 refactor(lint): Organize imports with biome (#40966) 2026-02-06 13:40:01 +00:00
Sergei Zharinov 930cf6633c refactor: Rewrite imports with .ts extensions (#40700)
fix: Additional vi.mock path corrections and prettier formatting
2026-01-26 22:48:17 +00:00
Björn Kautler 1e3d87393e fix(maven): preserve the original version when versionCompatibility is used for later lookup (#38906)
Without this, the Maven data source throws out all candidates in postprocessRelease as it cannot find the
releases by version which is not the original version anymore unless als extractVersion was used

Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2025-12-15 09:05:33 +00:00
RahulGautamSingh 76f911041a refactor: use named exports (#39196)
* use named exports

* fix test

* add missing imnport

* fix prettier
2025-11-10 12:00:35 +00:00
Sergei Zharinov cb7c10bb9d fix: Handle extractVersion with release post-processing (#32540) 2024-11-16 10:32:33 +00:00
Rhys Arkins e2a7586466 chore: improve logging for constraintsFiltering (#30280) 2024-07-21 08:04:05 +00:00
Rhys Arkins e54a56f277 chore: trace logging for versionCompatibility (#30261) 2024-07-20 17:09:23 +00:00
Rhys Arkins 14628971b5 fix(constraintsFiltering): match exact string (#28868) 2024-05-06 13:06:53 +00:00
Sergei Zharinov 726e3e4e4e fix(datasource): Check release constraints validity (#27191) 2024-02-12 19:24:58 +00:00
Sergei Zharinov b69416ce17 refactor(prettier): Force trailing commas (#25631) 2023-11-07 15:50:29 +00:00
Rhys Arkins 42b3a7c046 feat: versionCompatibility (#24717) 2023-10-02 09:55:01 +00:00
Sergei Zharinov 17bf7d7ed9 refactor: Reuse datasource filtering (#23716) 2023-08-07 20:02:57 +00:00
Sergei Zharinov 009a665293 test(datasource): Add tests for common.ts (#23669) 2023-08-02 22:22:59 +00:00
Sergei Zharinov 45328c57b6 refactor: Extract datasource result filters to separate file (#23587) 2023-07-28 08:09:41 +00:00
MartijnLeijssen-TomTom f611217289 feat(datasource/conan): add sourceUrl when artifactory is used (#22656)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2023-06-15 15:56:54 +00:00
Rhys Arkins d53d39bf0a refactor(datasource): prefer packageName over depName in datasource (#20221) 2023-03-10 09:34:41 +01:00
Rhys Arkins b17bcf2789 refactor(datasource): use packageName and not depName for datasource lookups (#20474) 2023-03-10 09:34:40 +01:00
Rhys Arkins dca3418bbd refactor: lib/modules (#14488)
Moves datasource, manager, platform and versioning code from lib/ into new lib/modules/

BREAKING CHANGE: External tools must update paths to datasource, manager, platform and versioning
2022-03-04 09:04:02 +01:00