wrec 0.29.1 → 0.29.3

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.
@@ -40,6 +40,7 @@ export declare abstract class Wrec extends HTMLElementBase {
40
40
  #private;
41
41
  private static attrToPropMap;
42
42
  private static propToAttrMap;
43
+ private static computedGraph;
43
44
  static context: {};
44
45
  static css: string;
45
46
  private static elementName;
@@ -49,6 +50,8 @@ export declare abstract class Wrec extends HTMLElementBase {
49
50
  private static propToComputedMap;
50
51
  private static methodToExprsMap;
51
52
  private static propToExprsMap;
53
+ private static registeredComputedProps;
54
+ private static computedPropsRegistered;
52
55
  private static template;
53
56
  [key: string]: any;
54
57
  static define(elementName: string): void;
@@ -1,4 +1,4 @@
1
- import { a as e, i as t, n, r, t as i } from "./wrec-DdxbuCnt.js";
1
+ import { a as e, i as t, n, r, t as i } from "./wrec-DEac2MyH.js";
2
2
  //#region \0rolldown/runtime.js
3
3
  var a = Object.defineProperty, o = Object.getOwnPropertyDescriptor, s = Object.getOwnPropertyNames, c = Object.prototype.hasOwnProperty, l = (e, t) => () => (e && (t = e(e = 0)), t), u = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), d = (e, t) => {
4
4
  let n = {};
package/dist/wrec.d.ts CHANGED
@@ -40,6 +40,7 @@ export declare abstract class Wrec extends HTMLElementBase {
40
40
  #private;
41
41
  private static attrToPropMap;
42
42
  private static propToAttrMap;
43
+ private static computedGraph;
43
44
  static context: {};
44
45
  static css: string;
45
46
  private static elementName;
@@ -49,6 +50,8 @@ export declare abstract class Wrec extends HTMLElementBase {
49
50
  private static propToComputedMap;
50
51
  private static methodToExprsMap;
51
52
  private static propToExprsMap;
53
+ private static registeredComputedProps;
54
+ private static computedPropsRegistered;
52
55
  private static template;
53
56
  [key: string]: any;
54
57
  static define(elementName: string): void;
package/dist/wrec.es.js CHANGED
@@ -1,2 +1,2 @@
1
- import { a as e, i as t, n, r, t as i } from "./wrec-DdxbuCnt.js";
1
+ import { a as e, i as t, n, r, t as i } from "./wrec-DEac2MyH.js";
2
2
  export { i as Wrec, e as WrecState, n as createElement, r as css, t as html };
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "wrec",
3
3
  "description": "a small library that greatly simplifies building web components",
4
4
  "author": "R. Mark Volkmann",
5
- "version": "0.29.1",
5
+ "version": "0.29.3",
6
6
  "license": "MIT",
7
7
  "repository": {
8
8
  "type": "git",
@@ -46,7 +46,7 @@
46
46
  "preview": "vite preview",
47
47
  "test": "node port-check.js && playwright test",
48
48
  "testui": "playwright test --ui",
49
- "unittest": "vitest"
49
+ "unittest": "vitest run"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@playwright/test": "^1.59.1",
package/scripts/lint.js CHANGED
@@ -1,5 +1,11 @@
1
1
  #!/usr/bin/env node
2
2
 
3
+ // This lints a given source file that defines a wrec component.
4
+ // To run this, enter `npx wrec-lint [--verbose] {file-path}`
5
+ //
6
+ // Include --verbose to output lists of the
7
+ // properties and expressions that are found.
8
+
3
9
  // This linter checks Wrec components for these issues:
4
10
  // - undefined properties accessed in expressions
5
11
  // - undefined instance methods called in expressions
@@ -1380,7 +1386,7 @@ function main() {
1380
1386
  const positionalArgs = args.filter(arg => arg !== '--verbose');
1381
1387
 
1382
1388
  if (positionalArgs.length > 1) {
1383
- fail('usage: node scripts/wrec-lint.js [file.js|file.ts]');
1389
+ fail('usage: node scripts/wrec-lint.js [--verbose] {file-path}');
1384
1390
  }
1385
1391
 
1386
1392
  const [filePath] = positionalArgs;