Instruction file imported from ShyamL1319/linkshortner (
.github/instructions/library-upgrades.instructions.md). Copyright stays with the author.
Library Upgrade Instructions
Scope
Use these instructions for changes involving Next.js, React, TypeScript, Tailwind, Clerk, Drizzle, Neon, shadcn, Radix, or build tooling updates.
Project Hotspots
app/for App Router pages, layouts, metadata, and route handlersapp/dashboard/for server actions and client dialogsdata/for Drizzle-backed helpersdb/anddrizzle/for schema and migrationscomponents/andcomponents/ui/for shared UI primitivesnext.config.tsandproxy.tsfor framework/runtime behavior
Review Steps
- Read the relevant release notes or migration guide.
- Inspect the files that use the affected library.
- Check whether the new version changes runtime behavior, types, or configuration.
- Make the smallest possible code change.
- Run lint, unit tests, and any targeted smoke or integration tests.
- Perform a security pass for auth, data access, secrets, and route exposure.
- If the upgrade touches rendering or build behavior, also verify a production build.
Code Standards
- Keep TypeScript strict and avoid
any. - Prefer shared helpers in
data/for database work. - Keep server actions in colocated
actions.tsfiles. - Preserve existing auth and routing conventions.
- Update shared docs when a library change introduces a new standard.
Escalation Triggers
- Breaking API changes
- Security-sensitive auth or data-access updates
- Database schema or migration changes
- Build or runtime changes that affect deployment
- Dependency changes that require a coordinated codebase-wide migration
- Any upgrade that changes auth boundaries, public routes, or data exposure