gatsby 4.24.8-alpha-wordpress-image-err.6 → 4.24.8

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 (304) hide show
  1. package/dist/bootstrap/__mocks__/get-config/ts-dir/gatsby-config.d.ts +3 -0
  2. package/dist/bootstrap/__mocks__/resolve-module-exports.d.ts +1 -0
  3. package/dist/bootstrap/create-graphql-runner.d.ts +10 -0
  4. package/dist/bootstrap/get-config-file.d.ts +4 -0
  5. package/dist/bootstrap/index.d.ts +10 -0
  6. package/dist/bootstrap/load-config/index.d.ts +7 -0
  7. package/dist/bootstrap/load-plugins/index.d.ts +3 -0
  8. package/dist/bootstrap/load-plugins/load-internal-plugins.d.ts +2 -0
  9. package/dist/bootstrap/load-plugins/process-plugin.d.ts +2 -0
  10. package/dist/bootstrap/load-plugins/resolve-plugin.d.ts +13 -0
  11. package/dist/bootstrap/load-plugins/types.d.ts +48 -0
  12. package/dist/bootstrap/load-plugins/utils/check-local-plugin.d.ts +8 -0
  13. package/dist/bootstrap/load-plugins/utils/create-hash.d.ts +1 -0
  14. package/dist/bootstrap/load-plugins/utils/create-id.d.ts +10 -0
  15. package/dist/bootstrap/load-plugins/utils/flatten-plugins.d.ts +2 -0
  16. package/dist/bootstrap/load-plugins/utils/get-api.d.ts +12 -0
  17. package/dist/bootstrap/load-plugins/utils/handle-gatsby-cloud.d.ts +6 -0
  18. package/dist/bootstrap/load-plugins/utils/normalize.d.ts +5 -0
  19. package/dist/bootstrap/load-plugins/validate.d.ts +40 -0
  20. package/dist/bootstrap/log-line-function.d.ts +0 -0
  21. package/dist/bootstrap/prefer-default.d.ts +1 -0
  22. package/dist/bootstrap/redirects-writer.d.ts +2 -0
  23. package/dist/bootstrap/remove-stale-jobs.d.ts +2 -0
  24. package/dist/bootstrap/requires-writer.d.ts +10 -0
  25. package/dist/bootstrap/resolve-module-exports.d.ts +14 -0
  26. package/dist/bootstrap/schema-hot-reloader.d.ts +3 -0
  27. package/dist/cache/cache-fs.d.ts +1 -0
  28. package/dist/cache/json-file-store.d.ts +8 -0
  29. package/dist/cache/wrap-callback.d.ts +0 -0
  30. package/dist/commands/build-html.d.ts +53 -0
  31. package/dist/commands/build-javascript.d.ts +4 -0
  32. package/dist/commands/build-utils.d.ts +8 -0
  33. package/dist/commands/build.d.ts +1 -0
  34. package/dist/commands/clean.d.ts +1 -0
  35. package/dist/commands/develop-process.d.ts +1 -0
  36. package/dist/commands/develop-static.d.ts +3 -0
  37. package/dist/commands/develop.d.ts +2 -0
  38. package/dist/commands/feedback.d.ts +1 -0
  39. package/dist/commands/repl.d.ts +1 -0
  40. package/dist/commands/serve.d.ts +1 -0
  41. package/dist/commands/types.d.ts +48 -0
  42. package/dist/constants.d.ts +1 -0
  43. package/dist/datastore/common/iterable.d.ts +51 -0
  44. package/dist/datastore/common/query.d.ts +69 -0
  45. package/dist/datastore/datastore.d.ts +4 -0
  46. package/dist/datastore/in-memory/in-memory-datastore.d.ts +2 -0
  47. package/dist/datastore/in-memory/indexing.d.ts +80 -0
  48. package/dist/datastore/in-memory/run-fast-filters.d.ts +27 -0
  49. package/dist/datastore/index.d.ts +20 -0
  50. package/dist/datastore/lmdb/lmdb-datastore.d.ts +13 -0
  51. package/dist/datastore/lmdb/query/common.d.ts +23 -0
  52. package/dist/datastore/lmdb/query/create-index.d.ts +25 -0
  53. package/dist/datastore/lmdb/query/filter-using-index.d.ts +43 -0
  54. package/dist/datastore/lmdb/query/run-query.d.ts +9 -0
  55. package/dist/datastore/lmdb/query/suggest-index.d.ts +15 -0
  56. package/dist/datastore/lmdb/updates/nodes-by-type.d.ts +3 -0
  57. package/dist/datastore/lmdb/updates/nodes.d.ts +5 -0
  58. package/dist/datastore/types.d.ts +47 -0
  59. package/dist/internal-plugins/functions/config.d.ts +12 -0
  60. package/dist/internal-plugins/functions/gatsby-node.d.ts +3 -0
  61. package/dist/internal-plugins/functions/middleware.d.ts +9 -0
  62. package/dist/internal-plugins/partytown/gatsby-node.d.ts +2 -0
  63. package/dist/internal-plugins/partytown/proxy.d.ts +3 -0
  64. package/dist/internal-plugins/partytown/utils/get-forwards.d.ts +2 -0
  65. package/dist/internal-plugins/partytown/utils/inject-partytown-snippet.d.ts +2 -0
  66. package/dist/internal.d.ts +5 -0
  67. package/dist/joi-schemas/joi.d.ts +5 -0
  68. package/dist/query/error-parser.d.ts +19 -0
  69. package/dist/query/graphql-errors-codeframe.d.ts +1 -0
  70. package/dist/query/graphql-runner.d.ts +38 -0
  71. package/dist/query/graphql-span-tracer.d.ts +19 -0
  72. package/dist/query/index.d.ts +26 -0
  73. package/dist/query/query-runner.d.ts +13 -0
  74. package/dist/query/query-watcher.d.ts +17 -0
  75. package/dist/query/types.d.ts +35 -0
  76. package/dist/query/utils.d.ts +4 -0
  77. package/dist/redux/actions/add-page-dependency.d.ts +7 -0
  78. package/dist/redux/actions/index.d.ts +14 -0
  79. package/dist/redux/actions/internal.d.ts +124 -0
  80. package/dist/redux/actions/restricted.d.ts +293 -0
  81. package/dist/redux/index.d.ts +20 -0
  82. package/dist/redux/persist.d.ts +5 -0
  83. package/dist/redux/plugin-runner.d.ts +1 -0
  84. package/dist/redux/reducers/babelrc.d.ts +9 -0
  85. package/dist/redux/reducers/components.d.ts +2 -0
  86. package/dist/redux/reducers/config.d.ts +2 -0
  87. package/dist/redux/reducers/definitions.d.ts +2 -0
  88. package/dist/redux/reducers/flattened-plugins.d.ts +17 -0
  89. package/dist/redux/reducers/functions.d.ts +2 -0
  90. package/dist/redux/reducers/html.d.ts +8 -0
  91. package/dist/redux/reducers/index.d.ts +38 -0
  92. package/dist/redux/reducers/inference-metadata.d.ts +7 -0
  93. package/dist/redux/reducers/jobs.d.ts +5 -0
  94. package/dist/redux/reducers/jobsv2.d.ts +6 -0
  95. package/dist/redux/reducers/last-action.d.ts +2 -0
  96. package/dist/redux/reducers/node-manifest.d.ts +2 -0
  97. package/dist/redux/reducers/nodes-by-type.d.ts +2 -0
  98. package/dist/redux/reducers/nodes-touched.d.ts +3 -0
  99. package/dist/redux/reducers/nodes.d.ts +2 -0
  100. package/dist/redux/reducers/page-data-stats.d.ts +2 -0
  101. package/dist/redux/reducers/pages.d.ts +2 -0
  102. package/dist/redux/reducers/pending-page-data-writes.d.ts +4 -0
  103. package/dist/redux/reducers/program.d.ts +2 -0
  104. package/dist/redux/reducers/queries.d.ts +26 -0
  105. package/dist/redux/reducers/redirects.d.ts +2 -0
  106. package/dist/redux/reducers/resolved-nodes.d.ts +2 -0
  107. package/dist/redux/reducers/schema-customization.d.ts +23 -0
  108. package/dist/redux/reducers/schema.d.ts +3 -0
  109. package/dist/redux/reducers/set-request-headers.d.ts +7 -0
  110. package/dist/redux/reducers/static-queries-by-template.d.ts +2 -0
  111. package/dist/redux/reducers/static-query-components.d.ts +2 -0
  112. package/dist/redux/reducers/status.d.ts +6 -0
  113. package/dist/redux/reducers/telemetry.d.ts +2 -0
  114. package/dist/redux/reducers/visited-page.d.ts +2 -0
  115. package/dist/redux/reducers/webpack-compilation-hash.d.ts +2 -0
  116. package/dist/redux/reducers/webpack.d.ts +2 -0
  117. package/dist/redux/types.d.ts +835 -0
  118. package/dist/schema/context.d.ts +14 -0
  119. package/dist/schema/graphql-engine/bootstrap.d.ts +1 -0
  120. package/dist/schema/graphql-engine/bundle-webpack.d.ts +5 -0
  121. package/dist/schema/graphql-engine/entry.d.ts +19 -0
  122. package/dist/schema/graphql-engine/lmdb-bundling-patch.d.ts +1 -0
  123. package/dist/schema/graphql-engine/print-plugins.d.ts +2 -0
  124. package/dist/schema/graphql-engine/standalone-regenerate.d.ts +2 -0
  125. package/dist/schema/infer/build-example-data.d.ts +5 -0
  126. package/dist/schema/infer/inference-metadata.d.ts +72 -0
  127. package/dist/schema/infer/is-file.d.ts +1 -0
  128. package/dist/schema/infer/type-conflict-reporter.d.ts +28 -0
  129. package/dist/schema/print.d.ts +20 -0
  130. package/dist/schema/resolvers.d.ts +37 -0
  131. package/dist/schema/schema-composer.d.ts +3 -0
  132. package/dist/schema/type-definitions.d.ts +47 -0
  133. package/dist/schema/types/built-in-types.d.ts +5 -0
  134. package/dist/schema/types/date.d.ts +37 -0
  135. package/dist/schema/types/derived-types.d.ts +45 -0
  136. package/dist/schema/types/filter.d.ts +12 -0
  137. package/dist/schema/types/media.d.ts +2 -0
  138. package/dist/schema/types/node-interface.d.ts +14 -0
  139. package/dist/schema/types/pagination.d.ts +16 -0
  140. package/dist/schema/types/remote-file-interface.d.ts +3 -0
  141. package/dist/schema/types/sort.d.ts +18 -0
  142. package/dist/schema/types/type-builders.d.ts +36 -0
  143. package/dist/schema/utils.d.ts +18 -0
  144. package/dist/services/build-schema.d.ts +2 -0
  145. package/dist/services/calculate-dirty-queries.d.ts +5 -0
  146. package/dist/services/create-pages.d.ts +5 -0
  147. package/dist/services/customize-schema.d.ts +2 -0
  148. package/dist/services/extract-queries.d.ts +2 -0
  149. package/dist/services/graphql-typegen.d.ts +2 -0
  150. package/dist/services/index.d.ts +18 -0
  151. package/dist/services/initialize.d.ts +8 -0
  152. package/dist/services/listen-for-mutations.d.ts +2 -0
  153. package/dist/services/listen-to-webpack.d.ts +3 -0
  154. package/dist/services/post-bootstrap.d.ts +2 -0
  155. package/dist/services/recompile.d.ts +3 -0
  156. package/dist/services/run-mutation-batch.d.ts +2 -0
  157. package/dist/services/run-page-queries.d.ts +2 -0
  158. package/dist/services/run-static-queries.d.ts +2 -0
  159. package/dist/services/source-nodes.d.ts +5 -0
  160. package/dist/services/start-webpack-server.d.ts +9 -0
  161. package/dist/services/types.d.ts +52 -0
  162. package/dist/services/write-out-redirects.d.ts +2 -0
  163. package/dist/services/write-out-requires.d.ts +2 -0
  164. package/dist/state-machines/data-layer/actions.d.ts +8 -0
  165. package/dist/state-machines/data-layer/index.d.ts +24 -0
  166. package/dist/state-machines/data-layer/services.d.ts +3 -0
  167. package/dist/state-machines/data-layer/types.d.ts +27 -0
  168. package/dist/state-machines/develop/actions.d.ts +40 -0
  169. package/dist/state-machines/develop/index.d.ts +5 -0
  170. package/dist/state-machines/develop/services.d.ts +3 -0
  171. package/dist/state-machines/index.d.ts +7 -0
  172. package/dist/state-machines/query-running/actions.d.ts +9 -0
  173. package/dist/state-machines/query-running/index.d.ts +7 -0
  174. package/dist/state-machines/query-running/services.d.ts +3 -0
  175. package/dist/state-machines/query-running/types.d.ts +26 -0
  176. package/dist/state-machines/waiting/actions.d.ts +11 -0
  177. package/dist/state-machines/waiting/index.d.ts +12 -0
  178. package/dist/state-machines/waiting/services.d.ts +3 -0
  179. package/dist/state-machines/waiting/types.d.ts +12 -0
  180. package/dist/types.d.ts +9 -0
  181. package/dist/utils/api-browser-docs.d.ts +244 -0
  182. package/dist/utils/api-node-docs.d.ts +470 -0
  183. package/dist/utils/api-runner-error-parser.d.ts +5 -0
  184. package/dist/utils/app-data.d.ts +2 -0
  185. package/dist/utils/assert-store.d.ts +2 -0
  186. package/dist/utils/babel/babel-module-exports-helpers.d.ts +22 -0
  187. package/dist/utils/babel/babel-plugin-remove-api.d.ts +5 -0
  188. package/dist/utils/babel-loader-helpers.d.ts +19 -0
  189. package/dist/utils/babel-loader.d.ts +8 -0
  190. package/dist/utils/babel-parse-to-ast.d.ts +4 -0
  191. package/dist/utils/batcher.d.ts +15 -0
  192. package/dist/utils/browserslist.d.ts +2 -0
  193. package/dist/utils/cache-lmdb.d.ts +19 -0
  194. package/dist/utils/cache.d.ts +17 -0
  195. package/dist/utils/call-deferred-api.d.ts +8 -0
  196. package/dist/utils/changed-pages.d.ts +6 -0
  197. package/dist/utils/clear-require-cache.d.ts +1 -0
  198. package/dist/utils/client-assets-for-template.d.ts +9 -0
  199. package/dist/utils/create-node-id.d.ts +24 -0
  200. package/dist/utils/create-schema-customization.d.ts +6 -0
  201. package/dist/utils/detect-node-mutations.d.ts +4 -0
  202. package/dist/utils/detect-port-in-use-and-prompt.d.ts +1 -0
  203. package/dist/utils/dev-ssr/parse-error.d.ts +22 -0
  204. package/dist/utils/dev-ssr/render-dev-html-child.d.ts +13 -0
  205. package/dist/utils/dev-ssr/render-dev-html.d.ts +23 -0
  206. package/dist/utils/develop-preload-headers.d.ts +7 -0
  207. package/dist/utils/did-you-mean.d.ts +3 -0
  208. package/dist/utils/engine-context.d.ts +5 -0
  209. package/dist/utils/engines-fs-provider.d.ts +9 -0
  210. package/dist/utils/engines-helpers.d.ts +2 -0
  211. package/dist/utils/eslint-config.d.ts +3 -0
  212. package/dist/utils/eslint-rules/limited-exports-page-templates.d.ts +1 -0
  213. package/dist/utils/eslint-rules/no-anonymous-exports-page-templates.d.ts +1 -0
  214. package/dist/utils/eslint-rules-helpers.d.ts +4 -0
  215. package/dist/utils/express-middlewares.d.ts +4 -0
  216. package/dist/utils/fast-refresh-module.d.ts +22 -0
  217. package/dist/utils/feedback.d.ts +5 -0
  218. package/dist/utils/find-page-by-path.d.ts +2 -0
  219. package/dist/utils/flags.d.ts +41 -0
  220. package/dist/utils/gatsby-cloud-config.d.ts +4 -0
  221. package/dist/utils/gatsby-dependents.d.ts +8 -0
  222. package/dist/utils/gatsby-webpack-stats-extractor.d.ts +6 -0
  223. package/dist/utils/gatsby-webpack-virtual-modules.d.ts +6 -0
  224. package/dist/utils/get-cache.d.ts +2 -0
  225. package/dist/utils/get-latest-apis.d.ts +6 -0
  226. package/dist/utils/get-page-data.d.ts +3 -0
  227. package/dist/utils/get-public-path.d.ts +5 -0
  228. package/dist/utils/get-server-data.d.ts +19 -0
  229. package/dist/utils/get-ssl-cert.d.ts +9 -0
  230. package/dist/utils/get-static-dir.d.ts +12 -0
  231. package/dist/utils/get-value-at.d.ts +1 -0
  232. package/dist/utils/graphql-typegen/file-writes.d.ts +5 -0
  233. package/dist/utils/graphql-typegen/ts-codegen.d.ts +4 -0
  234. package/dist/utils/graphql-typegen/utils.d.ts +11 -0
  235. package/dist/utils/handle-flags.d.ts +8 -0
  236. package/dist/utils/is-32-bit-integer.d.ts +1 -0
  237. package/dist/utils/is-near-match.d.ts +1 -0
  238. package/dist/utils/jobs/manager.d.ts +34 -0
  239. package/dist/utils/jobs/types.d.ts +63 -0
  240. package/dist/utils/jobs/worker-messaging.d.ts +10 -0
  241. package/dist/utils/js-chunk-names.d.ts +1 -0
  242. package/dist/utils/loading-indicator.d.ts +3 -0
  243. package/dist/utils/local-eslint-config-finder.d.ts +1 -0
  244. package/dist/utils/merge-gatsby-config.d.ts +27 -0
  245. package/dist/utils/mett.d.ts +10 -0
  246. package/dist/utils/module-resolver.d.ts +3 -0
  247. package/dist/utils/node-manifest.d.ts +46 -0
  248. package/dist/utils/nodes.d.ts +13 -0
  249. package/dist/utils/normalize-path.d.ts +2 -0
  250. package/dist/utils/page-data-helpers.d.ts +14 -0
  251. package/dist/utils/page-data.d.ts +19 -0
  252. package/dist/utils/page-mode.d.ts +18 -0
  253. package/dist/utils/page-ssr-module/bundle-webpack.d.ts +17 -0
  254. package/dist/utils/page-ssr-module/entry.d.ts +43 -0
  255. package/dist/utils/parcel/compile-gatsby-files.d.ts +19 -0
  256. package/dist/utils/path.d.ts +5 -0
  257. package/dist/utils/prepare-regex.d.ts +1 -0
  258. package/dist/utils/prepare-urls.d.ts +7 -0
  259. package/dist/utils/print-instructions.d.ts +2 -0
  260. package/dist/utils/reach-router-add-basecontext-export-loader.d.ts +1 -0
  261. package/dist/utils/report-once.d.ts +1 -0
  262. package/dist/utils/require-gatsby-plugin.d.ts +9 -0
  263. package/dist/utils/sample-site-for-experiment.d.ts +2 -0
  264. package/dist/utils/sanitize-node.d.ts +12 -0
  265. package/dist/utils/show-experiment-notice.d.ts +6 -0
  266. package/dist/utils/source-nodes-api-runner.d.ts +8 -0
  267. package/dist/utils/source-nodes.d.ts +8 -0
  268. package/dist/utils/stack-trace-utils.d.ts +24 -0
  269. package/dist/utils/start-server.d.ts +24 -0
  270. package/dist/utils/state-machine-logging.d.ts +4 -0
  271. package/dist/utils/static-query-utils.d.ts +16 -0
  272. package/dist/utils/test-require-error.d.ts +1 -0
  273. package/dist/utils/tracer/index.d.ts +12 -0
  274. package/dist/utils/tracer/jaeger-local.d.ts +4 -0
  275. package/dist/utils/tracer/zipkin-local.d.ts +11 -0
  276. package/dist/utils/validate-engines/child.d.ts +1 -0
  277. package/dist/utils/validate-engines/index.d.ts +1 -0
  278. package/dist/utils/validate-page-component.d.ts +12 -0
  279. package/dist/utils/wait-until-jobs-complete.d.ts +2 -0
  280. package/dist/utils/webpack/bundle.d.ts +9 -0
  281. package/dist/utils/webpack/loaders/partial-hydration-reference-loader.d.ts +1 -0
  282. package/dist/utils/webpack/loaders/webpack-remove-exports-loader.d.ts +1 -0
  283. package/dist/utils/webpack/plugins/cache-folder-resolver.d.ts +9 -0
  284. package/dist/utils/webpack/plugins/corejs-resolver.d.ts +12 -0
  285. package/dist/utils/webpack/plugins/force-css-hmr-for-edge-cases.d.ts +22 -0
  286. package/dist/utils/webpack/plugins/partial-hydration.d.ts +29 -0
  287. package/dist/utils/webpack/plugins/static-query-mapper.d.ts +13 -0
  288. package/dist/utils/webpack/plugins/webpack-logging.d.ts +12 -0
  289. package/dist/utils/webpack-error-utils.d.ts +24 -0
  290. package/dist/utils/webpack-plugins.d.ts +46 -0
  291. package/dist/utils/webpack-status.d.ts +3 -0
  292. package/dist/utils/webpack-utils.d.ts +121 -0
  293. package/dist/utils/websocket-manager.d.ts +40 -0
  294. package/dist/utils/worker/child/index.d.ts +5 -0
  295. package/dist/utils/worker/child/load-config-and-plugins.d.ts +2 -0
  296. package/dist/utils/worker/child/queries.d.ts +7 -0
  297. package/dist/utils/worker/child/render-html.d.ts +28 -0
  298. package/dist/utils/worker/child/schema.d.ts +2 -0
  299. package/dist/utils/worker/child/state.d.ts +2 -0
  300. package/dist/utils/worker/messaging.d.ts +8 -0
  301. package/dist/utils/worker/pool.d.ts +10 -0
  302. package/dist/utils/worker/reporter.d.ts +3 -0
  303. package/dist/utils/worker/types.d.ts +3 -0
  304. package/package.json +19 -19
@@ -0,0 +1,3 @@
1
+ import type { GatsbyConfig } from "gatsby";
2
+ declare const config: GatsbyConfig;
3
+ export default config;
@@ -0,0 +1 @@
1
+ export declare const resolveModuleExports: (input: unknown) => Array<string> | undefined;
@@ -0,0 +1,10 @@
1
+ import { Span } from "opentracing";
2
+ import { ExecutionResult, Source } from "graphql";
3
+ import { Store } from "redux";
4
+ import { Reporter } from "../..";
5
+ import { IGatsbyState } from "../redux/types";
6
+ export declare type Runner = (query: string | Source, context: Record<string, any>) => Promise<ExecutionResult>;
7
+ export declare const createGraphQLRunner: (store: Store<IGatsbyState>, reporter: Reporter, { parentSpan, graphqlTracing, }?: {
8
+ parentSpan: Span | undefined;
9
+ graphqlTracing?: boolean | undefined;
10
+ }) => Runner;
@@ -0,0 +1,4 @@
1
+ export declare function getConfigFile(siteDirectory: string, configName: string, distance?: number): Promise<{
2
+ configModule: any;
3
+ configFilePath: string;
4
+ }>;
@@ -0,0 +1,10 @@
1
+ import { IBuildContext } from "../services";
2
+ import { Runner } from "./create-graphql-runner";
3
+ import type { GatsbyWorkerPool } from "../utils/worker/pool";
4
+ import { IProgram } from "../commands/types";
5
+ export declare function bootstrap(initialContext: Partial<IBuildContext> & {
6
+ program: IProgram;
7
+ }): Promise<{
8
+ gatsbyNodeGraphQLFunction: Runner;
9
+ workerPool: GatsbyWorkerPool;
10
+ }>;
@@ -0,0 +1,7 @@
1
+ import { IProgram } from "../../commands/types";
2
+ import { IGatsbyConfig } from "../../internal";
3
+ export declare function loadConfig({ siteDirectory, processFlags, }: {
4
+ siteDirectory: string;
5
+ processFlags?: boolean;
6
+ program?: IProgram;
7
+ }): Promise<IGatsbyConfig>;
@@ -0,0 +1,3 @@
1
+ import { IFlattenedPlugin } from "./types";
2
+ import { IGatsbyConfig } from "../../internal";
3
+ export declare function loadPlugins(rawConfig: IGatsbyConfig, rootDir: string): Promise<Array<IFlattenedPlugin>>;
@@ -0,0 +1,2 @@
1
+ import { IPluginInfo, ISiteConfig } from "./types";
2
+ export declare function loadInternalPlugins(config: ISiteConfig | undefined, rootDir: string): Array<IPluginInfo>;
@@ -0,0 +1,2 @@
1
+ import { IPluginInfo, PluginRef } from "./types";
2
+ export declare function processPlugin(plugin: PluginRef, rootDir: string): IPluginInfo;
@@ -0,0 +1,13 @@
1
+ import { IPluginInfo, PluginRef } from "./types";
2
+ /**
3
+ * @param plugin
4
+ * This should be a plugin spec object where possible but can also be the
5
+ * name of a plugin.
6
+ *
7
+ * When it is a name, it can be a name of a local plugin, the name of a plugin
8
+ * located in node_modules, or a Gatsby internal plugin. In the last case the
9
+ * plugin will be an absolute path.
10
+ * @param rootDir
11
+ * This is the project location, from which are found the plugins
12
+ */
13
+ export declare function resolvePlugin(plugin: PluginRef, rootDir: string): IPluginInfo;
@@ -0,0 +1,48 @@
1
+ export interface IRawSiteConfig {
2
+ plugins?: Array<PluginRef>;
3
+ }
4
+ export interface ISiteConfig extends IRawSiteConfig {
5
+ plugins?: Array<IPluginRefObject>;
6
+ }
7
+ export interface IPluginInfo {
8
+ /** Unique ID describing a plugin */
9
+ id: string;
10
+ /** The absolute path to the plugin */
11
+ resolve: string;
12
+ /** The absolute path to the compiled plugin's gatsby-node module, if there is one */
13
+ resolvedCompiledGatsbyNode?: string;
14
+ /** The plugin name */
15
+ name: string;
16
+ /** The plugin version (can be content hash) */
17
+ version: string;
18
+ /** Options passed to the plugin */
19
+ pluginOptions?: IPluginInfoOptions;
20
+ subPluginPaths?: Array<string>;
21
+ module?: any;
22
+ modulePath?: string;
23
+ }
24
+ export interface IPluginInfoOptions {
25
+ plugins?: Array<IPluginInfo>;
26
+ path?: string;
27
+ [option: string]: unknown;
28
+ }
29
+ export interface IFlattenedPlugin extends IPluginInfo {
30
+ skipSSR?: boolean;
31
+ ssrAPIs: Array<string>;
32
+ nodeAPIs: Array<string>;
33
+ browserAPIs: Array<string>;
34
+ }
35
+ export interface IPluginRefObject {
36
+ resolve: string;
37
+ options?: IPluginRefOptions;
38
+ parentDir?: string;
39
+ subPluginPaths?: Array<string>;
40
+ module?: any;
41
+ modulePath?: string;
42
+ }
43
+ export declare type PluginRef = string | IPluginRefObject;
44
+ export interface IPluginRefOptions {
45
+ plugins?: Array<PluginRef>;
46
+ path?: string;
47
+ [option: string]: unknown;
48
+ }
@@ -0,0 +1,8 @@
1
+ import { PluginRef } from "../types";
2
+ /**
3
+ * Checks if a plugin is a valid local plugin and returns the resolved path if it is.
4
+ */
5
+ export declare function checkLocalPlugin(plugin: PluginRef, rootDir: string): {
6
+ validLocalPlugin: boolean;
7
+ localPluginPath?: string;
8
+ };
@@ -0,0 +1 @@
1
+ export declare function createFileContentHash(root: string, globPattern: string): string;
@@ -0,0 +1,10 @@
1
+ import { IPluginRefObject } from "../types";
2
+ /**
3
+ * Make sure key is unique to plugin options. E.g. there could
4
+ * be multiple source-filesystem plugins, with different names
5
+ * (docs, blogs).
6
+ *
7
+ * @param name Name of the plugin
8
+ * @param pluginObject Object of the plugin
9
+ */
10
+ export declare const createPluginId: (name: string, pluginObject?: IPluginRefObject | null) => string;
@@ -0,0 +1,2 @@
1
+ import { IPluginInfo } from "../types";
2
+ export declare const flattenPlugins: (plugins: Array<IPluginInfo>) => Array<IPluginInfo>;
@@ -0,0 +1,12 @@
1
+ import { ExportType, ICurrentAPIs } from "../validate";
2
+ export declare const getAPI: (api: {
3
+ node: {
4
+ [api: string]: boolean;
5
+ };
6
+ browser: {
7
+ [api: string]: boolean;
8
+ };
9
+ ssr: {
10
+ [api: string]: boolean;
11
+ };
12
+ }) => ICurrentAPIs;
@@ -0,0 +1,6 @@
1
+ import { IPluginInfo } from "../types";
2
+ export declare const GATSBY_CLOUD_PLUGIN_NAME = "gatsby-plugin-gatsby-cloud";
3
+ export declare const GATSBY_PLUGIN_PREVIEW_NAME = "@gatsby-cloud-pkg/gatsby-plugin-preview";
4
+ export declare function addGatsbyPluginPreviewWhenInstalled(plugins: Array<IPluginInfo>, rootDir: string): void;
5
+ export declare function addGatsbyPluginCloudPluginWhenInstalled(plugins: Array<IPluginInfo>, rootDir: string): void;
6
+ export declare function incompatibleGatsbyCloudPlugin(plugins: Array<IPluginInfo>): boolean;
@@ -0,0 +1,5 @@
1
+ import { ISiteConfig, IRawSiteConfig } from "../types";
2
+ import { IPluginRefObject, PluginRef } from "gatsby-plugin-utils/dist/types";
3
+ export declare function normalizePlugin(plugin: IPluginRefObject | string): IPluginRefObject;
4
+ export declare function normalizePlugins(plugins?: Array<PluginRef>): Array<IPluginRefObject>;
5
+ export declare const normalizeConfig: (config?: IRawSiteConfig) => ISiteConfig;
@@ -0,0 +1,40 @@
1
+ import { PackageJson } from "../../../";
2
+ import { IPluginInfo, IFlattenedPlugin, ISiteConfig } from "./types";
3
+ interface IApi {
4
+ version?: string;
5
+ }
6
+ export interface IEntry {
7
+ exportName: string;
8
+ pluginName: string;
9
+ pluginVersion: string;
10
+ api?: IApi;
11
+ }
12
+ export declare type ExportType = "node" | "browser" | "ssr";
13
+ declare type IEntryMap = {
14
+ [exportType in ExportType]: Array<IEntry>;
15
+ };
16
+ export declare type ICurrentAPIs = {
17
+ [exportType in ExportType]: Array<string>;
18
+ };
19
+ export declare function handleBadExports({ currentAPIs, badExports, }: {
20
+ currentAPIs: ICurrentAPIs;
21
+ badExports: {
22
+ [api in ExportType]: Array<IEntry>;
23
+ };
24
+ }): Promise<void>;
25
+ export declare function validateConfigPluginsOptions(config: ISiteConfig | undefined, rootDir: string): Promise<void>;
26
+ /**
27
+ * Identify which APIs each plugin exports
28
+ */
29
+ export declare function collatePluginAPIs({ currentAPIs, flattenedPlugins, }: {
30
+ currentAPIs: ICurrentAPIs;
31
+ flattenedPlugins: Array<IPluginInfo & Partial<IFlattenedPlugin>>;
32
+ }): {
33
+ flattenedPlugins: Array<IFlattenedPlugin>;
34
+ badExports: IEntryMap;
35
+ };
36
+ export declare const handleMultipleReplaceRenderers: ({ flattenedPlugins, }: {
37
+ flattenedPlugins: Array<IFlattenedPlugin>;
38
+ }) => Array<IFlattenedPlugin>;
39
+ export declare function warnOnIncompatiblePeerDependency(name: string, packageJSON: PackageJson): void;
40
+ export {};
File without changes
@@ -0,0 +1 @@
1
+ export declare const preferDefault: (m: any) => any;
@@ -0,0 +1,2 @@
1
+ export declare const writeRedirects: () => Promise<void>;
2
+ export declare const startRedirectListener: () => void;
@@ -0,0 +1,2 @@
1
+ import { IGatsbyState, IRemoveStaleJobV2Action, ICreateJobV2FromInternalAction } from "../redux/types";
2
+ export declare const removeStaleJobs: (jobs: IGatsbyState["jobsV2"]) => Array<IRemoveStaleJobV2Action | ICreateJobV2FromInternalAction>;
@@ -0,0 +1,10 @@
1
+ import { IGatsbyState, IGatsbyPage } from "../redux/types";
2
+ interface IGatsbyPageComponent {
3
+ component: string;
4
+ componentChunkName: string;
5
+ }
6
+ export declare const resetLastHash: () => void;
7
+ export declare const getComponents: (pages: Array<IGatsbyPage>) => Array<IGatsbyPageComponent>;
8
+ export declare const writeAll: (state: IGatsbyState) => Promise<boolean>;
9
+ export declare const startListener: () => void;
10
+ export {};
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Given a `require.resolve()` compatible path pointing to a JS module,
3
+ * return an array listing the names of the module's exports.
4
+ *
5
+ * Returns [] for invalid paths and modules without exports.
6
+ *
7
+ * @param modulePath
8
+ * @param mode
9
+ * @param resolver
10
+ */
11
+ export declare const resolveModuleExports: (modulePath: string, { mode, resolver }?: {
12
+ mode?: string | undefined;
13
+ resolver?: ((modulePath: string) => string | false) | undefined;
14
+ }) => Array<string>;
@@ -0,0 +1,3 @@
1
+ export declare function bootstrapSchemaHotReloader(): void;
2
+ export declare function startSchemaHotReloader(): void;
3
+ export declare function stopSchemaHotReloader(): void;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,8 @@
1
+ /// <reference types="node" />
2
+ declare const promisify: any;
3
+ declare const fs: any;
4
+ declare const zlib: any;
5
+ interface IExternalBuffer {
6
+ index: number;
7
+ buffer: Buffer;
8
+ }
File without changes
@@ -0,0 +1,53 @@
1
+ import { watch } from "../utils/webpack/bundle";
2
+ import webpack from "webpack";
3
+ import { Span } from "opentracing";
4
+ import { IProgram, Stage } from "./types";
5
+ import { PackageJson } from "../..";
6
+ import type { GatsbyWorkerPool } from "../utils/worker/pool";
7
+ declare type IActivity = any;
8
+ export interface IBuildArgs extends IProgram {
9
+ directory: string;
10
+ sitePackageJson: PackageJson;
11
+ prefixPaths: boolean;
12
+ noUglify: boolean;
13
+ logPages: boolean;
14
+ writeToFile: boolean;
15
+ profile: boolean;
16
+ graphqlTracing: boolean;
17
+ openTracingConfigFile: string;
18
+ keepPageRenderer: boolean;
19
+ }
20
+ interface IBuildRendererResult {
21
+ rendererPath: string;
22
+ stats: webpack.Stats;
23
+ close: ReturnType<typeof watch>["close"];
24
+ }
25
+ export declare function devSSRWillInvalidate(): void;
26
+ export declare const getDevSSRWebpack: () => {
27
+ recompileAndResumeWatching: (allowTimedFallback: boolean) => Promise<() => void>;
28
+ needToRecompileSSRBundle: boolean;
29
+ };
30
+ export declare const buildRenderer: (program: IProgram, stage: Stage, parentSpan?: IActivity) => Promise<IBuildRendererResult>;
31
+ export declare const buildPartialHydrationRenderer: (program: IProgram, stage: Stage, parentSpan?: IActivity) => Promise<IBuildRendererResult>;
32
+ export declare const deleteRenderer: (rendererPath: string) => Promise<void>;
33
+ export interface IRenderHtmlResult {
34
+ unsafeBuiltinsUsageByPagePath: Record<string, Array<string>>;
35
+ previewErrors: Record<string, any>;
36
+ }
37
+ export declare const doBuildPages: (rendererPath: string, pagePaths: Array<string>, activity: IActivity, workerPool: GatsbyWorkerPool, stage: Stage) => Promise<void>;
38
+ export declare const buildHTML: ({ program, stage, pagePaths, activity, workerPool, }: {
39
+ program: IProgram;
40
+ stage: Stage;
41
+ pagePaths: Array<string>;
42
+ activity: IActivity;
43
+ workerPool: GatsbyWorkerPool;
44
+ }) => Promise<void>;
45
+ export declare function buildHTMLPagesAndDeleteStaleArtifacts({ workerPool, parentSpan, program, }: {
46
+ workerPool: GatsbyWorkerPool;
47
+ parentSpan?: Span;
48
+ program: IBuildArgs;
49
+ }): Promise<{
50
+ toRegenerate: Array<string>;
51
+ toDelete: Array<string>;
52
+ }>;
53
+ export {};
@@ -0,0 +1,4 @@
1
+ import { Span } from "opentracing";
2
+ import { build } from "../utils/webpack/bundle";
3
+ import type { IProgram } from "./types";
4
+ export declare const buildProductionBundle: (program: IProgram, parentSpan: Span) => Promise<ReturnType<typeof build>>;
@@ -0,0 +1,8 @@
1
+ import { IGatsbyState } from "../redux/types";
2
+ export declare const removePageFiles: (publicDir: string, pageKeys: Array<string>) => Promise<void>;
3
+ export declare function calcDirtyHtmlFiles(state: IGatsbyState): {
4
+ toRegenerate: Array<string>;
5
+ toDelete: Array<string>;
6
+ toCleanupFromTrackedState: Set<string>;
7
+ };
8
+ export declare function markHtmlDirtyIfResultOfUsedStaticQueryChanged(): void;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,3 @@
1
+ import express from "express";
2
+ import { ServeStaticOptions } from "serve-static";
3
+ export declare function developStatic(root: string, options: ServeStaticOptions): express.Handler;
@@ -0,0 +1,2 @@
1
+ import { IProgram, IDebugInfo } from "./types";
2
+ export declare const getDebugInfo: (program: IProgram) => IDebugInfo | null;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,48 @@
1
+ import { PackageJson, Reporter } from "gatsby";
2
+ import { Store, AnyAction } from "redux";
3
+ import { IGatsbyState } from "../redux/types";
4
+ export interface ICert {
5
+ key: string;
6
+ cert: string;
7
+ }
8
+ export interface IDebugInfo {
9
+ port: number;
10
+ break: boolean;
11
+ }
12
+ export interface IProgram {
13
+ _: `develop` | `build` | `clean` | `feedback` | `repl` | `serve`;
14
+ status?: string;
15
+ useYarn: boolean;
16
+ open: boolean;
17
+ openTracingConfigFile: string;
18
+ port: number;
19
+ proxyPort: number;
20
+ host: string;
21
+ report: Reporter;
22
+ [`cert-file`]?: string;
23
+ [`key-file`]?: string;
24
+ directory: string;
25
+ https?: boolean;
26
+ sitePackageJson: PackageJson;
27
+ ssl?: ICert;
28
+ inspect?: number;
29
+ inspectBrk?: number;
30
+ graphqlTracing?: boolean;
31
+ verbose?: boolean;
32
+ prefixPaths?: boolean;
33
+ setStore?: (store: Store<IGatsbyState, AnyAction>) => void;
34
+ }
35
+ /**
36
+ * @deprecated
37
+ * Use `Stage` instead
38
+ */
39
+ export declare enum BuildHTMLStage {
40
+ DevelopHTML = "develop-html",
41
+ BuildHTML = "build-html"
42
+ }
43
+ export declare enum Stage {
44
+ Develop = "develop",
45
+ DevelopHTML = "develop-html",
46
+ BuildJavascript = "build-javascript",
47
+ BuildHTML = "build-html"
48
+ }
@@ -0,0 +1 @@
1
+ export declare const ROUTES_DIRECTORY = ".cache/page-ssr/routes/";
@@ -0,0 +1,51 @@
1
+ declare module "lmdb" {
2
+ function clearKeptObjects(): void;
3
+ }
4
+ /**
5
+ * Wrapper for any iterable providing chainable interface and convenience methods
6
+ * similar to array.
7
+ *
8
+ * Additionally provides convenience methods for sorted iterables.
9
+ *
10
+ * Note: avoiding async iterables because of perf reasons, see https://github.com/nodejs/node/issues/31979
11
+ * (fortunately lmdb can traverse stuff in sync manner very fast)
12
+ */
13
+ export declare class GatsbyIterable<T> {
14
+ private source;
15
+ constructor(source: Iterable<T> | (() => Iterable<T>));
16
+ [Symbol.iterator](): Iterator<T>;
17
+ concat<U>(other: Iterable<U>): GatsbyIterable<T | U>;
18
+ map<U>(fn: (entry: T, index: number) => U): GatsbyIterable<U>;
19
+ filter(predicate: (entry: T) => unknown): GatsbyIterable<T>;
20
+ slice(start: number, end?: number): GatsbyIterable<T>;
21
+ deduplicate(keyFn?: (entry: T) => unknown): GatsbyIterable<T>;
22
+ forEach(callback: (entry: T, index: number) => unknown): void;
23
+ /**
24
+ * Assuming both this and the other iterable are sorted
25
+ * produces the new sorted iterable with interleaved values.
26
+ *
27
+ * Note: this method is not removing duplicates
28
+ */
29
+ mergeSorted<U = T>(other: Iterable<U>, comparator?: (a: T | U, b: T | U) => number): GatsbyIterable<T | U>;
30
+ /**
31
+ * Assuming both this and the other iterable are sorted
32
+ * produces the new sorted iterable with values from this iterable
33
+ * that also exist in the other iterable.
34
+ */
35
+ intersectSorted<U = T>(other: Iterable<U>, comparator?: (a: T | U, b: T | U) => number): GatsbyIterable<T | U>;
36
+ /**
37
+ * Assuming this iterable is sorted, removes duplicates from it
38
+ * by applying comparator(prev, current) to sibling iterable values.
39
+ *
40
+ * Comparator function is expected to return 0 when items are equal,
41
+ * similar to Array.prototype.sort() argument.
42
+ *
43
+ * If comparator is not set, uses strict === comparison
44
+ */
45
+ deduplicateSorted(comparator?: (a: T, b: T) => number): GatsbyIterable<T>;
46
+ }
47
+ /**
48
+ * Returns true when passed value is iterable
49
+ */
50
+ export declare function isIterable(obj: unknown): obj is Iterable<any>;
51
+ export declare function isNonArrayIterable<T>(value: unknown): value is Iterable<T>;
@@ -0,0 +1,69 @@
1
+ export interface IDbQueryQuery {
2
+ type: "query";
3
+ path: Array<string>;
4
+ query: IDbFilterStatement;
5
+ }
6
+ export interface IDbQueryElemMatch {
7
+ type: "elemMatch";
8
+ path: Array<string>;
9
+ nestedQuery: DbQuery;
10
+ }
11
+ export declare type DbQuery = IDbQueryQuery | IDbQueryElemMatch;
12
+ export declare enum DbComparator {
13
+ EQ = "$eq",
14
+ NE = "$ne",
15
+ GT = "$gt",
16
+ GTE = "$gte",
17
+ LT = "$lt",
18
+ LTE = "$lte",
19
+ IN = "$in",
20
+ NIN = "$nin",
21
+ REGEX = "$regex",
22
+ GLOB = "$glob"
23
+ }
24
+ export declare type FilterValueNullable = string | number | boolean | null | undefined | RegExp | Array<string | number | boolean | null | undefined>;
25
+ export declare type FilterValue = string | number | boolean | RegExp | Array<string | number | boolean>;
26
+ export interface IInputQuery {
27
+ [key: string]: FilterValueNullable | IInputQuery;
28
+ }
29
+ export interface IPreparedQueryArg {
30
+ [key: string]: FilterValueNullable | IPreparedQueryArg;
31
+ }
32
+ export declare type DbComparatorValue = string | number | boolean | RegExp | null;
33
+ export interface IDbFilterStatement {
34
+ comparator: DbComparator;
35
+ value: DbComparatorValue | Array<DbComparatorValue>;
36
+ }
37
+ /**
38
+ * Converts a nested mongo args object into array of DbQuery objects,
39
+ * structured representation of each distinct path of the query. We convert
40
+ * nested objects with multiple keys to separate instances.
41
+ */
42
+ export declare function createDbQueriesFromObject(filter: Record<string, any>): Array<DbQuery>;
43
+ /**
44
+ * Takes a DbQuery structure and returns a dotted representation of a field referenced in this query.
45
+ *
46
+ * Example:
47
+ * ```js
48
+ * const query = createDbQueriesFromObject({
49
+ * foo: { $elemMatch: { id: { $eq: 5 }, test: { $gt: 42 } } },
50
+ * bar: { $in: [`bar`] }
51
+ * })
52
+ * const result = query.map(dbQueryToDottedField)
53
+ * ```
54
+ * Returns:
55
+ * [`foo.id`, `foo.test`, `bar`]
56
+ */
57
+ export declare function dbQueryToDottedField(query: DbQuery): string;
58
+ export declare function getFilterStatement(dbQuery: DbQuery): IDbFilterStatement;
59
+ export declare function prefixResolvedFields(queries: Array<DbQuery>, resolvedFields: Record<string, unknown>): Array<DbQuery>;
60
+ /**
61
+ * Transforms filters coming from input GraphQL query to mongodb-compatible format
62
+ * (by prefixing comparators with "$").
63
+ *
64
+ * Example:
65
+ * { foo: { eq: 5 } } -> { foo: { $eq: 5 }}
66
+ */
67
+ export declare function prepareQueryArgs(filterFields?: Array<IInputQuery> | IInputQuery): IPreparedQueryArg;
68
+ export declare function objectToDottedField(obj: Record<string, unknown>, path?: Array<string>): Record<string, unknown>;
69
+ export declare function sortBySpecificity(all: Array<DbQuery>): Array<DbQuery>;
@@ -0,0 +1,4 @@
1
+ import { IDataStore } from "./types";
2
+ export declare function getDataStore(): IDataStore;
3
+ export declare function isLmdbStore(): boolean;
4
+ export declare function detectLmdbStore(): boolean;
@@ -0,0 +1,2 @@
1
+ import { IDataStore } from "../types";
2
+ export declare function setupInMemoryStore(): IDataStore;