@absolutejs/absolute 0.19.0-beta.943 → 0.19.0-beta.945

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
@@ -13863,6 +13863,8 @@ var fail = (reason, detail, location) => ({
13863
13863
  return false;
13864
13864
  if (a.pageExportsSig !== b2.pageExportsSig)
13865
13865
  return false;
13866
+ if (a.schemasSig !== b2.schemasSig)
13867
+ return false;
13866
13868
  return true;
13867
13869
  }, recordFingerprint = (id, fp) => {
13868
13870
  fingerprintCache.set(id, fp);
@@ -14182,6 +14184,7 @@ var fail = (reason, detail, location) => ({
14182
14184
  const inputsArrayExpr = getProperty(args, "inputs");
14183
14185
  const outputsArrayExpr = getProperty(args, "outputs");
14184
14186
  const hostExpr = getProperty(args, "host");
14187
+ const schemasExpr = getProperty(args, "schemas");
14185
14188
  const styleUrls = [];
14186
14189
  if (styleUrlsExpr && ts6.isArrayLiteralExpression(styleUrlsExpr)) {
14187
14190
  for (const el of styleUrlsExpr.elements) {
@@ -14218,6 +14221,7 @@ var fail = (reason, detail, location) => ({
14218
14221
  inputsArrayExpr: inputsArrayExpr && ts6.isArrayLiteralExpression(inputsArrayExpr) ? inputsArrayExpr : null,
14219
14222
  outputsArrayExpr: outputsArrayExpr && ts6.isArrayLiteralExpression(outputsArrayExpr) ? outputsArrayExpr : null,
14220
14223
  hostExpr: hostExpr && ts6.isObjectLiteralExpression(hostExpr) ? hostExpr : null,
14224
+ schemasExpr: schemasExpr && ts6.isArrayLiteralExpression(schemasExpr) ? schemasExpr : null,
14221
14225
  preserveWhitespaces: getBooleanProperty(args, "preserveWhitespaces") ?? projectDefaults.preserveWhitespaces ?? false,
14222
14226
  selector: getStringProperty(args, "selector"),
14223
14227
  standalone: getBooleanProperty(args, "standalone") ?? true,
@@ -15234,6 +15238,7 @@ var fail = (reason, detail, location) => ({
15234
15238
  const decoratorInputsArraySig = decoratorMeta.inputsArrayExpr ? djb2Hash(decoratorMeta.inputsArrayExpr.getText()) : "";
15235
15239
  const decoratorOutputsArraySig = decoratorMeta.outputsArrayExpr ? djb2Hash(decoratorMeta.outputsArrayExpr.getText()) : "";
15236
15240
  const hostBindingsSig = decoratorMeta.hostExpr ? djb2Hash(decoratorMeta.hostExpr.getText()) : "";
15241
+ const schemasSig = decoratorMeta.schemasExpr ? djb2Hash(decoratorMeta.schemasExpr.getText()) : "";
15237
15242
  const PAGE_EXPORT_NAMES = new Set(["providers", "routes"]);
15238
15243
  const pageExportEntries = [];
15239
15244
  for (const stmt of sourceFile.statements) {
@@ -15275,6 +15280,7 @@ var fail = (reason, detail, location) => ({
15275
15280
  propertyFieldNames,
15276
15281
  providerImportSig,
15277
15282
  providersArraySig,
15283
+ schemasSig,
15278
15284
  selector: decoratorMeta.selector,
15279
15285
  standalone: decoratorMeta.standalone,
15280
15286
  topLevelImports,
@@ -18853,6 +18859,15 @@ var init_buildEmberVendor = __esm(() => {
18853
18859
  });
18854
18860
 
18855
18861
  // src/dev/dependencyGraph.ts
18862
+ var exports_dependencyGraph = {};
18863
+ __export(exports_dependencyGraph, {
18864
+ removeFileFromGraph: () => removeFileFromGraph,
18865
+ getAffectedFiles: () => getAffectedFiles,
18866
+ extractDependencies: () => extractDependencies,
18867
+ emptyDependencyGraph: () => emptyDependencyGraph,
18868
+ buildInitialDependencyGraph: () => buildInitialDependencyGraph,
18869
+ addFileToGraph: () => addFileToGraph
18870
+ });
18856
18871
  import { existsSync as existsSync23, readFileSync as readFileSync16 } from "fs";
18857
18872
  var {Glob: Glob8 } = globalThis.Bun;
18858
18873
  import { resolve as resolve27 } from "path";
@@ -19350,6 +19365,22 @@ var STYLE_EXTENSION_PATTERN2, detectFramework = (filePath, resolved) => {
19350
19365
  if (existsSync24(abs) && !roots.includes(abs))
19351
19366
  roots.push(abs);
19352
19367
  }
19368
+ try {
19369
+ const { readdirSync: readdirSync2 } = __require("fs");
19370
+ const entries = readdirSync2(cwd2, { withFileTypes: true });
19371
+ for (const entry of entries) {
19372
+ if (!entry.isDirectory())
19373
+ continue;
19374
+ if (entry.name.startsWith("."))
19375
+ continue;
19376
+ const abs = normalizePath(resolve29(cwd2, entry.name));
19377
+ if (roots.includes(abs))
19378
+ continue;
19379
+ if (shouldIgnorePath(abs, resolved))
19380
+ continue;
19381
+ roots.push(abs);
19382
+ }
19383
+ } catch {}
19353
19384
  const extraDirs = config.dev?.watchDirs ?? [];
19354
19385
  for (const dir of extraDirs)
19355
19386
  push(dir);
@@ -21294,6 +21325,12 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, runSequent
21294
21325
  const { cssChanged } = await incrementalTailwindBuild(config.tailwind, state.resolvedPaths.buildDir, files, getStyleTransformConfig(config));
21295
21326
  if (!cssChanged)
21296
21327
  return;
21328
+ try {
21329
+ const outputPath = resolve39(state.resolvedPaths.buildDir, config.tailwind.output);
21330
+ const bytes = await Bun.file(outputPath).bytes();
21331
+ const webPath = `/${config.tailwind.output.replace(/^\/+/, "")}`;
21332
+ state.assetStore.set(webPath, bytes);
21333
+ } catch {}
21297
21334
  broadcastToClients(state, {
21298
21335
  data: { framework: "tailwind", manifest: state.manifest },
21299
21336
  message: "Tailwind utilities recompiled",
@@ -21556,7 +21593,48 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, runSequent
21556
21593
  invalidate(resolve39(filePath));
21557
21594
  const relPath = relative16(process.cwd(), filePath);
21558
21595
  logHmrUpdate(relPath);
21559
- return;
21596
+ const angularDir = state.resolvedPaths.angularDir;
21597
+ let hasAngularDependent = false;
21598
+ if (angularDir && state.dependencyGraph) {
21599
+ try {
21600
+ const { addFileToGraph: addFileToGraph2 } = await Promise.resolve().then(() => (init_dependencyGraph(), exports_dependencyGraph));
21601
+ addFileToGraph2(state.dependencyGraph, resolve39(filePath));
21602
+ const affected = getAffectedFiles(state.dependencyGraph, resolve39(filePath));
21603
+ for (const dependent of affected) {
21604
+ if (dependent === resolve39(filePath))
21605
+ continue;
21606
+ const dependentFramework = detectFramework(dependent, state.resolvedPaths);
21607
+ if (dependentFramework !== "angular")
21608
+ continue;
21609
+ hasAngularDependent = true;
21610
+ if (!state.fileChangeQueue.has("angular")) {
21611
+ state.fileChangeQueue.set("angular", []);
21612
+ }
21613
+ const angularQueue = state.fileChangeQueue.get("angular");
21614
+ if (angularQueue && !angularQueue.includes(dependent)) {
21615
+ angularQueue.push(dependent);
21616
+ }
21617
+ }
21618
+ } catch {}
21619
+ }
21620
+ if (!hasAngularDependent) {
21621
+ return;
21622
+ }
21623
+ try {
21624
+ const { getFrameworkGeneratedDir: getFrameworkGeneratedDir2 } = await Promise.resolve().then(() => (init_generatedDir(), exports_generatedDir));
21625
+ const { invalidateModule: invalidateModuleServer } = await Promise.resolve().then(() => (init_moduleServer(), exports_moduleServer));
21626
+ const generatedAngularRoot = getFrameworkGeneratedDir2("angular");
21627
+ const sourceAbs = resolve39(filePath).replace(/\\/g, "/");
21628
+ const generatedTwin = `${generatedAngularRoot.replace(/\\/g, "/")}${sourceAbs.replace(/\.ts$/, ".js")}`;
21629
+ invalidateModuleServer(generatedTwin);
21630
+ } catch {}
21631
+ if (!state.fileChangeQueue.has("unknown")) {
21632
+ state.fileChangeQueue.set("unknown", []);
21633
+ }
21634
+ const unknownQueue = state.fileChangeQueue.get("unknown");
21635
+ if (unknownQueue && !unknownQueue.includes(filePath)) {
21636
+ unknownQueue.push(filePath);
21637
+ }
21560
21638
  }
21561
21639
  if (!state.fileChangeQueue.has(framework)) {
21562
21640
  state.fileChangeQueue.set(framework, []);
@@ -21740,6 +21818,26 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, runSequent
21740
21818
  break;
21741
21819
  }
21742
21820
  }
21821
+ for (const editedFile of userEdited) {
21822
+ if (!editedFile.endsWith(".ts"))
21823
+ continue;
21824
+ if (editedFile.endsWith(".d.ts"))
21825
+ continue;
21826
+ const detected = detectFramework(editedFile, state.resolvedPaths);
21827
+ if (detected !== "unknown")
21828
+ continue;
21829
+ try {
21830
+ const affected = getAffectedFiles(state.dependencyGraph, resolve39(editedFile));
21831
+ const hasAngularConsumer = affected.some((dep) => dep !== resolve39(editedFile) && detectFramework(dep, state.resolvedPaths) === "angular");
21832
+ if (hasAngularConsumer) {
21833
+ return {
21834
+ kind: "rebootstrap",
21835
+ reason: `non-angular helper edited (${editedFile}) \u2014 angular dependents need fresh bundle for __abs_deps to point at new exports`,
21836
+ tier: 1
21837
+ };
21838
+ }
21839
+ } catch {}
21840
+ }
21743
21841
  const queue = [];
21744
21842
  const queueIds = new Set;
21745
21843
  let anyFingerprintChanged = false;
@@ -32451,5 +32549,5 @@ export {
32451
32549
  ANGULAR_INIT_TIMEOUT_MS
32452
32550
  };
32453
32551
 
32454
- //# debugId=6FEE58AB0632470164756E2164756E21
32552
+ //# debugId=0AB756D9EEFF95BC64756E2164756E21
32455
32553
  //# sourceMappingURL=index.js.map