depsdev

package
v0.1.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 24, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package depsdev queries deps.dev for registry metadata: when a version was published (fresh-release detection) and whether it is deprecated.

Index

Constants

This section is empty.

Variables

View Source
var BatchURL = "https://api.deps.dev/v3alpha/versionbatch"

BatchURL is a var so tests can point it at a fake server.

View Source
var Now = time.Now

Now is a var so tests can pin the clock.

Functions

func Annotate

func Annotate(diffs []diffx.FileDiff, freshDays int) error

Annotate fills PublishedAt / AgeDays / Fresh / Deprecated on every change that introduces a version, in place. A version counts as fresh when it was published fewer than freshDays days before now. Best-effort: network errors return an error but leave diffs usable.

func Covers

func Covers(eco string) bool

Covers reports whether deps.dev has data for the ecosystem.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL