gatsby 4.0.2 → 4.1.0

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 (328) hide show
  1. package/CHANGELOG.md +0 -34
  2. package/cache-dir/api-ssr-docs.js +2 -0
  3. package/cache-dir/commonjs/api-ssr-docs.js +2 -0
  4. package/cli.js +0 -0
  5. package/dist/bootstrap/__mocks__/resolve-module-exports.d.ts +1 -1
  6. package/dist/bootstrap/create-graphql-runner.d.ts +10 -10
  7. package/dist/bootstrap/get-config-file.d.ts +4 -4
  8. package/dist/bootstrap/index.d.ts +10 -10
  9. package/dist/bootstrap/load-config-and-plugins.d.ts +10 -10
  10. package/dist/bootstrap/load-plugins/index.d.ts +2 -2
  11. package/dist/bootstrap/load-plugins/load.d.ts +14 -14
  12. package/dist/bootstrap/load-plugins/types.d.ts +46 -46
  13. package/dist/bootstrap/load-plugins/validate.d.ts +40 -40
  14. package/dist/bootstrap/prefer-default.d.ts +1 -1
  15. package/dist/bootstrap/redirects-writer.d.ts +2 -2
  16. package/dist/bootstrap/remove-stale-jobs.d.ts +2 -2
  17. package/dist/bootstrap/requires-writer.d.ts +10 -10
  18. package/dist/bootstrap/resolve-module-exports.d.ts +15 -15
  19. package/dist/bootstrap/schema-hot-reloader.d.ts +3 -3
  20. package/dist/cache/cache-fs.d.ts +1 -1
  21. package/dist/cache/json-file-store.d.ts +8 -8
  22. package/dist/commands/build-html.d.ts +55 -55
  23. package/dist/commands/build-javascript.d.ts +4 -4
  24. package/dist/commands/build-utils.d.ts +8 -8
  25. package/dist/commands/build.d.ts +1 -1
  26. package/dist/commands/build.js +16 -1
  27. package/dist/commands/build.js.map +1 -1
  28. package/dist/commands/clean.d.ts +1 -1
  29. package/dist/commands/develop-process.d.ts +1 -1
  30. package/dist/commands/develop-process.js +1 -1
  31. package/dist/commands/develop-process.js.map +1 -1
  32. package/dist/commands/develop-static.d.ts +3 -3
  33. package/dist/commands/develop.d.ts +2 -2
  34. package/dist/commands/feedback.d.ts +1 -1
  35. package/dist/commands/repl.d.ts +1 -1
  36. package/dist/commands/serve.d.ts +1 -1
  37. package/dist/commands/serve.js +25 -4
  38. package/dist/commands/serve.js.map +1 -1
  39. package/dist/commands/types.d.ts +48 -48
  40. package/dist/constants.d.ts +1 -1
  41. package/dist/datastore/common/iterable.d.ts +48 -48
  42. package/dist/datastore/common/query.d.ts +69 -69
  43. package/dist/datastore/datastore.d.ts +4 -4
  44. package/dist/datastore/in-memory/in-memory-datastore.d.ts +2 -2
  45. package/dist/datastore/in-memory/indexing.d.ts +59 -59
  46. package/dist/datastore/in-memory/run-fast-filters.d.ts +28 -28
  47. package/dist/datastore/index.d.ts +20 -20
  48. package/dist/datastore/lmdb/lmdb-datastore.d.ts +4 -4
  49. package/dist/datastore/lmdb/query/common.d.ts +23 -23
  50. package/dist/datastore/lmdb/query/create-index.d.ts +25 -25
  51. package/dist/datastore/lmdb/query/filter-using-index.d.ts +43 -43
  52. package/dist/datastore/lmdb/query/run-query.d.ts +9 -9
  53. package/dist/datastore/lmdb/query/suggest-index.d.ts +15 -15
  54. package/dist/datastore/lmdb/updates/nodes-by-type.d.ts +3 -3
  55. package/dist/datastore/lmdb/updates/nodes.d.ts +5 -5
  56. package/dist/datastore/types.d.ts +47 -47
  57. package/dist/internal-plugins/functions/gatsby-node.d.ts +3 -3
  58. package/dist/internal.d.ts +5 -5
  59. package/dist/joi-schemas/joi.d.ts +5 -5
  60. package/dist/joi-schemas/joi.js +3 -1
  61. package/dist/joi-schemas/joi.js.map +1 -1
  62. package/dist/query/error-parser.d.ts +19 -19
  63. package/dist/query/file-parser.js +34 -10
  64. package/dist/query/file-parser.js.map +1 -1
  65. package/dist/query/graphql-errors-codeframe.d.ts +1 -1
  66. package/dist/query/graphql-runner.d.ts +38 -34
  67. package/dist/query/graphql-runner.js +6 -3
  68. package/dist/query/graphql-runner.js.map +1 -1
  69. package/dist/query/graphql-span-tracer.d.ts +19 -19
  70. package/dist/query/index.d.ts +26 -26
  71. package/dist/query/query-compiler.js +15 -5
  72. package/dist/query/query-compiler.js.map +1 -1
  73. package/dist/query/query-runner.d.ts +13 -13
  74. package/dist/query/query-watcher.d.ts +17 -17
  75. package/dist/query/types.d.ts +35 -35
  76. package/dist/query/utils.d.ts +4 -4
  77. package/dist/redux/actions/add-page-dependency.d.ts +5 -5
  78. package/dist/redux/actions/index.d.ts +14 -14
  79. package/dist/redux/actions/internal.d.ts +120 -120
  80. package/dist/redux/actions/public.js +1 -0
  81. package/dist/redux/actions/public.js.map +1 -1
  82. package/dist/redux/actions/restricted.d.ts +292 -292
  83. package/dist/redux/index.d.ts +20 -20
  84. package/dist/redux/persist.d.ts +5 -5
  85. package/dist/redux/plugin-runner.d.ts +1 -1
  86. package/dist/redux/reducers/babelrc.d.ts +9 -9
  87. package/dist/redux/reducers/components.d.ts +2 -2
  88. package/dist/redux/reducers/components.js +4 -2
  89. package/dist/redux/reducers/components.js.map +1 -1
  90. package/dist/redux/reducers/config.d.ts +2 -2
  91. package/dist/redux/reducers/definitions.d.ts +2 -2
  92. package/dist/redux/reducers/flattened-plugins.d.ts +17 -17
  93. package/dist/redux/reducers/functions.d.ts +2 -2
  94. package/dist/redux/reducers/html.d.ts +8 -8
  95. package/dist/redux/reducers/index.d.ts +36 -36
  96. package/dist/redux/reducers/inference-metadata.d.ts +7 -7
  97. package/dist/redux/reducers/jobs.d.ts +5 -5
  98. package/dist/redux/reducers/jobsv2.d.ts +6 -6
  99. package/dist/redux/reducers/last-action.d.ts +2 -2
  100. package/dist/redux/reducers/node-manifest.d.ts +2 -2
  101. package/dist/redux/reducers/nodes-by-type.d.ts +2 -2
  102. package/dist/redux/reducers/nodes-touched.d.ts +3 -3
  103. package/dist/redux/reducers/nodes.d.ts +2 -2
  104. package/dist/redux/reducers/page-data-stats.d.ts +2 -2
  105. package/dist/redux/reducers/pages.d.ts +2 -2
  106. package/dist/redux/reducers/pending-page-data-writes.d.ts +4 -4
  107. package/dist/redux/reducers/program.d.ts +2 -2
  108. package/dist/redux/reducers/queries.d.ts +26 -26
  109. package/dist/redux/reducers/redirects.d.ts +2 -2
  110. package/dist/redux/reducers/resolved-nodes.d.ts +2 -2
  111. package/dist/redux/reducers/schema-customization.d.ts +23 -23
  112. package/dist/redux/reducers/schema.d.ts +3 -3
  113. package/dist/redux/reducers/static-queries-by-template.d.ts +2 -2
  114. package/dist/redux/reducers/static-query-components.d.ts +2 -2
  115. package/dist/redux/reducers/status.d.ts +6 -6
  116. package/dist/redux/reducers/visited-page.d.ts +2 -2
  117. package/dist/redux/reducers/webpack-compilation-hash.d.ts +2 -2
  118. package/dist/redux/reducers/webpack.d.ts +2 -2
  119. package/dist/redux/types.d.ts +797 -793
  120. package/dist/redux/types.js.map +1 -1
  121. package/dist/schema/context.d.ts +14 -13
  122. package/dist/schema/context.js +4 -2
  123. package/dist/schema/context.js.map +1 -1
  124. package/dist/schema/graphql-engine/bundle-webpack.d.ts +5 -5
  125. package/dist/schema/graphql-engine/bundle-webpack.js +9 -0
  126. package/dist/schema/graphql-engine/bundle-webpack.js.map +1 -1
  127. package/dist/schema/graphql-engine/entry.d.ts +19 -18
  128. package/dist/schema/graphql-engine/entry.js +55 -9
  129. package/dist/schema/graphql-engine/entry.js.map +1 -1
  130. package/dist/schema/graphql-engine/print-plugins.d.ts +1 -1
  131. package/dist/schema/infer/build-example-data.d.ts +5 -5
  132. package/dist/schema/infer/inference-metadata.d.ts +72 -72
  133. package/dist/schema/infer/is-file.d.ts +1 -1
  134. package/dist/schema/infer/type-conflict-reporter.d.ts +28 -28
  135. package/dist/schema/node-model.js +2 -2
  136. package/dist/schema/node-model.js.map +1 -1
  137. package/dist/schema/resolvers.d.ts +37 -37
  138. package/dist/schema/resolvers.js +21 -2
  139. package/dist/schema/resolvers.js.map +1 -1
  140. package/dist/schema/schema-composer.d.ts +3 -3
  141. package/dist/schema/schema.js +2 -1
  142. package/dist/schema/schema.js.map +1 -1
  143. package/dist/schema/type-definitions.d.ts +47 -42
  144. package/dist/schema/types/built-in-types.d.ts +3 -3
  145. package/dist/schema/types/date.d.ts +40 -40
  146. package/dist/schema/types/derived-types.d.ts +45 -45
  147. package/dist/schema/types/filter.d.ts +12 -12
  148. package/dist/schema/types/node-interface.d.ts +14 -14
  149. package/dist/schema/types/pagination.d.ts +16 -16
  150. package/dist/schema/types/sort.d.ts +18 -18
  151. package/dist/schema/types/type-builders.d.ts +36 -36
  152. package/dist/services/build-schema.d.ts +2 -2
  153. package/dist/services/calculate-dirty-queries.d.ts +5 -5
  154. package/dist/services/create-pages.d.ts +5 -5
  155. package/dist/services/customize-schema.d.ts +2 -2
  156. package/dist/services/extract-queries.d.ts +2 -2
  157. package/dist/services/index.d.ts +17 -17
  158. package/dist/services/initialize.d.ts +8 -8
  159. package/dist/services/listen-for-mutations.d.ts +2 -2
  160. package/dist/services/listen-to-webpack.d.ts +3 -3
  161. package/dist/services/post-bootstrap.d.ts +2 -2
  162. package/dist/services/recompile.d.ts +3 -3
  163. package/dist/services/run-mutation-batch.d.ts +2 -2
  164. package/dist/services/run-page-queries.d.ts +2 -2
  165. package/dist/services/run-static-queries.d.ts +2 -2
  166. package/dist/services/source-nodes.d.ts +5 -5
  167. package/dist/services/start-webpack-server.d.ts +9 -9
  168. package/dist/services/types.d.ts +47 -47
  169. package/dist/services/write-out-redirects.d.ts +2 -2
  170. package/dist/services/write-out-requires.d.ts +2 -2
  171. package/dist/state-machines/data-layer/actions.d.ts +8 -8
  172. package/dist/state-machines/data-layer/index.d.ts +24 -24
  173. package/dist/state-machines/data-layer/services.d.ts +3 -3
  174. package/dist/state-machines/data-layer/types.d.ts +23 -23
  175. package/dist/state-machines/develop/actions.d.ts +38 -38
  176. package/dist/state-machines/develop/index.d.ts +6 -6
  177. package/dist/state-machines/develop/services.d.ts +3 -3
  178. package/dist/state-machines/index.d.ts +7 -7
  179. package/dist/state-machines/query-running/actions.d.ts +9 -9
  180. package/dist/state-machines/query-running/index.d.ts +7 -7
  181. package/dist/state-machines/query-running/services.d.ts +3 -3
  182. package/dist/state-machines/query-running/types.d.ts +23 -23
  183. package/dist/state-machines/waiting/actions.d.ts +11 -11
  184. package/dist/state-machines/waiting/index.d.ts +12 -12
  185. package/dist/state-machines/waiting/services.d.ts +3 -3
  186. package/dist/state-machines/waiting/types.d.ts +12 -12
  187. package/dist/types.d.ts +9 -9
  188. package/dist/utils/api-browser-docs.d.ts +242 -242
  189. package/dist/utils/api-node-docs.d.ts +456 -456
  190. package/dist/utils/api-runner-error-parser.d.ts +5 -5
  191. package/dist/utils/app-data.d.ts +2 -2
  192. package/dist/utils/assert-store.d.ts +2 -2
  193. package/dist/utils/babel/babel-plugin-remove-api.d.ts +2 -2
  194. package/dist/utils/babel-loader-helpers.js +5 -3
  195. package/dist/utils/babel-loader-helpers.js.map +1 -1
  196. package/dist/utils/babel-loader.js +3 -1
  197. package/dist/utils/babel-loader.js.map +1 -1
  198. package/dist/utils/babel-parse-to-ast.d.ts +4 -4
  199. package/dist/utils/browserslist.d.ts +2 -2
  200. package/dist/utils/cache-lmdb.d.ts +19 -19
  201. package/dist/utils/cache.d.ts +17 -17
  202. package/dist/utils/call-deferred-api.d.ts +8 -8
  203. package/dist/utils/changed-pages.d.ts +6 -6
  204. package/dist/utils/clear-require-cache.d.ts +1 -1
  205. package/dist/utils/client-assets-for-template.d.ts +9 -9
  206. package/dist/utils/create-node-id.d.ts +24 -24
  207. package/dist/utils/create-schema-customization.d.ts +6 -6
  208. package/dist/utils/detect-port-in-use-and-prompt.d.ts +1 -1
  209. package/dist/utils/dev-ssr/render-dev-html.d.ts +23 -23
  210. package/dist/utils/develop-preload-headers.d.ts +7 -7
  211. package/dist/utils/develop-proxy.d.ts +14 -14
  212. package/dist/utils/did-you-mean.d.ts +3 -3
  213. package/dist/utils/did-you-mean.js +1 -1
  214. package/dist/utils/did-you-mean.js.map +1 -1
  215. package/dist/utils/engine-context.d.ts +5 -5
  216. package/dist/utils/engines-fs-provider.d.ts +9 -9
  217. package/dist/utils/engines-helpers.d.ts +2 -2
  218. package/dist/utils/engines-helpers.js +2 -1
  219. package/dist/utils/engines-helpers.js.map +1 -1
  220. package/dist/utils/eslint-config.d.ts +4 -4
  221. package/dist/utils/eslint-config.js +3 -3
  222. package/dist/utils/eslint-config.js.map +1 -1
  223. package/dist/utils/eslint-rules/limited-exports-page-templates.d.ts +1 -1
  224. package/dist/utils/eslint-rules/limited-exports-page-templates.js +12 -8
  225. package/dist/utils/eslint-rules/limited-exports-page-templates.js.map +1 -1
  226. package/dist/utils/eslint-rules/no-anonymous-exports-page-templates.d.ts +1 -1
  227. package/dist/utils/eslint-rules-helpers.d.ts +4 -4
  228. package/dist/utils/fast-refresh-module.d.ts +22 -22
  229. package/dist/utils/feedback.d.ts +5 -5
  230. package/dist/utils/find-page-by-path.d.ts +2 -2
  231. package/dist/utils/flags.d.ts +41 -41
  232. package/dist/utils/gatsby-dependents.d.ts +8 -8
  233. package/dist/utils/gatsby-webpack-eslint-graphql-schema-reload-plugin.d.ts +8 -8
  234. package/dist/utils/gatsby-webpack-eslint-graphql-schema-reload-plugin.js +3 -4
  235. package/dist/utils/gatsby-webpack-eslint-graphql-schema-reload-plugin.js.map +1 -1
  236. package/dist/utils/gatsby-webpack-stats-extractor.d.ts +6 -6
  237. package/dist/utils/gatsby-webpack-virtual-modules.d.ts +6 -6
  238. package/dist/utils/get-cache.d.ts +2 -2
  239. package/dist/utils/get-latest-apis.d.ts +6 -6
  240. package/dist/utils/get-page-data.d.ts +3 -3
  241. package/dist/utils/get-public-path.d.ts +5 -5
  242. package/dist/utils/get-server-data.d.ts +18 -17
  243. package/dist/utils/get-server-data.js +5 -1
  244. package/dist/utils/get-server-data.js.map +1 -1
  245. package/dist/utils/get-ssl-cert.d.ts +9 -9
  246. package/dist/utils/get-static-dir.d.ts +12 -12
  247. package/dist/utils/get-value-at.d.ts +1 -1
  248. package/dist/utils/handle-flags.d.ts +8 -8
  249. package/dist/utils/is-32-bit-integer.d.ts +1 -1
  250. package/dist/utils/jobs/manager.d.ts +31 -31
  251. package/dist/utils/jobs/types.d.ts +63 -63
  252. package/dist/utils/jobs/worker-messaging.d.ts +9 -9
  253. package/dist/utils/js-chunk-names.d.ts +1 -1
  254. package/dist/utils/loading-indicator.d.ts +3 -3
  255. package/dist/utils/local-eslint-config-finder.d.ts +1 -1
  256. package/dist/utils/merge-gatsby-config.d.ts +25 -23
  257. package/dist/utils/merge-gatsby-config.js.map +1 -1
  258. package/dist/utils/mett.d.ts +10 -10
  259. package/dist/utils/node-manifest.d.ts +48 -48
  260. package/dist/utils/node-manifest.js +2 -3
  261. package/dist/utils/node-manifest.js.map +1 -1
  262. package/dist/utils/nodes.d.ts +13 -13
  263. package/dist/utils/normalize-path.d.ts +2 -2
  264. package/dist/utils/page-data-helpers.d.ts +13 -13
  265. package/dist/utils/page-data.d.ts +19 -19
  266. package/dist/utils/page-mode.d.ts +18 -16
  267. package/dist/utils/page-mode.js +59 -15
  268. package/dist/utils/page-mode.js.map +1 -1
  269. package/dist/utils/page-ssr-module/bundle-webpack.d.ts +16 -16
  270. package/dist/utils/page-ssr-module/bundle-webpack.js +9 -0
  271. package/dist/utils/page-ssr-module/bundle-webpack.js.map +1 -1
  272. package/dist/utils/page-ssr-module/entry.d.ts +38 -32
  273. package/dist/utils/page-ssr-module/entry.js +228 -83
  274. package/dist/utils/page-ssr-module/entry.js.map +1 -1
  275. package/dist/utils/path.d.ts +5 -5
  276. package/dist/utils/prepare-regex.d.ts +1 -1
  277. package/dist/utils/prepare-urls.d.ts +7 -7
  278. package/dist/utils/print-deprecation-warnings.d.ts +1 -1
  279. package/dist/utils/print-instructions.d.ts +2 -2
  280. package/dist/utils/reach-router-add-basecontext-export-loader.d.ts +1 -1
  281. package/dist/utils/report-once.d.ts +1 -1
  282. package/dist/utils/require-gatsby-plugin.d.ts +8 -8
  283. package/dist/utils/restarting-screen.d.ts +2 -2
  284. package/dist/utils/sample-site-for-experiment.d.ts +2 -2
  285. package/dist/utils/show-experiment-notice.d.ts +6 -6
  286. package/dist/utils/source-nodes.d.ts +8 -8
  287. package/dist/utils/stack-trace-utils.d.ts +22 -22
  288. package/dist/utils/start-server.d.ts +22 -22
  289. package/dist/utils/state-machine-logging.d.ts +2 -2
  290. package/dist/utils/static-query-utils.d.ts +16 -16
  291. package/dist/utils/telemetry-server.d.ts +1 -1
  292. package/dist/utils/test-require-error.d.ts +1 -1
  293. package/dist/utils/tracer/index.d.ts +12 -12
  294. package/dist/utils/tracer/index.js +3 -2
  295. package/dist/utils/tracer/index.js.map +1 -1
  296. package/dist/utils/tracer/jaeger-local.d.ts +4 -4
  297. package/dist/utils/tracer/zipkin-local.d.ts +11 -11
  298. package/dist/utils/validate-engines/child.d.ts +1 -1
  299. package/dist/utils/validate-engines/index.d.ts +1 -1
  300. package/dist/utils/validate-engines/index.js +7 -1
  301. package/dist/utils/validate-engines/index.js.map +1 -1
  302. package/dist/utils/validate-page-component.d.ts +12 -12
  303. package/dist/utils/wait-until-jobs-complete.d.ts +2 -2
  304. package/dist/utils/webpack/bundle.d.ts +9 -9
  305. package/dist/utils/webpack/plugins/cache-folder-resolver.d.ts +9 -9
  306. package/dist/utils/webpack/plugins/corejs-resolver.d.ts +12 -12
  307. package/dist/utils/webpack/plugins/force-css-hmr-for-edge-cases.d.ts +22 -22
  308. package/dist/utils/webpack/plugins/static-query-mapper.d.ts +7 -7
  309. package/dist/utils/webpack/plugins/webpack-logging.d.ts +12 -12
  310. package/dist/utils/webpack-error-utils.d.ts +24 -24
  311. package/dist/utils/webpack-plugins.d.ts +46 -46
  312. package/dist/utils/webpack-status.d.ts +3 -3
  313. package/dist/utils/webpack-utils.d.ts +121 -122
  314. package/dist/utils/webpack-utils.js +9 -26
  315. package/dist/utils/webpack-utils.js.map +1 -1
  316. package/dist/utils/websocket-manager.d.ts +40 -40
  317. package/dist/utils/worker/child/index.d.ts +4 -4
  318. package/dist/utils/worker/child/load-config-and-plugins.d.ts +2 -2
  319. package/dist/utils/worker/child/queries.d.ts +7 -7
  320. package/dist/utils/worker/child/render-html.d.ts +20 -20
  321. package/dist/utils/worker/child/schema.d.ts +2 -2
  322. package/dist/utils/worker/child/state.d.ts +2 -2
  323. package/dist/utils/worker/messaging.d.ts +8 -8
  324. package/dist/utils/worker/pool.d.ts +10 -10
  325. package/dist/utils/worker/reporter.d.ts +3 -3
  326. package/dist/utils/worker/types.d.ts +3 -3
  327. package/index.d.ts +15 -8
  328. package/package.json +16 -16
package/CHANGELOG.md CHANGED
@@ -3,40 +3,6 @@
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
- ### [4.0.2](https://github.com/gatsbyjs/gatsby/commits/HEAD/packages/gatsby) (2021-10-28)
7
-
8
- #### Bug Fixes
9
-
10
- - only send ipc of ENGINES_READY when needed [#33716](https://github.com/gatsbyjs/gatsby/issues/33716) [#33722](https://github.com/gatsbyjs/gatsby/issues/33722) ([03efe4d](https://github.com/gatsbyjs/gatsby/commit/03efe4dc156888b8c47d2d51ba1053e29842595e))
11
- - reset jobs cache when its outdated [#33617](https://github.com/gatsbyjs/gatsby/issues/33617) [#33660](https://github.com/gatsbyjs/gatsby/issues/33660) ([42358ee](https://github.com/gatsbyjs/gatsby/commit/42358ee71bb88fb6c6d0a721a3e0fe54f9a60fd5))
12
- - pageContext should proxy to page.context [#33627](https://github.com/gatsbyjs/gatsby/issues/33627) [#33661](https://github.com/gatsbyjs/gatsby/issues/33661) ([8c99000](https://github.com/gatsbyjs/gatsby/commit/8c99000646b29688b235408b4400d9e54c9d3f5f))
13
-
14
- #### Chores
15
-
16
- - Update README [#33615](https://github.com/gatsbyjs/gatsby/issues/33615) ([0790895](https://github.com/gatsbyjs/gatsby/commit/079089523b9cb4bf4c112deb71b7ef1d175ab1c6))
17
- - Change comment format in actions/public [#33592](https://github.com/gatsbyjs/gatsby/issues/33592) ([06760d7](https://github.com/gatsbyjs/gatsby/commit/06760d7801d1b1da4cfdb4925ff33bd086a75c0c))
18
-
19
- ### [4.0.1](https://github.com/gatsbyjs/gatsby/commits/HEAD/packages/gatsby) (2021-10-25)
20
-
21
- #### Bug Fixes
22
-
23
- - reset jobs cache when its outdated [#33617](https://github.com/gatsbyjs/gatsby/issues/33617) [#33660](https://github.com/gatsbyjs/gatsby/issues/33660) ([42358ee](https://github.com/gatsbyjs/gatsby/commit/42358ee71bb88fb6c6d0a721a3e0fe54f9a60fd5))
24
- - pageContext should proxy to page.context [#33627](https://github.com/gatsbyjs/gatsby/issues/33627) [#33661](https://github.com/gatsbyjs/gatsby/issues/33661) ([8c99000](https://github.com/gatsbyjs/gatsby/commit/8c99000646b29688b235408b4400d9e54c9d3f5f))
25
-
26
- #### Chores
27
-
28
- - Update README [#33615](https://github.com/gatsbyjs/gatsby/issues/33615) ([0790895](https://github.com/gatsbyjs/gatsby/commit/079089523b9cb4bf4c112deb71b7ef1d175ab1c6))
29
- - Change comment format in actions/public [#33592](https://github.com/gatsbyjs/gatsby/issues/33592) ([06760d7](https://github.com/gatsbyjs/gatsby/commit/06760d7801d1b1da4cfdb4925ff33bd086a75c0c))
30
-
31
- ## [4.0.0](https://github.com/gatsbyjs/gatsby/commits/HEAD/packages/gatsby) (2021-10-21)
32
-
33
- [🧾 Release notes](https://www.gatsbyjs.com/docs/reference/release-notes/v4.0)
34
-
35
- #### Chores
36
-
37
- - Update README [#33615](https://github.com/gatsbyjs/gatsby/issues/33615) ([0790895](https://github.com/gatsbyjs/gatsby/commit/079089523b9cb4bf4c112deb71b7ef1d175ab1c6))
38
- - Change comment format in actions/public [#33592](https://github.com/gatsbyjs/gatsby/issues/33592) ([06760d7](https://github.com/gatsbyjs/gatsby/commit/06760d7801d1b1da4cfdb4925ff33bd086a75c0c))
39
-
40
6
  ### [3.14.2](https://github.com/gatsbyjs/gatsby/commits/gatsby@3.14.2/packages/gatsby) (2021-10-06)
41
7
 
42
8
  #### Features
@@ -29,6 +29,7 @@
29
29
  * @param {function} $0.setBodyProps Takes an object of data which
30
30
  * is merged with other body props and passed to `html.js` as `bodyProps`.
31
31
  * @param {pluginOptions} pluginOptions
32
+ * @returns {void | Promise<void>}
32
33
  * @example
33
34
  * // From gatsby-plugin-glamor
34
35
  * const { renderToString } = require("react-dom/server")
@@ -184,6 +185,7 @@ exports.wrapPageElement = true
184
185
  * It is recommended to use both APIs together.
185
186
  * For example usage, check out [Using redux](https://github.com/gatsbyjs/gatsby/tree/master/examples/using-redux).
186
187
  * @param {object} $0
188
+ * @param {string} $0.pathname The pathname of the page currently being rendered.
187
189
  * @param {ReactNode} $0.element The "Root" React Element built by Gatsby.
188
190
  * @param {pluginOptions} pluginOptions
189
191
  * @returns {ReactNode} Wrapped element
@@ -31,6 +31,7 @@
31
31
  * @param {function} $0.setBodyProps Takes an object of data which
32
32
  * is merged with other body props and passed to `html.js` as `bodyProps`.
33
33
  * @param {pluginOptions} pluginOptions
34
+ * @returns {void | Promise<void>}
34
35
  * @example
35
36
  * // From gatsby-plugin-glamor
36
37
  * const { renderToString } = require("react-dom/server")
@@ -185,6 +186,7 @@ exports.wrapPageElement = true;
185
186
  * It is recommended to use both APIs together.
186
187
  * For example usage, check out [Using redux](https://github.com/gatsbyjs/gatsby/tree/master/examples/using-redux).
187
188
  * @param {object} $0
189
+ * @param {string} $0.pathname The pathname of the page currently being rendered.
188
190
  * @param {ReactNode} $0.element The "Root" React Element built by Gatsby.
189
191
  * @param {pluginOptions} pluginOptions
190
192
  * @returns {ReactNode} Wrapped element
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,10 +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
- }>;
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
+ }>;
@@ -1,10 +1,10 @@
1
- import { IFlattenedPlugin } from "./load-plugins/types";
2
- import { IProgram } from "../commands/types";
3
- export declare function loadConfigAndPlugins({ siteDirectory, processFlags, }: {
4
- siteDirectory: string;
5
- processFlags?: boolean;
6
- program?: IProgram;
7
- }): Promise<{
8
- config: any;
9
- flattenedPlugins: Array<IFlattenedPlugin>;
10
- }>;
1
+ import { IFlattenedPlugin } from "./load-plugins/types";
2
+ import { IProgram } from "../commands/types";
3
+ export declare function loadConfigAndPlugins({ siteDirectory, processFlags, }: {
4
+ siteDirectory: string;
5
+ processFlags?: boolean;
6
+ program?: IProgram;
7
+ }): Promise<{
8
+ config: any;
9
+ flattenedPlugins: Array<IFlattenedPlugin>;
10
+ }>;
@@ -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,46 +1,46 @@
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
- subPluginPaths?: Array<string>;
19
- module?: any;
20
- modulePath?: string;
21
- }
22
- export interface IPluginInfoOptions {
23
- plugins?: Array<IPluginInfo>;
24
- path?: string;
25
- [option: string]: unknown;
26
- }
27
- export interface IFlattenedPlugin extends IPluginInfo {
28
- skipSSR?: boolean;
29
- ssrAPIs: Array<string>;
30
- nodeAPIs: Array<string>;
31
- browserAPIs: Array<string>;
32
- }
33
- export interface IPluginRefObject {
34
- resolve: string;
35
- options?: IPluginRefOptions;
36
- parentDir?: string;
37
- subPluginPaths?: Array<string>;
38
- module?: any;
39
- modulePath?: string;
40
- }
41
- export declare type PluginRef = string | IPluginRefObject;
42
- export interface IPluginRefOptions {
43
- plugins?: Array<PluginRef>;
44
- path?: string;
45
- [option: string]: unknown;
46
- }
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
+ subPluginPaths?: Array<string>;
19
+ module?: any;
20
+ modulePath?: string;
21
+ }
22
+ export interface IPluginInfoOptions {
23
+ plugins?: Array<IPluginInfo>;
24
+ path?: string;
25
+ [option: string]: unknown;
26
+ }
27
+ export interface IFlattenedPlugin extends IPluginInfo {
28
+ skipSSR?: boolean;
29
+ ssrAPIs: Array<string>;
30
+ nodeAPIs: Array<string>;
31
+ browserAPIs: Array<string>;
32
+ }
33
+ export interface IPluginRefObject {
34
+ resolve: string;
35
+ options?: IPluginRefOptions;
36
+ parentDir?: string;
37
+ subPluginPaths?: Array<string>;
38
+ module?: any;
39
+ modulePath?: string;
40
+ }
41
+ export declare type PluginRef = string | IPluginRefObject;
42
+ export interface IPluginRefOptions {
43
+ plugins?: Array<PluginRef>;
44
+ path?: string;
45
+ [option: string]: unknown;
46
+ }
@@ -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, IRemoveStaleJobV2Action, ICreateJobV2FromInternalAction } from "../redux/types";
2
- export declare const removeStaleJobs: (jobs: IGatsbyState["jobsV2"]) => Array<IRemoveStaleJobV2Action | ICreateJobV2FromInternalAction>;
1
+ import { IGatsbyState, IRemoveStaleJobV2Action, ICreateJobV2FromInternalAction } from "../redux/types";
2
+ export declare const removeStaleJobs: (jobs: IGatsbyState["jobsV2"]) => Array<IRemoveStaleJobV2Action | ICreateJobV2FromInternalAction>;
@@ -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,55 +1,55 @@
1
- import { watch } from "../utils/webpack/bundle";
2
- import { IWebpackWatchingPauseResume } from "../utils/start-server";
3
- import webpack from "webpack";
4
- import { Span } from "opentracing";
5
- import { IProgram, Stage } from "./types";
6
- import { PackageJson } from "../..";
7
- import type { GatsbyWorkerPool } from "../utils/worker/pool";
8
- declare type IActivity = any;
9
- export interface IBuildArgs extends IProgram {
10
- directory: string;
11
- sitePackageJson: PackageJson;
12
- prefixPaths: boolean;
13
- noUglify: boolean;
14
- logPages: boolean;
15
- writeToFile: boolean;
16
- profile: boolean;
17
- graphqlTracing: boolean;
18
- openTracingConfigFile: string;
19
- keepPageRenderer: boolean;
20
- }
21
- interface IBuildRendererResult {
22
- rendererPath: string;
23
- stats: webpack.Stats;
24
- close: ReturnType<typeof watch>["close"];
25
- }
26
- declare let devssrWebpackCompiler: webpack.Watching | undefined;
27
- declare let needToRecompileSSRBundle: boolean;
28
- export declare const getDevSSRWebpack: () => {
29
- devssrWebpackWatcher: IWebpackWatchingPauseResume;
30
- devssrWebpackCompiler: webpack.Compiler;
31
- needToRecompileSSRBundle: boolean;
32
- };
33
- export declare const buildRenderer: (program: IProgram, stage: Stage, parentSpan?: IActivity) => Promise<IBuildRendererResult>;
34
- export declare const deleteRenderer: (rendererPath: string) => Promise<void>;
35
- export interface IRenderHtmlResult {
36
- unsafeBuiltinsUsageByPagePath: Record<string, Array<string>>;
37
- previewErrors: Record<string, any>;
38
- }
39
- export declare const doBuildPages: (rendererPath: string, pagePaths: Array<string>, activity: IActivity, workerPool: GatsbyWorkerPool, stage: Stage) => Promise<void>;
40
- export declare const buildHTML: ({ program, stage, pagePaths, activity, workerPool, }: {
41
- program: IProgram;
42
- stage: Stage;
43
- pagePaths: Array<string>;
44
- activity: IActivity;
45
- workerPool: GatsbyWorkerPool;
46
- }) => Promise<void>;
47
- export declare function buildHTMLPagesAndDeleteStaleArtifacts({ workerPool, buildSpan, program, }: {
48
- workerPool: GatsbyWorkerPool;
49
- buildSpan?: Span;
50
- program: IBuildArgs;
51
- }): Promise<{
52
- toRegenerate: Array<string>;
53
- toDelete: Array<string>;
54
- }>;
55
- export {};
1
+ import { watch } from "../utils/webpack/bundle";
2
+ import { IWebpackWatchingPauseResume } from "../utils/start-server";
3
+ import webpack from "webpack";
4
+ import { Span } from "opentracing";
5
+ import { IProgram, Stage } from "./types";
6
+ import { PackageJson } from "../..";
7
+ import type { GatsbyWorkerPool } from "../utils/worker/pool";
8
+ declare type IActivity = any;
9
+ export interface IBuildArgs extends IProgram {
10
+ directory: string;
11
+ sitePackageJson: PackageJson;
12
+ prefixPaths: boolean;
13
+ noUglify: boolean;
14
+ logPages: boolean;
15
+ writeToFile: boolean;
16
+ profile: boolean;
17
+ graphqlTracing: boolean;
18
+ openTracingConfigFile: string;
19
+ keepPageRenderer: boolean;
20
+ }
21
+ interface IBuildRendererResult {
22
+ rendererPath: string;
23
+ stats: webpack.Stats;
24
+ close: ReturnType<typeof watch>["close"];
25
+ }
26
+ declare let devssrWebpackCompiler: webpack.Watching | undefined;
27
+ declare let needToRecompileSSRBundle: boolean;
28
+ export declare const getDevSSRWebpack: () => {
29
+ devssrWebpackWatcher: IWebpackWatchingPauseResume;
30
+ devssrWebpackCompiler: webpack.Compiler;
31
+ needToRecompileSSRBundle: boolean;
32
+ };
33
+ export declare const buildRenderer: (program: IProgram, stage: Stage, parentSpan?: IActivity) => Promise<IBuildRendererResult>;
34
+ export declare const deleteRenderer: (rendererPath: string) => Promise<void>;
35
+ export interface IRenderHtmlResult {
36
+ unsafeBuiltinsUsageByPagePath: Record<string, Array<string>>;
37
+ previewErrors: Record<string, any>;
38
+ }
39
+ export declare const doBuildPages: (rendererPath: string, pagePaths: Array<string>, activity: IActivity, workerPool: GatsbyWorkerPool, stage: Stage) => Promise<void>;
40
+ export declare const buildHTML: ({ program, stage, pagePaths, activity, workerPool, }: {
41
+ program: IProgram;
42
+ stage: Stage;
43
+ pagePaths: Array<string>;
44
+ activity: IActivity;
45
+ workerPool: GatsbyWorkerPool;
46
+ }) => Promise<void>;
47
+ export declare function buildHTMLPagesAndDeleteStaleArtifacts({ workerPool, buildSpan, program, }: {
48
+ workerPool: GatsbyWorkerPool;
49
+ buildSpan?: Span;
50
+ program: IBuildArgs;
51
+ }): Promise<{
52
+ toRegenerate: Array<string>;
53
+ toDelete: Array<string>;
54
+ }>;
55
+ export {};
@@ -1,4 +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>>;
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>>;
@@ -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 {};