@meshagent/meshagent 0.51.4 → 0.51.6

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/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## [0.51.6]
2
+ - TypeScript route definitions now include `notFound` on content routes and `unavailable` on service routes, preserving the same route-shape constraints in the generated client.
3
+ - The JavaScript client serializes and deserializes the new fallback fields so route configurations can round-trip without loss.
4
+
5
+ ## [0.51.5]
6
+ - Stability
7
+ - Route types now expose `notFound` fallback content for content routes and `unavailable` fallback content for service routes.
8
+
1
9
  ## [0.51.4]
2
10
  - Stability
3
11
 
@@ -464,6 +464,7 @@ export interface RouteCorsRule {
464
464
  }
465
465
  export interface RouteContentSpec {
466
466
  subpath?: string;
467
+ notFound?: string | null;
467
468
  cors?: RouteCorsRule[];
468
469
  index?: boolean;
469
470
  iap?: boolean;
@@ -477,9 +478,11 @@ interface RoutePathBase {
477
478
  export type RoutePathSpec = RoutePathBase & ({
478
479
  targetPort: string | number;
479
480
  targetContent?: never;
481
+ unavailable?: string | null;
480
482
  } | {
481
483
  targetContent: RouteContentSpec;
482
484
  targetPort?: never;
485
+ unavailable?: never;
483
486
  });
484
487
  export interface RouteSpec {
485
488
  version: "v1";
@@ -464,6 +464,7 @@ export interface RouteCorsRule {
464
464
  }
465
465
  export interface RouteContentSpec {
466
466
  subpath?: string;
467
+ notFound?: string | null;
467
468
  cors?: RouteCorsRule[];
468
469
  index?: boolean;
469
470
  iap?: boolean;
@@ -477,9 +478,11 @@ interface RoutePathBase {
477
478
  export type RoutePathSpec = RoutePathBase & ({
478
479
  targetPort: string | number;
479
480
  targetContent?: never;
481
+ unavailable?: string | null;
480
482
  } | {
481
483
  targetContent: RouteContentSpec;
482
484
  targetPort?: never;
485
+ unavailable?: never;
483
486
  });
484
487
  export interface RouteSpec {
485
488
  version: "v1";
@@ -464,6 +464,7 @@ export interface RouteCorsRule {
464
464
  }
465
465
  export interface RouteContentSpec {
466
466
  subpath?: string;
467
+ notFound?: string | null;
467
468
  cors?: RouteCorsRule[];
468
469
  index?: boolean;
469
470
  iap?: boolean;
@@ -477,9 +478,11 @@ interface RoutePathBase {
477
478
  export type RoutePathSpec = RoutePathBase & ({
478
479
  targetPort: string | number;
479
480
  targetContent?: never;
481
+ unavailable?: string | null;
480
482
  } | {
481
483
  targetContent: RouteContentSpec;
482
484
  targetPort?: never;
485
+ unavailable?: never;
483
486
  });
484
487
  export interface RouteSpec {
485
488
  version: "v1";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meshagent/meshagent",
3
- "version": "0.51.4",
3
+ "version": "0.51.6",
4
4
  "description": "Meshagent Client",
5
5
  "homepage": "https://github.com/meshagent/meshagent-ts",
6
6
  "scripts": {