release: WRNexusJS 0.3.0
This commit is contained in:
@@ -0,0 +1,50 @@
|
||||
/** Canonical, machine-readable WRN language capabilities. */
|
||||
export const WRN_LANGUAGE_VERSION = "1.0";
|
||||
|
||||
export const WRN_ROOT_KINDS = ["page", "component", "layout"] as const;
|
||||
export const WRN_ROOT_MEMBERS = [
|
||||
"layout",
|
||||
"runtime",
|
||||
"hydrate",
|
||||
"client",
|
||||
"types",
|
||||
"props",
|
||||
"state",
|
||||
"computed",
|
||||
"effect",
|
||||
"watch",
|
||||
"lifecycle",
|
||||
"view",
|
||||
"seo",
|
||||
"security",
|
||||
"load",
|
||||
"action",
|
||||
"api",
|
||||
"ssr",
|
||||
"realtime",
|
||||
"style",
|
||||
"functions",
|
||||
] as const;
|
||||
|
||||
export const WRN_HYDRATION_STRATEGIES = ["load", "idle", "visible", "interaction", "none"] as const;
|
||||
|
||||
export const WRN_RUNTIME_TARGETS = ["server", "client", "universal"] as const;
|
||||
|
||||
export type WrnRootKind = (typeof WRN_ROOT_KINDS)[number];
|
||||
export type WrnRootMember = (typeof WRN_ROOT_MEMBERS)[number];
|
||||
export type WrnHydrationStrategy = (typeof WRN_HYDRATION_STRATEGIES)[number] | `media:${string}`;
|
||||
export type WrnRuntimeTarget = (typeof WRN_RUNTIME_TARGETS)[number];
|
||||
|
||||
export const WRN_DIAGNOSTIC_CODES = {
|
||||
parse: "WRN-PARSE-001",
|
||||
root: "WRN-PARSE-ROOT",
|
||||
member: "WRN-PARSE-MEMBER",
|
||||
propInitializer: "WRN-PROP-INITIALIZER",
|
||||
stateInitializer: "WRN-STATE-INITIALIZER",
|
||||
watchUndeclared: "WRN-WATCH-UNDECLARED",
|
||||
duplicateSymbol: "WRN-SYMBOL-DUPLICATE",
|
||||
invalidHydration: "WRN-HYDRATE-STRATEGY",
|
||||
invalidRuntime: "WRN-RUNTIME-TARGET",
|
||||
serverInteractive: "WRN-RUNTIME-SERVER-INTERACTIVE",
|
||||
accessibility: "WRN-A11Y-001",
|
||||
} as const;
|
||||
Reference in New Issue
Block a user