Commit Graph

22 Commits

Author SHA1 Message Date
Sebastian Poxhofer b2d3b64c48 refactor(lint): enforce err key for errors in logger metadata (#45759)
* refactor(lint): enforce err key for errors in logger metadata

* refactor(lint): flag error message and stack strings in logger-err-key
2026-09-09 13:55:14 +00:00
Niklas Volcz 572554f424 feat(datasource/docker): Read Official Image annotations (#44755)
Read Docker Official Image annotations
2026-07-21 15:09:35 +00:00
Sebastian Poxhofer a31f9cf0f9 refactor(schemas): prefer Nullish schema utils instead of z.nullish() (#44565)
* ci(linter): add renovate/prefer-zod-nullish rule

Add a custom oxlint rule that flags zod chains calling .optional() and
.nullable() adjacently (in either order) and suggests .nullish(), which
is equivalent (both accept undefined | null in zod v4).

Fix all 26 pre-existing violations across 6 schema files.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* ci(linter): prefer schema-utils Nullish over zod .nullish()

Rename prefer-zod-nullish to prefer-nullish-util and extend it to flag
.nullish() itself, including the standalone forms z.nullish(x) and
z.optional(z.nullable(x)). Migrate all call sites to Nullish() and
DeepNullish() from schema-utils, which normalize null to undefined in
parsed output. Schemas with more than one nullish position are wrapped
in DeepNullish(); nullish object properties with nullish members use
Nullish(DeepNullish(...)) to keep the optional property type marker.

Spec files are exempt (result.spec.ts intentionally tests
null-preserving parses). Spec assertions expecting null in parsed
output were updated to undefined. Note: docker manifests with an
explicit "mediaType": null are now accepted and treated like an absent
mediaType instead of failing the discriminated union.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-07-14 10:15:55 +00:00
Sebastian Poxhofer ee55af49e4 feat(docker): use schema validated getJson (#43775)
* fix(docker): replace getJsonUnchecked with validated getJson

Replace all getJsonUnchecked calls in the Docker datasource with
Zod-validated getJson calls. Add RegistryAuthToken, RegistryTagsList,
and QuayTagsResponse schemas to schema.ts and add unit tests for them.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* do not use getJson if we do not look at the body

* chore: default to false for safety

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-15 07:19:42 +00:00
Sebastian Poxhofer 15f4bd8eff chore: migrate from zod/v3 to zod/v4 (#43691)
* chore: migrate from zod/v3 to zod/v4

This commit contains the logic changes

* chore: migrate imports from zod/v3 to zod/v4

This contains import updates and adds explicit record keys as zod/v4 requires these now

* ci: enforce usage of zod/v4
2026-05-30 16:01:58 +00:00
Micah Nagel c994f36314 fix(datasource/docker): ensure dockerhub digest properly pulls arch specific digest (#42724)
* fix: ensure dockerhub digest properly pull arch specific

Signed-off-by: Micah Nagel <micah.nagel@defenseunicorns.com>

* fix: optimize by using cache for non-arch digest

Signed-off-by: Micah Nagel <micah.nagel@defenseunicorns.com>

* fix: optimize per arch as well

Signed-off-by: Micah Nagel <micah.nagel@defenseunicorns.com>

* fix: use partial in tests

* chore: test assertion updates

* chore: use existing const

---------

Signed-off-by: Micah Nagel <micah.nagel@defenseunicorns.com>
2026-04-29 14:54:23 +00:00
renovate[bot] 4a2578d18d build(deps): update dependency zod to v4 (main) (#41225)
* build(deps): update dependency zod to v4

| datasource | package | from    | to    |
| ---------- | ------- | ------- | ----- |
| npm        | zod     | 3.25.76 | 4.3.6 |

* fix: zod migration

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2026-02-18 07:37:50 +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 050ac8d23b chore: better code coverage (#39518) 2025-11-25 15:01:54 +00:00
Tobias d8fdc4f421 fix(datasource/docker): ignore unknown sub-manifests in OciImageIndexManifest (#35950) 2025-05-15 16:45:57 +00:00
Michael Kriese b5ff90f2bd fix: improve coverage (#34667) 2025-03-06 17:05:19 +00:00
Marcel Boehm 2f8ff83eab feat(manager/flux): Allow OCI media type used by flux push artifact to enable Release Notes lookup (#32783) 2024-11-28 17:13:54 +00:00
Devinwong a1cd9ccf6a feat(datasource/docker): add OCI header application/vnd.oci.empty.v1+json (#32351) 2024-11-06 06:28:35 +00:00
Sergei Zharinov c22519662b feat(docker): Reconcile deleted releases in cache (#30491)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2024-08-06 08:00:50 +00:00
Michael Kriese 680f720ceb fix(docker): support devcontainer manifests (#29242) 2024-05-24 18:05:45 +00:00
Sergei Zharinov 569f28bd33 feat(docker): Long-term cache for Docker Hub tags (#28489)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2024-04-19 05:41:00 +00:00
Sergei Zharinov b69416ce17 refactor(prettier): Force trailing commas (#25631) 2023-11-07 15:50:29 +00:00
Michael Kriese 223cee19cd fix(datasource/docker): allow null in schema values (#24205) 2023-09-01 09:37:52 +00:00
Sergei Zharinov f001df02bd feat(docker): Support digests obtained from DockerHub (#24177)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2023-08-31 16:17:58 +00:00
Michael Kriese 2b245095e0 feat(datasource/docker): use schema and support annotations (#23758)
Co-authored-by: Sebastian Poxhofer <secustor@users.noreply.github.com>
2023-08-31 10:44:09 +00:00
Sergei Zharinov 2f4c7111b0 feat(docker): Support releaseTimestamp for DockerHub tag results (#24164)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2023-08-31 07:53:22 +00:00
Michael Kriese 2f99b3cf25 feat(datasource/docker): add schema types (#23752) 2023-08-08 09:02:42 +00:00