Commit Graph

83 Commits

Author SHA1 Message Date
Wade Carpenter a16858be0d refactor(workers): allow extractedConstraints on PackageDependency (#43252)
* refactor(workers): allow extractedConstraints on PackageDependency

Mirror the existing PackageFileContent.extractedConstraints field on
PackageDependency so managers can attach per-dep constraints (e.g.
python_version markers from PEP 508 dependencies) without overloading
the user-facing constraints field. In fetch.ts these dep-level
constraints are merged on top of the file/global constraints before
lookup, so the most specific source wins while user packageRules can
still override afterwards.

Extracted from #42701 at the reviewer's request so the type-level
change can land independently of the pep621/poetry feature work that
consumes it.

* fix(workers): prefer configured constraints over extracted values

Preserve configured constraints when extraction provides values for
the same names.

User configuration must take precedence over metadata discovered during
package extraction so users retain control over dependency lookup
behavior.

---------

Co-authored-by: wwade <wwade@users.noreply.github.com>
2026-08-03 18:08:26 +00:00
Sebastian Poxhofer d57843c60d refactor(oxlint): enable typescript/no-unnecessary-type-arguments (#44555)
Enable the type-aware typescript/no-unnecessary-type-arguments rule as
error and remove all 44 pre-existing redundant type arguments (type
arguments identical to the type parameter default), e.g.
HttpResponse<string>, ZodError<unknown>,
PackageDependency<Record<string, any>>.

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-07-14 12:33:42 +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
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
Jamie Tanna 498b9df2f0 fix(instrumentation): instrument manager lookups (#39612)
As a means to provide more insight into how long package manager lookups
take when using instrumentation, we can wrap the fetching of updates in
a trace per manager.
2025-11-28 14:07:42 +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
Maxime Brunet 971e951d80 fix: add manager/packageFile field to fetchUpdates trace logs (#37839) 2025-09-05 06:30:59 +00:00
Rhys Arkins 4daa85386b fix: revert lookup refactor from #32930 (#33184) 2024-12-18 09:42:39 +00:00
Rhys Arkins 07c005869c feat: extend skipStage to extract, lookup (#33108) 2024-12-14 10:32:51 +00:00
Sergei Zharinov eb37958e2c refactor: Flatten package lookup queue (#32930) 2024-12-09 17:21:21 +00:00
Sergei Zharinov ab09e25e9c refactor: Simplify lookup function (#32968) 2024-12-08 07:33:31 +00:00
Rhys Arkins b6cff319d5 refactor(packageRules): allow async matchers (#31828) 2024-10-07 14:04:06 +00:00
Michael Kriese 302718f38e fix: Revert "refactor: Flatten update lookup tasks" (#30933) 2024-08-21 11:36:42 +00:00
Sergei Zharinov dc43ad4a6d refactor: Flatten update lookup tasks (#27369)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2024-08-19 13:54:55 +00:00
Rhys Arkins b6b85eb69e feat(package-rules): set skipStage (#30264) 2024-07-21 10:29:13 +00:00
Sergei Zharinov 9c06813697 refactor: Create utility for stats collection and reporting (#27919) 2024-03-14 09:46:56 +00:00
Sergei Zharinov 240d7b6a97 refactor: Use "Result" wrapper for "fetchDepUpdates" function (#27365) 2024-02-16 20:08:24 +00:00
Sergei Zharinov bf8decdcf1 refactor: Use "Result" wrapper for "lookupUpdates" function (#27345) 2024-02-16 13:56:01 +00:00
Sergei Zharinov b69416ce17 refactor(prettier): Force trailing commas (#25631) 2023-11-07 15:50:29 +00:00
Rhys Arkins 36e2b328bb chore: update types reference 2023-08-15 11:31:15 +02:00
renovate[bot] fe739befbf chore(deps): update linters to v6 (major) (#23325)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2023-08-02 15:07:49 +00:00
Sergei Zharinov 45328c57b6 refactor: Extract datasource result filters to separate file (#23587) 2023-07-28 08:09:41 +00:00
Sergei Zharinov 53263bbfda feat: Clone objects via wrapper (#22970) 2023-06-27 13:09:59 +00:00
Rhys Arkins 85ae416bc5 fix: separate extractedConstraints from constraints (#22823) 2023-06-17 09:29:23 +00:00
Jamie Magee a6dfa70c1d chore: migrate to structuredClone (#20885)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2023-04-27 05:06:22 +00:00
Sergei Zharinov 888cbda358 refactor(workers): Extract lookup stats helper (#21762) 2023-04-23 09:21:23 +00:00
Rhys Arkins 0b79b3d541 fix: merge config constraints over package file extracted constraints (#21207) 2023-03-29 05:08:15 +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 a3cc159f7e chore: extract and lookup duration logging (#20816) 2023-03-09 11:24:50 +00:00
Rhys Arkins cc33d34ca8 refactor: PackageFile types (#20498)
Co-authored-by: RahulGautamSingh <rahultesnik@gmail.com>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2023-02-20 14:58:49 +00:00
Rhys Arkins 59432b4129 fix: process extractedConstraints earlier (#20510) 2023-02-19 17:38:28 +00:00
Rhys Arkins 3cef2f2e4f refactor: PackageFile -> PackageFileContent (#20502) 2023-02-19 12:43:48 +00:00
RahulGautamSingh d869c946d1 refactor: reduce debug metadata (#18737) 2022-11-07 11:29:02 +00:00
Sergei Zharinov 2df8967ae2 refactor: Create promises utilities (#17651) 2022-09-06 10:36:51 +00:00
Michael Kriese 8270d5512d refactor: fix lint issues (#16779)
* refactor: fix lint issues

* Update lib/renovate.ts

* chore: revert toplevel await for ts
2022-07-26 08:32:12 +00:00
Rhys Arkins b49849b2a0 fix: assign default versioning before applying package rules (#16392) 2022-07-03 18:11:20 +02:00
Sergei Zharinov dc34060ced fix(onboarding): warnings for external host errors (#15587)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2022-06-22 09:56:55 +00:00
Michael Kriese e5c6f38d75 refactor: enable strict checks (#16168)
* refactor:  enable strict checks

* chore: revert changes

* chore: fix tsconfig
2022-06-21 13:00:21 +02:00
RahulGautamSingh 03b0d2a24e refactor(lib/workers): fix null-check for tests (#16163)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2022-06-21 09:39:30 +00:00
Sergei Zharinov 0cf4f48842 refactor: Strict null checks for all files except tests (#16071)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2022-06-20 11:47:07 +02:00
RahulGautamSingh 87f85951a2 refactor: move update internal deps to lookup (#16059) 2022-06-15 04:21:37 +00:00
Gabriel-Ladzaretti 224d5e7717 feat(core/dashboard): include list of detected package files (#15418) 2022-05-16 12:20:31 +02: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
Rhys Arkins 36a29974bb fix: validate depName is a string (#14342)
Closes #14338
2022-02-21 15:38:24 +01:00
Hasan Awad f83c82b94f fix: added filtering for empty depName (#14037) 2022-02-13 09:59:03 +01:00
Sergei Zharinov 4f18d76320 refactor: Use union type for SkipReason (#13702)
* refactor: Use union type for SkipReason

* Fix snapshot

* Fix snapshot
2022-01-21 08:59:36 +01:00
HonkingGoose ab018191fa chore: report and fix unused ESLint disable directives (#12548) 2021-11-08 20:20:03 +01:00
Rhys Arkins 96c4df2776 chore: clean up ManagerConfig types (#11469)
* chore: use ExtractConfig for git-submodules

* chore: drop ManagerConfig from config/types

* chore: remove unused ManagerConfig from manager types
2021-08-30 08:05:32 +02:00
Rhys Arkins 123dc4444e feat(travis): remove supportPolicy (#11176) 2021-08-17 07:57:45 +02:00