@absolutejs/absolute 0.20.0-beta.125 → 0.20.0-beta.127

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.
Files changed (36) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/README.md +19 -0
  3. package/changelog.json +27 -0
  4. package/dist/angular/components/core/streamingSlotRegistrar.js +1 -1
  5. package/dist/angular/components/core/streamingSlotRegistry.js +2 -2
  6. package/dist/angular/index.js +35 -29
  7. package/dist/angular/index.js.map +5 -4
  8. package/dist/angular/server.js +35 -29
  9. package/dist/angular/server.js.map +5 -4
  10. package/dist/build/buildWorker.js +9 -3
  11. package/dist/build.js +210 -201
  12. package/dist/build.js.map +8 -7
  13. package/dist/cli/{compile-hywymh6y.js → compile-0epdbdcx.js} +2 -2
  14. package/dist/cli/{index-9q8yn5ax.js → index-54q7pxcx.js} +1 -0
  15. package/dist/cli/{index-q3sq287p.js → index-79ppyst7.js} +2 -2
  16. package/dist/cli/{index-k8r00xh9.js → index-q4gpm386.js} +22 -2
  17. package/dist/cli/index.js +4 -4
  18. package/dist/cli/{mobile-6kdsrhxy.js → mobile-49hyrgrj.js} +2 -2
  19. package/dist/cli/{prerender-vvrj9vjg.js → prerender-yex2zwj3.js} +1 -1
  20. package/dist/cli/{start-q08avhxg.js → start-m0p0qbep.js} +2 -2
  21. package/dist/index.js +229 -217
  22. package/dist/index.js.map +11 -9
  23. package/dist/islands/index.js +10 -4
  24. package/dist/islands/index.js.map +5 -4
  25. package/dist/mobile/remoteMacAgentEntry.js +1 -1
  26. package/dist/react/index.js +10 -4
  27. package/dist/react/index.js.map +5 -4
  28. package/dist/src/cli/serverBundleExternals.d.ts +2 -1
  29. package/dist/src/utils/index.d.ts +1 -0
  30. package/dist/src/utils/isFile.d.ts +4 -0
  31. package/dist/src/utils/isPrerendering.d.ts +5 -0
  32. package/dist/svelte/index.js +10 -4
  33. package/dist/svelte/index.js.map +5 -4
  34. package/dist/vue/index.js +10 -4
  35. package/dist/vue/index.js.map +5 -4
  36. package/package.json +2 -2
@@ -1,2 +1,3 @@
1
1
  import type { BuildConfig } from '../../types/build';
2
- export declare const resolveServerBundleExternals: (buildConfig: BuildConfig) => string[];
2
+ export declare const collectMissingOptionalPeers: (projectRoot: string) => string[];
3
+ export declare const resolveServerBundleExternals: (buildConfig: BuildConfig, projectRoot?: string) => string[];
@@ -10,3 +10,4 @@ export * from './projectRoot';
10
10
  export * from './registerClientScript';
11
11
  export * from './streamingSlotMetricSink';
12
12
  export * from './streamingSlots';
13
+ export * from './isPrerendering';
@@ -0,0 +1,4 @@
1
+ /** True only for a regular file. Vue's type resolver probes an import path as
2
+ * written before trying `<path>.ts` and `<path>/index.ts`, so answering true
3
+ * for a directory makes it read the directory and fail with EISDIR. */
4
+ export declare const isFile: (path: string) => boolean;
@@ -0,0 +1,5 @@
1
+ /** True only in the temporary server used by build/start/compile to render pages.
2
+ * Guard background workers and irreversible startup effects with this check.
3
+ * Read at runtime: a compiled deployment is not a prerender process.
4
+ */
5
+ export declare const isPrerendering: () => boolean;
@@ -4331,6 +4331,11 @@ var init_angularServerModule = __esm(() => {
4331
4331
  ANGULAR_SPECIFIER_RE = /["'](@angular\/[^"']+)["']/g;
4332
4332
  });
4333
4333
 
4334
+ // src/utils/isFile.ts
4335
+ import { statSync } from "fs";
4336
+ var isFile = (path) => statSync(path, { throwIfNoEntry: false })?.isFile() ?? false;
4337
+ var init_isFile = () => {};
4338
+
4334
4339
  // src/utils/vueCompiler.ts
4335
4340
  var exports_vueCompiler = {};
4336
4341
  __export(exports_vueCompiler, {
@@ -4349,7 +4354,7 @@ var createVueCompiler = async () => {
4349
4354
  };
4350
4355
 
4351
4356
  // src/core/vueServerModule.ts
4352
- import { existsSync as existsSync4, readFileSync as readFileSync4, realpathSync } from "fs";
4357
+ import { readFileSync as readFileSync4, realpathSync } from "fs";
4353
4358
  import { mkdir as mkdir3 } from "fs/promises";
4354
4359
  import { dirname as dirname4, join as join7, relative as relative4, resolve as resolve5 } from "path";
4355
4360
  var {Transpiler } = globalThis.Bun;
@@ -4396,9 +4401,9 @@ var ISLAND_COMPONENT_ID_LENGTH = 8, serverCacheRoot3, compiledModuleCache3, tran
4396
4401
  const hasScript = descriptor.script || descriptor.scriptSetup;
4397
4402
  const compiledScript = hasScript ? compiler.compileScript(descriptor, {
4398
4403
  fs: {
4399
- fileExists: existsSync4,
4404
+ fileExists: isFile,
4400
4405
  realpath: realpathSync,
4401
- readFile: (file) => existsSync4(file) ? readFileSync4(file, "utf-8") : undefined
4406
+ readFile: (file) => isFile(file) ? readFileSync4(file, "utf-8") : undefined
4402
4407
  },
4403
4408
  id: componentId,
4404
4409
  inlineTemplate: false
@@ -4443,6 +4448,7 @@ var ISLAND_COMPONENT_ID_LENGTH = 8, serverCacheRoot3, compiledModuleCache3, tran
4443
4448
  };
4444
4449
  var init_vueServerModule = __esm(() => {
4445
4450
  init_constants();
4451
+ init_isFile();
4446
4452
  serverCacheRoot3 = join7(process.cwd(), ".absolutejs", "islands", "vue");
4447
4453
  compiledModuleCache3 = new Map;
4448
4454
  transpiler2 = new Transpiler({ loader: "ts", target: "browser" });
@@ -5184,5 +5190,5 @@ export {
5184
5190
  useIslandStore
5185
5191
  };
5186
5192
 
5187
- //# debugId=078B84D8A383B4D464756E2164756E21
5193
+ //# debugId=4751F1FBF20B796164756E2164756E21
5188
5194
  //# sourceMappingURL=index.js.map