@zapier/kitcore 0.19.0 → 0.20.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.
package/dist/index.mjs CHANGED
@@ -1898,8 +1898,9 @@ function declareOptionalMethod(config) {
1898
1898
  `Plugin "${id}" is an optional stand-in (declareOptionalMethod) with no implementation. Its binding is \`undefined\` unless a real plugin is registered under this id.`
1899
1899
  );
1900
1900
  }
1901
- // Requires nothing (phantom carrier `<never, never>`): a consumer that
1902
- // imports it still passes `createSdk`'s completeness check unprovided. The
1901
+ // Requires nothing: a consumer that imports it still passes `createSdk`'s
1902
+ // completeness check unprovided. The contract is still carried, so a
1903
+ // provider that DOES appear under the id is checked against it. The
1903
1904
  // `optional: true` literal drives `PluginSurface` to type the binding
1904
1905
  // `| undefined`.
1905
1906
  };
@@ -1949,9 +1950,12 @@ function declareOptionalProperty(config) {
1949
1950
  optional: true,
1950
1951
  imports: [],
1951
1952
  importBindings: []
1952
- // Requires nothing (phantom carrier `<never, never>`): a consumer that
1953
- // imports it still passes `createSdk`'s completeness check unprovided. The
1954
- // import binding is still typed `TValue | undefined` from the descriptor.
1953
+ // Requires nothing: a consumer that imports it still passes `createSdk`'s
1954
+ // completeness check unprovided. The contract is the binding a consumer
1955
+ // sees, `TValue | undefined`, which is also what a by-reference provider
1956
+ // (`defineProperty(ref, { value })`) is allowed to pass. A consumer of an
1957
+ // optional reference has to handle the absent case either way, so an
1958
+ // explicit `undefined` breaks nothing a narrower contract would protect.
1955
1959
  };
1956
1960
  }
1957
1961
  function declareDefault({