
Security News
GitHub Actions Adds cache-mode to Limit Cache Poisoning Risk
GitHub Actions now supports cache-mode, a least-privilege control on the Actions cache aimed at the cache poisoning technique behind recent compromises.
@prisma-next/errors
Advanced tools
Internal package. This package is an implementation detail of
prisma-nextand is published only to support its runtime. Its API is unstable and may change without notice. Do not depend on this package directly; installprisma-nextinstead.
Structured error types and factories for CLI and runtime error reporting.
This package provides CliStructuredError (the shared error class) and factory functions for creating structured errors with error codes, fix suggestions, and machine-readable metadata. Errors are split across two entry points by domain:
./control — CLI errors (PN-CLI-4xxx): config validation, file resolution, migration planning./execution — Runtime errors (PN-RUN-3xxx): contract verification, hash mismatch, database signingimport { CliStructuredError, errorConfigFileNotFound } from '@prisma-next/errors/control';
import { errorHashMismatch } from '@prisma-next/errors/execution';
// Create a CLI error
throw errorConfigFileNotFound('/path/to/config.ts');
// Create a runtime error
throw errorHashMismatch({ expected: 'abc123', actual: 'def456' });
// Type-guard check
if (CliStructuredError.is(caught)) {
const envelope = caught.toEnvelope();
// { ok: false, code: 'PN-CLI-4001', domain: 'CLI', summary: '...', ... }
}
| Entry point | Domain | Code range | Contents |
|---|---|---|---|
./control | CLI | PN-CLI-4xxx | CliStructuredError class, CliErrorEnvelope/CliErrorConflict types, 14 CLI factory functions, errorUnexpected |
./execution | RUN | PN-RUN-3xxx | 8 runtime factory functions, ERROR_CODE_DESTRUCTIVE_CHANGES constant |
FAQs
Structured error types for Prisma Next control and execution planes
The npm package @prisma-next/errors receives a total of 1,498 weekly downloads. As such, @prisma-next/errors popularity was classified as popular.
We found that @prisma-next/errors demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers collaborating on the project.

Security News
GitHub Actions now supports cache-mode, a least-privilege control on the Actions cache aimed at the cache poisoning technique behind recent compromises.

Company News
Allow myself to introduce... myself.

Research
/Security News
A Twitch browser extension on Chrome and Firefox forwards users’ live OAuth session tokens through proxies controlled by a Russian bot service.