react-router 7.15.1 → 7.18.5

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 (157) hide show
  1. package/CHANGELOG.md +73 -2
  2. package/dist/development/{browser-BOdXz9dK.d.ts → browser-7x6a6gQP.d.ts} +2 -2
  3. package/dist/development/{browser-3AnU12UI.d.mts → browser-CiGxXXOl.d.mts} +2 -2
  4. package/dist/development/{chunk-D6LUOGOQ.js → chunk-2ZBLYC7V.js} +265 -57
  5. package/dist/development/{chunk-4N6VE7H7.mjs → chunk-6KYCQHYJ.mjs} +268 -60
  6. package/dist/{production/chunk-Y6IFXO7V.js → development/chunk-IFHLIXZW.js} +7 -7
  7. package/dist/development/{chunk-RJYABSBD.mjs → chunk-JAHXRPFV.mjs} +71 -122
  8. package/dist/development/{chunk-66UKHEGQ.js → chunk-NDF5KBLP.js} +112 -108
  9. package/dist/{production/context-ByvtofY2.d.mts → development/context-BlYKn1tE.d.mts} +24 -5
  10. package/dist/development/{data-BqZ2x964.d.ts → data-CjO11-hU.d.ts} +10 -2
  11. package/dist/{production/data-BVUf681J.d.mts → development/data-DEjBmEfD.d.mts} +10 -2
  12. package/dist/development/dom-export.d.mts +4 -4
  13. package/dist/development/dom-export.d.ts +4 -4
  14. package/dist/development/dom-export.js +61 -46
  15. package/dist/development/dom-export.mjs +39 -24
  16. package/dist/{production/index-react-server-client-BS5F89FR.d.ts → development/index-react-server-client-BaaZU3sM.d.ts} +32 -9
  17. package/dist/{production/index-react-server-client-DY04-103.d.mts → development/index-react-server-client-KK-TR-t7.d.mts} +20 -6
  18. package/dist/development/index-react-server-client.d.mts +3 -3
  19. package/dist/development/index-react-server-client.d.ts +3 -3
  20. package/dist/development/index-react-server-client.js +4 -4
  21. package/dist/development/index-react-server-client.mjs +2 -2
  22. package/dist/development/index-react-server.d.mts +20 -2
  23. package/dist/development/index-react-server.d.ts +20 -2
  24. package/dist/development/index-react-server.js +212 -144
  25. package/dist/development/index-react-server.mjs +211 -143
  26. package/dist/development/index.d.mts +22 -15
  27. package/dist/development/index.d.ts +22 -15
  28. package/dist/development/index.js +160 -211
  29. package/dist/development/index.mjs +3 -5
  30. package/dist/{production/instrumentation-cRWWLfsU.d.ts → development/instrumentation-CPkMwccd.d.ts} +12 -2
  31. package/dist/development/lib/types/internal.d.mts +2 -2
  32. package/dist/development/lib/types/internal.d.ts +2 -2
  33. package/dist/development/lib/types/internal.js +1 -1
  34. package/dist/development/lib/types/internal.mjs +1 -1
  35. package/dist/development/{register-Df8okEea.d.mts → register-CmkRspdl.d.mts} +1 -1
  36. package/dist/development/{register-Bsscfj79.d.ts → register-roq_0qYo.d.ts} +1 -1
  37. package/dist/production/{browser-BOdXz9dK.d.ts → browser-7x6a6gQP.d.ts} +2 -2
  38. package/dist/production/{browser-3AnU12UI.d.mts → browser-CiGxXXOl.d.mts} +2 -2
  39. package/dist/production/{chunk-PNZCCTKT.js → chunk-75HN637G.js} +112 -108
  40. package/dist/production/{chunk-JAKZPQZC.mjs → chunk-7RTFRKQW.mjs} +268 -60
  41. package/dist/production/{chunk-HUBUW7R3.js → chunk-HNBICOIU.js} +265 -57
  42. package/dist/production/{chunk-6S4627ZB.mjs → chunk-IAM5GYT3.mjs} +71 -122
  43. package/dist/{development/chunk-4YRVXM2U.js → production/chunk-K3NA4NUH.js} +7 -7
  44. package/dist/{development/context-ByvtofY2.d.mts → production/context-BlYKn1tE.d.mts} +24 -5
  45. package/dist/production/{data-BqZ2x964.d.ts → data-CjO11-hU.d.ts} +10 -2
  46. package/dist/{development/data-BVUf681J.d.mts → production/data-DEjBmEfD.d.mts} +10 -2
  47. package/dist/production/dom-export.d.mts +4 -4
  48. package/dist/production/dom-export.d.ts +4 -4
  49. package/dist/production/dom-export.js +61 -46
  50. package/dist/production/dom-export.mjs +39 -24
  51. package/dist/{development/index-react-server-client-BS5F89FR.d.ts → production/index-react-server-client-BaaZU3sM.d.ts} +32 -9
  52. package/dist/{development/index-react-server-client-DY04-103.d.mts → production/index-react-server-client-KK-TR-t7.d.mts} +20 -6
  53. package/dist/production/index-react-server-client.d.mts +3 -3
  54. package/dist/production/index-react-server-client.d.ts +3 -3
  55. package/dist/production/index-react-server-client.js +4 -4
  56. package/dist/production/index-react-server-client.mjs +2 -2
  57. package/dist/production/index-react-server.d.mts +20 -2
  58. package/dist/production/index-react-server.d.ts +20 -2
  59. package/dist/production/index-react-server.js +212 -144
  60. package/dist/production/index-react-server.mjs +211 -143
  61. package/dist/production/index.d.mts +22 -15
  62. package/dist/production/index.d.ts +22 -15
  63. package/dist/production/index.js +160 -211
  64. package/dist/production/index.mjs +3 -5
  65. package/dist/{development/instrumentation-cRWWLfsU.d.ts → production/instrumentation-CPkMwccd.d.ts} +12 -2
  66. package/dist/production/lib/types/internal.d.mts +2 -2
  67. package/dist/production/lib/types/internal.d.ts +2 -2
  68. package/dist/production/lib/types/internal.js +1 -1
  69. package/dist/production/lib/types/internal.mjs +1 -1
  70. package/dist/production/{register-Df8okEea.d.mts → register-CmkRspdl.d.mts} +1 -1
  71. package/dist/production/{register-Bsscfj79.d.ts → register-roq_0qYo.d.ts} +1 -1
  72. package/docs/explanation/backend-for-frontend.md +50 -0
  73. package/docs/explanation/code-splitting.md +61 -0
  74. package/docs/explanation/concurrency.md +135 -0
  75. package/docs/explanation/form-vs-fetcher.md +292 -0
  76. package/docs/explanation/hot-module-replacement.md +137 -0
  77. package/docs/explanation/hydration.md +14 -0
  78. package/docs/explanation/index-query-param.md +86 -0
  79. package/docs/explanation/index.md +4 -0
  80. package/docs/explanation/lazy-route-discovery.md +78 -0
  81. package/docs/explanation/location.md +6 -0
  82. package/docs/explanation/progressive-enhancement.md +150 -0
  83. package/docs/explanation/race-conditions.md +88 -0
  84. package/docs/explanation/react-transitions.md +160 -0
  85. package/docs/explanation/route-matching.md +7 -0
  86. package/docs/explanation/server-client-execution.md +4 -0
  87. package/docs/explanation/sessions-and-cookies.md +465 -0
  88. package/docs/explanation/special-files.md +16 -0
  89. package/docs/explanation/state-management.md +524 -0
  90. package/docs/explanation/styling.md +87 -0
  91. package/docs/explanation/type-safety.md +82 -0
  92. package/docs/how-to/accessibility.md +44 -0
  93. package/docs/how-to/client-data.md +199 -0
  94. package/docs/how-to/data-strategy.md +317 -0
  95. package/docs/how-to/error-boundary.md +231 -0
  96. package/docs/how-to/error-reporting.md +142 -0
  97. package/docs/how-to/fetchers.md +307 -0
  98. package/docs/how-to/file-route-conventions.md +410 -0
  99. package/docs/how-to/file-uploads.md +217 -0
  100. package/docs/how-to/form-validation.md +120 -0
  101. package/docs/how-to/headers.md +165 -0
  102. package/docs/how-to/index.md +4 -0
  103. package/docs/how-to/instrumentation.md +556 -0
  104. package/docs/how-to/meta.md +40 -0
  105. package/docs/how-to/middleware.md +763 -0
  106. package/docs/how-to/navigation-blocking.md +233 -0
  107. package/docs/how-to/optimize-revalidation.md +12 -0
  108. package/docs/how-to/pre-rendering.md +225 -0
  109. package/docs/how-to/presets.md +103 -0
  110. package/docs/how-to/react-server-components.md +899 -0
  111. package/docs/how-to/resource-routes.md +126 -0
  112. package/docs/how-to/route-module-type-safety.md +100 -0
  113. package/docs/how-to/search-params.md +4 -0
  114. package/docs/how-to/security.md +32 -0
  115. package/docs/how-to/server-bundles.md +66 -0
  116. package/docs/how-to/spa.md +120 -0
  117. package/docs/how-to/status.md +63 -0
  118. package/docs/how-to/suspense.md +132 -0
  119. package/docs/how-to/using-handle.md +117 -0
  120. package/docs/how-to/view-transitions.md +237 -0
  121. package/docs/how-to/webhook.md +50 -0
  122. package/docs/index.md +39 -0
  123. package/docs/start/data/actions.md +138 -0
  124. package/docs/start/data/custom.md +198 -0
  125. package/docs/start/data/data-loading.md +44 -0
  126. package/docs/start/data/index.md +4 -0
  127. package/docs/start/data/installation.md +56 -0
  128. package/docs/start/data/navigating.md +12 -0
  129. package/docs/start/data/pending-ui.md +12 -0
  130. package/docs/start/data/route-object.md +268 -0
  131. package/docs/start/data/routing.md +281 -0
  132. package/docs/start/data/testing.md +8 -0
  133. package/docs/start/declarative/index.md +4 -0
  134. package/docs/start/declarative/installation.md +43 -0
  135. package/docs/start/declarative/navigating.md +133 -0
  136. package/docs/start/declarative/routing.md +237 -0
  137. package/docs/start/declarative/url-values.md +65 -0
  138. package/docs/start/framework/actions.md +174 -0
  139. package/docs/start/framework/data-loading.md +201 -0
  140. package/docs/start/framework/deploying.md +100 -0
  141. package/docs/start/framework/index.md +4 -0
  142. package/docs/start/framework/installation.md +41 -0
  143. package/docs/start/framework/navigating.md +182 -0
  144. package/docs/start/framework/pending-ui.md +142 -0
  145. package/docs/start/framework/rendering.md +59 -0
  146. package/docs/start/framework/route-module.md +527 -0
  147. package/docs/start/framework/routing.md +362 -0
  148. package/docs/start/framework/testing.md +133 -0
  149. package/docs/start/index.md +4 -0
  150. package/docs/start/modes.md +201 -0
  151. package/docs/upgrading/component-routes.md +363 -0
  152. package/docs/upgrading/future.md +490 -0
  153. package/docs/upgrading/index.md +4 -0
  154. package/docs/upgrading/remix.md +403 -0
  155. package/docs/upgrading/router-provider.md +442 -0
  156. package/docs/upgrading/v6.md +382 -0
  157. package/package.json +2 -1
@@ -1,4 +1,4 @@
1
- export { Q as MemoryRouter, T as Navigate, U as Outlet, V as Route, W as Router, X as RouterProvider, Y as Routes, A as UNSAFE_AwaitContextProvider, ab as UNSAFE_WithComponentProps, af as UNSAFE_WithErrorBoundaryProps, ad as UNSAFE_WithHydrateFallbackProps } from './context-ByvtofY2.mjs';
2
- export { l as BrowserRouter, q as Form, m as HashRouter, n as Link, X as Links, W as Meta, p as NavLink, r as ScrollRestoration, T as StaticRouter, V as StaticRouterProvider, o as unstable_HistoryRouter } from './index-react-server-client-DY04-103.mjs';
3
- import './data-BVUf681J.mjs';
1
+ export { Q as MemoryRouter, T as Navigate, U as Outlet, V as Route, W as Router, X as RouterProvider, Y as Routes, A as UNSAFE_AwaitContextProvider, ab as UNSAFE_WithComponentProps, af as UNSAFE_WithErrorBoundaryProps, ad as UNSAFE_WithHydrateFallbackProps } from './context-BlYKn1tE.mjs';
2
+ export { l as BrowserRouter, q as Form, m as HashRouter, n as Link, X as Links, W as Meta, p as NavLink, r as ScrollRestoration, T as StaticRouter, V as StaticRouterProvider, o as unstable_HistoryRouter } from './index-react-server-client-KK-TR-t7.mjs';
3
+ import './data-DEjBmEfD.mjs';
4
4
  import 'react';
@@ -1,4 +1,4 @@
1
- export { W as BrowserRouter, $ as Form, X as HashRouter, Y as Link, an as Links, j as MemoryRouter, am as Meta, _ as NavLink, k as Navigate, l as Outlet, m as Route, n as Router, o as RouterProvider, p as Routes, a0 as ScrollRestoration, ak as StaticRouter, al as StaticRouterProvider, b as UNSAFE_AwaitContextProvider, aH as UNSAFE_WithComponentProps, aL as UNSAFE_WithErrorBoundaryProps, aJ as UNSAFE_WithHydrateFallbackProps, Z as unstable_HistoryRouter } from './index-react-server-client-BS5F89FR.js';
2
- import './instrumentation-cRWWLfsU.js';
3
- import './data-BqZ2x964.js';
1
+ export { W as BrowserRouter, $ as Form, X as HashRouter, Y as Link, an as Links, j as MemoryRouter, am as Meta, _ as NavLink, k as Navigate, l as Outlet, m as Route, n as Router, o as RouterProvider, p as Routes, a0 as ScrollRestoration, ak as StaticRouter, al as StaticRouterProvider, b as UNSAFE_AwaitContextProvider, aH as UNSAFE_WithComponentProps, aL as UNSAFE_WithErrorBoundaryProps, aJ as UNSAFE_WithHydrateFallbackProps, Z as unstable_HistoryRouter } from './index-react-server-client-BaaZU3sM.js';
2
+ import './instrumentation-CPkMwccd.js';
3
+ import './data-CjO11-hU.js';
4
4
  import 'react';
@@ -1,5 +1,5 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});/**
2
- * react-router v7.15.1
2
+ * react-router v7.18.5
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -19,7 +19,7 @@
19
19
 
20
20
 
21
21
 
22
- var _chunkPNZCCTKTjs = require('./chunk-PNZCCTKT.js');
22
+ var _chunk75HN637Gjs = require('./chunk-75HN637G.js');
23
23
 
24
24
 
25
25
 
@@ -34,7 +34,7 @@ var _chunkPNZCCTKTjs = require('./chunk-PNZCCTKT.js');
34
34
 
35
35
 
36
36
 
37
- var _chunkHUBUW7R3js = require('./chunk-HUBUW7R3.js');
37
+ var _chunkHNBICOIUjs = require('./chunk-HNBICOIU.js');
38
38
 
39
39
 
40
40
 
@@ -58,4 +58,4 @@ var _chunkHUBUW7R3js = require('./chunk-HUBUW7R3.js');
58
58
 
59
59
 
60
60
 
61
- exports.BrowserRouter = _chunkPNZCCTKTjs.BrowserRouter; exports.Form = _chunkPNZCCTKTjs.Form; exports.HashRouter = _chunkPNZCCTKTjs.HashRouter; exports.Link = _chunkPNZCCTKTjs.Link; exports.Links = _chunkHUBUW7R3js.Links; exports.MemoryRouter = _chunkHUBUW7R3js.MemoryRouter; exports.Meta = _chunkHUBUW7R3js.Meta; exports.NavLink = _chunkPNZCCTKTjs.NavLink; exports.Navigate = _chunkHUBUW7R3js.Navigate; exports.Outlet = _chunkHUBUW7R3js.Outlet; exports.Route = _chunkHUBUW7R3js.Route; exports.Router = _chunkHUBUW7R3js.Router; exports.RouterProvider = _chunkHUBUW7R3js.RouterProvider; exports.Routes = _chunkHUBUW7R3js.Routes; exports.ScrollRestoration = _chunkPNZCCTKTjs.ScrollRestoration; exports.StaticRouter = _chunkPNZCCTKTjs.StaticRouter; exports.StaticRouterProvider = _chunkPNZCCTKTjs.StaticRouterProvider; exports.UNSAFE_AwaitContextProvider = _chunkHUBUW7R3js.AwaitContextProvider; exports.UNSAFE_WithComponentProps = _chunkHUBUW7R3js.WithComponentProps; exports.UNSAFE_WithErrorBoundaryProps = _chunkHUBUW7R3js.WithErrorBoundaryProps; exports.UNSAFE_WithHydrateFallbackProps = _chunkHUBUW7R3js.WithHydrateFallbackProps; exports.unstable_HistoryRouter = _chunkPNZCCTKTjs.HistoryRouter;
61
+ exports.BrowserRouter = _chunk75HN637Gjs.BrowserRouter; exports.Form = _chunk75HN637Gjs.Form; exports.HashRouter = _chunk75HN637Gjs.HashRouter; exports.Link = _chunk75HN637Gjs.Link; exports.Links = _chunkHNBICOIUjs.Links; exports.MemoryRouter = _chunkHNBICOIUjs.MemoryRouter; exports.Meta = _chunkHNBICOIUjs.Meta; exports.NavLink = _chunk75HN637Gjs.NavLink; exports.Navigate = _chunkHNBICOIUjs.Navigate; exports.Outlet = _chunkHNBICOIUjs.Outlet; exports.Route = _chunkHNBICOIUjs.Route; exports.Router = _chunkHNBICOIUjs.Router; exports.RouterProvider = _chunkHNBICOIUjs.RouterProvider; exports.Routes = _chunkHNBICOIUjs.Routes; exports.ScrollRestoration = _chunk75HN637Gjs.ScrollRestoration; exports.StaticRouter = _chunk75HN637Gjs.StaticRouter; exports.StaticRouterProvider = _chunk75HN637Gjs.StaticRouterProvider; exports.UNSAFE_AwaitContextProvider = _chunkHNBICOIUjs.AwaitContextProvider; exports.UNSAFE_WithComponentProps = _chunkHNBICOIUjs.WithComponentProps; exports.UNSAFE_WithErrorBoundaryProps = _chunkHNBICOIUjs.WithErrorBoundaryProps; exports.UNSAFE_WithHydrateFallbackProps = _chunkHNBICOIUjs.WithHydrateFallbackProps; exports.unstable_HistoryRouter = _chunk75HN637Gjs.HistoryRouter;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v7.15.1
2
+ * react-router v7.18.5
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -32,7 +32,7 @@ import {
32
32
  WithComponentProps,
33
33
  WithErrorBoundaryProps,
34
34
  WithHydrateFallbackProps
35
- } from "./chunk-JAKZPQZC.mjs";
35
+ } from "./chunk-7RTFRKQW.mjs";
36
36
  export {
37
37
  BrowserRouter,
38
38
  Form,
@@ -845,6 +845,8 @@ interface RouteMeta<RouteObjectType extends RouteObject = RouteObject> {
845
845
  caseSensitive: boolean;
846
846
  childrenIndex: number;
847
847
  route: RouteObjectType;
848
+ matcher?: RegExp;
849
+ compiledParams?: CompiledPathParam[];
848
850
  }
849
851
  /**
850
852
  * @private
@@ -858,6 +860,10 @@ interface RouteBranch<RouteObjectType extends RouteObject = RouteObject> {
858
860
  score: number;
859
861
  routesMeta: RouteMeta<RouteObjectType>[];
860
862
  }
863
+ type CompiledPathParam = {
864
+ paramName: string;
865
+ isOptional?: boolean;
866
+ };
861
867
  declare class DataWithResponseInit<D> {
862
868
  type: string;
863
869
  data: D;
@@ -1237,6 +1243,14 @@ interface Router {
1237
1243
  * @param location
1238
1244
  */
1239
1245
  createHref(location: Location | URL): string;
1246
+ /**
1247
+ * @private
1248
+ * PRIVATE - DO NOT USE
1249
+ *
1250
+ * Utility function to create a URL for the given location
1251
+ * @param location
1252
+ */
1253
+ createURL?(to: To): URL;
1240
1254
  /**
1241
1255
  * @private
1242
1256
  * PRIVATE - DO NOT USE
@@ -1447,6 +1461,8 @@ interface StaticHandler {
1447
1461
  * The set of data routes managed by this handler
1448
1462
  */
1449
1463
  dataRoutes: DataRouteObject[];
1464
+ /** @private Estimated route metadata visits per regex match. */
1465
+ readonly _matchCost?: number;
1450
1466
  /**
1451
1467
  * @private
1452
1468
  * PRIVATE - DO NOT USE
@@ -1837,7 +1853,9 @@ interface PageLinkDescriptor extends Omit<HtmlLinkDescriptor, "href" | "rel" | "
1837
1853
  /**
1838
1854
  * A [`nonce`](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Global_attributes/nonce)
1839
1855
  * attribute to render on the [`<link>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link)
1840
- * element
1856
+ * element. If not provided in Framework Mode, it will default to any
1857
+ * {@link ServerRouter | `<ServerRouter nonce>`} prop.
1858
+
1841
1859
  */
1842
1860
  nonce?: string | undefined;
1843
1861
  /**
@@ -2058,7 +2076,7 @@ type MetaDescriptor = {
2058
2076
  httpEquiv: string;
2059
2077
  content: string;
2060
2078
  } | {
2061
- "script:ld+json": LdJsonObject;
2079
+ "script:ld+json": LdJsonObject | LdJsonObject[];
2062
2080
  } | {
2063
2081
  tagName: "meta" | "link";
2064
2082
  [name: string]: string;
@@ -845,6 +845,8 @@ interface RouteMeta<RouteObjectType extends RouteObject = RouteObject> {
845
845
  caseSensitive: boolean;
846
846
  childrenIndex: number;
847
847
  route: RouteObjectType;
848
+ matcher?: RegExp;
849
+ compiledParams?: CompiledPathParam[];
848
850
  }
849
851
  /**
850
852
  * @private
@@ -858,6 +860,10 @@ interface RouteBranch<RouteObjectType extends RouteObject = RouteObject> {
858
860
  score: number;
859
861
  routesMeta: RouteMeta<RouteObjectType>[];
860
862
  }
863
+ type CompiledPathParam = {
864
+ paramName: string;
865
+ isOptional?: boolean;
866
+ };
861
867
  declare class DataWithResponseInit<D> {
862
868
  type: string;
863
869
  data: D;
@@ -1237,6 +1243,14 @@ interface Router {
1237
1243
  * @param location
1238
1244
  */
1239
1245
  createHref(location: Location | URL): string;
1246
+ /**
1247
+ * @private
1248
+ * PRIVATE - DO NOT USE
1249
+ *
1250
+ * Utility function to create a URL for the given location
1251
+ * @param location
1252
+ */
1253
+ createURL?(to: To): URL;
1240
1254
  /**
1241
1255
  * @private
1242
1256
  * PRIVATE - DO NOT USE
@@ -1447,6 +1461,8 @@ interface StaticHandler {
1447
1461
  * The set of data routes managed by this handler
1448
1462
  */
1449
1463
  dataRoutes: DataRouteObject[];
1464
+ /** @private Estimated route metadata visits per regex match. */
1465
+ readonly _matchCost?: number;
1450
1466
  /**
1451
1467
  * @private
1452
1468
  * PRIVATE - DO NOT USE
@@ -1837,7 +1853,9 @@ interface PageLinkDescriptor extends Omit<HtmlLinkDescriptor, "href" | "rel" | "
1837
1853
  /**
1838
1854
  * A [`nonce`](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Global_attributes/nonce)
1839
1855
  * attribute to render on the [`<link>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link)
1840
- * element
1856
+ * element. If not provided in Framework Mode, it will default to any
1857
+ * {@link ServerRouter | `<ServerRouter nonce>`} prop.
1858
+
1841
1859
  */
1842
1860
  nonce?: string | undefined;
1843
1861
  /**
@@ -2058,7 +2076,7 @@ type MetaDescriptor = {
2058
2076
  httpEquiv: string;
2059
2077
  content: string;
2060
2078
  } | {
2061
- "script:ld+json": LdJsonObject;
2079
+ "script:ld+json": LdJsonObject | LdJsonObject[];
2062
2080
  } | {
2063
2081
  tagName: "meta" | "link";
2064
2082
  [name: string]: string;