
Product
Microsoft Teams Notifications Are Now Available in Socket
Socket can now send alerts and supply chain attack notifications to Microsoft Teams, with filters that route the right updates to each channel.
@prisma-next/sql-contract-emitter
Advanced tools
SQL emitter hook for Prisma Next.
This package provides the SQL-specific emitter hook implementation for the Prisma Next emitter. It validates SQL contracts and generates TypeScript type definitions for SQL contracts. It's part of the SQL tooling layer (migration plane) and implements the TargetFamilyHook interface.
Contract Validation: Validates SQL contract structure and types
validateTypes(): Validates type IDs against referenced extensions (receives ValidationContext with extensionIds)validateStructure(): Validates SQL-specific logical consistency (foreign key references, model-to-table mappings, constraint consistency). Note: Structural properties (required fields, types) are validated by Arktype schema validation - this function focuses on logical validation that schema validators can't perform.Type Generation: Generates TypeScript type definitions for SQL contracts
generateContractTypes(): Generates contract.d.ts file content (receives a codecTypeImports array)@prisma-next/contract (contract IR, TargetFamilyHook SPI, ValidationContext, TypesImportSpec - types moved to shared plane)@prisma-next/emitter (emitter core, EmitOptions, EmitResult)@prisma-next/sql-contract (SQL contract type definitions)@prisma-next/cli (uses for contract emission)@prisma-next/integration-tests (uses for contract emission tests)flowchart TD
subgraph "Framework Tooling Layer"
EMITTER[@prisma-next/emitter]
CLI[@prisma-next/cli]
end
subgraph "SQL Tooling Layer"
SQL_EMITTER[@prisma-next/sql-contract-emitter]
end
subgraph "SQL Core Layer (Shared Plane)"
CT[@prisma-next/sql-contract]
end
EMITTER --> SQL_EMITTER
CT --> SQL_EMITTER
SQL_EMITTER --> CLI
import { emit } from '@prisma-next/emitter';
import { sqlEmission } from '@prisma-next/sql-contract-emitter';
const result = await emit(contractIR, options, sqlEmission);
// result.contractDts contains generated TypeScript types
// result.contractJson contains validated contract JSON
FAQs
SQL emitter hook for Prisma Next
We found that @prisma-next/sql-contract-emitter 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.

Product
Socket can now send alerts and supply chain attack notifications to Microsoft Teams, with filters that route the right updates to each channel.

Security News
pnpm 12 rewrites the package manager in Rust, cutting install times by up to 90% while preserving pnpm 11 workflows and lockfiles.

Security News
Socket CTO Ahmad Nassri joins AppSec leaders at Black Hat to discuss active malware, package manager risks, and software supply chain defense.