Skip to content

feat: export ValidateEntries for composing wrappers - #31

Merged
mandarini merged 1 commit into
mainfrom
feat/export-validate-entries
Aug 26, 2026
Merged

feat: export ValidateEntries for composing wrappers#31
mandarini merged 1 commit into
mainfrom
feat/export-validate-entries

Conversation

@mandarini

@mandarinimandarini commented Aug 25, 2026

Copy link
Copy Markdown
Collaborator

Renames the engine's private Validate type to ValidateEntries and exports it from the package root and core subpath, documented for public use. The type takes a seed context parameter, so a composing wrapper that puts its own keys on the context before an entry array runs (the way withSupabase does in @supabase/server) can validate entry prerequisites and key collisions at compile time, exactly as pipeline does. Type-only change with no runtime behavior; new tsc-verified tests pin the exported type's satisfied-prerequisite, missing-prerequisite, and key-conflict cases.

@pkg-pr-new

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/@supabase/middleware@31

commit: eb7857f

@mandarini
mandarini marked this pull request as ready for review August 25, 2026 15:09
@mandarini
mandarini requested review from a team as code ownersAugust 25, 2026 15:10
@mandarinimandarini self-assigned this Aug 25, 2026
@mandarini
mandarini merged commit f938189 into mainAug 26, 2026
5 checks passed
@mandarini
mandarini deleted the feat/export-validate-entries branch August 26, 2026 09:26
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@mandarini@spydon