@absolutejs/absolute 0.19.0-beta.1086 → 0.19.0-beta.1087

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.
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  var __require = import.meta.require;
3
3
 
4
- // .angular-partial-tmp-VRR9kp/src/core/streamingSlotRegistrar.ts
4
+ // .angular-partial-tmp-jAiQOp/src/core/streamingSlotRegistrar.ts
5
5
  var STREAMING_SLOT_REGISTRAR_KEY = Symbol.for("absolutejs.streamingSlotRegistrar");
6
6
  var STREAMING_SLOT_WARNING_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotWarningController");
7
7
  var STREAMING_SLOT_COLLECTION_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotCollectionController");
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  var __require = import.meta.require;
3
3
 
4
- // .angular-partial-tmp-VRR9kp/src/core/streamingSlotRegistrar.ts
4
+ // .angular-partial-tmp-jAiQOp/src/core/streamingSlotRegistrar.ts
5
5
  var STREAMING_SLOT_REGISTRAR_KEY = Symbol.for("absolutejs.streamingSlotRegistrar");
6
6
  var STREAMING_SLOT_WARNING_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotWarningController");
7
7
  var STREAMING_SLOT_COLLECTION_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotCollectionController");
@@ -48,7 +48,7 @@ var warnMissingStreamingSlotCollector = (primitiveName) => {
48
48
  getWarningController()?.maybeWarn(primitiveName);
49
49
  };
50
50
 
51
- // .angular-partial-tmp-VRR9kp/src/core/streamingSlotRegistry.ts
51
+ // .angular-partial-tmp-jAiQOp/src/core/streamingSlotRegistry.ts
52
52
  var STREAMING_SLOT_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotAsyncLocalStorage");
53
53
  var isObjectRecord2 = (value) => Boolean(value) && typeof value === "object";
54
54
  var isAsyncLocalStorage = (value) => isObjectRecord2(value) && ("getStore" in value) && typeof value.getStore === "function" && ("run" in value) && typeof value.run === "function";
@@ -1,25 +1,20 @@
1
1
  import type { AllowedComponentProps, App, ComponentCustomProps, VNodeProps } from 'vue';
2
- /** Structural shape of vue-router we expose to user code. Keeps the helper
3
- * free of a hard dependency on `vue-router` types users opt in to the
4
- * router by exporting `routes`, the package shouldn't pull a peer dep
5
- * type-check into every consumer. */
6
- export type VueAutoRouter = {
7
- currentRoute: {
8
- value: {
9
- fullPath: string;
10
- };
11
- };
12
- push: (to: string) => Promise<unknown>;
13
- isReady: () => Promise<void>;
14
- beforeEach: (guard: (to: unknown, from: unknown) => unknown) => () => void;
15
- };
2
+ import type { Router } from 'vue-router';
3
+ /** The vue-router instance AbsoluteJS auto-creates from a page's `routes`
4
+ * export. Aliased to vue-router's own `Router` so consumers get the full,
5
+ * always-current API (`onError`, `afterEach`, `resolve`, …) rather than a
6
+ * hand-mirrored subset that silently drifts out of date — the missing
7
+ * `onError` is exactly the kind of gap a duplicated type hides. `vue-router`
8
+ * is an optional peer dependency: only pages that export `routes` reference
9
+ * this type, and those pages already depend on vue-router. */
10
+ export type VueAutoRouter = Router;
16
11
  export type VueSetupAppContext = {
17
12
  url: string;
18
13
  isServer: boolean;
19
14
  /** The vue-router instance AbsoluteJS auto-created from the page's
20
15
  * `routes` export, already installed on the app and navigated to
21
16
  * the request URL. `null` when the page didn't export `routes`. */
22
- router: VueAutoRouter | null;
17
+ router: Router | null;
23
18
  /** Server-only. Call to short-circuit SSR and emit an HTTP redirect
24
19
  * instead. Pass the destination location and an optional status
25
20
  * (defaults to `302`). */
package/package.json CHANGED
@@ -68,6 +68,7 @@
68
68
  "typescript": "^5.9.3",
69
69
  "typescript-eslint": "8.56.1",
70
70
  "vue": "3.5.27",
71
+ "vue-router": "^4.5.1",
71
72
  "vue-tsc": "^3.2.5"
72
73
  },
73
74
  "engines": {
@@ -278,7 +279,8 @@
278
279
  "svelte": "^5.35.2",
279
280
  "tailwindcss": "^4.1.0",
280
281
  "typescript": "^5.9.3",
281
- "vue": "^3.5.27"
282
+ "vue": "^3.5.27",
283
+ "vue-router": "^4.5.1"
282
284
  },
283
285
  "peerDependenciesMeta": {
284
286
  "@angular/animations": {
@@ -349,6 +351,9 @@
349
351
  },
350
352
  "vue": {
351
353
  "optional": true
354
+ },
355
+ "vue-router": {
356
+ "optional": true
352
357
  }
353
358
  },
354
359
  "repository": {
@@ -418,7 +423,7 @@
418
423
  ]
419
424
  }
420
425
  },
421
- "version": "0.19.0-beta.1086",
426
+ "version": "0.19.0-beta.1087",
422
427
  "workspaces": [
423
428
  "tests/fixtures/*",
424
429
  "tests/fixtures/_packages/*"