create-kerf-component 5.0.0-beta.117 → 5.0.0-beta.118

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/catalog.js CHANGED
@@ -467,6 +467,11 @@ function validateComposition(component, at, diagnostics, packageRoot) {
467
467
  diagnostics.push(
468
468
  `${sourceAt}: ${helperSource?.export} is not listed in composition.wiring.helpers`,
469
469
  );
470
+ if (
471
+ helperSource?.returnsDisposer !== undefined &&
472
+ typeof helperSource.returnsDisposer !== 'boolean'
473
+ )
474
+ diagnostics.push(`${sourceAt}.returnsDisposer: expected boolean`);
470
475
  const file = resolve(packageRoot, helperSource?.source ?? '');
471
476
  if (!helperSource?.source || !existsSync(file))
472
477
  diagnostics.push(
@@ -246,7 +246,8 @@
246
246
  "required": ["export", "source"],
247
247
  "properties": {
248
248
  "export": { "type": "string", "minLength": 1 },
249
- "source": { "type": "string", "minLength": 1 }
249
+ "source": { "type": "string", "minLength": 1 },
250
+ "returnsDisposer": { "type": "boolean" }
250
251
  },
251
252
  "additionalProperties": false
252
253
  }
@@ -352,7 +352,8 @@
352
352
  "required": ["export", "source"],
353
353
  "properties": {
354
354
  "export": { "type": "string", "minLength": 1 },
355
- "source": { "type": "string", "minLength": 1 }
355
+ "source": { "type": "string", "minLength": 1 },
356
+ "returnsDisposer": { "type": "boolean" }
356
357
  },
357
358
  "additionalProperties": false
358
359
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-kerf-component",
3
- "version": "5.0.0-beta.117",
3
+ "version": "5.0.0-beta.118",
4
4
  "description": "Scaffold a publishable kerf component package that already follows kerf's hard packaging rules.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -39,8 +39,8 @@
39
39
  "kerfjs": "^5.0.0-0"
40
40
  },
41
41
  "devDependencies": {
42
- "kerfjs": "^5.0.0-beta.117",
43
- "@kerfjs/ui": "^5.0.0-beta.117",
42
+ "kerfjs": "^5.0.0-beta.118",
43
+ "@kerfjs/ui": "^5.0.0-beta.118",
44
44
  "tsup": "^8",
45
45
  "typescript": "^5 || ^6"
46
46
  }