Commit Graph

34 Commits

Author SHA1 Message Date
Sebastian Poxhofer 97327c3d28 refactor(linters): add prefer-coerce-array rule (#45492)
* refactor(linters): add prefer-coerce-array rule

Refs #45217

`x ?? []` and `coerceArray(x)` say the same thing, but only the second
one is searchable and consistent. The rule flags a `??` whose default is
a bare `[]` literal; a non-empty default or an asserted `([] as Foo[])`
still passes.

Applying it across `lib/` surfaced three spots the helper cannot cover,
which keep `?? []` with a disable comment or a narrower fix:

- `package-files.ts` destructures a tuple, which `coerceArray()` widens
- `generate.spec.ts` defaults `matchAll()`, an iterator rather than an array
- `mise/upgradeable-tooling.ts` declares a `Record` return, so its
  `?? []` fallback was wrong to begin with and becomes `coerceObject()`

* refactor(platform/github): hoist the GHE version header lookup

`Object.entries(...).find()` returns a tuple, and defaulting it with
`?? []` only to destructure the second element reads as an array
default when it is not one. Name the found entry instead, which drops
the `?? []` rather than routing a tuple through `coerceArray()`.
2026-08-28 09:27:58 +00:00
Felipe Santos 392105b7c6 chore(oxlint): enable unicorn plugin and prefer-node-protocol (#43283)
chore(oxlint): enable unicorn plugin and prefer-node-protocol
2026-05-29 06:55:58 +00:00
Jeff Brown 945acf6c38 feat(nuget): update lock files when Directory.Build.props is changed (#42735)
fix(nuget): update lock files when Directory.Build.props is changed

Directory.Build.props is a standard MSBuild import file that can contain
PackageReference elements. When Renovate updates packages in this file,
lock file regeneration was skipped because updateArtifacts only handled
.csproj/.vbproj/.fsproj, Directory.Packages.props/Packages.props, and
global.json.

This extends the existing logic to treat Directory.Build.props the same
way as central management files — all project files under its parent
directory are restored to regenerate their lock files.

Also renames the isCentralManagement parameter to isPropsFile for
clarity, since it now covers both central management and
Directory.Build.props files.

Relates to #15696, #8010
2026-04-20 15:48:19 +00:00
Jamie Tanna 2d1e57532f refactor(types): rename lockFile to fileName in ArtifactError (#41631)
As `fileName` makes more sense (as it's not always a lock file we're
updating).

Also, if you set `fileName`, it would never actually output the
filename.

This renames the usages of `lockFile` to `fileName`.

Co-authored-by: Claude Sonnet 4.5 <jamie.tanna+github-copilot@mend.io>
2026-03-10 09:57:31 +00:00
Jellyfrog e9da17a22f feat(nuget): Also read registry URLs from deps (#39134) 2026-02-20 14:27:24 +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
Michael Kriese df2adeb110 feat(nuget): allow restoring workloads before restoring packages (#37449) 2025-08-12 13:10:55 +00:00
Michael Kriese 930fb7cd8d fix(nuget): restore all projects if global.json changes (#37450) 2025-08-12 13:08:53 +00:00
Sergei Zharinov 7c79c11285 fix: Always use default import from upath and semver-stable (#37325) 2025-08-05 11:01:45 +00:00
RahulGautamSingh 80b7cdf1e0 refactor(util): move user env to util folder (#35103) 2025-04-02 10:27:27 +00:00
renovate[bot] 94c073ab6b chore(deps): update linters (main) (#34869)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: secustor <sebastian@poxhofer.at>
2025-03-23 17:57:04 +00:00
Michael Kriese beb8d2b81a feat(nuget): respect global.json for artifact updates (#33673) 2025-01-18 08:27:05 +00:00
renovate[bot] 1a1e1acc23 chore(deps): update dependency typescript to v5.5.3 (#29906)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: secustor <sebastian@poxhofer.at>
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2024-07-20 20:38:33 +00:00
Marc Mognol 5b8fb1f5a6 chore: fix nuget typo (#27976) 2024-03-17 20:06:33 +00:00
RahulGautamSingh 2194142f78 feat(config): support user configured env (#27028)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2024-02-22 05:05:05 +00:00
Sergei Zharinov b69416ce17 refactor(prettier): Force trailing commas (#25631) 2023-11-07 15:50:29 +00:00
Wessel Terpstra 65a69d5829 feat(nuget): adds package source mapping and generate cached NuGet.config without CLI commands (#25052)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2023-10-17 20:58:59 +00:00
RahulGautamSingh ecc60897ef feat(datasource/nuget): support password only registry auth (#20749) 2023-03-04 14:23:29 +00:00
Michael Kriese e78048dfc1 fix: no cycles (#19982) 2023-01-23 21:20:54 +00:00
Michael Kriese 73be295310 feat(core): centralize sidecar image usage (#19545) 2022-12-23 09:45:15 +00:00
Michael Kriese 1959edc262 feat(nuget): skip restore non-leaf projects (#19097) 2022-11-25 13:43:44 +00:00
Michael Kriese 3c49502ced fix(nuget): disable msbuild node reuse (#19095) 2022-11-25 09:54:51 +00:00
Michael Kriese 1633759497 feat(manager/nuget): support install mode (#19049) 2022-11-23 09:35:38 +00:00
Johannes Feichtner aaaa6a1cfe refactor: extract getLockFileContentMap() into fs utils (#17962) 2022-09-25 16:31:11 +02:00
Sergei Zharinov 2b43f273bf refactor(fs): Remove proxies.ts file (#16325)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2022-07-01 14:57:30 +02:00
Michael Kriese 10302eba68 refactor: fix prefer-nullish-coalescing (#16171) 2022-06-21 12:02:49 +00:00
Michael Kriese 94a39ae33d feat(manager/nuget): cache restored packages (#15984) 2022-06-10 17:24:41 +00:00
Michael Kriese c1da6b948d feat(manager:nuget): support central version management (#15698) 2022-05-24 16:29:28 +02:00
Michael Kriese 5afed40ba3 fix(manager:nuget): use git to read current lockfile (#15395) 2022-05-20 04:40:54 +00:00
Michael Kriese 173ab07013 fix(manager:nuget): use upath for cross-platform paths (#15242) 2022-04-22 04:24:01 +00:00
Michael Kriese cf57025002 fix(manager/nuget): quote arguments (#15226) 2022-04-21 15:05:52 +02:00
Michael Kriese f5f06c73be refactor(manager): more strict null checks (#15168) 2022-04-20 06:19:59 +02:00
Matthew Vaughan 6fd86edb32 feat(manager/nuget): Restore all dependent project files to generate new lock files (#14312)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2022-04-07 21:45:24 +00: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