@absolutejs/absolute 0.19.0-beta.857 → 0.19.0-beta.858

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.js CHANGED
@@ -18338,6 +18338,8 @@ var fail = (reason, detail) => ({ ok: false, reason, detail }), fingerprintCache
18338
18338
  return false;
18339
18339
  if (!arraysEqual(a.arrowFieldSig, b2.arrowFieldSig))
18340
18340
  return false;
18341
+ if (!arraysEqual(a.memberDecoratorSig, b2.memberDecoratorSig))
18342
+ return false;
18341
18343
  return true;
18342
18344
  }, recordFingerprint = (id, fp) => {
18343
18345
  fingerprintCache.set(id, fp);
@@ -18607,6 +18609,33 @@ var fail = (reason, detail) => ({ ok: false, reason, detail }), fingerprintCache
18607
18609
  entries.push(`${name}:${bodyHash}`);
18608
18610
  }
18609
18611
  return entries.sort();
18612
+ }, INPUT_OUTPUT_DECORATORS, extractMemberDecoratorSig = (cls) => {
18613
+ const entries = [];
18614
+ for (const member of cls.members) {
18615
+ const decorators = ts7.getDecorators(member) ?? [];
18616
+ if (decorators.length === 0)
18617
+ continue;
18618
+ const memberName = member.name?.getText() ?? "<anon>";
18619
+ for (const decorator of decorators) {
18620
+ const expr = decorator.expression;
18621
+ let decName = "<unknown>";
18622
+ let argText = "";
18623
+ if (ts7.isCallExpression(expr)) {
18624
+ if (ts7.isIdentifier(expr.expression)) {
18625
+ decName = expr.expression.text;
18626
+ }
18627
+ if (expr.arguments.length > 0) {
18628
+ argText = expr.arguments.map((a) => a.getText()).join(",");
18629
+ }
18630
+ } else if (ts7.isIdentifier(expr)) {
18631
+ decName = expr.text;
18632
+ }
18633
+ if (INPUT_OUTPUT_DECORATORS.has(decName))
18634
+ continue;
18635
+ entries.push(`${decName}:${memberName}:${djb2Hash(argText)}`);
18636
+ }
18637
+ }
18638
+ return entries.sort();
18610
18639
  }, providerProbeCache, fileHasModuleProviders = (filePath) => {
18611
18640
  let stat3;
18612
18641
  try {
@@ -18728,6 +18757,7 @@ var fail = (reason, detail) => ({ ok: false, reason, detail }), fingerprintCache
18728
18757
  const inputNames = Object.keys(inputs).sort();
18729
18758
  const outputNames = Object.keys(outputs).sort();
18730
18759
  const arrowFieldSig = extractArrowFieldSig(cls);
18760
+ const memberDecoratorSig = extractMemberDecoratorSig(cls);
18731
18761
  const providerImportSig = extractProviderImportSig(decoratorMeta.importsExpr, sourceFile, componentDir);
18732
18762
  return {
18733
18763
  arrowFieldSig,
@@ -18736,6 +18766,7 @@ var fail = (reason, detail) => ({ ok: false, reason, detail }), fingerprintCache
18736
18766
  hasProviders: decoratorMeta.hasProviders,
18737
18767
  hasViewProviders: decoratorMeta.hasViewProviders,
18738
18768
  inputs: inputNames,
18769
+ memberDecoratorSig,
18739
18770
  outputs: outputNames,
18740
18771
  providerImportSig,
18741
18772
  selector: decoratorMeta.selector,
@@ -19029,6 +19060,7 @@ var init_fastHmrCompiler = __esm(() => {
19029
19060
  init_hmrImportGenerator();
19030
19061
  init_typescript_translator();
19031
19062
  fingerprintCache = new Map;
19063
+ INPUT_OUTPUT_DECORATORS = new Set(["Input", "Output"]);
19032
19064
  providerProbeCache = new Map;
19033
19065
  TS_EXTENSIONS = [".ts", ".tsx", ".d.ts"];
19034
19066
  });
@@ -30191,5 +30223,5 @@ export {
30191
30223
  ANGULAR_INIT_TIMEOUT_MS
30192
30224
  };
30193
30225
 
30194
- //# debugId=E460962A6A20B90264756E2164756E21
30226
+ //# debugId=BC7AABB276B304AB64756E2164756E21
30195
30227
  //# sourceMappingURL=index.js.map