@dep-radius/core
v0.4.11
Published
The library behind dep-radius: which changes in a dependency upgrade affect your code, and on which lines.
Maintainers
Readme
@dep-radius/core
The library behind dep-radius. It finds which changes in a dependency upgrade
affect your code, and on which lines. Use it to build your own integration; for the command line,
install dep-radius. The library guide:
depradius.com/docs/library.
import { createCtx, defaultCacheDir, renderJson, run, type Options } from "@dep-radius/core"
const options: Options = {
root: process.cwd(),
specs: [],
format: "json",
offline: false,
minAgeMs: undefined,
latest: false,
notes: true,
surface: true,
prod: false,
concurrency: 8,
cacheDir: defaultCacheDir(process.env),
verbose: false,
now: Date.now(),
color: false,
}
const brief = await run(options, createCtx(options), (event) => {
if (event.type === "package") console.error(`${event.done}/${event.total}`)
})
process.stdout.write(renderJson(brief))
process.exitCode = brief.exitCodeEntry points
| Import | Contains |
| ---------------------------------------------- | ------------------------------------------------------------------- |
| @dep-radius/core | run, createCtx, the brief types, renderJson, renderMarkdown |
| @dep-radius/core/render | Grouping and labels, to write another renderer |
| @dep-radius/core/schema/brief-v1.schema.json | The JSON Schema of renderJson's output |
The JSON output is a stable contract (schemaVersion: 1). The TypeScript types of the internal
brief may still change before 1.0.
License
MIT
