@absolutejs/absolute 0.19.0-beta.941 → 0.19.0-beta.942

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
@@ -13837,6 +13837,10 @@ var fail = (reason, detail, location) => ({
13837
13837
  return false;
13838
13838
  if (a.viewProvidersArraySig !== b2.viewProvidersArraySig)
13839
13839
  return false;
13840
+ if (a.decoratorInputsArraySig !== b2.decoratorInputsArraySig)
13841
+ return false;
13842
+ if (a.decoratorOutputsArraySig !== b2.decoratorOutputsArraySig)
13843
+ return false;
13840
13844
  return true;
13841
13845
  }, recordFingerprint = (id, fp) => {
13842
13846
  fingerprintCache.set(id, fp);
@@ -14131,6 +14135,8 @@ var fail = (reason, detail, location) => ({
14131
14135
  const animationsExpr = getProperty(args, "animations");
14132
14136
  const providersExpr = getProperty(args, "providers");
14133
14137
  const viewProvidersExpr = getProperty(args, "viewProviders");
14138
+ const inputsArrayExpr = getProperty(args, "inputs");
14139
+ const outputsArrayExpr = getProperty(args, "outputs");
14134
14140
  const styleUrls = [];
14135
14141
  if (styleUrlsExpr && ts6.isArrayLiteralExpression(styleUrlsExpr)) {
14136
14142
  for (const el of styleUrlsExpr.elements) {
@@ -14164,6 +14170,8 @@ var fail = (reason, detail, location) => ({
14164
14170
  animationsExpr: animationsExpr && ts6.isArrayLiteralExpression(animationsExpr) ? animationsExpr : null,
14165
14171
  providersExpr: providersExpr && ts6.isArrayLiteralExpression(providersExpr) ? providersExpr : null,
14166
14172
  viewProvidersExpr: viewProvidersExpr && ts6.isArrayLiteralExpression(viewProvidersExpr) ? viewProvidersExpr : null,
14173
+ inputsArrayExpr: inputsArrayExpr && ts6.isArrayLiteralExpression(inputsArrayExpr) ? inputsArrayExpr : null,
14174
+ outputsArrayExpr: outputsArrayExpr && ts6.isArrayLiteralExpression(outputsArrayExpr) ? outputsArrayExpr : null,
14167
14175
  preserveWhitespaces: getBooleanProperty(args, "preserveWhitespaces") ?? projectDefaults.preserveWhitespaces ?? false,
14168
14176
  selector: getStringProperty(args, "selector"),
14169
14177
  standalone: getBooleanProperty(args, "standalone") ?? true,
@@ -15177,12 +15185,16 @@ var fail = (reason, detail, location) => ({
15177
15185
  const animationsArraySig = decoratorMeta.animationsExpr ? djb2Hash(decoratorMeta.animationsExpr.getText()) : "";
15178
15186
  const providersArraySig = decoratorMeta.providersExpr ? djb2Hash(decoratorMeta.providersExpr.getText()) : "";
15179
15187
  const viewProvidersArraySig = decoratorMeta.viewProvidersExpr ? djb2Hash(decoratorMeta.viewProvidersExpr.getText()) : "";
15188
+ const decoratorInputsArraySig = decoratorMeta.inputsArrayExpr ? djb2Hash(decoratorMeta.inputsArrayExpr.getText()) : "";
15189
+ const decoratorOutputsArraySig = decoratorMeta.outputsArrayExpr ? djb2Hash(decoratorMeta.outputsArrayExpr.getText()) : "";
15180
15190
  return {
15181
15191
  animationsArraySig,
15182
15192
  arrowFieldSig,
15183
15193
  changeDetection: decoratorMeta.changeDetection,
15184
15194
  className,
15185
15195
  ctorParamTypes,
15196
+ decoratorInputsArraySig,
15197
+ decoratorOutputsArraySig,
15186
15198
  encapsulation: decoratorMeta.encapsulation,
15187
15199
  hasProviders: decoratorMeta.hasProviders,
15188
15200
  hasViewProviders: decoratorMeta.hasViewProviders,
@@ -15449,7 +15461,7 @@ ${block}
15449
15461
  const currentFingerprint = extractFingerprint(classNode, className, decoratorMeta, inputs, outputs, sourceFile, componentDir);
15450
15462
  const cachedFingerprint = fingerprintCache.get(fingerprintId);
15451
15463
  const fingerprintChanged = cachedFingerprint !== undefined && !fingerprintsEqual(cachedFingerprint, currentFingerprint);
15452
- const rebootstrapRequired = !currentFingerprint.standalone || cachedFingerprint !== undefined && (cachedFingerprint.importsArraySig !== currentFingerprint.importsArraySig || cachedFingerprint.hostDirectivesSig !== currentFingerprint.hostDirectivesSig || cachedFingerprint.providersArraySig !== currentFingerprint.providersArraySig || cachedFingerprint.viewProvidersArraySig !== currentFingerprint.viewProvidersArraySig || cachedFingerprint.standalone !== currentFingerprint.standalone);
15464
+ const rebootstrapRequired = !currentFingerprint.standalone || cachedFingerprint !== undefined && (cachedFingerprint.importsArraySig !== currentFingerprint.importsArraySig || cachedFingerprint.hostDirectivesSig !== currentFingerprint.hostDirectivesSig || cachedFingerprint.providersArraySig !== currentFingerprint.providersArraySig || cachedFingerprint.viewProvidersArraySig !== currentFingerprint.viewProvidersArraySig || cachedFingerprint.selector !== currentFingerprint.selector || cachedFingerprint.standalone !== currentFingerprint.standalone);
15453
15465
  const sourceFileObj = new compiler.ParseSourceFile(tsSource, componentFilePath);
15454
15466
  const zeroLoc = new compiler.ParseLocation(sourceFileObj, 0, 0, 0);
15455
15467
  const typeSourceSpan = new compiler.ParseSourceSpan(zeroLoc, zeroLoc);
@@ -15582,7 +15594,29 @@ ${block}
15582
15594
  for (const entry of resolvedImports) {
15583
15595
  referencedNames.add(entry.identifier.text);
15584
15596
  }
15585
- const depsToDestructure = [...sourceScopeNames].filter((n) => referencedNames.has(n));
15597
+ const allImportedNames = new Set;
15598
+ for (const stmt of sourceFile.statements) {
15599
+ if (!ts6.isImportDeclaration(stmt))
15600
+ continue;
15601
+ const clause = stmt.importClause;
15602
+ if (!clause || clause.isTypeOnly)
15603
+ continue;
15604
+ if (clause.name)
15605
+ allImportedNames.add(clause.name.text);
15606
+ const bindings = clause.namedBindings;
15607
+ if (!bindings)
15608
+ continue;
15609
+ if (ts6.isNamespaceImport(bindings)) {
15610
+ allImportedNames.add(bindings.name.text);
15611
+ } else {
15612
+ for (const el of bindings.elements) {
15613
+ if (el.isTypeOnly)
15614
+ continue;
15615
+ allImportedNames.add(el.name.text);
15616
+ }
15617
+ }
15618
+ }
15619
+ const depsToDestructure = [...sourceScopeNames].filter((n) => referencedNames.has(n) || allImportedNames.has(n));
15586
15620
  const tsSourceText = fnText;
15587
15621
  const transpiled = ts6.transpileModule(tsSourceText, {
15588
15622
  compilerOptions: {
@@ -21643,6 +21677,17 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, runSequent
21643
21677
  tier: 1
21644
21678
  };
21645
21679
  }
21680
+ if (owners.length === 0 && editedFile.endsWith(".ts") && !editedFile.endsWith(".d.ts")) {
21681
+ const normalized = editedFile.replace(/\\/g, "/");
21682
+ const angularDirAbs = resolve39(angularDir).replace(/\\/g, "/");
21683
+ if (normalized.startsWith(angularDirAbs + "/")) {
21684
+ return {
21685
+ kind: "rebootstrap",
21686
+ reason: `non-decorated angular file edited (${editedFile}) \u2014 consumers may hold stale resolved values`,
21687
+ tier: 1
21688
+ };
21689
+ }
21690
+ }
21646
21691
  for (const { componentFilePath, className, kind } of owners) {
21647
21692
  const id = encodeHmrComponentId2(componentFilePath, className);
21648
21693
  if (queueIds.has(id))
@@ -32307,5 +32352,5 @@ export {
32307
32352
  ANGULAR_INIT_TIMEOUT_MS
32308
32353
  };
32309
32354
 
32310
- //# debugId=15F2EB7340C15AAA64756E2164756E21
32355
+ //# debugId=F77D088B9EDAE99064756E2164756E21
32311
32356
  //# sourceMappingURL=index.js.map