Upgrade dependencies in this repo, above all the pinned pre-release ones (nitro, oxfmt, @hey-api/openapi-ts). Use when bumping any package version, reviewing a Renovate PR, acting on pnpm audit:check, or when an install fails the release quarantine.
2 stars
0 votes
0 copies
1 view
Added October 26, 2026
developmenttypescriptrustgoreactgitapi
Works with
api
Security analysis
A92/100
mediumInstalls packages at runtime which could introduce malicious dependencies
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Upgrade Prerelease Deps?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/tiagogranelli-upgrade-prerelease-deps)
---
name: upgrade-prerelease-deps
description: Upgrade dependencies in this repo, above all the pinned pre-release ones (nitro, oxfmt, @hey-api/openapi-ts). Use when bumping any package version, reviewing a Renovate PR, acting on pnpm audit:check, or when an install fails the release quarantine.
---
# Upgrade dependencies
## Policy
- `package.json` uses exact versions (`savePrefix: ''`; `tests/unit/repo-policy.test.ts` checks), and `pnpm-lock.yaml`
is committed with them. pnpm 12 blocks dependency build scripts (`allowBuilds`) and quarantines fresh
releases (`minimumReleaseAge`, one day, strict: a younger version fails the install instead of being excluded
silently). Each exception names an exact version and its reason in `pnpm-workspace.yaml`.
`trustPolicy: no-downgrade` fails a version published with weaker provenance than an earlier one, and
`strictPeerDependencies` an unmet peer. Every frozen install checks the lockfile against these policies.
- A vulnerable transitive package gets an exact `overrides` entry in `pnpm-workspace.yaml` naming the advisory
(and an `ignoreDependencyOverrides` entry in `.fallowrc.json`, since the overridden version is no longer in
the lockfile). An advisory that cannot apply here goes in `auditConfig.ignoreGhsas` in
`pnpm-workspace.yaml`, with a comment giving the reason and a review date (write it by hand; `pnpm audit
--ignore` adds the id without the comment). `pnpm audit:check` is the gate; Renovate's OSV alerts open fix PRs.
- Pre-release packages, pinned exactly: `nitro` (its npm `latest` is an `-rc` / pre-1.0 build), `oxfmt` (0.x,
announced as beta), and `@hey-api/openapi-ts` (a `next` snapshot, below). (`@tanstack/react-start` reached 1.0
stable and stays pinned like every other stable dependency.)
- Skills are pinned to a commit (`skills-lock.json`); update the shadcn skill in the PR that bumps `shadcn`
([docs/agents/skills.md](../../../docs/agents/skills.md)). Docs shipped inside packages are pinned by the
lockfile.
## Steps
1. Renovate (`.github/renovate.json`) opens the PRs, a week after each release; it follows the `next` dist-tag for
Hey API. By hand, `pnpm outdated` lists what is newer.
2. Upgrade one pre-release package per PR: `pnpm add --save-exact <name>@<version>`.
3. Package-specific work:
- **Effect** (stable since 4.0.0): upgrade `@effect/vitest` with it, run `pnpm codegen`, and review the
`openapi.json` diff. A check the document lost is a reason to stop: 4.0.0 exports a `Schema.isPattern` only
when its RegExp has the `u` flag.
- **Hey API:** stays on the `next` snapshot `0.0.0-next-20260930190945`. The stable 0.99.0 needs the JS
compiler API that TypeScript 7 no longer has, and crashes; Renovate follows `next` only
([ADR 0002](../../../docs/decisions/0002-typescript-7.md)). After any bump, run `pnpm codegen` and review
the `src/sdk` diff.
- **@effect/tsgo** (0.x): the tsconfig plugin serves editors and `effect-tsgo diagnostics` is the `effect`
gate. Use it through those two only; `effect-tsgo patch` stays unused.
4. Run `pnpm check`, `pnpm check:drift`, and `pnpm build && pnpm verify:app`. All three must pass.
## Done when
The three commands pass, `package.json` and `pnpm-lock.yaml` change together, and every exception added to
`pnpm-workspace.yaml` names the exact version and its reason.