gatsby 2.32.1 → 2.32.4

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 (186) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/cli.js +0 -0
  3. package/dist/bootstrap/create-graphql-runner.d.ts +11 -11
  4. package/dist/bootstrap/get-config-file.d.ts +4 -4
  5. package/dist/bootstrap/load-plugins/index.d.ts +2 -2
  6. package/dist/bootstrap/load-plugins/load.d.ts +11 -11
  7. package/dist/bootstrap/load-plugins/types.d.ts +40 -40
  8. package/dist/bootstrap/load-plugins/validate.d.ts +39 -39
  9. package/dist/bootstrap/prefer-default.d.ts +1 -1
  10. package/dist/bootstrap/redirects-writer.d.ts +2 -2
  11. package/dist/bootstrap/remove-stale-jobs.d.ts +2 -2
  12. package/dist/bootstrap/requires-writer.d.ts +10 -10
  13. package/dist/bootstrap/resolve-module-exports.d.ts +15 -15
  14. package/dist/commands/develop-static.d.ts +3 -3
  15. package/dist/commands/types.d.ts +48 -48
  16. package/dist/db/common/query.d.ts +37 -37
  17. package/dist/internal.d.ts +5 -5
  18. package/dist/joi-schemas/joi.d.ts +6 -6
  19. package/dist/query/error-parser.d.ts +19 -19
  20. package/dist/query/graphql-runner.d.ts +30 -30
  21. package/dist/query/graphql-span-tracer.d.ts +19 -19
  22. package/dist/query/query-watcher.d.ts +17 -17
  23. package/dist/query/types.d.ts +34 -34
  24. package/dist/query/utils.d.ts +4 -4
  25. package/dist/redux/actions/add-page-dependency.d.ts +5 -5
  26. package/dist/redux/actions/index.d.ts +13 -13
  27. package/dist/redux/actions/internal.d.ts +109 -109
  28. package/dist/redux/actions/restricted.d.ts +293 -293
  29. package/dist/redux/index.d.ts +12 -12
  30. package/dist/redux/nodes.d.ts +92 -92
  31. package/dist/redux/persist.d.ts +3 -3
  32. package/dist/redux/plugin-runner.d.ts +1 -1
  33. package/dist/redux/reducers/babelrc.d.ts +9 -9
  34. package/dist/redux/reducers/components.d.ts +7 -7
  35. package/dist/redux/reducers/config.d.ts +2 -2
  36. package/dist/redux/reducers/definitions.d.ts +2 -2
  37. package/dist/redux/reducers/flattened-plugins.d.ts +15 -15
  38. package/dist/redux/reducers/index.d.ts +34 -34
  39. package/dist/redux/reducers/inference-metadata.d.ts +7 -7
  40. package/dist/redux/reducers/jobs.d.ts +5 -5
  41. package/dist/redux/reducers/jobsv2.d.ts +5 -5
  42. package/dist/redux/reducers/last-action.d.ts +2 -2
  43. package/dist/redux/reducers/nodes-by-type.d.ts +2 -2
  44. package/dist/redux/reducers/nodes-touched.d.ts +3 -3
  45. package/dist/redux/reducers/nodes.d.ts +2 -2
  46. package/dist/redux/reducers/page-data-stats.d.ts +2 -2
  47. package/dist/redux/reducers/page-data.d.ts +2 -2
  48. package/dist/redux/reducers/pages.d.ts +2 -2
  49. package/dist/redux/reducers/pending-page-data-writes.d.ts +4 -4
  50. package/dist/redux/reducers/program.d.ts +2 -2
  51. package/dist/redux/reducers/queries.d.ts +26 -26
  52. package/dist/redux/reducers/redirects.d.ts +2 -2
  53. package/dist/redux/reducers/resolved-nodes.d.ts +2 -2
  54. package/dist/redux/reducers/schema-customization.d.ts +23 -23
  55. package/dist/redux/reducers/schema.d.ts +3 -3
  56. package/dist/redux/reducers/static-queries-by-template.d.ts +2 -2
  57. package/dist/redux/reducers/static-query-components.d.ts +2 -2
  58. package/dist/redux/reducers/status.d.ts +5 -5
  59. package/dist/redux/reducers/themes.d.ts +2 -2
  60. package/dist/redux/reducers/visited-page.d.ts +2 -2
  61. package/dist/redux/reducers/webpack-compilation-hash.d.ts +2 -2
  62. package/dist/redux/reducers/webpack.d.ts +2 -2
  63. package/dist/redux/types.d.ts +667 -667
  64. package/dist/schema/context.d.ts +13 -13
  65. package/dist/schema/infer/inference-metadata.d.ts +72 -72
  66. package/dist/schema/infer/type-conflict-reporter.d.ts +28 -28
  67. package/dist/schema/resolvers.d.ts +34 -34
  68. package/dist/schema/type-definitions.d.ts +42 -42
  69. package/dist/schema/types/date.d.ts +40 -40
  70. package/dist/schema/types/derived-types.d.ts +42 -42
  71. package/dist/schema/types/filter.d.ts +12 -12
  72. package/dist/schema/types/node-interface.d.ts +14 -14
  73. package/dist/schema/types/sort.d.ts +18 -18
  74. package/dist/schema/types/type-builders.d.ts +36 -36
  75. package/dist/services/build-schema.d.ts +2 -2
  76. package/dist/services/calculate-dirty-queries.d.ts +5 -5
  77. package/dist/services/create-pages-statefully.d.ts +2 -2
  78. package/dist/services/create-pages.d.ts +5 -5
  79. package/dist/services/customize-schema.d.ts +2 -2
  80. package/dist/services/extract-queries.d.ts +2 -2
  81. package/dist/services/index.d.ts +19 -19
  82. package/dist/services/initialize.d.ts +8 -8
  83. package/dist/services/listen-for-mutations.d.ts +2 -2
  84. package/dist/services/listen-to-webpack.d.ts +3 -3
  85. package/dist/services/post-bootstrap.d.ts +2 -2
  86. package/dist/services/rebuild-schema-with-site-pages.d.ts +2 -2
  87. package/dist/services/recompile.d.ts +3 -3
  88. package/dist/services/run-mutation-batch.d.ts +2 -2
  89. package/dist/services/run-page-queries.d.ts +2 -2
  90. package/dist/services/run-static-queries.d.ts +2 -2
  91. package/dist/services/source-nodes.d.ts +5 -5
  92. package/dist/services/start-webpack-server.d.ts +9 -9
  93. package/dist/services/types.d.ts +45 -45
  94. package/dist/services/write-out-redirects.d.ts +2 -2
  95. package/dist/services/write-out-requires.d.ts +2 -2
  96. package/dist/state-machines/data-layer/actions.d.ts +8 -8
  97. package/dist/state-machines/data-layer/index.d.ts +24 -24
  98. package/dist/state-machines/data-layer/services.d.ts +3 -3
  99. package/dist/state-machines/data-layer/types.d.ts +30 -30
  100. package/dist/state-machines/develop/actions.d.ts +37 -37
  101. package/dist/state-machines/index.d.ts +7 -7
  102. package/dist/state-machines/query-running/actions.d.ts +9 -9
  103. package/dist/state-machines/query-running/index.d.ts +7 -7
  104. package/dist/state-machines/query-running/services.d.ts +3 -3
  105. package/dist/state-machines/query-running/types.d.ts +23 -23
  106. package/dist/state-machines/waiting/actions.d.ts +11 -11
  107. package/dist/state-machines/waiting/index.d.ts +12 -12
  108. package/dist/state-machines/waiting/services.d.ts +3 -3
  109. package/dist/state-machines/waiting/types.d.ts +12 -12
  110. package/dist/types.d.ts +9 -9
  111. package/dist/utils/api-browser-docs.d.ts +252 -252
  112. package/dist/utils/api-node-docs.d.ts +443 -443
  113. package/dist/utils/assert-store.d.ts +2 -2
  114. package/dist/utils/babel-parse-to-ast.d.ts +4 -4
  115. package/dist/utils/browserslist.d.ts +1 -1
  116. package/dist/utils/call-deferred-api.d.ts +8 -8
  117. package/dist/utils/changed-pages.d.ts +6 -6
  118. package/dist/utils/create-node-id.d.ts +24 -24
  119. package/dist/utils/create-schema-customization.d.ts +6 -6
  120. package/dist/utils/develop-preload-headers.d.ts +7 -7
  121. package/dist/utils/did-you-mean.d.ts +3 -3
  122. package/dist/utils/find-page-by-path.d.ts +2 -2
  123. package/dist/utils/flags.d.ts +34 -34
  124. package/dist/utils/gatsby-dependents.d.ts +8 -8
  125. package/dist/utils/gatsby-webpack-virtual-modules.d.ts +6 -6
  126. package/dist/utils/get-latest-apis.d.ts +6 -6
  127. package/dist/utils/get-page-data.d.ts +3 -3
  128. package/dist/utils/get-react-hot-loader-strategy.d.ts +1 -1
  129. package/dist/utils/get-value-at.d.ts +1 -1
  130. package/dist/utils/handle-flags.d.ts +7 -7
  131. package/dist/utils/handle-flags.js +1 -3
  132. package/dist/utils/handle-flags.js.map +1 -1
  133. package/dist/utils/is-32-bit-integer.d.ts +1 -1
  134. package/dist/utils/jobs-manager.d.ts +61 -61
  135. package/dist/utils/loading-indicator.d.ts +3 -3
  136. package/dist/utils/map-templates-to-static-query-hashes.d.ts +16 -16
  137. package/dist/utils/mett.d.ts +10 -10
  138. package/dist/utils/page-data.d.ts +22 -22
  139. package/dist/utils/path.d.ts +5 -5
  140. package/dist/utils/prepare-urls.d.ts +7 -7
  141. package/dist/utils/print-deprecation-warnings.d.ts +1 -1
  142. package/dist/utils/print-instructions.d.ts +2 -2
  143. package/dist/utils/sample-site-for-experiment.d.ts +2 -2
  144. package/dist/utils/show-experiment-notice.d.ts +6 -6
  145. package/dist/utils/show-experiment-notice.js +1 -3
  146. package/dist/utils/show-experiment-notice.js.map +1 -1
  147. package/dist/utils/source-nodes.d.ts +8 -8
  148. package/dist/utils/stack-trace-utils.d.ts +22 -22
  149. package/dist/utils/start-server.d.ts +25 -25
  150. package/dist/utils/test-require-error.d.ts +1 -1
  151. package/dist/utils/wait-until-jobs-complete.d.ts +1 -1
  152. package/dist/utils/webpack-error-utils.d.ts +18 -18
  153. package/dist/utils/webpack-status.d.ts +3 -3
  154. package/dist/utils/websocket-manager.d.ts +39 -39
  155. package/dist/utils/worker/pool.d.ts +2 -2
  156. package/gatsby-admin-public/4c744e84-6c27fb4a13dc8c8c3e88.js.map +1 -1
  157. package/gatsby-admin-public/69bd6bf3-00a5b50945cce68e041c.js.map +1 -1
  158. package/gatsby-admin-public/784b2cee55c07b638f20445dec340adf9f1888a3-d690a55f56dedc0f95b3.js.map +1 -1
  159. package/gatsby-admin-public/854a7ef1f34af0aefbdfdd9304a0c00251662775-30cef3c004238987a416.js.map +1 -1
  160. package/gatsby-admin-public/{app-d9751648e893ba210043.js → app-6c2c6fce379979bf83b4.js} +2 -2
  161. package/gatsby-admin-public/{app-d9751648e893ba210043.js.LICENSE.txt → app-6c2c6fce379979bf83b4.js.LICENSE.txt} +0 -0
  162. package/gatsby-admin-public/app-6c2c6fce379979bf83b4.js.map +1 -0
  163. package/gatsby-admin-public/c432bec7e9afb3443fd639df9e5f119e13575cf7-976ea4aa8380d4a68cb1.js.map +1 -1
  164. package/gatsby-admin-public/chunk-map.json +1 -1
  165. package/gatsby-admin-public/component---src-pages-index-tsx-70aa31e4e1eca0a560a8.js.map +1 -1
  166. package/gatsby-admin-public/component---src-pages-plugins-tsx-c6700b48ed9ac88a9768.js.map +1 -1
  167. package/gatsby-admin-public/{component---src-pages-recipe-js-91150640d438410a1a0b.js → component---src-pages-recipe-js-48fb05e6af01805f0a27.js} +1 -1
  168. package/gatsby-admin-public/component---src-pages-recipe-js-48fb05e6af01805f0a27.js.map +1 -0
  169. package/gatsby-admin-public/{component---src-pages-recipes-tsx-783a64490d7b6adbd6f7.js → component---src-pages-recipes-tsx-3ee575d06f86a76026da.js} +2 -2
  170. package/gatsby-admin-public/component---src-pages-recipes-tsx-3ee575d06f86a76026da.js.map +1 -0
  171. package/gatsby-admin-public/e2852b4470dcb2615e49edcd9de2a3c8119d4bec-fbd253211b90ee4d944c.js.map +1 -1
  172. package/gatsby-admin-public/framework-b5530edc347e85dd3979.js.map +1 -1
  173. package/gatsby-admin-public/index.html +1 -1
  174. package/gatsby-admin-public/page-data/app-data.json +1 -1
  175. package/gatsby-admin-public/pages/index.html +1 -1
  176. package/gatsby-admin-public/plugins/index.html +1 -1
  177. package/gatsby-admin-public/polyfill-bb3950ad41cd96a6ba64.js.map +1 -1
  178. package/gatsby-admin-public/recipe/index.html +1 -1
  179. package/gatsby-admin-public/recipes/index.html +1 -1
  180. package/gatsby-admin-public/{webpack-runtime-6b6b8481985de0567160.js → webpack-runtime-ece0b6a1fdfb71d1b025.js} +2 -2
  181. package/gatsby-admin-public/{webpack-runtime-6b6b8481985de0567160.js.map → webpack-runtime-ece0b6a1fdfb71d1b025.js.map} +1 -1
  182. package/gatsby-admin-public/webpack.stats.json +1 -1
  183. package/package.json +4 -5
  184. package/gatsby-admin-public/app-d9751648e893ba210043.js.map +0 -1
  185. package/gatsby-admin-public/component---src-pages-recipe-js-91150640d438410a1a0b.js.map +0 -1
  186. package/gatsby-admin-public/component---src-pages-recipes-tsx-783a64490d7b6adbd6f7.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -3,6 +3,20 @@
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
+ ## [2.32.4](https://github.com/gatsbyjs/gatsby/compare/gatsby@2.32.3...gatsby@2.32.4) (2021-02-18)
7
+
8
+ ### Bug Fixes
9
+
10
+ - drop terminal-link ([#29472](https://github.com/gatsbyjs/gatsby/issues/29472)) ([#29477](https://github.com/gatsbyjs/gatsby/issues/29477)) ([6374419](https://github.com/gatsbyjs/gatsby/commit/637441942806a439cc7efc4c7ba54be24c59d276))
11
+
12
+ ## [2.32.3](https://github.com/gatsbyjs/gatsby/compare/gatsby@2.32.2...gatsby@2.32.3) (2021-02-05)
13
+
14
+ **Note:** Version bump only for package gatsby
15
+
16
+ ## [2.32.2](https://github.com/gatsbyjs/gatsby/compare/gatsby@2.32.1...gatsby@2.32.2) (2021-02-04)
17
+
18
+ **Note:** Version bump only for package gatsby
19
+
6
20
  ## [2.32.1](https://github.com/gatsbyjs/gatsby/compare/gatsby@2.32.0...gatsby@2.32.1) (2021-02-04)
7
21
 
8
22
  ### Bug Fixes
package/cli.js CHANGED
File without changes
@@ -1,11 +1,11 @@
1
- import { Span } from "opentracing";
2
- import { ExecutionResultDataDefault } from "graphql/execution/execute";
3
- import { Store } from "redux";
4
- import { Reporter } from "../..";
5
- import { ExecutionResult, Source } from "../../graphql";
6
- import { IGatsbyState } from "../redux/types";
7
- export declare type Runner = (query: string | Source, context: Record<string, any>) => Promise<ExecutionResult<ExecutionResultDataDefault>>;
8
- export declare const createGraphQLRunner: (store: Store<IGatsbyState>, reporter: Reporter, { parentSpan, graphqlTracing, }?: {
9
- parentSpan: Span | undefined;
10
- graphqlTracing?: boolean | undefined;
11
- }) => Runner;
1
+ import { Span } from "opentracing";
2
+ import { ExecutionResultDataDefault } from "graphql/execution/execute";
3
+ import { Store } from "redux";
4
+ import { Reporter } from "../..";
5
+ import { ExecutionResult, Source } from "../../graphql";
6
+ import { IGatsbyState } from "../redux/types";
7
+ export declare type Runner = (query: string | Source, context: Record<string, any>) => Promise<ExecutionResult<ExecutionResultDataDefault>>;
8
+ export declare const createGraphQLRunner: (store: Store<IGatsbyState>, reporter: Reporter, { parentSpan, graphqlTracing, }?: {
9
+ parentSpan: Span | undefined;
10
+ graphqlTracing?: boolean | undefined;
11
+ }) => 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,2 +1,2 @@
1
- import { IFlattenedPlugin, IRawSiteConfig } from "./types";
2
- export declare function loadPlugins(rawConfig?: IRawSiteConfig, rootDir?: string | null): Promise<Array<IFlattenedPlugin>>;
1
+ import { IFlattenedPlugin, IRawSiteConfig } from "./types";
2
+ export declare function loadPlugins(rawConfig?: IRawSiteConfig, rootDir?: string | null): Promise<Array<IFlattenedPlugin>>;
@@ -1,11 +1,11 @@
1
- import { IPluginInfo, ISiteConfig } from "./types";
2
- /**
3
- * @param pluginName
4
- * This can be a name of a local plugin, the name of a plugin located in
5
- * node_modules, or a Gatsby internal plugin. In the last case the pluginName
6
- * will be an absolute path.
7
- * @param rootDir
8
- * This is the project location, from which are found the plugins
9
- */
10
- export declare function resolvePlugin(pluginName: string, rootDir: string | null): IPluginInfo;
11
- export declare function loadPlugins(config?: ISiteConfig, rootDir?: string | null): Array<IPluginInfo>;
1
+ import { IPluginInfo, ISiteConfig } from "./types";
2
+ /**
3
+ * @param pluginName
4
+ * This can be a name of a local plugin, the name of a plugin located in
5
+ * node_modules, or a Gatsby internal plugin. In the last case the pluginName
6
+ * will be an absolute path.
7
+ * @param rootDir
8
+ * This is the project location, from which are found the plugins
9
+ */
10
+ export declare function resolvePlugin(pluginName: string, rootDir: string | null): IPluginInfo;
11
+ export declare function loadPlugins(config?: ISiteConfig, rootDir?: string | null): 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,39 +1,39 @@
1
- import { IPluginInfo, IFlattenedPlugin, ISiteConfig } from "./types";
2
- interface IApi {
3
- version?: string;
4
- }
5
- export interface IEntry {
6
- exportName: string;
7
- pluginName: string;
8
- pluginVersion: string;
9
- api?: IApi;
10
- }
11
- export declare type ExportType = "node" | "browser" | "ssr";
12
- declare type IEntryMap = {
13
- [exportType in ExportType]: Array<IEntry>;
14
- };
15
- export declare type ICurrentAPIs = {
16
- [exportType in ExportType]: Array<string>;
17
- };
18
- export declare function handleBadExports({ currentAPIs, badExports, }: {
19
- currentAPIs: ICurrentAPIs;
20
- badExports: {
21
- [api in ExportType]: Array<IEntry>;
22
- };
23
- }): Promise<void>;
24
- export declare function validateConfigPluginsOptions(config: ISiteConfig | undefined, rootDir: string | null): Promise<void>;
25
- /**
26
- * Identify which APIs each plugin exports
27
- */
28
- export declare function collatePluginAPIs({ currentAPIs, flattenedPlugins, }: {
29
- currentAPIs: ICurrentAPIs;
30
- flattenedPlugins: Array<IPluginInfo & Partial<IFlattenedPlugin>>;
31
- }): {
32
- flattenedPlugins: Array<IFlattenedPlugin>;
33
- badExports: IEntryMap;
34
- };
35
- export declare const handleMultipleReplaceRenderers: ({ flattenedPlugins, }: {
36
- flattenedPlugins: Array<IFlattenedPlugin>;
37
- }) => Array<IFlattenedPlugin>;
38
- export declare function warnOnIncompatiblePeerDependency(name: string, packageJSON: object): void;
39
- export {};
1
+ import { IPluginInfo, IFlattenedPlugin, ISiteConfig } from "./types";
2
+ interface IApi {
3
+ version?: string;
4
+ }
5
+ export interface IEntry {
6
+ exportName: string;
7
+ pluginName: string;
8
+ pluginVersion: string;
9
+ api?: IApi;
10
+ }
11
+ export declare type ExportType = "node" | "browser" | "ssr";
12
+ declare type IEntryMap = {
13
+ [exportType in ExportType]: Array<IEntry>;
14
+ };
15
+ export declare type ICurrentAPIs = {
16
+ [exportType in ExportType]: Array<string>;
17
+ };
18
+ export declare function handleBadExports({ currentAPIs, badExports, }: {
19
+ currentAPIs: ICurrentAPIs;
20
+ badExports: {
21
+ [api in ExportType]: Array<IEntry>;
22
+ };
23
+ }): Promise<void>;
24
+ export declare function validateConfigPluginsOptions(config: ISiteConfig | undefined, rootDir: string | null): Promise<void>;
25
+ /**
26
+ * Identify which APIs each plugin exports
27
+ */
28
+ export declare function collatePluginAPIs({ currentAPIs, flattenedPlugins, }: {
29
+ currentAPIs: ICurrentAPIs;
30
+ flattenedPlugins: Array<IPluginInfo & Partial<IFlattenedPlugin>>;
31
+ }): {
32
+ flattenedPlugins: Array<IFlattenedPlugin>;
33
+ badExports: IEntryMap;
34
+ };
35
+ export declare const handleMultipleReplaceRenderers: ({ flattenedPlugins, }: {
36
+ flattenedPlugins: Array<IFlattenedPlugin>;
37
+ }) => Array<IFlattenedPlugin>;
38
+ export declare function warnOnIncompatiblePeerDependency(name: string, packageJSON: object): void;
39
+ 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
- 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,48 +1,48 @@
1
- /// <reference types="node" />
2
- import { PackageJson, Reporter } from "gatsby";
3
- import { Store, AnyAction } from "redux";
4
- import { IGatsbyState } from "../redux/types";
5
- export interface ICert {
6
- key: Buffer;
7
- cert: Buffer;
8
- }
9
- export interface IDebugInfo {
10
- port: number;
11
- break: boolean;
12
- }
13
- export interface IProgram {
14
- _: `develop` | `build` | `clean` | `feedback` | `repl` | `serve`;
15
- status?: string;
16
- useYarn: boolean;
17
- open: boolean;
18
- openTracingConfigFile: string;
19
- port: number;
20
- proxyPort: number;
21
- host: string;
22
- report: Reporter;
23
- [`cert-file`]?: string;
24
- [`key-file`]?: string;
25
- directory: string;
26
- https?: boolean;
27
- sitePackageJson: PackageJson;
28
- ssl?: ICert;
29
- inspect?: number;
30
- inspectBrk?: number;
31
- graphqlTracing?: boolean;
32
- verbose?: 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
- }
1
+ /// <reference types="node" />
2
+ import { PackageJson, Reporter } from "gatsby";
3
+ import { Store, AnyAction } from "redux";
4
+ import { IGatsbyState } from "../redux/types";
5
+ export interface ICert {
6
+ key: Buffer;
7
+ cert: Buffer;
8
+ }
9
+ export interface IDebugInfo {
10
+ port: number;
11
+ break: boolean;
12
+ }
13
+ export interface IProgram {
14
+ _: `develop` | `build` | `clean` | `feedback` | `repl` | `serve`;
15
+ status?: string;
16
+ useYarn: boolean;
17
+ open: boolean;
18
+ openTracingConfigFile: string;
19
+ port: number;
20
+ proxyPort: number;
21
+ host: string;
22
+ report: Reporter;
23
+ [`cert-file`]?: string;
24
+ [`key-file`]?: string;
25
+ directory: string;
26
+ https?: boolean;
27
+ sitePackageJson: PackageJson;
28
+ ssl?: ICert;
29
+ inspect?: number;
30
+ inspectBrk?: number;
31
+ graphqlTracing?: boolean;
32
+ verbose?: 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
+ }
@@ -1,37 +1,37 @@
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
- declare type DbComparatorValue = string | number | boolean | RegExp | null;
25
- export interface IDbFilterStatement {
26
- comparator: DbComparator;
27
- value: DbComparatorValue | Array<DbComparatorValue>;
28
- }
29
- /**
30
- * Converts a nested mongo args object into array of DbQuery objects,
31
- * structured representation of each distinct path of the query. We convert
32
- * nested objects with multiple keys to separate instances.
33
- */
34
- export declare function createDbQueriesFromObject(filter: Record<string, any>): Array<DbQuery>;
35
- export declare function prefixResolvedFields(queries: Array<DbQuery>, resolvedFields: object): Array<DbQuery>;
36
- export declare function objectToDottedField(obj: object, path?: Array<string>): object;
37
- export {};
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
+ declare type DbComparatorValue = string | number | boolean | RegExp | null;
25
+ export interface IDbFilterStatement {
26
+ comparator: DbComparator;
27
+ value: DbComparatorValue | Array<DbComparatorValue>;
28
+ }
29
+ /**
30
+ * Converts a nested mongo args object into array of DbQuery objects,
31
+ * structured representation of each distinct path of the query. We convert
32
+ * nested objects with multiple keys to separate instances.
33
+ */
34
+ export declare function createDbQueriesFromObject(filter: Record<string, any>): Array<DbQuery>;
35
+ export declare function prefixResolvedFields(queries: Array<DbQuery>, resolvedFields: object): Array<DbQuery>;
36
+ export declare function objectToDottedField(obj: object, path?: Array<string>): object;
37
+ export {};
@@ -1,5 +1,5 @@
1
- export * from "./state-machines";
2
- export * from "./services";
3
- export * from "./redux/types";
4
- export * from "./query/types";
5
- export * from "./commands/types";
1
+ export * from "./state-machines";
2
+ export * from "./services";
3
+ export * from "./redux/types";
4
+ export * from "./query/types";
5
+ export * from "./commands/types";
@@ -1,6 +1,6 @@
1
- /// <reference types="hapi__joi" />
2
- import Joi from "@hapi/joi";
3
- import { IGatsbyConfig, IGatsbyPage, IGatsbyNode } from "../redux/types";
4
- export declare const gatsbyConfigSchema: Joi.ObjectSchema<IGatsbyConfig>;
5
- export declare const pageSchema: Joi.ObjectSchema<IGatsbyPage>;
6
- export declare const nodeSchema: Joi.ObjectSchema<IGatsbyNode>;
1
+ /// <reference types="hapi__joi" />
2
+ import Joi from "@hapi/joi";
3
+ import { IGatsbyConfig, IGatsbyPage, IGatsbyNode } from "../redux/types";
4
+ export declare const gatsbyConfigSchema: Joi.ObjectSchema<IGatsbyConfig>;
5
+ export declare const pageSchema: Joi.ObjectSchema<IGatsbyPage>;
6
+ export declare const nodeSchema: Joi.ObjectSchema<IGatsbyNode>;
@@ -1,19 +1,19 @@
1
- import { IMatch } from "../types";
2
- import { SourceLocation } from "graphql";
3
- interface IErrorParser {
4
- message: string;
5
- filePath: string | undefined;
6
- location: {
7
- start: SourceLocation;
8
- end?: SourceLocation;
9
- } | undefined;
10
- error?: Error;
11
- }
12
- declare const errorParser: ({ message, filePath, location, error, }: IErrorParser) => IMatch;
13
- export default errorParser;
14
- interface ILocOfGraphQLDocInSrcFile {
15
- start: SourceLocation;
16
- end: SourceLocation;
17
- fileName: boolean;
18
- }
19
- export declare const locInGraphQlToLocInFile: (locationOfGraphQLDocInSourceFile: ILocOfGraphQLDocInSrcFile, graphqlLocation: SourceLocation) => SourceLocation;
1
+ import { IMatch } from "../types";
2
+ import { SourceLocation } from "graphql";
3
+ interface IErrorParser {
4
+ message: string;
5
+ filePath: string | undefined;
6
+ location: {
7
+ start: SourceLocation;
8
+ end?: SourceLocation;
9
+ } | undefined;
10
+ error?: Error;
11
+ }
12
+ declare const errorParser: ({ message, filePath, location, error, }: IErrorParser) => IMatch;
13
+ export default errorParser;
14
+ interface ILocOfGraphQLDocInSrcFile {
15
+ start: SourceLocation;
16
+ end: SourceLocation;
17
+ fileName: boolean;
18
+ }
19
+ export declare const locInGraphQlToLocInFile: (locationOfGraphQLDocInSourceFile: ILocOfGraphQLDocInSrcFile, graphqlLocation: SourceLocation) => SourceLocation;
@@ -1,30 +1,30 @@
1
- import { Span } from "opentracing";
2
- import { DocumentNode, GraphQLSchema, Source, GraphQLError, ExecutionResult } from "graphql";
3
- import { Store } from "redux";
4
- import { IGatsbyState } from "../redux/types";
5
- import { IGraphQLRunnerStatResults, IGraphQLRunnerStats } from "./types";
6
- declare type Query = string | Source;
7
- export interface IGraphQLRunnerOptions {
8
- collectStats?: boolean;
9
- graphqlTracing?: boolean;
10
- }
11
- export declare class GraphQLRunner {
12
- protected store: Store<IGatsbyState>;
13
- parseCache: Map<Query, DocumentNode>;
14
- nodeModel: any;
15
- schema: GraphQLSchema;
16
- validDocuments: WeakSet<DocumentNode>;
17
- scheduleClearCache: () => void;
18
- stats: IGraphQLRunnerStats | null;
19
- graphqlTracing: boolean;
20
- constructor(store: Store<IGatsbyState>, { collectStats, graphqlTracing }?: IGraphQLRunnerOptions);
21
- clearCache(): void;
22
- parse(query: Query): DocumentNode;
23
- validate(schema: GraphQLSchema, document: DocumentNode): ReadonlyArray<GraphQLError>;
24
- getStats(): IGraphQLRunnerStatResults | null;
25
- query(query: Query, context: Record<string, unknown>, { parentSpan, queryName, }: {
26
- parentSpan: Span | undefined;
27
- queryName: string;
28
- }): Promise<ExecutionResult>;
29
- }
30
- export {};
1
+ import { Span } from "opentracing";
2
+ import { DocumentNode, GraphQLSchema, Source, GraphQLError, ExecutionResult } from "graphql";
3
+ import { Store } from "redux";
4
+ import { IGatsbyState } from "../redux/types";
5
+ import { IGraphQLRunnerStatResults, IGraphQLRunnerStats } from "./types";
6
+ declare type Query = string | Source;
7
+ export interface IGraphQLRunnerOptions {
8
+ collectStats?: boolean;
9
+ graphqlTracing?: boolean;
10
+ }
11
+ export declare class GraphQLRunner {
12
+ protected store: Store<IGatsbyState>;
13
+ parseCache: Map<Query, DocumentNode>;
14
+ nodeModel: any;
15
+ schema: GraphQLSchema;
16
+ validDocuments: WeakSet<DocumentNode>;
17
+ scheduleClearCache: () => void;
18
+ stats: IGraphQLRunnerStats | null;
19
+ graphqlTracing: boolean;
20
+ constructor(store: Store<IGatsbyState>, { collectStats, graphqlTracing }?: IGraphQLRunnerOptions);
21
+ clearCache(): void;
22
+ parse(query: Query): DocumentNode;
23
+ validate(schema: GraphQLSchema, document: DocumentNode): ReadonlyArray<GraphQLError>;
24
+ getStats(): IGraphQLRunnerStatResults | null;
25
+ query(query: Query, context: Record<string, unknown>, { parentSpan, queryName, }: {
26
+ parentSpan: Span | undefined;
27
+ queryName: string;
28
+ }): Promise<ExecutionResult>;
29
+ }
30
+ export {};