@listen-fire/movement-lang 0.12.0-rc.7 → 0.12.0-rc.8

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.
@@ -10,11 +10,13 @@ export interface ConstructionArg {
10
10
  name: string;
11
11
  /**
12
12
  * `credential` = names an imported credential whose `adapter` is this adapter
13
- * (always required). `position` = an entry-position arg (e.g. Sheets'
13
+ * (required unless the adapter works without one: lf's email). `position` = an entry-position arg (e.g. Sheets'
14
14
  * `spreadsheet`) that pins where the instance starts.
15
15
  */
16
16
  kind: 'credential' | 'position';
17
- /** Whether construction MUST supply it. Credential args are required; position args are optional today. */
17
+ /** Whether construction MUST supply it. A credential arg is required unless every credential the
18
+ * adapter declares is optional (an absent one then instantiates the credential-free schema);
19
+ * position args are optional today. */
18
20
  required: boolean;
19
21
  /**
20
22
  * Position args only: the collection/type whose members are the value enum
@@ -1 +1 @@
1
- export declare const PACKAGE_VERSION = "0.12.0-rc.7";
1
+ export declare const PACKAGE_VERSION = "0.12.0-rc.8";
@@ -5,4 +5,4 @@ exports.PACKAGE_VERSION = void 0;
5
5
  // scripts/build-packages.cjs (a source and its build sit at different depths
6
6
  // beside package.json, so neither can require it by one relative path).
7
7
  // __test__/language_version.unit.test.ts holds it equal to package.json.
8
- exports.PACKAGE_VERSION = '0.12.0-rc.7';
8
+ exports.PACKAGE_VERSION = '0.12.0-rc.8';
@@ -190,6 +190,10 @@ function fromCatalogSnapshot(snapshot) {
190
190
  // without pre-processing (defense-in-depth: callers should unwrap first,
191
191
  // but the snapshot instantiate is the last lookup that can catch it).
192
192
  const rawCredName = args?.[credArg?.name ?? 'credentials']?.trim();
193
+ // A credential the adapter can do without, not given: the
194
+ // credential-free instance (lf's email, which receives with none).
195
+ if (rawCredName === undefined && credArg !== undefined && !credArg.required)
196
+ return at();
193
197
  const credentialName = rawCredName !== undefined
194
198
  ? ((0, scan_1.unwrapCredentialArg)(rawCredName) ?? rawCredName)
195
199
  : rawCredName;
Binary file
Binary file
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@listen-fire/movement-lang",
3
3
  "license": "Apache-2.0",
4
- "version": "0.12.0-rc.7",
4
+ "version": "0.12.0-rc.8",
5
5
  "description": "The data-movement language: the wasm parser, checker and engine with their loader and bindings, the version rule, the expression AST and the types the contracts name",
6
6
  "engines": {
7
7
  "node": "22.20.0"