gatsby 3.8.0 → 3.8.1

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 (244) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/cli.js +0 -0
  3. package/dist/gatsby/src/bootstrap/__mocks__/resolve-module-exports.d.ts +1 -1
  4. package/dist/gatsby/src/bootstrap/create-graphql-runner.d.ts +10 -10
  5. package/dist/gatsby/src/bootstrap/get-config-file.d.ts +4 -4
  6. package/dist/gatsby/src/bootstrap/index.d.ts +7 -7
  7. package/dist/gatsby/src/bootstrap/load-config-and-plugins.d.ts +8 -8
  8. package/dist/gatsby/src/bootstrap/load-plugins/index.d.ts +2 -2
  9. package/dist/gatsby/src/bootstrap/load-plugins/load.d.ts +14 -14
  10. package/dist/gatsby/src/bootstrap/load-plugins/types.d.ts +40 -40
  11. package/dist/gatsby/src/bootstrap/load-plugins/validate.d.ts +40 -40
  12. package/dist/gatsby/src/bootstrap/prefer-default.d.ts +1 -1
  13. package/dist/gatsby/src/bootstrap/redirects-writer.d.ts +2 -2
  14. package/dist/gatsby/src/bootstrap/remove-stale-jobs.d.ts +2 -2
  15. package/dist/gatsby/src/bootstrap/requires-writer.d.ts +10 -10
  16. package/dist/gatsby/src/bootstrap/resolve-module-exports.d.ts +15 -15
  17. package/dist/gatsby/src/bootstrap/schema-hot-reloader.d.ts +3 -3
  18. package/dist/gatsby/src/cache/cache-fs.d.ts +1 -1
  19. package/dist/gatsby/src/cache/json-file-store.d.ts +8 -8
  20. package/dist/gatsby/src/commands/build-html.d.ts +53 -53
  21. package/dist/gatsby/src/commands/build-javascript.d.ts +7 -7
  22. package/dist/gatsby/src/commands/build-utils.d.ts +8 -8
  23. package/dist/gatsby/src/commands/build.d.ts +1 -1
  24. package/dist/gatsby/src/commands/clean.d.ts +1 -1
  25. package/dist/gatsby/src/commands/develop-process.d.ts +1 -1
  26. package/dist/gatsby/src/commands/develop-static.d.ts +3 -3
  27. package/dist/gatsby/src/commands/develop.d.ts +2 -2
  28. package/dist/gatsby/src/commands/feedback.d.ts +1 -1
  29. package/dist/gatsby/src/commands/repl.d.ts +1 -1
  30. package/dist/gatsby/src/commands/serve.d.ts +1 -1
  31. package/dist/gatsby/src/commands/types.d.ts +48 -48
  32. package/dist/gatsby/src/datastore/common/iterable.d.ts +10 -10
  33. package/dist/gatsby/src/datastore/common/query.d.ts +37 -37
  34. package/dist/gatsby/src/datastore/datastore.d.ts +4 -4
  35. package/dist/gatsby/src/datastore/in-memory/in-memory-datastore.d.ts +2 -2
  36. package/dist/gatsby/src/datastore/in-memory/indexing.d.ts +62 -62
  37. package/dist/gatsby/src/datastore/in-memory/run-fast-filters.d.ts +48 -48
  38. package/dist/gatsby/src/datastore/index.d.ts +20 -20
  39. package/dist/gatsby/src/datastore/lmdb/lmdb-datastore.d.ts +2 -2
  40. package/dist/gatsby/src/datastore/lmdb/updates/nodes-by-type.d.ts +3 -3
  41. package/dist/gatsby/src/datastore/lmdb/updates/nodes.d.ts +5 -5
  42. package/dist/gatsby/src/datastore/types.d.ts +26 -26
  43. package/dist/gatsby/src/internal-plugins/functions/gatsby-node.d.ts +3 -3
  44. package/dist/gatsby/src/internal.d.ts +5 -5
  45. package/dist/gatsby/src/joi-schemas/joi.d.ts +5 -5
  46. package/dist/gatsby/src/query/error-parser.d.ts +19 -19
  47. package/dist/gatsby/src/query/graphql-runner.d.ts +34 -34
  48. package/dist/gatsby/src/query/graphql-span-tracer.d.ts +19 -19
  49. package/dist/gatsby/src/query/query-runner.d.ts +14 -14
  50. package/dist/gatsby/src/query/query-watcher.d.ts +17 -17
  51. package/dist/gatsby/src/query/types.d.ts +34 -34
  52. package/dist/gatsby/src/query/utils.d.ts +4 -4
  53. package/dist/gatsby/src/redux/actions/add-page-dependency.d.ts +5 -5
  54. package/dist/gatsby/src/redux/actions/index.d.ts +12 -12
  55. package/dist/gatsby/src/redux/actions/internal.d.ts +118 -118
  56. package/dist/gatsby/src/redux/actions/restricted.d.ts +293 -293
  57. package/dist/gatsby/src/redux/index.d.ts +19 -19
  58. package/dist/gatsby/src/redux/persist.d.ts +5 -5
  59. package/dist/gatsby/src/redux/plugin-runner.d.ts +1 -1
  60. package/dist/gatsby/src/redux/reducers/babelrc.d.ts +9 -9
  61. package/dist/gatsby/src/redux/reducers/components.d.ts +2 -2
  62. package/dist/gatsby/src/redux/reducers/config.d.ts +2 -2
  63. package/dist/gatsby/src/redux/reducers/definitions.d.ts +2 -2
  64. package/dist/gatsby/src/redux/reducers/flattened-plugins.d.ts +15 -15
  65. package/dist/gatsby/src/redux/reducers/functions.d.ts +2 -2
  66. package/dist/gatsby/src/redux/reducers/html.d.ts +8 -8
  67. package/dist/gatsby/src/redux/reducers/index.d.ts +35 -35
  68. package/dist/gatsby/src/redux/reducers/inference-metadata.d.ts +7 -7
  69. package/dist/gatsby/src/redux/reducers/jobs.d.ts +5 -5
  70. package/dist/gatsby/src/redux/reducers/jobsv2.d.ts +5 -5
  71. package/dist/gatsby/src/redux/reducers/last-action.d.ts +2 -2
  72. package/dist/gatsby/src/redux/reducers/node-manifest.d.ts +2 -2
  73. package/dist/gatsby/src/redux/reducers/nodes-by-type.d.ts +2 -2
  74. package/dist/gatsby/src/redux/reducers/nodes-touched.d.ts +3 -3
  75. package/dist/gatsby/src/redux/reducers/nodes.d.ts +2 -2
  76. package/dist/gatsby/src/redux/reducers/normalize-path.d.ts +2 -2
  77. package/dist/gatsby/src/redux/reducers/page-data-stats.d.ts +2 -2
  78. package/dist/gatsby/src/redux/reducers/pages.d.ts +2 -2
  79. package/dist/gatsby/src/redux/reducers/pending-page-data-writes.d.ts +4 -4
  80. package/dist/gatsby/src/redux/reducers/program.d.ts +2 -2
  81. package/dist/gatsby/src/redux/reducers/queries.d.ts +26 -26
  82. package/dist/gatsby/src/redux/reducers/redirects.d.ts +2 -2
  83. package/dist/gatsby/src/redux/reducers/resolved-nodes.d.ts +2 -2
  84. package/dist/gatsby/src/redux/reducers/schema-customization.d.ts +23 -23
  85. package/dist/gatsby/src/redux/reducers/schema.d.ts +3 -3
  86. package/dist/gatsby/src/redux/reducers/static-queries-by-template.d.ts +2 -2
  87. package/dist/gatsby/src/redux/reducers/static-query-components.d.ts +2 -2
  88. package/dist/gatsby/src/redux/reducers/status.d.ts +6 -6
  89. package/dist/gatsby/src/redux/reducers/visited-page.d.ts +2 -2
  90. package/dist/gatsby/src/redux/reducers/webpack-compilation-hash.d.ts +2 -2
  91. package/dist/gatsby/src/redux/reducers/webpack.d.ts +2 -2
  92. package/dist/gatsby/src/redux/types.d.ts +732 -732
  93. package/dist/gatsby/src/schema/context.d.ts +13 -13
  94. package/dist/gatsby/src/schema/infer/build-example-data.d.ts +5 -5
  95. package/dist/gatsby/src/schema/infer/inference-metadata.d.ts +72 -72
  96. package/dist/gatsby/src/schema/infer/is-file.d.ts +1 -1
  97. package/dist/gatsby/src/schema/infer/type-conflict-reporter.d.ts +28 -28
  98. package/dist/gatsby/src/schema/resolvers.d.ts +35 -35
  99. package/dist/gatsby/src/schema/type-definitions.d.ts +42 -42
  100. package/dist/gatsby/src/schema/types/built-in-types.d.ts +3 -3
  101. package/dist/gatsby/src/schema/types/date.d.ts +40 -40
  102. package/dist/gatsby/src/schema/types/derived-types.d.ts +45 -45
  103. package/dist/gatsby/src/schema/types/filter.d.ts +12 -12
  104. package/dist/gatsby/src/schema/types/node-interface.d.ts +14 -14
  105. package/dist/gatsby/src/schema/types/pagination.d.ts +16 -16
  106. package/dist/gatsby/src/schema/types/sort.d.ts +18 -18
  107. package/dist/gatsby/src/schema/types/type-builders.d.ts +36 -36
  108. package/dist/gatsby/src/services/build-schema.d.ts +2 -2
  109. package/dist/gatsby/src/services/calculate-dirty-queries.d.ts +5 -5
  110. package/dist/gatsby/src/services/create-pages.d.ts +5 -5
  111. package/dist/gatsby/src/services/customize-schema.d.ts +2 -2
  112. package/dist/gatsby/src/services/extract-queries.d.ts +2 -2
  113. package/dist/gatsby/src/services/index.d.ts +18 -18
  114. package/dist/gatsby/src/services/initialize.d.ts +8 -8
  115. package/dist/gatsby/src/services/listen-for-mutations.d.ts +2 -2
  116. package/dist/gatsby/src/services/listen-to-webpack.d.ts +3 -3
  117. package/dist/gatsby/src/services/post-bootstrap.d.ts +2 -2
  118. package/dist/gatsby/src/services/rebuild-schema-with-site-pages.d.ts +2 -2
  119. package/dist/gatsby/src/services/recompile.d.ts +3 -3
  120. package/dist/gatsby/src/services/run-mutation-batch.d.ts +2 -2
  121. package/dist/gatsby/src/services/run-page-queries.d.ts +2 -2
  122. package/dist/gatsby/src/services/run-static-queries.d.ts +2 -2
  123. package/dist/gatsby/src/services/source-nodes.d.ts +5 -5
  124. package/dist/gatsby/src/services/start-webpack-server.d.ts +9 -9
  125. package/dist/gatsby/src/services/types.d.ts +45 -45
  126. package/dist/gatsby/src/services/write-out-redirects.d.ts +2 -2
  127. package/dist/gatsby/src/services/write-out-requires.d.ts +2 -2
  128. package/dist/gatsby/src/state-machines/data-layer/actions.d.ts +8 -8
  129. package/dist/gatsby/src/state-machines/data-layer/index.d.ts +24 -24
  130. package/dist/gatsby/src/state-machines/data-layer/services.d.ts +3 -3
  131. package/dist/gatsby/src/state-machines/data-layer/types.d.ts +31 -31
  132. package/dist/gatsby/src/state-machines/develop/actions.d.ts +37 -37
  133. package/dist/gatsby/src/state-machines/develop/index.d.ts +6 -6
  134. package/dist/gatsby/src/state-machines/develop/services.d.ts +3 -3
  135. package/dist/gatsby/src/state-machines/index.d.ts +7 -7
  136. package/dist/gatsby/src/state-machines/query-running/actions.d.ts +9 -9
  137. package/dist/gatsby/src/state-machines/query-running/index.d.ts +7 -7
  138. package/dist/gatsby/src/state-machines/query-running/services.d.ts +3 -3
  139. package/dist/gatsby/src/state-machines/query-running/types.d.ts +23 -23
  140. package/dist/gatsby/src/state-machines/waiting/actions.d.ts +11 -11
  141. package/dist/gatsby/src/state-machines/waiting/index.d.ts +12 -12
  142. package/dist/gatsby/src/state-machines/waiting/services.d.ts +3 -3
  143. package/dist/gatsby/src/state-machines/waiting/types.d.ts +12 -12
  144. package/dist/gatsby/src/types.d.ts +9 -9
  145. package/dist/gatsby/src/utils/api-browser-docs.d.ts +242 -242
  146. package/dist/gatsby/src/utils/api-node-docs.d.ts +448 -448
  147. package/dist/gatsby/src/utils/api-runner-error-parser.d.ts +5 -5
  148. package/dist/gatsby/src/utils/app-data.d.ts +2 -2
  149. package/dist/gatsby/src/utils/assert-store.d.ts +2 -2
  150. package/dist/gatsby/src/utils/babel-parse-to-ast.d.ts +4 -4
  151. package/dist/gatsby/src/utils/browserslist.d.ts +1 -1
  152. package/dist/gatsby/src/utils/cache.d.ts +16 -16
  153. package/dist/gatsby/src/utils/call-deferred-api.d.ts +8 -8
  154. package/dist/gatsby/src/utils/changed-pages.d.ts +6 -6
  155. package/dist/gatsby/src/utils/create-node-id.d.ts +24 -24
  156. package/dist/gatsby/src/utils/create-schema-customization.d.ts +6 -6
  157. package/dist/gatsby/src/utils/detect-port-in-use-and-prompt.d.ts +1 -1
  158. package/dist/gatsby/src/utils/dev-ssr/render-dev-html.d.ts +22 -22
  159. package/dist/gatsby/src/utils/develop-preload-headers.d.ts +7 -7
  160. package/dist/gatsby/src/utils/develop-proxy.d.ts +14 -14
  161. package/dist/gatsby/src/utils/did-you-mean.d.ts +3 -3
  162. package/dist/gatsby/src/utils/eslint-config.d.ts +4 -4
  163. package/dist/gatsby/src/utils/eslint-rules/limited-exports-page-templates.d.ts +1 -1
  164. package/dist/gatsby/src/utils/eslint-rules/no-anonymous-exports-page-templates.d.ts +1 -1
  165. package/dist/gatsby/src/utils/eslint-rules-helpers.d.ts +4 -4
  166. package/dist/gatsby/src/utils/fast-refresh-module.d.ts +22 -22
  167. package/dist/gatsby/src/utils/feedback.d.ts +5 -5
  168. package/dist/gatsby/src/utils/find-page-by-path.d.ts +2 -2
  169. package/dist/gatsby/src/utils/flags.d.ts +34 -34
  170. package/dist/gatsby/src/utils/gatsby-dependents.d.ts +8 -8
  171. package/dist/gatsby/src/utils/gatsby-webpack-eslint-graphql-schema-reload-plugin.d.ts +8 -8
  172. package/dist/gatsby/src/utils/gatsby-webpack-stats-extractor.d.ts +6 -6
  173. package/dist/gatsby/src/utils/gatsby-webpack-virtual-modules.d.ts +6 -6
  174. package/dist/gatsby/src/utils/get-cache.d.ts +2 -2
  175. package/dist/gatsby/src/utils/get-latest-apis.d.ts +6 -6
  176. package/dist/gatsby/src/utils/get-page-data.d.ts +3 -3
  177. package/dist/gatsby/src/utils/get-public-path.d.ts +5 -5
  178. package/dist/gatsby/src/utils/get-ssl-cert.d.ts +9 -9
  179. package/dist/gatsby/src/utils/get-static-dir.d.ts +12 -12
  180. package/dist/gatsby/src/utils/get-value-at.d.ts +1 -1
  181. package/dist/gatsby/src/utils/handle-flags.d.ts +7 -7
  182. package/dist/gatsby/src/utils/is-32-bit-integer.d.ts +1 -1
  183. package/dist/gatsby/src/utils/jobs-manager.d.ts +61 -61
  184. package/dist/gatsby/src/utils/js-chunk-names.d.ts +1 -1
  185. package/dist/gatsby/src/utils/loading-indicator.d.ts +3 -3
  186. package/dist/gatsby/src/utils/local-eslint-config-finder.d.ts +1 -1
  187. package/dist/gatsby/src/utils/merge-gatsby-config.d.ts +23 -23
  188. package/dist/gatsby/src/utils/mett.d.ts +10 -10
  189. package/dist/gatsby/src/utils/node-manifest.d.ts +43 -43
  190. package/dist/gatsby/src/utils/nodes.d.ts +13 -13
  191. package/dist/gatsby/src/utils/page-data.d.ts +22 -22
  192. package/dist/gatsby/src/utils/page-html.d.ts +4 -4
  193. package/dist/gatsby/src/utils/path.d.ts +5 -5
  194. package/dist/gatsby/src/utils/prepare-regex.d.ts +1 -1
  195. package/dist/gatsby/src/utils/prepare-urls.d.ts +7 -7
  196. package/dist/gatsby/src/utils/print-deprecation-warnings.d.ts +1 -1
  197. package/dist/gatsby/src/utils/print-instructions.d.ts +2 -2
  198. package/dist/gatsby/src/utils/reach-router-add-basecontext-export-loader.d.ts +1 -1
  199. package/dist/gatsby/src/utils/restarting-screen.d.ts +2 -2
  200. package/dist/gatsby/src/utils/sample-site-for-experiment.d.ts +2 -2
  201. package/dist/gatsby/src/utils/show-experiment-notice.d.ts +6 -6
  202. package/dist/gatsby/src/utils/source-nodes.d.ts +8 -8
  203. package/dist/gatsby/src/utils/stack-trace-utils.d.ts +22 -22
  204. package/dist/gatsby/src/utils/start-server.d.ts +25 -25
  205. package/dist/gatsby/src/utils/state-machine-logging.d.ts +2 -2
  206. package/dist/gatsby/src/utils/telemetry-server.d.ts +1 -1
  207. package/dist/gatsby/src/utils/test-require-error.d.ts +1 -1
  208. package/dist/gatsby/src/utils/tracer/index.d.ts +12 -12
  209. package/dist/gatsby/src/utils/tracer/jaeger-local.d.ts +4 -4
  210. package/dist/gatsby/src/utils/tracer/zipkin-local.d.ts +11 -11
  211. package/dist/gatsby/src/utils/validate-page-component.d.ts +12 -12
  212. package/dist/gatsby/src/utils/wait-until-jobs-complete.d.ts +1 -1
  213. package/dist/gatsby/src/utils/webpack/cache-folder-resolver.d.ts +9 -9
  214. package/dist/gatsby/src/utils/webpack/corejs-resolver.d.ts +12 -12
  215. package/dist/gatsby/src/utils/webpack/force-css-hmr-for-edge-cases.d.ts +22 -22
  216. package/dist/gatsby/src/utils/webpack/static-query-mapper.d.ts +7 -7
  217. package/dist/gatsby/src/utils/webpack-error-utils.d.ts +24 -24
  218. package/dist/gatsby/src/utils/webpack-plugins.d.ts +46 -46
  219. package/dist/gatsby/src/utils/webpack-status.d.ts +3 -3
  220. package/dist/gatsby/src/utils/webpack-utils.d.ts +122 -122
  221. package/dist/gatsby/src/utils/websocket-manager.d.ts +39 -39
  222. package/dist/gatsby/src/utils/worker/child/index.d.ts +3 -3
  223. package/dist/gatsby/src/utils/worker/child/load-config-and-plugins.d.ts +1 -1
  224. package/dist/gatsby/src/utils/worker/child/render-html.d.ts +20 -20
  225. package/dist/gatsby/src/utils/worker/child/schema.d.ts +2 -2
  226. package/dist/gatsby/src/utils/worker/child/state.d.ts +2 -2
  227. package/dist/gatsby/src/utils/worker/pool.d.ts +3 -3
  228. package/dist/gatsby/src/utils/worker/types.d.ts +7 -7
  229. package/dist/gatsby-cli/src/structured-errors/error-map.d.ts +341 -341
  230. package/dist/gatsby-cli/src/structured-errors/types.d.ts +55 -55
  231. package/dist/utils/page-data.js +7 -2
  232. package/dist/utils/page-data.js.map +1 -1
  233. package/dist/utils/webpack-utils.js +1 -1
  234. package/dist/utils/webpack-utils.js.map +1 -1
  235. package/gatsby-admin-public/app-87ad9d5b0d69e1dff850.js.map +1 -1
  236. package/gatsby-admin-public/component---src-pages-recipe-js-67ce632b0cfbcb61d113.js.map +1 -1
  237. package/gatsby-admin-public/index.html +1 -1
  238. package/gatsby-admin-public/page-data/app-data.json +1 -1
  239. package/gatsby-admin-public/pages/index.html +1 -1
  240. package/gatsby-admin-public/plugins/index.html +1 -1
  241. package/gatsby-admin-public/recipe/index.html +1 -1
  242. package/gatsby-admin-public/recipes/index.html +1 -1
  243. package/gatsby-admin-public/webpack.stats.json +1 -1
  244. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -3,6 +3,16 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [3.8.1](https://github.com/gatsbyjs/gatsby/compare/gatsby@3.8.0...gatsby@3.8.1) (2021-06-29)
7
+
8
+ ### Bug Fixes
9
+
10
+ - **gatsby:** leave `xmlns` element when optimizing SVGs ([#32123](https://github.com/gatsbyjs/gatsby/issues/32123)) ([#32154](https://github.com/gatsbyjs/gatsby/issues/32154)) ([4d0de6b](https://github.com/gatsbyjs/gatsby/commit/4d0de6b501d5d50eaac818042c323ee79baf7cde))
11
+
12
+ ### Features
13
+
14
+ - **gatsby:** Add activity for writing out page-data.json files to the public directory ([#31987](https://github.com/gatsbyjs/gatsby/issues/31987)) ([#32153](https://github.com/gatsbyjs/gatsby/issues/32153)) ([ddebfac](https://github.com/gatsbyjs/gatsby/commit/ddebfac664c74bb21e1a152d0e44c767d7190dcc))
15
+
6
16
  # [3.8.0](https://github.com/gatsbyjs/gatsby/compare/gatsby@3.8.0-next.2...gatsby@3.8.0) (2021-06-22)
7
17
 
8
18
  ### Features
package/cli.js CHANGED
File without changes
@@ -1 +1 @@
1
- export declare const resolveModuleExports: (input: unknown) => Array<string> | undefined;
1
+ export declare const resolveModuleExports: (input: unknown) => Array<string> | undefined;
@@ -1,10 +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;
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;
@@ -1,4 +1,4 @@
1
- export declare function getConfigFile(rootDir: string, configName: string, distance?: number): Promise<{
2
- configModule: any;
3
- configFilePath: string;
4
- }>;
1
+ export declare function getConfigFile(rootDir: string, configName: string, distance?: number): Promise<{
2
+ configModule: any;
3
+ configFilePath: string;
4
+ }>;
@@ -1,7 +1,7 @@
1
- import { IBuildContext } from "../services";
2
- import { Runner } from "./create-graphql-runner";
3
- import type { GatsbyWorkerPool } from "../utils/worker/pool";
4
- export declare function bootstrap(initialContext: Partial<IBuildContext>): Promise<{
5
- gatsbyNodeGraphQLFunction: Runner;
6
- workerPool: GatsbyWorkerPool;
7
- }>;
1
+ import { IBuildContext } from "../services";
2
+ import { Runner } from "./create-graphql-runner";
3
+ import type { GatsbyWorkerPool } from "../utils/worker/pool";
4
+ export declare function bootstrap(initialContext: Partial<IBuildContext>): Promise<{
5
+ gatsbyNodeGraphQLFunction: Runner;
6
+ workerPool: GatsbyWorkerPool;
7
+ }>;
@@ -1,8 +1,8 @@
1
- import { IFlattenedPlugin } from "./load-plugins/types";
2
- export declare function loadConfigAndPlugins({ siteDirectory, processFlags, }: {
3
- siteDirectory: string;
4
- processFlags: boolean;
5
- }): Promise<{
6
- config: any;
7
- flattenedPlugins: Array<IFlattenedPlugin>;
8
- }>;
1
+ import { IFlattenedPlugin } from "./load-plugins/types";
2
+ export declare function loadConfigAndPlugins({ siteDirectory, processFlags, }: {
3
+ siteDirectory: string;
4
+ processFlags: boolean;
5
+ }): Promise<{
6
+ config: any;
7
+ flattenedPlugins: Array<IFlattenedPlugin>;
8
+ }>;
@@ -1,2 +1,2 @@
1
- import { IFlattenedPlugin, IRawSiteConfig } from "./types";
2
- export declare function loadPlugins(rawConfig: IRawSiteConfig | undefined, rootDir: string): Promise<Array<IFlattenedPlugin>>;
1
+ import { IFlattenedPlugin, IRawSiteConfig } from "./types";
2
+ export declare function loadPlugins(rawConfig: IRawSiteConfig | undefined, rootDir: string): Promise<Array<IFlattenedPlugin>>;
@@ -1,14 +1,14 @@
1
- import { IPluginInfo, PluginRef, ISiteConfig } 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 | null): IPluginInfo;
14
- export declare function loadPlugins(config: ISiteConfig | undefined, rootDir: string): Array<IPluginInfo>;
1
+ import { IPluginInfo, PluginRef, ISiteConfig } 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 | null): IPluginInfo;
14
+ export declare function loadPlugins(config: ISiteConfig | undefined, rootDir: string): Array<IPluginInfo>;
@@ -1,40 +1,40 @@
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 plugin name */
13
- name: string;
14
- /** The plugin version (can be content hash) */
15
- version: string;
16
- /** Options passed to the plugin */
17
- pluginOptions?: IPluginInfoOptions;
18
- }
19
- export interface IPluginInfoOptions {
20
- plugins?: Array<IPluginInfo>;
21
- path?: string;
22
- [option: string]: unknown;
23
- }
24
- export interface IFlattenedPlugin extends IPluginInfo {
25
- skipSSR?: boolean;
26
- ssrAPIs: Array<string>;
27
- nodeAPIs: Array<string>;
28
- browserAPIs: Array<string>;
29
- }
30
- export interface IPluginRefObject {
31
- resolve: string;
32
- options?: IPluginRefOptions;
33
- parentDir?: string;
34
- }
35
- export declare type PluginRef = string | IPluginRefObject;
36
- export interface IPluginRefOptions {
37
- plugins?: Array<PluginRef>;
38
- path?: string;
39
- [option: string]: unknown;
40
- }
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 plugin name */
13
+ name: string;
14
+ /** The plugin version (can be content hash) */
15
+ version: string;
16
+ /** Options passed to the plugin */
17
+ pluginOptions?: IPluginInfoOptions;
18
+ }
19
+ export interface IPluginInfoOptions {
20
+ plugins?: Array<IPluginInfo>;
21
+ path?: string;
22
+ [option: string]: unknown;
23
+ }
24
+ export interface IFlattenedPlugin extends IPluginInfo {
25
+ skipSSR?: boolean;
26
+ ssrAPIs: Array<string>;
27
+ nodeAPIs: Array<string>;
28
+ browserAPIs: Array<string>;
29
+ }
30
+ export interface IPluginRefObject {
31
+ resolve: string;
32
+ options?: IPluginRefOptions;
33
+ parentDir?: string;
34
+ }
35
+ export declare type PluginRef = string | IPluginRefObject;
36
+ export interface IPluginRefOptions {
37
+ plugins?: Array<PluginRef>;
38
+ path?: string;
39
+ [option: string]: unknown;
40
+ }
@@ -1,40 +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 | null): 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 {};
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 | null): 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 {};
@@ -1 +1 @@
1
- export declare const preferDefault: (m: any) => any;
1
+ export declare const preferDefault: (m: any) => any;
@@ -1,2 +1,2 @@
1
- export declare const writeRedirects: () => Promise<void>;
2
- export declare const startRedirectListener: () => void;
1
+ export declare const writeRedirects: () => Promise<void>;
2
+ export declare const startRedirectListener: () => void;
@@ -1,2 +1,2 @@
1
- import { IGatsbyState, IRemoveStaleJobAction } from "../redux/types";
2
- export declare const removeStaleJobs: (state: IGatsbyState) => Array<IRemoveStaleJobAction>;
1
+ import { IGatsbyState, IRemoveStaleJobAction } from "../redux/types";
2
+ export declare const removeStaleJobs: (state: IGatsbyState) => Array<IRemoveStaleJobAction>;
@@ -1,10 +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 {};
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 {};
@@ -1,15 +1,15 @@
1
- /// <reference types="node" />
2
- /**
3
- * Given a `require.resolve()` compatible path pointing to a JS module,
4
- * return an array listing the names of the module's exports.
5
- *
6
- * Returns [] for invalid paths and modules without exports.
7
- *
8
- * @param modulePath
9
- * @param mode
10
- * @param resolver
11
- */
12
- export declare const resolveModuleExports: (modulePath: string, { mode, resolver }?: {
13
- mode?: string | undefined;
14
- resolver?: RequireResolve | undefined;
15
- }) => Array<string>;
1
+ /// <reference types="node" />
2
+ /**
3
+ * Given a `require.resolve()` compatible path pointing to a JS module,
4
+ * return an array listing the names of the module's exports.
5
+ *
6
+ * Returns [] for invalid paths and modules without exports.
7
+ *
8
+ * @param modulePath
9
+ * @param mode
10
+ * @param resolver
11
+ */
12
+ export declare const resolveModuleExports: (modulePath: string, { mode, resolver }?: {
13
+ mode?: string | undefined;
14
+ resolver?: RequireResolve | undefined;
15
+ }) => Array<string>;
@@ -1,3 +1,3 @@
1
- export declare function bootstrapSchemaHotReloader(): void;
2
- export declare function startSchemaHotReloader(): void;
3
- export declare function stopSchemaHotReloader(): void;
1
+ export declare function bootstrapSchemaHotReloader(): void;
2
+ export declare function startSchemaHotReloader(): void;
3
+ export declare function stopSchemaHotReloader(): void;
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,8 +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
- }
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
+ }
@@ -1,53 +1,53 @@
1
- import webpack from "webpack";
2
- import { IWebpackWatchingPauseResume } from "../utils/start-server";
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
- declare let devssrWebpackCompiler: webpack.Compiler;
21
- declare let devssrWebpackWatcher: IWebpackWatchingPauseResume;
22
- declare let needToRecompileSSRBundle: boolean;
23
- export declare const getDevSSRWebpack: () => {
24
- devssrWebpackWatcher: IWebpackWatchingPauseResume;
25
- devssrWebpackCompiler: webpack.Compiler;
26
- needToRecompileSSRBundle: boolean;
27
- };
28
- export declare const buildRenderer: (program: IProgram, stage: Stage, parentSpan?: IActivity) => Promise<{
29
- rendererPath: string;
30
- waitForCompilerClose;
31
- }>;
32
- export declare const deleteRenderer: (rendererPath: string) => Promise<void>;
33
- export interface IRenderHtmlResult {
34
- unsafeBuiltinsUsageByPagePath: Record<string, Array<string>>;
35
- }
36
- export declare const doBuildPages: (rendererPath: string, pagePaths: Array<string>, activity: IActivity, workerPool: GatsbyWorkerPool, stage: Stage) => Promise<void>;
37
- export declare const buildHTML: ({ program, stage, pagePaths, activity, workerPool, }: {
38
- program: IProgram;
39
- stage: Stage;
40
- pagePaths: Array<string>;
41
- activity: IActivity;
42
- workerPool: GatsbyWorkerPool;
43
- }) => Promise<void>;
44
- export declare function buildHTMLPagesAndDeleteStaleArtifacts({ pageRenderer, workerPool, buildSpan, program, }: {
45
- pageRenderer: string;
46
- workerPool: GatsbyWorkerPool;
47
- buildSpan?: Span;
48
- program: IBuildArgs;
49
- }): Promise<{
50
- toRegenerate: Array<string>;
51
- toDelete: Array<string>;
52
- }>;
53
- export {};
1
+ import webpack from "webpack";
2
+ import { IWebpackWatchingPauseResume } from "../utils/start-server";
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
+ declare let devssrWebpackCompiler: webpack.Compiler;
21
+ declare let devssrWebpackWatcher: IWebpackWatchingPauseResume;
22
+ declare let needToRecompileSSRBundle: boolean;
23
+ export declare const getDevSSRWebpack: () => {
24
+ devssrWebpackWatcher: IWebpackWatchingPauseResume;
25
+ devssrWebpackCompiler: webpack.Compiler;
26
+ needToRecompileSSRBundle: boolean;
27
+ };
28
+ export declare const buildRenderer: (program: IProgram, stage: Stage, parentSpan?: IActivity) => Promise<{
29
+ rendererPath: string;
30
+ waitForCompilerClose;
31
+ }>;
32
+ export declare const deleteRenderer: (rendererPath: string) => Promise<void>;
33
+ export interface IRenderHtmlResult {
34
+ unsafeBuiltinsUsageByPagePath: Record<string, Array<string>>;
35
+ }
36
+ export declare const doBuildPages: (rendererPath: string, pagePaths: Array<string>, activity: IActivity, workerPool: GatsbyWorkerPool, stage: Stage) => Promise<void>;
37
+ export declare const buildHTML: ({ program, stage, pagePaths, activity, workerPool, }: {
38
+ program: IProgram;
39
+ stage: Stage;
40
+ pagePaths: Array<string>;
41
+ activity: IActivity;
42
+ workerPool: GatsbyWorkerPool;
43
+ }) => Promise<void>;
44
+ export declare function buildHTMLPagesAndDeleteStaleArtifacts({ pageRenderer, workerPool, buildSpan, program, }: {
45
+ pageRenderer: string;
46
+ workerPool: GatsbyWorkerPool;
47
+ buildSpan?: Span;
48
+ program: IBuildArgs;
49
+ }): Promise<{
50
+ toRegenerate: Array<string>;
51
+ toDelete: Array<string>;
52
+ }>;
53
+ export {};
@@ -1,7 +1,7 @@
1
- import { Span } from "opentracing";
2
- import webpack, { WebpackError } from "webpack";
3
- import { IProgram } from "./types";
4
- export declare const buildProductionBundle: (program: IProgram, parentSpan: Span) => Promise<{
5
- stats: webpack.Stats | Error | Array<WebpackError>;
6
- waitForCompilerClose: Promise<void>;
7
- }>;
1
+ import { Span } from "opentracing";
2
+ import webpack, { WebpackError } from "webpack";
3
+ import { IProgram } from "./types";
4
+ export declare const buildProductionBundle: (program: IProgram, parentSpan: Span) => Promise<{
5
+ stats: webpack.Stats | Error | Array<WebpackError>;
6
+ waitForCompilerClose: Promise<void>;
7
+ }>;
@@ -1,8 +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;
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;
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,3 +1,3 @@
1
- import express from "express";
2
- import { ServeStaticOptions } from "serve-static";
3
- export declare function developStatic(root: string, options: ServeStaticOptions): express.Handler;
1
+ import express from "express";
2
+ import { ServeStaticOptions } from "serve-static";
3
+ export declare function developStatic(root: string, options: ServeStaticOptions): express.Handler;
@@ -1,2 +1,2 @@
1
- import { IProgram, IDebugInfo } from "./types";
2
- export declare const getDebugInfo: (program: IProgram) => IDebugInfo | null;
1
+ import { IProgram, IDebugInfo } from "./types";
2
+ export declare const getDebugInfo: (program: IProgram) => IDebugInfo | null;
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1 +1 @@
1
- export {};
1
+ export {};