Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,17 @@ export const nodeDisplayManifestSchema = z.object({
* Runtime constraints for the node.
*
* - `{ include: [...] }` — available exclusively in the listed runtimes
* - `{ exclude: [...] }` — available in all runtimes except the listed ones
* - `{ exclude: [...] }` — deprecated, use `include`
*/
export const nodeRuntimeConstraintsManifestSchema = z.union([
z.object({ include: z.array(z.string()) }),
z.object({ exclude: z.array(z.string()) }),
z.object({
/**
* @deprecated Use `include`. An excluded node is available in every runtime added later,
* so each new runtime forces a manifest update to opt the node back out.
*/
exclude: z.array(z.string()),
}),
]);

/**
Expand Down
Loading