@matreshka/bff 0.14.0 → 0.14.1

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.
@@ -12,8 +12,12 @@ export type CompatibleArrayContextRef<R extends ContextRef> = [
12
12
  ] extends [never] ? never : R;
13
13
  /**
14
14
  * Операнд сравнения по известному типу значения: JSON-примитив или совместимая `ContextRef`.
15
+ *
16
+ * Ref-операнд: {@link CompatibleContextValueRef} с `ContextRef<any, any>` (item-ref из `forEach`
17
+ * и ref из другого контекста). Без `| undefined` у ValueType — иначе `(T | undefined) extends T`
18
+ * отсекает ref↔ref сравнения.
15
19
  */
16
- export type ConditionOperandFor<ValueType> = (ValueType & JsonPrimitive) | CompatibleContextValueRef<ValueType | undefined, ContextRef>;
20
+ export type ConditionOperandFor<ValueType> = (ValueType & JsonPrimitive) | CompatibleContextValueRef<ValueType, ContextRef>;
17
21
  /**
18
22
  * Операнд условия на BFF: JSON-примитив того же типа, что значение по `ref`,
19
23
  * либо другая ссылка с совместимым типом значения (сравнение в рантайме через `===`).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@matreshka/bff",
3
- "version": "0.14.0",
3
+ "version": "0.14.1",
4
4
  "description": "Matreshka BFF: server-driven UI runtime — routing, pages, context, component DSL, and platform APIs",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",