@velarscript/compiler 0.10.3 → 0.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,15 @@
1
1
  export declare const VELAR_REACTIVE_BRIDGE_MODULE = "velar/compiler-runtime-reactive-v1";
2
+ /**
3
+ * Core has no reactive provider. Keep the same private module ABI so shared
4
+ * collection lowering remains target-agnostic, but make absence a compile-time
5
+ * fact instead of probing the Web registry on every collection operation.
6
+ */
7
+ export declare const VELAR_NON_REACTIVE_BRIDGE_RUNTIME: string;
8
+ export declare const VELAR_NON_REACTIVE_COLLECTION_BRIDGE_RUNTIME: string;
2
9
  /** Compiler-owned late-binding bridge to an optional immutable reactive runtime provider. */
3
10
  export declare const VELAR_REACTIVE_BRIDGE_RUNTIME: string;
4
11
  /** Collection-only extension of the base reactive bridge. */
5
12
  export declare const VELAR_REACTIVE_COLLECTION_BRIDGE_RUNTIME: string;
6
13
  export declare const VELAR_REACTIVE_BRIDGE_MODULE_SOURCE: string;
14
+ export declare const VELAR_NON_REACTIVE_BRIDGE_MODULE_SOURCE: string;
7
15
  //# sourceMappingURL=reactive-bridge-runtime.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"reactive-bridge-runtime.d.ts","sourceRoot":"","sources":["../src/reactive-bridge-runtime.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,4BAA4B,uCAAuC,CAAC;AAEjF,6FAA6F;AAC7F,eAAO,MAAM,6BAA6B,QAmD7B,CAAC;AAEd,6DAA6D;AAC7D,eAAO,MAAM,wCAAwC,QAuCxC,CAAC;AAEd,eAAO,MAAM,mCAAmC,QAcnC,CAAC"}
1
+ {"version":3,"file":"reactive-bridge-runtime.d.ts","sourceRoot":"","sources":["../src/reactive-bridge-runtime.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,4BAA4B,uCAAuC,CAAC;AAEjF;;;;GAIG;AACH,eAAO,MAAM,iCAAiC,QAKjC,CAAC;AAEd,eAAO,MAAM,4CAA4C,QAM5C,CAAC;AAEd,6FAA6F;AAC7F,eAAO,MAAM,6BAA6B,QAmD7B,CAAC;AAEd,6DAA6D;AAC7D,eAAO,MAAM,wCAAwC,QAuCxC,CAAC;AAEd,eAAO,MAAM,mCAAmC,QAcnC,CAAC;AAEd,eAAO,MAAM,uCAAuC,QAcvC,CAAC"}
@@ -1,5 +1,23 @@
1
1
  import { VELAR_RUNTIME_REGISTRY_KEY, VELAR_RUNTIME_SCHEMA_VERSION } from "./runtime-abi.js";
2
2
  export const VELAR_REACTIVE_BRIDGE_MODULE = "velar/compiler-runtime-reactive-v1";
3
+ /**
4
+ * Core has no reactive provider. Keep the same private module ABI so shared
5
+ * collection lowering remains target-agnostic, but make absence a compile-time
6
+ * fact instead of probing the Web registry on every collection operation.
7
+ */
8
+ export const VELAR_NON_REACTIVE_BRIDGE_RUNTIME = String.raw `
9
+ const __velarReactiveIterateKey = null;
10
+ const __velarReactiveStructureKey = null;
11
+ function __velarReactiveRaw(value) { return value; }
12
+ function __velarHostRaw(value) { return value; }
13
+ `.trimStart();
14
+ export const VELAR_NON_REACTIVE_COLLECTION_BRIDGE_RUNTIME = String.raw `
15
+ function __velarReactiveCollectionRead(value, key, child) { return child === undefined ? null : child; }
16
+ function __velarReactiveCollectionTrack() {}
17
+ function __velarReactiveCollectionLink() {}
18
+ function __velarReactiveCollectionTrigger() {}
19
+ function __velarReactiveCollectionUnlink() {}
20
+ `.trimStart();
3
21
  /** Compiler-owned late-binding bridge to an optional immutable reactive runtime provider. */
4
22
  export const VELAR_REACTIVE_BRIDGE_RUNTIME = String.raw `
5
23
  const __velarReactiveBridgeGlobal = globalThis;
@@ -109,4 +127,19 @@ export {
109
127
  __velarReactiveCollectionUnlink as reactiveCollectionUnlink,
110
128
  };
111
129
  `.trimStart();
130
+ export const VELAR_NON_REACTIVE_BRIDGE_MODULE_SOURCE = String.raw `
131
+ ${VELAR_NON_REACTIVE_BRIDGE_RUNTIME}
132
+ ${VELAR_NON_REACTIVE_COLLECTION_BRIDGE_RUNTIME}
133
+ export {
134
+ __velarReactiveIterateKey as reactiveIterateKey,
135
+ __velarReactiveStructureKey as reactiveStructureKey,
136
+ __velarReactiveRaw as reactiveRaw,
137
+ __velarHostRaw as hostRaw,
138
+ __velarReactiveCollectionRead as reactiveCollectionRead,
139
+ __velarReactiveCollectionTrack as reactiveCollectionTrack,
140
+ __velarReactiveCollectionLink as reactiveCollectionLink,
141
+ __velarReactiveCollectionTrigger as reactiveCollectionTrigger,
142
+ __velarReactiveCollectionUnlink as reactiveCollectionUnlink,
143
+ };
144
+ `.trimStart();
112
145
  //# sourceMappingURL=reactive-bridge-runtime.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"reactive-bridge-runtime.js","sourceRoot":"","sources":["../src/reactive-bridge-runtime.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,4BAA4B,EAAE,MAAM,kBAAkB,CAAC;AAE5F,MAAM,CAAC,MAAM,4BAA4B,GAAG,oCAAoC,CAAC;AAEjF,6FAA6F;AAC7F,MAAM,CAAC,MAAM,6BAA6B,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;;;;;;;;mEAaY,IAAI,CAAC,SAAS,CAAC,0BAA0B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;oBA2BzF,IAAI,CAAC,SAAS,CAAC,4BAA4B,CAAC;;;;;;;;;;;CAW/D,CAAC,SAAS,EAAE,CAAC;AAEd,6DAA6D;AAC7D,MAAM,CAAC,MAAM,wCAAwC,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuCjE,CAAC,SAAS,EAAE,CAAC;AAEd,MAAM,CAAC,MAAM,mCAAmC,GAAG,MAAM,CAAC,GAAG,CAAA;EAC3D,6BAA6B;EAC7B,wCAAwC;;;;;;;;;;;;CAYzC,CAAC,SAAS,EAAE,CAAC"}
1
+ {"version":3,"file":"reactive-bridge-runtime.js","sourceRoot":"","sources":["../src/reactive-bridge-runtime.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,4BAA4B,EAAE,MAAM,kBAAkB,CAAC;AAE5F,MAAM,CAAC,MAAM,4BAA4B,GAAG,oCAAoC,CAAC;AAEjF;;;;GAIG;AACH,MAAM,CAAC,MAAM,iCAAiC,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;CAK1D,CAAC,SAAS,EAAE,CAAC;AAEd,MAAM,CAAC,MAAM,4CAA4C,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;CAMrE,CAAC,SAAS,EAAE,CAAC;AAEd,6FAA6F;AAC7F,MAAM,CAAC,MAAM,6BAA6B,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;;;;;;;;mEAaY,IAAI,CAAC,SAAS,CAAC,0BAA0B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;oBA2BzF,IAAI,CAAC,SAAS,CAAC,4BAA4B,CAAC;;;;;;;;;;;CAW/D,CAAC,SAAS,EAAE,CAAC;AAEd,6DAA6D;AAC7D,MAAM,CAAC,MAAM,wCAAwC,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuCjE,CAAC,SAAS,EAAE,CAAC;AAEd,MAAM,CAAC,MAAM,mCAAmC,GAAG,MAAM,CAAC,GAAG,CAAA;EAC3D,6BAA6B;EAC7B,wCAAwC;;;;;;;;;;;;CAYzC,CAAC,SAAS,EAAE,CAAC;AAEd,MAAM,CAAC,MAAM,uCAAuC,GAAG,MAAM,CAAC,GAAG,CAAA;EAC/D,iCAAiC;EACjC,4CAA4C;;;;;;;;;;;;CAY7C,CAAC,SAAS,EAAE,CAAC"}
package/dist/token.d.ts CHANGED
@@ -10,8 +10,8 @@ export interface Token {
10
10
  /**
11
11
  * Hard reserved words: spellings the lexer always turns into a keyword token,
12
12
  * so they can never name a binding. D30 item 16 softened the statement-head
13
- * words that JavaScript does not reserve — `type`, `match`, `case`, `from`,
14
- * `as` — into contextual keywords, which the lexer emits as ordinary
13
+ * words that JavaScript does not reserve — including `type`, `match`, `from`,
14
+ * `as`, and `json` — into contextual keywords, which the lexer emits as ordinary
15
15
  * identifiers and the parser recognizes by declaration shape. `enum` stays
16
16
  * here because JavaScript reserves it, and generated JavaScript must be legal.
17
17
  */
package/dist/token.js CHANGED
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * Hard reserved words: spellings the lexer always turns into a keyword token,
3
3
  * so they can never name a binding. D30 item 16 softened the statement-head
4
- * words that JavaScript does not reserve — `type`, `match`, `case`, `from`,
5
- * `as` — into contextual keywords, which the lexer emits as ordinary
4
+ * words that JavaScript does not reserve — including `type`, `match`, `from`,
5
+ * `as`, and `json` — into contextual keywords, which the lexer emits as ordinary
6
6
  * identifiers and the parser recognizes by declaration shape. `enum` stays
7
7
  * here because JavaScript reserves it, and generated JavaScript must be legal.
8
8
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@velarscript/compiler",
3
- "version": "0.10.3",
3
+ "version": "0.11.0",
4
4
  "description": "The compiler and semantic authority for VelarScript Core and explicit compiler extensions.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",