cloudflare-next-intl 0.9.49 → 0.9.51

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,6 +1,20 @@
1
1
  import type { Plugin } from "vite";
2
- export declare function isAppPageRouteWiringAlreadyFixed(code: string): boolean;
3
- export declare function patchAppPageRouteWiring(code: string): string;
2
+ declare const REQUIRED_SYMBOLS: {
3
+ readonly routeWiring: readonly ["makeThenableParams", "resolveAppPageSegmentParams", "routeLoadingComponent", "ancestorLoadingEntry", "slotParams", "ownerLoadingEntry"];
4
+ readonly routeMatching: readonly ["trieMatch", "getOrBuildTrie", "normalizePathnameForRouteMatch"];
5
+ readonly optimisticRouting: readonly ["getRouteTrie", "matchNode", "decodeMatchedParams", "hrefToRouteParts"];
6
+ readonly prefetchLearning: readonly ["resolveOptimisticNavigationPayload", "__basePath", "optimisticRouteTemplates", "optimisticRouteTemplateSources", "optimisticRouteTemplateLearning", "getOptimisticPrefetchSourceKey", "parsePrefetchCacheKey", "getPrefetchCache", "isSettledPrefetchCacheEntry", "learnOptimisticRouteTemplateFromPrefetch", "currentHref", "rscUrl"];
7
+ readonly suspenseProbe: readonly ["REACT_CLIENT_REFERENCE_TYPE"];
8
+ };
9
+ export type VinextPatchName = keyof typeof REQUIRED_SYMBOLS;
10
+ export declare function hasRequiredSymbols(code: string, patchName: VinextPatchName): boolean;
11
+ export declare function missingRequiredSymbols(code: string, patchName: VinextPatchName): string[];
12
+ export interface AppPageRouteWiringPatchOptions {
13
+ unblockRenderDependencies?: boolean;
14
+ unblockPageElementDependencies?: boolean;
15
+ }
16
+ export declare function isAppPageRouteWiringAlreadyFixed(code: string, options?: AppPageRouteWiringPatchOptions): boolean;
17
+ export declare function patchAppPageRouteWiring(code: string, options?: AppPageRouteWiringPatchOptions): string;
4
18
  export declare function isRouteMatchingFile(id: string): boolean;
5
19
  export declare function isRouteMatchingAlreadyFixed(code: string): boolean;
6
20
  export declare function patchRouteMatching(code: string): string;
@@ -11,22 +25,65 @@ export declare function isPrefetchLearningFile(id: string): boolean;
11
25
  export declare function isPrefetchLearningAlreadyFixed(code: string): boolean;
12
26
  export declare function patchPrefetchLearning(code: string): string;
13
27
  export declare function resolveVinextBrowserEntryPath(root?: string): string | null;
28
+ export declare function isAppPageProbeFile(id: string): boolean;
29
+ export declare function isAppPageProbeAlreadyFixed(code: string): boolean;
30
+ export declare function patchAppPageProbe(code: string): string;
31
+ export declare function resolveVinextAppPageProbePath(root?: string): string | null;
32
+ export declare function isVinextAppPageProbeSafeOnDisk(root?: string): boolean;
33
+ export declare function isRenderDependencyFile(id: string): boolean;
34
+ export declare function isRenderDependencyAlreadyFixed(code: string): boolean;
35
+ export declare function patchRenderDependency(code: string): string;
36
+ export declare function resolveVinextRenderDependencyPath(root?: string): string | null;
37
+ export declare function isVinextRenderDependencySafeOnDisk(root?: string): boolean;
38
+ export declare function isOptimisticLearningTimeoutFile(id: string): boolean;
39
+ export declare function isOptimisticLearningTimeoutAlreadyFixed(code: string): boolean;
40
+ export declare function patchOptimisticLearningTimeout(code: string, timeoutMs?: number): string;
41
+ export declare function resolveVinextOptimisticLearningTimeoutPath(root?: string): string | null;
42
+ export declare function isVinextOptimisticLearningTimeoutSafeOnDisk(root?: string): boolean;
43
+ export declare function isPageInvokerSuspensionReleaseFile(id: string): boolean;
44
+ export declare function isPageInvokerSuspensionReleaseAlreadyFixed(code: string): boolean;
45
+ export declare function patchPageInvokerSuspensionRelease(code: string): string;
46
+ export declare function resolveVinextPageInvokerSuspensionReleasePath(root?: string): string | null;
47
+ export declare function isVinextPageInvokerSuspensionReleaseSafeOnDisk(root?: string): boolean;
48
+ export declare function isRefreshDeferralNavControllerFile(id: string): boolean;
49
+ export declare function isRefreshDeferralNavControllerAlreadyFixed(code: string): boolean;
50
+ export declare function patchRefreshDeferralNavController(code: string): string;
51
+ export declare function isRefreshDeferralEntryAlreadyFixed(code: string): boolean;
52
+ export declare function patchRefreshDeferralEntry(code: string): string;
53
+ export declare function resolveVinextNavControllerPath(root?: string): string | null;
14
54
  export declare function isAppPageRouteWiringFile(id: string): boolean;
15
55
  export declare function resolveVinextAppPageRouteWiringPath(root?: string): string | null;
56
+ export declare function isVinextAppPageRouteWiringSafeOnDisk(root?: string): boolean;
16
57
  export declare function resolveVinextRouteMatchingPath(root?: string): string | null;
17
58
  export declare function resolveVinextOptimisticRoutingPath(root?: string): string | null;
18
59
  export interface SyncPatchVinextOnDiskOptions {
19
60
  routeWiring?: boolean;
61
+ unblockRenderDependencies?: boolean;
62
+ unblockPageElementDependencies?: boolean;
63
+ refreshDeferral?: boolean;
20
64
  routeMatching?: boolean;
21
65
  optimisticRouting?: boolean;
22
66
  prefetchLearning?: boolean;
67
+ suspenseProbe?: boolean;
68
+ renderDependency?: boolean;
69
+ optimisticLearningTimeout?: boolean | number;
70
+ pageInvokerSuspensionRelease?: boolean;
23
71
  }
24
72
  export declare function syncPatchVinextOnDisk(root?: string, options?: SyncPatchVinextOnDiskOptions): boolean;
25
73
  export declare function bustVinextOptimizeDepsCache(cacheDir: string): boolean;
74
+ export declare function isVinextOptimizeDepsCacheStale(root: string, cacheDir: string): boolean;
26
75
  export interface VinextRouteWiringFixPluginOptions {
27
76
  routeWiring?: boolean;
28
77
  routeMatching?: boolean;
29
78
  optimisticRouting?: boolean;
30
79
  prefetchLearning?: boolean;
80
+ suspenseProbe?: boolean;
81
+ renderDependency?: boolean;
82
+ optimisticLearningTimeout?: boolean | number;
83
+ pageInvokerSuspensionRelease?: boolean;
84
+ unblockRenderDependencies?: boolean;
85
+ unblockPageElementDependencies?: boolean;
86
+ refreshDeferral?: boolean;
31
87
  }
32
88
  export declare function vinextRouteWiringFixPlugin(options?: VinextRouteWiringFixPluginOptions): Plugin;
89
+ export {};