@norskvideo/ctl-dev-kit 0.2.103 → 0.2.105

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.
Files changed (2) hide show
  1. package/dashboard/uses.ts +13 -1
  2. package/package.json +4 -4
package/dashboard/uses.ts CHANGED
@@ -133,12 +133,24 @@ export function dashboardUses(files: readonly { path: string; source: string }[]
133
133
  for (const arg of node.arguments) visit(arg);
134
134
  return;
135
135
  }
136
+ // fleet.instance(): which instance the page is (RFC 0008), which a
137
+ // registration does not list either.
138
+ if (
139
+ ts.isCallExpression(node) &&
140
+ ts.isPropertyAccessExpression(node.expression) &&
141
+ node.expression.name.text === "instance" &&
142
+ ts.isIdentifier(node.expression.expression) &&
143
+ clients.has(node.expression.expression.text)
144
+ ) {
145
+ for (const arg of node.arguments) visit(arg);
146
+ return;
147
+ }
136
148
  if (ts.isIdentifier(node) && (clients.has(node.text) || factories.has(node.text))) {
137
149
  const parent = node.parent;
138
150
  const declaring = ts.isImportSpecifier(parent) || (ts.isVariableDeclaration(parent) && parent.name === node);
139
151
  if (!declaring) {
140
152
  problems.push(
141
- `${where(node)}: ${node.text} is used other than by calling its query, watch, call, live or state.get/put, so the build cannot see what it reaches`,
153
+ `${where(node)}: ${node.text} is used other than by calling its query, watch, call, live, instance or state.get/put, so the build cannot see what it reaches`,
142
154
  );
143
155
  }
144
156
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@norskvideo/ctl-dev-kit",
3
- "version": "0.2.103",
3
+ "version": "0.2.105",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  "./create-product": "./create-product/create-product.ts",
@@ -40,9 +40,9 @@
40
40
  "devDependencies": {
41
41
  "@norskvideo/ctl-oas-to-ts": "^0.1.0",
42
42
  "@norskvideo/norsk-sdk": "1.3.1-2026-10-22-aeac91a4",
43
- "@norskvideo/norsk-studio": "1.30.0-2026-10-20-6fb182ff",
44
- "@norskvideo/norsk-studio-builder": "1.30.0-2026-10-20-6fb182ff",
45
- "@norskvideo/norsk-studio-built-ins": "1.30.0-2026-10-20-6fb182ff",
43
+ "@norskvideo/norsk-studio": "1.30.0-2026-10-23-8e050eb4",
44
+ "@norskvideo/norsk-studio-builder": "1.30.0-2026-10-23-8e050eb4",
45
+ "@norskvideo/norsk-studio-built-ins": "1.30.0-2026-10-23-8e050eb4",
46
46
  "@playwright/test": "^1.59.0",
47
47
  "@testing-library/jest-dom": "^6.9.1",
48
48
  "@testing-library/react": "^16.3.2",