gatsby 4.12.0-next.2 → 4.12.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.
- package/CHANGELOG.md +7 -0
- package/cache-dir/app.js +18 -5
- package/cache-dir/fast-refresh-overlay/components/runtime-errors.js +15 -5
- package/cache-dir/loader.js +8 -0
- package/cache-dir/production-app.js +14 -1
- package/package.json +20 -20
- package/apis.json +0 -66
- package/cache-dir/commonjs/api-runner-browser-plugins.js +0 -15
- package/cache-dir/commonjs/api-runner-browser.js +0 -55
- package/cache-dir/commonjs/api-runner-ssr.js +0 -101
- package/cache-dir/commonjs/api-ssr-docs.js +0 -209
- package/cache-dir/commonjs/app.js +0 -219
- package/cache-dir/commonjs/css-to-object.js +0 -21
- package/cache-dir/commonjs/debug-log.js +0 -10
- package/cache-dir/commonjs/default-html.js +0 -37
- package/cache-dir/commonjs/dev-loader.js +0 -245
- package/cache-dir/commonjs/develop-static-entry.js +0 -158
- package/cache-dir/commonjs/dummy.js +0 -7
- package/cache-dir/commonjs/emitter.js +0 -12
- package/cache-dir/commonjs/ensure-resources.js +0 -126
- package/cache-dir/commonjs/error-overlay-handler.js +0 -42
- package/cache-dir/commonjs/fast-refresh-overlay/components/accordion.js +0 -93
- package/cache-dir/commonjs/fast-refresh-overlay/components/build-error.js +0 -52
- package/cache-dir/commonjs/fast-refresh-overlay/components/code-frame.js +0 -42
- package/cache-dir/commonjs/fast-refresh-overlay/components/dev-ssr-error.js +0 -58
- package/cache-dir/commonjs/fast-refresh-overlay/components/error-boundary.js +0 -30
- package/cache-dir/commonjs/fast-refresh-overlay/components/getserverdata-error.js +0 -56
- package/cache-dir/commonjs/fast-refresh-overlay/components/graphql-errors.js +0 -88
- package/cache-dir/commonjs/fast-refresh-overlay/components/hooks.js +0 -86
- package/cache-dir/commonjs/fast-refresh-overlay/components/overlay.js +0 -161
- package/cache-dir/commonjs/fast-refresh-overlay/components/runtime-errors.js +0 -95
- package/cache-dir/commonjs/fast-refresh-overlay/components/use-id.js +0 -56
- package/cache-dir/commonjs/fast-refresh-overlay/helpers/focus-trap.js +0 -3218
- package/cache-dir/commonjs/fast-refresh-overlay/helpers/keys.js +0 -81
- package/cache-dir/commonjs/fast-refresh-overlay/helpers/lock-body.js +0 -54
- package/cache-dir/commonjs/fast-refresh-overlay/helpers/match.js +0 -47
- package/cache-dir/commonjs/fast-refresh-overlay/index.js +0 -203
- package/cache-dir/commonjs/fast-refresh-overlay/style.js +0 -423
- package/cache-dir/commonjs/fast-refresh-overlay/utils.js +0 -88
- package/cache-dir/commonjs/find-path.js +0 -174
- package/cache-dir/commonjs/gatsby-browser-entry.js +0 -107
- package/cache-dir/commonjs/loader.js +0 -662
- package/cache-dir/commonjs/loading-indicator/index.js +0 -34
- package/cache-dir/commonjs/loading-indicator/indicator.js +0 -72
- package/cache-dir/commonjs/loading-indicator/style.js +0 -107
- package/cache-dir/commonjs/navigation.js +0 -316
- package/cache-dir/commonjs/normalize-page-path.js +0 -28
- package/cache-dir/commonjs/page-renderer.js +0 -54
- package/cache-dir/commonjs/pages.json +0 -1
- package/cache-dir/commonjs/polyfill-entry.js +0 -7
- package/cache-dir/commonjs/prefetch.js +0 -79
- package/cache-dir/commonjs/production-app.js +0 -258
- package/cache-dir/commonjs/public-page-renderer-dev.js +0 -33
- package/cache-dir/commonjs/public-page-renderer-prod.js +0 -38
- package/cache-dir/commonjs/public-page-renderer.js +0 -11
- package/cache-dir/commonjs/query-result-store.js +0 -166
- package/cache-dir/commonjs/react-lifecycles-compat.js +0 -3
- package/cache-dir/commonjs/redirect-utils.js +0 -30
- package/cache-dir/commonjs/redirects.json +0 -1
- package/cache-dir/commonjs/register-service-worker.js +0 -66
- package/cache-dir/commonjs/root.js +0 -113
- package/cache-dir/commonjs/route-announcer-props.js +0 -23
- package/cache-dir/commonjs/server-utils/writable-as-promise.js +0 -41
- package/cache-dir/commonjs/shadow-portal.js +0 -41
- package/cache-dir/commonjs/socketIo.js +0 -66
- package/cache-dir/commonjs/ssr-builtin-trackers/child_process.js +0 -8
- package/cache-dir/commonjs/ssr-builtin-trackers/fs.js +0 -7
- package/cache-dir/commonjs/ssr-builtin-trackers/http.js +0 -9
- package/cache-dir/commonjs/ssr-builtin-trackers/http2.js +0 -7
- package/cache-dir/commonjs/ssr-builtin-trackers/https.js +0 -9
- package/cache-dir/commonjs/ssr-builtin-trackers/tracking-unsafe-module-wrapper.js +0 -64
- package/cache-dir/commonjs/ssr-develop-static-entry.js +0 -338
- package/cache-dir/commonjs/static-entry.js +0 -498
- package/cache-dir/commonjs/strip-prefix.js +0 -24
- package/dist/bin/gatsby.js +0 -5
- package/dist/bin/gatsby.js.map +0 -1
- package/dist/bootstrap/__mocks__/resolve-module-exports.d.ts +0 -1
- package/dist/bootstrap/create-graphql-runner.d.ts +0 -10
- package/dist/bootstrap/create-graphql-runner.js +0 -82
- package/dist/bootstrap/create-graphql-runner.js.map +0 -1
- package/dist/bootstrap/get-config-file.d.ts +0 -4
- package/dist/bootstrap/get-config-file.js +0 -106
- package/dist/bootstrap/get-config-file.js.map +0 -1
- package/dist/bootstrap/index.d.ts +0 -10
- package/dist/bootstrap/index.js +0 -76
- package/dist/bootstrap/index.js.map +0 -1
- package/dist/bootstrap/load-config/index.d.ts +0 -7
- package/dist/bootstrap/load-config/index.js +0 -101
- package/dist/bootstrap/load-config/index.js.map +0 -1
- package/dist/bootstrap/load-plugins/index.d.ts +0 -3
- package/dist/bootstrap/load-plugins/index.js +0 -70
- package/dist/bootstrap/load-plugins/index.js.map +0 -1
- package/dist/bootstrap/load-plugins/load-internal-plugins.d.ts +0 -2
- package/dist/bootstrap/load-plugins/load-internal-plugins.js +0 -122
- package/dist/bootstrap/load-plugins/load-internal-plugins.js.map +0 -1
- package/dist/bootstrap/load-plugins/process-plugin.d.ts +0 -2
- package/dist/bootstrap/load-plugins/process-plugin.js +0 -85
- package/dist/bootstrap/load-plugins/process-plugin.js.map +0 -1
- package/dist/bootstrap/load-plugins/resolve-plugin.d.ts +0 -13
- package/dist/bootstrap/load-plugins/resolve-plugin.js +0 -88
- package/dist/bootstrap/load-plugins/resolve-plugin.js.map +0 -1
- package/dist/bootstrap/load-plugins/types.d.ts +0 -48
- package/dist/bootstrap/load-plugins/types.js +0 -4
- package/dist/bootstrap/load-plugins/types.js.map +0 -1
- package/dist/bootstrap/load-plugins/utils/check-local-plugin.d.ts +0 -8
- package/dist/bootstrap/load-plugins/utils/check-local-plugin.js +0 -45
- package/dist/bootstrap/load-plugins/utils/check-local-plugin.js.map +0 -1
- package/dist/bootstrap/load-plugins/utils/create-hash.d.ts +0 -1
- package/dist/bootstrap/load-plugins/utils/create-hash.js +0 -26
- package/dist/bootstrap/load-plugins/utils/create-hash.js.map +0 -1
- package/dist/bootstrap/load-plugins/utils/create-id.d.ts +0 -10
- package/dist/bootstrap/load-plugins/utils/create-id.js +0 -19
- package/dist/bootstrap/load-plugins/utils/create-id.js.map +0 -1
- package/dist/bootstrap/load-plugins/utils/flatten-plugins.d.ts +0 -2
- package/dist/bootstrap/load-plugins/utils/flatten-plugins.js +0 -47
- package/dist/bootstrap/load-plugins/utils/flatten-plugins.js.map +0 -1
- package/dist/bootstrap/load-plugins/utils/get-api.d.ts +0 -12
- package/dist/bootstrap/load-plugins/utils/get-api.js +0 -14
- package/dist/bootstrap/load-plugins/utils/get-api.js.map +0 -1
- package/dist/bootstrap/load-plugins/utils/handle-gatsby-cloud.d.ts +0 -4
- package/dist/bootstrap/load-plugins/utils/handle-gatsby-cloud.js +0 -39
- package/dist/bootstrap/load-plugins/utils/handle-gatsby-cloud.js.map +0 -1
- package/dist/bootstrap/load-plugins/utils/normalize.d.ts +0 -5
- package/dist/bootstrap/load-plugins/utils/normalize.js +0 -38
- package/dist/bootstrap/load-plugins/utils/normalize.js.map +0 -1
- package/dist/bootstrap/load-plugins/validate.d.ts +0 -40
- package/dist/bootstrap/load-plugins/validate.js +0 -408
- package/dist/bootstrap/load-plugins/validate.js.map +0 -1
- package/dist/bootstrap/load-themes/index.js +0 -187
- package/dist/bootstrap/load-themes/index.js.map +0 -1
- package/dist/bootstrap/log-line-function.d.ts +0 -0
- package/dist/bootstrap/log-line-function.js +0 -20
- package/dist/bootstrap/log-line-function.js.map +0 -1
- package/dist/bootstrap/prefer-default.d.ts +0 -1
- package/dist/bootstrap/prefer-default.js +0 -9
- package/dist/bootstrap/prefer-default.js.map +0 -1
- package/dist/bootstrap/redirects-writer.d.ts +0 -2
- package/dist/bootstrap/redirects-writer.js +0 -81
- package/dist/bootstrap/redirects-writer.js.map +0 -1
- package/dist/bootstrap/remove-stale-jobs.d.ts +0 -2
- package/dist/bootstrap/remove-stale-jobs.js +0 -33
- package/dist/bootstrap/remove-stale-jobs.js.map +0 -1
- package/dist/bootstrap/requires-writer.d.ts +0 -10
- package/dist/bootstrap/requires-writer.js +0 -298
- package/dist/bootstrap/requires-writer.js.map +0 -1
- package/dist/bootstrap/resolve-module-exports.d.ts +0 -14
- package/dist/bootstrap/resolve-module-exports.js +0 -207
- package/dist/bootstrap/resolve-module-exports.js.map +0 -1
- package/dist/bootstrap/schema-hot-reloader.d.ts +0 -3
- package/dist/bootstrap/schema-hot-reloader.js +0 -78
- package/dist/bootstrap/schema-hot-reloader.js.map +0 -1
- package/dist/cache/cache-fs.d.ts +0 -1
- package/dist/cache/cache-fs.js +0 -315
- package/dist/cache/cache-fs.js.map +0 -1
- package/dist/cache/json-file-store.d.ts +0 -8
- package/dist/cache/json-file-store.js +0 -158
- package/dist/cache/json-file-store.js.map +0 -1
- package/dist/cache/wrap-callback.d.ts +0 -0
- package/dist/cache/wrap-callback.js +0 -52
- package/dist/cache/wrap-callback.js.map +0 -1
- package/dist/commands/build-html.d.ts +0 -55
- package/dist/commands/build-html.js +0 -425
- package/dist/commands/build-html.js.map +0 -1
- package/dist/commands/build-javascript.d.ts +0 -4
- package/dist/commands/build-javascript.js +0 -23
- package/dist/commands/build-javascript.js.map +0 -1
- package/dist/commands/build-utils.d.ts +0 -8
- package/dist/commands/build-utils.js +0 -221
- package/dist/commands/build-utils.js.map +0 -1
- package/dist/commands/build.d.ts +0 -1
- package/dist/commands/build.js +0 -521
- package/dist/commands/build.js.map +0 -1
- package/dist/commands/clean.d.ts +0 -1
- package/dist/commands/clean.js +0 -34
- package/dist/commands/clean.js.map +0 -1
- package/dist/commands/develop-process.d.ts +0 -1
- package/dist/commands/develop-process.js +0 -171
- package/dist/commands/develop-process.js.map +0 -1
- package/dist/commands/develop-static.d.ts +0 -3
- package/dist/commands/develop-static.js +0 -31
- package/dist/commands/develop-static.js.map +0 -1
- package/dist/commands/develop.d.ts +0 -2
- package/dist/commands/develop.js +0 -484
- package/dist/commands/develop.js.map +0 -1
- package/dist/commands/feedback.d.ts +0 -1
- package/dist/commands/feedback.js +0 -20
- package/dist/commands/feedback.js.map +0 -1
- package/dist/commands/repl.d.ts +0 -1
- package/dist/commands/repl.js +0 -66
- package/dist/commands/repl.js.map +0 -1
- package/dist/commands/serve.d.ts +0 -1
- package/dist/commands/serve.js +0 -401
- package/dist/commands/serve.js.map +0 -1
- package/dist/commands/types.d.ts +0 -48
- package/dist/commands/types.js +0 -27
- package/dist/commands/types.js.map +0 -1
- package/dist/constants.d.ts +0 -1
- package/dist/constants.js +0 -7
- package/dist/constants.js.map +0 -1
- package/dist/datastore/common/iterable.d.ts +0 -51
- package/dist/datastore/common/iterable.js +0 -258
- package/dist/datastore/common/iterable.js.map +0 -1
- package/dist/datastore/common/query.d.ts +0 -69
- package/dist/datastore/common/query.js +0 -250
- package/dist/datastore/common/query.js.map +0 -1
- package/dist/datastore/datastore.d.ts +0 -4
- package/dist/datastore/datastore.js +0 -58
- package/dist/datastore/datastore.js.map +0 -1
- package/dist/datastore/in-memory/in-memory-datastore.d.ts +0 -2
- package/dist/datastore/in-memory/in-memory-datastore.js +0 -94
- package/dist/datastore/in-memory/in-memory-datastore.js.map +0 -1
- package/dist/datastore/in-memory/indexing.d.ts +0 -79
- package/dist/datastore/in-memory/indexing.js +0 -1106
- package/dist/datastore/in-memory/indexing.js.map +0 -1
- package/dist/datastore/in-memory/run-fast-filters.d.ts +0 -27
- package/dist/datastore/in-memory/run-fast-filters.js +0 -320
- package/dist/datastore/in-memory/run-fast-filters.js.map +0 -1
- package/dist/datastore/index.d.ts +0 -20
- package/dist/datastore/index.js +0 -46
- package/dist/datastore/index.js.map +0 -1
- package/dist/datastore/lmdb/lmdb-datastore.d.ts +0 -11
- package/dist/datastore/lmdb/lmdb-datastore.js +0 -289
- package/dist/datastore/lmdb/lmdb-datastore.js.map +0 -1
- package/dist/datastore/lmdb/query/common.d.ts +0 -23
- package/dist/datastore/lmdb/query/common.js +0 -152
- package/dist/datastore/lmdb/query/common.js.map +0 -1
- package/dist/datastore/lmdb/query/create-index.d.ts +0 -25
- package/dist/datastore/lmdb/query/create-index.js +0 -281
- package/dist/datastore/lmdb/query/create-index.js.map +0 -1
- package/dist/datastore/lmdb/query/filter-using-index.d.ts +0 -43
- package/dist/datastore/lmdb/query/filter-using-index.js +0 -662
- package/dist/datastore/lmdb/query/filter-using-index.js.map +0 -1
- package/dist/datastore/lmdb/query/run-query.d.ts +0 -9
- package/dist/datastore/lmdb/query/run-query.js +0 -340
- package/dist/datastore/lmdb/query/run-query.js.map +0 -1
- package/dist/datastore/lmdb/query/suggest-index.d.ts +0 -15
- package/dist/datastore/lmdb/query/suggest-index.js +0 -111
- package/dist/datastore/lmdb/query/suggest-index.js.map +0 -1
- package/dist/datastore/lmdb/updates/nodes-by-type.d.ts +0 -3
- package/dist/datastore/lmdb/updates/nodes-by-type.js +0 -24
- package/dist/datastore/lmdb/updates/nodes-by-type.js.map +0 -1
- package/dist/datastore/lmdb/updates/nodes.d.ts +0 -5
- package/dist/datastore/lmdb/updates/nodes.js +0 -40
- package/dist/datastore/lmdb/updates/nodes.js.map +0 -1
- package/dist/datastore/types.d.ts +0 -47
- package/dist/datastore/types.js +0 -4
- package/dist/datastore/types.js.map +0 -1
- package/dist/internal-plugins/bundle-optimisations/gatsby-node.js +0 -46
- package/dist/internal-plugins/bundle-optimisations/gatsby-node.js.map +0 -1
- package/dist/internal-plugins/bundle-optimisations/index.js +0 -3
- package/dist/internal-plugins/bundle-optimisations/index.js.map +0 -1
- package/dist/internal-plugins/bundle-optimisations/package.json +0 -10
- package/dist/internal-plugins/bundle-optimisations/polyfills/fetch.js +0 -4
- package/dist/internal-plugins/bundle-optimisations/polyfills/fetch.js.map +0 -1
- package/dist/internal-plugins/bundle-optimisations/polyfills/no-op.js +0 -3
- package/dist/internal-plugins/bundle-optimisations/polyfills/no-op.js.map +0 -1
- package/dist/internal-plugins/bundle-optimisations/polyfills/object-assign.js +0 -4
- package/dist/internal-plugins/bundle-optimisations/polyfills/object-assign.js.map +0 -1
- package/dist/internal-plugins/bundle-optimisations/polyfills/whatwg-fetch.js +0 -6
- package/dist/internal-plugins/bundle-optimisations/polyfills/whatwg-fetch.js.map +0 -1
- package/dist/internal-plugins/dev-404-page/gatsby-node.js +0 -35
- package/dist/internal-plugins/dev-404-page/gatsby-node.js.map +0 -1
- package/dist/internal-plugins/dev-404-page/index.js +0 -3
- package/dist/internal-plugins/dev-404-page/index.js.map +0 -1
- package/dist/internal-plugins/dev-404-page/package.json +0 -11
- package/dist/internal-plugins/dev-404-page/raw_dev-404-page.js +0 -262
- package/dist/internal-plugins/functions/gatsby-node.d.ts +0 -3
- package/dist/internal-plugins/functions/gatsby-node.js +0 -495
- package/dist/internal-plugins/functions/gatsby-node.js.map +0 -1
- package/dist/internal-plugins/functions/index.js +0 -3
- package/dist/internal-plugins/functions/index.js.map +0 -1
- package/dist/internal-plugins/functions/package.json +0 -11
- package/dist/internal-plugins/internal-data-bridge/gatsby-node.js +0 -203
- package/dist/internal-plugins/internal-data-bridge/gatsby-node.js.map +0 -1
- package/dist/internal-plugins/internal-data-bridge/index.js +0 -3
- package/dist/internal-plugins/internal-data-bridge/index.js.map +0 -1
- package/dist/internal-plugins/internal-data-bridge/package.json +0 -11
- package/dist/internal-plugins/load-babel-config/gatsby-node.js +0 -39
- package/dist/internal-plugins/load-babel-config/gatsby-node.js.map +0 -1
- package/dist/internal-plugins/load-babel-config/index.js +0 -3
- package/dist/internal-plugins/load-babel-config/index.js.map +0 -1
- package/dist/internal-plugins/load-babel-config/package.json +0 -11
- package/dist/internal-plugins/prod-404-500/gatsby-node.js +0 -51
- package/dist/internal-plugins/prod-404-500/gatsby-node.js.map +0 -1
- package/dist/internal-plugins/prod-404-500/index.js +0 -3
- package/dist/internal-plugins/prod-404-500/index.js.map +0 -1
- package/dist/internal-plugins/prod-404-500/package.json +0 -11
- package/dist/internal-plugins/webpack-theme-component-shadowing/create-page.js +0 -36
- package/dist/internal-plugins/webpack-theme-component-shadowing/create-page.js.map +0 -1
- package/dist/internal-plugins/webpack-theme-component-shadowing/gatsby-node.js +0 -32
- package/dist/internal-plugins/webpack-theme-component-shadowing/gatsby-node.js.map +0 -1
- package/dist/internal-plugins/webpack-theme-component-shadowing/index.js +0 -280
- package/dist/internal-plugins/webpack-theme-component-shadowing/index.js.map +0 -1
- package/dist/internal-plugins/webpack-theme-component-shadowing/package.json +0 -11
- package/dist/internal.d.ts +0 -5
- package/dist/internal.js +0 -44
- package/dist/internal.js.map +0 -1
- package/dist/joi-schemas/joi.d.ts +0 -5
- package/dist/joi-schemas/joi.js +0 -98
- package/dist/joi-schemas/joi.js.map +0 -1
- package/dist/query/error-parser.d.ts +0 -19
- package/dist/query/error-parser.js +0 -168
- package/dist/query/error-parser.js.map +0 -1
- package/dist/query/file-parser.js +0 -632
- package/dist/query/file-parser.js.map +0 -1
- package/dist/query/graphql-errors-codeframe.d.ts +0 -1
- package/dist/query/graphql-errors-codeframe.js +0 -23
- package/dist/query/graphql-errors-codeframe.js.map +0 -1
- package/dist/query/graphql-errors.js +0 -310
- package/dist/query/graphql-errors.js.map +0 -1
- package/dist/query/graphql-runner.d.ts +0 -38
- package/dist/query/graphql-runner.js +0 -225
- package/dist/query/graphql-runner.js.map +0 -1
- package/dist/query/graphql-span-tracer.d.ts +0 -19
- package/dist/query/graphql-span-tracer.js +0 -83
- package/dist/query/graphql-span-tracer.js.map +0 -1
- package/dist/query/index.d.ts +0 -26
- package/dist/query/index.js +0 -279
- package/dist/query/index.js.map +0 -1
- package/dist/query/query-compiler.js +0 -449
- package/dist/query/query-compiler.js.map +0 -1
- package/dist/query/query-runner.d.ts +0 -13
- package/dist/query/query-runner.js +0 -199
- package/dist/query/query-runner.js.map +0 -1
- package/dist/query/query-watcher.d.ts +0 -17
- package/dist/query/query-watcher.js +0 -284
- package/dist/query/query-watcher.js.map +0 -1
- package/dist/query/types.d.ts +0 -35
- package/dist/query/types.js +0 -4
- package/dist/query/types.js.map +0 -1
- package/dist/query/utils.d.ts +0 -4
- package/dist/query/utils.js +0 -27
- package/dist/query/utils.js.map +0 -1
- package/dist/redux/actions/add-page-dependency.d.ts +0 -7
- package/dist/redux/actions/add-page-dependency.js +0 -65
- package/dist/redux/actions/add-page-dependency.js.map +0 -1
- package/dist/redux/actions/index.d.ts +0 -14
- package/dist/redux/actions/index.js +0 -29
- package/dist/redux/actions/index.js.map +0 -1
- package/dist/redux/actions/internal.d.ts +0 -124
- package/dist/redux/actions/internal.js +0 -443
- package/dist/redux/actions/internal.js.map +0 -1
- package/dist/redux/actions/public.js +0 -1428
- package/dist/redux/actions/public.js.map +0 -1
- package/dist/redux/actions/restricted.d.ts +0 -293
- package/dist/redux/actions/restricted.js +0 -420
- package/dist/redux/actions/restricted.js.map +0 -1
- package/dist/redux/index.d.ts +0 -20
- package/dist/redux/index.js +0 -152
- package/dist/redux/index.js.map +0 -1
- package/dist/redux/persist.d.ts +0 -5
- package/dist/redux/persist.js +0 -218
- package/dist/redux/persist.js.map +0 -1
- package/dist/redux/plugin-runner.d.ts +0 -1
- package/dist/redux/plugin-runner.js +0 -53
- package/dist/redux/plugin-runner.js.map +0 -1
- package/dist/redux/reducers/babelrc.d.ts +0 -9
- package/dist/redux/reducers/babelrc.js +0 -114
- package/dist/redux/reducers/babelrc.js.map +0 -1
- package/dist/redux/reducers/components.d.ts +0 -2
- package/dist/redux/reducers/components.js +0 -86
- package/dist/redux/reducers/components.js.map +0 -1
- package/dist/redux/reducers/config.d.ts +0 -2
- package/dist/redux/reducers/config.js +0 -19
- package/dist/redux/reducers/config.js.map +0 -1
- package/dist/redux/reducers/definitions.d.ts +0 -2
- package/dist/redux/reducers/definitions.js +0 -17
- package/dist/redux/reducers/definitions.js.map +0 -1
- package/dist/redux/reducers/flattened-plugins.d.ts +0 -17
- package/dist/redux/reducers/flattened-plugins.js +0 -17
- package/dist/redux/reducers/flattened-plugins.js.map +0 -1
- package/dist/redux/reducers/functions.d.ts +0 -2
- package/dist/redux/reducers/functions.js +0 -17
- package/dist/redux/reducers/functions.js.map +0 -1
- package/dist/redux/reducers/html.d.ts +0 -8
- package/dist/redux/reducers/html.js +0 -224
- package/dist/redux/reducers/html.js.map +0 -1
- package/dist/redux/reducers/index.d.ts +0 -36
- package/dist/redux/reducers/index.js +0 -132
- package/dist/redux/reducers/index.js.map +0 -1
- package/dist/redux/reducers/inference-metadata.d.ts +0 -7
- package/dist/redux/reducers/inference-metadata.js +0 -197
- package/dist/redux/reducers/inference-metadata.js.map +0 -1
- package/dist/redux/reducers/jobs.d.ts +0 -5
- package/dist/redux/reducers/jobs.js +0 -75
- package/dist/redux/reducers/jobs.js.map +0 -1
- package/dist/redux/reducers/jobsv2.d.ts +0 -6
- package/dist/redux/reducers/jobsv2.js +0 -100
- package/dist/redux/reducers/jobsv2.js.map +0 -1
- package/dist/redux/reducers/last-action.d.ts +0 -2
- package/dist/redux/reducers/last-action.js +0 -9
- package/dist/redux/reducers/last-action.js.map +0 -1
- package/dist/redux/reducers/node-manifest.d.ts +0 -2
- package/dist/redux/reducers/node-manifest.js +0 -76
- package/dist/redux/reducers/node-manifest.js.map +0 -1
- package/dist/redux/reducers/nodes-by-type.d.ts +0 -2
- package/dist/redux/reducers/nodes-by-type.js +0 -66
- package/dist/redux/reducers/nodes-by-type.js.map +0 -1
- package/dist/redux/reducers/nodes-touched.d.ts +0 -3
- package/dist/redux/reducers/nodes-touched.js +0 -22
- package/dist/redux/reducers/nodes-touched.js.map +0 -1
- package/dist/redux/reducers/nodes.d.ts +0 -2
- package/dist/redux/reducers/nodes.js +0 -37
- package/dist/redux/reducers/nodes.js.map +0 -1
- package/dist/redux/reducers/page-data-stats.d.ts +0 -2
- package/dist/redux/reducers/page-data-stats.js +0 -18
- package/dist/redux/reducers/page-data-stats.js.map +0 -1
- package/dist/redux/reducers/pages.d.ts +0 -2
- package/dist/redux/reducers/pages.js +0 -52
- package/dist/redux/reducers/pages.js.map +0 -1
- package/dist/redux/reducers/pending-page-data-writes.d.ts +0 -4
- package/dist/redux/reducers/pending-page-data-writes.js +0 -42
- package/dist/redux/reducers/pending-page-data-writes.js.map +0 -1
- package/dist/redux/reducers/program.d.ts +0 -2
- package/dist/redux/reducers/program.js +0 -46
- package/dist/redux/reducers/program.js.map +0 -1
- package/dist/redux/reducers/queries.d.ts +0 -26
- package/dist/redux/reducers/queries.js +0 -448
- package/dist/redux/reducers/queries.js.map +0 -1
- package/dist/redux/reducers/redirects.d.ts +0 -2
- package/dist/redux/reducers/redirects.js +0 -49
- package/dist/redux/reducers/redirects.js.map +0 -1
- package/dist/redux/reducers/resolved-nodes.d.ts +0 -2
- package/dist/redux/reducers/resolved-nodes.js +0 -29
- package/dist/redux/reducers/resolved-nodes.js.map +0 -1
- package/dist/redux/reducers/schema-customization.d.ts +0 -23
- package/dist/redux/reducers/schema-customization.js +0 -107
- package/dist/redux/reducers/schema-customization.js.map +0 -1
- package/dist/redux/reducers/schema.d.ts +0 -3
- package/dist/redux/reducers/schema.js +0 -21
- package/dist/redux/reducers/schema.js.map +0 -1
- package/dist/redux/reducers/static-queries-by-template.d.ts +0 -2
- package/dist/redux/reducers/static-queries-by-template.js +0 -23
- package/dist/redux/reducers/static-queries-by-template.js.map +0 -1
- package/dist/redux/reducers/static-query-components.d.ts +0 -2
- package/dist/redux/reducers/static-query-components.js +0 -23
- package/dist/redux/reducers/static-query-components.js.map +0 -1
- package/dist/redux/reducers/status.d.ts +0 -6
- package/dist/redux/reducers/status.js +0 -53
- package/dist/redux/reducers/status.js.map +0 -1
- package/dist/redux/reducers/visited-page.d.ts +0 -2
- package/dist/redux/reducers/visited-page.js +0 -38
- package/dist/redux/reducers/visited-page.js.map +0 -1
- package/dist/redux/reducers/webpack-compilation-hash.d.ts +0 -2
- package/dist/redux/reducers/webpack-compilation-hash.js +0 -17
- package/dist/redux/reducers/webpack-compilation-hash.js.map +0 -1
- package/dist/redux/reducers/webpack.d.ts +0 -2
- package/dist/redux/reducers/webpack.js +0 -32
- package/dist/redux/reducers/webpack.js.map +0 -1
- package/dist/redux/save-state.js +0 -42
- package/dist/redux/save-state.js.map +0 -1
- package/dist/redux/types.d.ts +0 -803
- package/dist/redux/types.js +0 -12
- package/dist/redux/types.js.map +0 -1
- package/dist/schema/context.d.ts +0 -14
- package/dist/schema/context.js +0 -43
- package/dist/schema/context.js.map +0 -1
- package/dist/schema/extensions/index.js +0 -220
- package/dist/schema/extensions/index.js.map +0 -1
- package/dist/schema/graphql-engine/bundle-webpack.d.ts +0 -5
- package/dist/schema/graphql-engine/bundle-webpack.js +0 -154
- package/dist/schema/graphql-engine/bundle-webpack.js.map +0 -1
- package/dist/schema/graphql-engine/entry.d.ts +0 -19
- package/dist/schema/graphql-engine/entry.js +0 -217
- package/dist/schema/graphql-engine/entry.js.map +0 -1
- package/dist/schema/graphql-engine/lmdb-bundling-patch.d.ts +0 -1
- package/dist/schema/graphql-engine/lmdb-bundling-patch.js +0 -53
- package/dist/schema/graphql-engine/lmdb-bundling-patch.js.map +0 -1
- package/dist/schema/graphql-engine/print-plugins.d.ts +0 -2
- package/dist/schema/graphql-engine/print-plugins.js +0 -156
- package/dist/schema/graphql-engine/print-plugins.js.map +0 -1
- package/dist/schema/graphql-engine/webpack-remove-apis-loader.d.ts +0 -1
- package/dist/schema/graphql-engine/webpack-remove-apis-loader.js +0 -26
- package/dist/schema/graphql-engine/webpack-remove-apis-loader.js.map +0 -1
- package/dist/schema/index.js +0 -180
- package/dist/schema/index.js.map +0 -1
- package/dist/schema/infer/add-inferred-fields.js +0 -463
- package/dist/schema/infer/add-inferred-fields.js.map +0 -1
- package/dist/schema/infer/build-example-data.d.ts +0 -5
- package/dist/schema/infer/build-example-data.js +0 -239
- package/dist/schema/infer/build-example-data.js.map +0 -1
- package/dist/schema/infer/index.js +0 -139
- package/dist/schema/infer/index.js.map +0 -1
- package/dist/schema/infer/inference-metadata.d.ts +0 -72
- package/dist/schema/infer/inference-metadata.js +0 -409
- package/dist/schema/infer/inference-metadata.js.map +0 -1
- package/dist/schema/infer/is-file.d.ts +0 -1
- package/dist/schema/infer/is-file.js +0 -86
- package/dist/schema/infer/is-file.js.map +0 -1
- package/dist/schema/infer/type-conflict-reporter.d.ts +0 -28
- package/dist/schema/infer/type-conflict-reporter.js +0 -133
- package/dist/schema/infer/type-conflict-reporter.js.map +0 -1
- package/dist/schema/node-model.js +0 -884
- package/dist/schema/node-model.js.map +0 -1
- package/dist/schema/print.d.ts +0 -20
- package/dist/schema/print.js +0 -360
- package/dist/schema/print.js.map +0 -1
- package/dist/schema/resolvers.d.ts +0 -37
- package/dist/schema/resolvers.js +0 -608
- package/dist/schema/resolvers.js.map +0 -1
- package/dist/schema/schema-composer.d.ts +0 -3
- package/dist/schema/schema-composer.js +0 -35
- package/dist/schema/schema-composer.js.map +0 -1
- package/dist/schema/schema.js +0 -1436
- package/dist/schema/schema.js.map +0 -1
- package/dist/schema/type-definitions.d.ts +0 -47
- package/dist/schema/type-definitions.js +0 -4
- package/dist/schema/type-definitions.js.map +0 -1
- package/dist/schema/types/built-in-types.d.ts +0 -4
- package/dist/schema/types/built-in-types.js +0 -140
- package/dist/schema/types/built-in-types.js.map +0 -1
- package/dist/schema/types/date.d.ts +0 -37
- package/dist/schema/types/date.js +0 -238
- package/dist/schema/types/date.js.map +0 -1
- package/dist/schema/types/derived-types.d.ts +0 -45
- package/dist/schema/types/derived-types.js +0 -122
- package/dist/schema/types/derived-types.js.map +0 -1
- package/dist/schema/types/filter.d.ts +0 -12
- package/dist/schema/types/filter.js +0 -223
- package/dist/schema/types/filter.js.map +0 -1
- package/dist/schema/types/node-interface.d.ts +0 -14
- package/dist/schema/types/node-interface.js +0 -112
- package/dist/schema/types/node-interface.js.map +0 -1
- package/dist/schema/types/pagination.d.ts +0 -16
- package/dist/schema/types/pagination.js +0 -163
- package/dist/schema/types/pagination.js.map +0 -1
- package/dist/schema/types/remote-file-interface.d.ts +0 -3
- package/dist/schema/types/remote-file-interface.js +0 -38
- package/dist/schema/types/remote-file-interface.js.map +0 -1
- package/dist/schema/types/sort.d.ts +0 -18
- package/dist/schema/types/sort.js +0 -154
- package/dist/schema/types/sort.js.map +0 -1
- package/dist/schema/types/type-builders.d.ts +0 -36
- package/dist/schema/types/type-builders.js +0 -69
- package/dist/schema/types/type-builders.js.map +0 -1
- package/dist/schema/types/type-defs.js +0 -101
- package/dist/schema/types/type-defs.js.map +0 -1
- package/dist/services/build-schema.d.ts +0 -2
- package/dist/services/build-schema.js +0 -30
- package/dist/services/build-schema.js.map +0 -1
- package/dist/services/calculate-dirty-queries.d.ts +0 -5
- package/dist/services/calculate-dirty-queries.js +0 -48
- package/dist/services/calculate-dirty-queries.js.map +0 -1
- package/dist/services/create-pages.d.ts +0 -5
- package/dist/services/create-pages.js +0 -119
- package/dist/services/create-pages.js.map +0 -1
- package/dist/services/customize-schema.d.ts +0 -2
- package/dist/services/customize-schema.js +0 -31
- package/dist/services/customize-schema.js.map +0 -1
- package/dist/services/extract-queries.d.ts +0 -2
- package/dist/services/extract-queries.js +0 -30
- package/dist/services/extract-queries.js.map +0 -1
- package/dist/services/index.d.ts +0 -17
- package/dist/services/index.js +0 -96
- package/dist/services/index.js.map +0 -1
- package/dist/services/initialize.d.ts +0 -8
- package/dist/services/initialize.js +0 -585
- package/dist/services/initialize.js.map +0 -1
- package/dist/services/listen-for-mutations.d.ts +0 -2
- package/dist/services/listen-for-mutations.js +0 -57
- package/dist/services/listen-for-mutations.js.map +0 -1
- package/dist/services/listen-to-webpack.d.ts +0 -3
- package/dist/services/listen-to-webpack.js +0 -22
- package/dist/services/listen-to-webpack.js.map +0 -1
- package/dist/services/post-bootstrap.d.ts +0 -2
- package/dist/services/post-bootstrap.js +0 -39
- package/dist/services/post-bootstrap.js.map +0 -1
- package/dist/services/recompile.d.ts +0 -3
- package/dist/services/recompile.js +0 -89
- package/dist/services/recompile.js.map +0 -1
- package/dist/services/run-mutation-batch.d.ts +0 -2
- package/dist/services/run-mutation-batch.js +0 -15
- package/dist/services/run-mutation-batch.js.map +0 -1
- package/dist/services/run-page-queries.d.ts +0 -2
- package/dist/services/run-page-queries.js +0 -79
- package/dist/services/run-page-queries.js.map +0 -1
- package/dist/services/run-static-queries.d.ts +0 -2
- package/dist/services/run-static-queries.js +0 -58
- package/dist/services/run-static-queries.js.map +0 -1
- package/dist/services/source-nodes.d.ts +0 -5
- package/dist/services/source-nodes.js +0 -61
- package/dist/services/source-nodes.js.map +0 -1
- package/dist/services/start-webpack-server.d.ts +0 -9
- package/dist/services/start-webpack-server.js +0 -131
- package/dist/services/start-webpack-server.js.map +0 -1
- package/dist/services/types.d.ts +0 -47
- package/dist/services/types.js +0 -4
- package/dist/services/types.js.map +0 -1
- package/dist/services/write-out-redirects.d.ts +0 -2
- package/dist/services/write-out-redirects.js +0 -25
- package/dist/services/write-out-redirects.js.map +0 -1
- package/dist/services/write-out-requires.d.ts +0 -2
- package/dist/services/write-out-requires.js +0 -34
- package/dist/services/write-out-requires.js.map +0 -1
- package/dist/state-machines/data-layer/actions.d.ts +0 -8
- package/dist/state-machines/data-layer/actions.js +0 -46
- package/dist/state-machines/data-layer/actions.js.map +0 -1
- package/dist/state-machines/data-layer/index.d.ts +0 -24
- package/dist/state-machines/data-layer/index.js +0 -149
- package/dist/state-machines/data-layer/index.js.map +0 -1
- package/dist/state-machines/data-layer/services.d.ts +0 -3
- package/dist/state-machines/data-layer/services.js +0 -16
- package/dist/state-machines/data-layer/services.js.map +0 -1
- package/dist/state-machines/data-layer/types.d.ts +0 -23
- package/dist/state-machines/data-layer/types.js +0 -4
- package/dist/state-machines/data-layer/types.js.map +0 -1
- package/dist/state-machines/develop/actions.d.ts +0 -38
- package/dist/state-machines/develop/actions.js +0 -242
- package/dist/state-machines/develop/actions.js.map +0 -1
- package/dist/state-machines/develop/index.d.ts +0 -6
- package/dist/state-machines/develop/index.js +0 -334
- package/dist/state-machines/develop/index.js.map +0 -1
- package/dist/state-machines/develop/services.d.ts +0 -3
- package/dist/state-machines/develop/services.js +0 -26
- package/dist/state-machines/develop/services.js.map +0 -1
- package/dist/state-machines/index.d.ts +0 -7
- package/dist/state-machines/index.js +0 -35
- package/dist/state-machines/index.js.map +0 -1
- package/dist/state-machines/query-running/actions.d.ts +0 -9
- package/dist/state-machines/query-running/actions.js +0 -61
- package/dist/state-machines/query-running/actions.js.map +0 -1
- package/dist/state-machines/query-running/index.d.ts +0 -7
- package/dist/state-machines/query-running/index.js +0 -136
- package/dist/state-machines/query-running/index.js.map +0 -1
- package/dist/state-machines/query-running/services.d.ts +0 -3
- package/dist/state-machines/query-running/services.js +0 -18
- package/dist/state-machines/query-running/services.js.map +0 -1
- package/dist/state-machines/query-running/types.d.ts +0 -23
- package/dist/state-machines/query-running/types.js +0 -4
- package/dist/state-machines/query-running/types.js.map +0 -1
- package/dist/state-machines/waiting/actions.d.ts +0 -11
- package/dist/state-machines/waiting/actions.js +0 -40
- package/dist/state-machines/waiting/actions.js.map +0 -1
- package/dist/state-machines/waiting/index.d.ts +0 -12
- package/dist/state-machines/waiting/index.js +0 -148
- package/dist/state-machines/waiting/index.js.map +0 -1
- package/dist/state-machines/waiting/services.d.ts +0 -3
- package/dist/state-machines/waiting/services.js +0 -12
- package/dist/state-machines/waiting/services.js.map +0 -1
- package/dist/state-machines/waiting/types.d.ts +0 -12
- package/dist/state-machines/waiting/types.js +0 -4
- package/dist/state-machines/waiting/types.js.map +0 -1
- package/dist/types.d.ts +0 -9
- package/dist/types.js +0 -4
- package/dist/types.js.map +0 -1
- package/dist/utils/api-browser-docs.d.ts +0 -242
- package/dist/utils/api-browser-docs.js +0 -285
- package/dist/utils/api-browser-docs.js.map +0 -1
- package/dist/utils/api-node-docs.d.ts +0 -470
- package/dist/utils/api-node-docs.js +0 -520
- package/dist/utils/api-node-docs.js.map +0 -1
- package/dist/utils/api-node-helpers-docs.js +0 -325
- package/dist/utils/api-node-helpers-docs.js.map +0 -1
- package/dist/utils/api-runner-error-parser.d.ts +0 -5
- package/dist/utils/api-runner-error-parser.js +0 -69
- package/dist/utils/api-runner-error-parser.js.map +0 -1
- package/dist/utils/api-runner-node.js +0 -730
- package/dist/utils/api-runner-node.js.map +0 -1
- package/dist/utils/app-data.d.ts +0 -2
- package/dist/utils/app-data.js +0 -23
- package/dist/utils/app-data.js.map +0 -1
- package/dist/utils/assert-store.d.ts +0 -2
- package/dist/utils/assert-store.js +0 -15
- package/dist/utils/assert-store.js.map +0 -1
- package/dist/utils/babel/babel-module-exports-helpers.d.ts +0 -22
- package/dist/utils/babel/babel-module-exports-helpers.js +0 -55
- package/dist/utils/babel/babel-module-exports-helpers.js.map +0 -1
- package/dist/utils/babel/babel-plugin-remove-api.d.ts +0 -5
- package/dist/utils/babel/babel-plugin-remove-api.js +0 -149
- package/dist/utils/babel/babel-plugin-remove-api.js.map +0 -1
- package/dist/utils/babel-loader-helpers.js +0 -154
- package/dist/utils/babel-loader-helpers.js.map +0 -1
- package/dist/utils/babel-loader.js +0 -183
- package/dist/utils/babel-loader.js.map +0 -1
- package/dist/utils/babel-parse-to-ast.d.ts +0 -4
- package/dist/utils/babel-parse-to-ast.js +0 -38
- package/dist/utils/babel-parse-to-ast.js.map +0 -1
- package/dist/utils/batcher.d.ts +0 -15
- package/dist/utils/batcher.js +0 -53
- package/dist/utils/batcher.js.map +0 -1
- package/dist/utils/browserslist.d.ts +0 -2
- package/dist/utils/browserslist.js +0 -47
- package/dist/utils/browserslist.js.map +0 -1
- package/dist/utils/cache-lmdb.d.ts +0 -19
- package/dist/utils/cache-lmdb.js +0 -83
- package/dist/utils/cache-lmdb.js.map +0 -1
- package/dist/utils/cache.d.ts +0 -17
- package/dist/utils/cache.js +0 -96
- package/dist/utils/cache.js.map +0 -1
- package/dist/utils/call-deferred-api.d.ts +0 -8
- package/dist/utils/call-deferred-api.js +0 -43
- package/dist/utils/call-deferred-api.js.map +0 -1
- package/dist/utils/changed-pages.d.ts +0 -6
- package/dist/utils/changed-pages.js +0 -53
- package/dist/utils/changed-pages.js.map +0 -1
- package/dist/utils/clear-require-cache.d.ts +0 -1
- package/dist/utils/clear-require-cache.js +0 -32
- package/dist/utils/clear-require-cache.js.map +0 -1
- package/dist/utils/client-assets-for-template.d.ts +0 -9
- package/dist/utils/client-assets-for-template.js +0 -146
- package/dist/utils/client-assets-for-template.js.map +0 -1
- package/dist/utils/create-node-id.d.ts +0 -24
- package/dist/utils/create-node-id.js +0 -76
- package/dist/utils/create-node-id.js.map +0 -1
- package/dist/utils/create-schema-customization.d.ts +0 -6
- package/dist/utils/create-schema-customization.js +0 -31
- package/dist/utils/create-schema-customization.js.map +0 -1
- package/dist/utils/detect-node-mutations.d.ts +0 -4
- package/dist/utils/detect-node-mutations.js +0 -167
- package/dist/utils/detect-node-mutations.js.map +0 -1
- package/dist/utils/detect-port-in-use-and-prompt.d.ts +0 -1
- package/dist/utils/detect-port-in-use-and-prompt.js +0 -38
- package/dist/utils/detect-port-in-use-and-prompt.js.map +0 -1
- package/dist/utils/dev-ssr/render-dev-html-child.js +0 -128
- package/dist/utils/dev-ssr/render-dev-html-child.js.map +0 -1
- package/dist/utils/dev-ssr/render-dev-html.d.ts +0 -23
- package/dist/utils/dev-ssr/render-dev-html.js +0 -241
- package/dist/utils/dev-ssr/render-dev-html.js.map +0 -1
- package/dist/utils/develop-preload-headers.d.ts +0 -7
- package/dist/utils/develop-preload-headers.js +0 -73
- package/dist/utils/develop-preload-headers.js.map +0 -1
- package/dist/utils/develop-proxy.d.ts +0 -14
- package/dist/utils/develop-proxy.js +0 -78
- package/dist/utils/develop-proxy.js.map +0 -1
- package/dist/utils/did-you-mean.d.ts +0 -3
- package/dist/utils/did-you-mean.js +0 -27
- package/dist/utils/did-you-mean.js.map +0 -1
- package/dist/utils/engine-context.d.ts +0 -5
- package/dist/utils/engine-context.js +0 -25
- package/dist/utils/engine-context.js.map +0 -1
- package/dist/utils/engines-fs-provider.d.ts +0 -9
- package/dist/utils/engines-fs-provider.js +0 -21
- package/dist/utils/engines-fs-provider.js.map +0 -1
- package/dist/utils/engines-helpers.d.ts +0 -2
- package/dist/utils/engines-helpers.js +0 -27
- package/dist/utils/engines-helpers.js.map +0 -1
- package/dist/utils/eslint/required.js +0 -10
- package/dist/utils/eslint/required.js.map +0 -1
- package/dist/utils/eslint-config.d.ts +0 -4
- package/dist/utils/eslint-config.js +0 -152
- package/dist/utils/eslint-config.js.map +0 -1
- package/dist/utils/eslint-rules/limited-exports-page-templates.d.ts +0 -1
- package/dist/utils/eslint-rules/limited-exports-page-templates.js +0 -193
- package/dist/utils/eslint-rules/limited-exports-page-templates.js.map +0 -1
- package/dist/utils/eslint-rules/no-anonymous-exports-page-templates.d.ts +0 -1
- package/dist/utils/eslint-rules/no-anonymous-exports-page-templates.js +0 -79
- package/dist/utils/eslint-rules/no-anonymous-exports-page-templates.js.map +0 -1
- package/dist/utils/eslint-rules-helpers.d.ts +0 -4
- package/dist/utils/eslint-rules-helpers.js +0 -27
- package/dist/utils/eslint-rules-helpers.js.map +0 -1
- package/dist/utils/express-middlewares.d.ts +0 -4
- package/dist/utils/express-middlewares.js +0 -65
- package/dist/utils/express-middlewares.js.map +0 -1
- package/dist/utils/fast-refresh-module.d.ts +0 -22
- package/dist/utils/fast-refresh-module.js +0 -61
- package/dist/utils/fast-refresh-module.js.map +0 -1
- package/dist/utils/feedback.d.ts +0 -5
- package/dist/utils/feedback.js +0 -187
- package/dist/utils/feedback.js.map +0 -1
- package/dist/utils/find-page-by-path.d.ts +0 -2
- package/dist/utils/find-page-by-path.js +0 -104
- package/dist/utils/find-page-by-path.js.map +0 -1
- package/dist/utils/flags.d.ts +0 -41
- package/dist/utils/flags.js +0 -182
- package/dist/utils/flags.js.map +0 -1
- package/dist/utils/gatsby-cloud-config.d.ts +0 -4
- package/dist/utils/gatsby-cloud-config.js +0 -17
- package/dist/utils/gatsby-cloud-config.js.map +0 -1
- package/dist/utils/gatsby-dependents.d.ts +0 -8
- package/dist/utils/gatsby-dependents.js +0 -60
- package/dist/utils/gatsby-dependents.js.map +0 -1
- package/dist/utils/gatsby-webpack-eslint-graphql-schema-reload-plugin.d.ts +0 -8
- package/dist/utils/gatsby-webpack-eslint-graphql-schema-reload-plugin.js +0 -70
- package/dist/utils/gatsby-webpack-eslint-graphql-schema-reload-plugin.js.map +0 -1
- package/dist/utils/gatsby-webpack-stats-extractor.d.ts +0 -6
- package/dist/utils/gatsby-webpack-stats-extractor.js +0 -88
- package/dist/utils/gatsby-webpack-stats-extractor.js.map +0 -1
- package/dist/utils/gatsby-webpack-virtual-modules.d.ts +0 -6
- package/dist/utils/gatsby-webpack-virtual-modules.js +0 -58
- package/dist/utils/gatsby-webpack-virtual-modules.js.map +0 -1
- package/dist/utils/get-cache.d.ts +0 -2
- package/dist/utils/get-cache.js +0 -37
- package/dist/utils/get-cache.js.map +0 -1
- package/dist/utils/get-latest-apis.d.ts +0 -6
- package/dist/utils/get-latest-apis.js +0 -46
- package/dist/utils/get-latest-apis.js.map +0 -1
- package/dist/utils/get-page-data.d.ts +0 -3
- package/dist/utils/get-page-data.js +0 -112
- package/dist/utils/get-page-data.js.map +0 -1
- package/dist/utils/get-public-path.d.ts +0 -5
- package/dist/utils/get-public-path.js +0 -24
- package/dist/utils/get-public-path.js.map +0 -1
- package/dist/utils/get-server-data.d.ts +0 -19
- package/dist/utils/get-server-data.js +0 -32
- package/dist/utils/get-server-data.js.map +0 -1
- package/dist/utils/get-ssl-cert.d.ts +0 -9
- package/dist/utils/get-ssl-cert.js +0 -115
- package/dist/utils/get-ssl-cert.js.map +0 -1
- package/dist/utils/get-static-dir.d.ts +0 -12
- package/dist/utils/get-static-dir.js +0 -72
- package/dist/utils/get-static-dir.js.map +0 -1
- package/dist/utils/get-value-at.d.ts +0 -1
- package/dist/utils/get-value-at.js +0 -25
- package/dist/utils/get-value-at.js.map +0 -1
- package/dist/utils/handle-flags.d.ts +0 -8
- package/dist/utils/handle-flags.js +0 -249
- package/dist/utils/handle-flags.js.map +0 -1
- package/dist/utils/is-32-bit-integer.d.ts +0 -1
- package/dist/utils/is-32-bit-integer.js +0 -9
- package/dist/utils/is-32-bit-integer.js.map +0 -1
- package/dist/utils/jobs/manager.d.ts +0 -34
- package/dist/utils/jobs/manager.js +0 -365
- package/dist/utils/jobs/manager.js.map +0 -1
- package/dist/utils/jobs/types.d.ts +0 -63
- package/dist/utils/jobs/types.js +0 -33
- package/dist/utils/jobs/types.js.map +0 -1
- package/dist/utils/jobs/worker-messaging.d.ts +0 -9
- package/dist/utils/jobs/worker-messaging.js +0 -107
- package/dist/utils/jobs/worker-messaging.js.map +0 -1
- package/dist/utils/js-chunk-names.d.ts +0 -1
- package/dist/utils/js-chunk-names.js +0 -57
- package/dist/utils/js-chunk-names.js.map +0 -1
- package/dist/utils/loading-indicator.d.ts +0 -3
- package/dist/utils/loading-indicator.js +0 -50
- package/dist/utils/loading-indicator.js.map +0 -1
- package/dist/utils/local-eslint-config-finder.d.ts +0 -1
- package/dist/utils/local-eslint-config-finder.js +0 -45
- package/dist/utils/local-eslint-config-finder.js.map +0 -1
- package/dist/utils/merge-gatsby-config.d.ts +0 -27
- package/dist/utils/merge-gatsby-config.js +0 -59
- package/dist/utils/merge-gatsby-config.js.map +0 -1
- package/dist/utils/mett.d.ts +0 -10
- package/dist/utils/mett.js +0 -50
- package/dist/utils/mett.js.map +0 -1
- package/dist/utils/module-resolver.d.ts +0 -3
- package/dist/utils/module-resolver.js +0 -30
- package/dist/utils/module-resolver.js.map +0 -1
- package/dist/utils/node-manifest.d.ts +0 -45
- package/dist/utils/node-manifest.js +0 -347
- package/dist/utils/node-manifest.js.map +0 -1
- package/dist/utils/nodes.d.ts +0 -13
- package/dist/utils/nodes.js +0 -77
- package/dist/utils/nodes.js.map +0 -1
- package/dist/utils/normalize-path.d.ts +0 -2
- package/dist/utils/normalize-path.js +0 -15
- package/dist/utils/normalize-path.js.map +0 -1
- package/dist/utils/page-data-helpers.d.ts +0 -14
- package/dist/utils/page-data-helpers.js +0 -48
- package/dist/utils/page-data-helpers.js.map +0 -1
- package/dist/utils/page-data.d.ts +0 -19
- package/dist/utils/page-data.js +0 -312
- package/dist/utils/page-data.js.map +0 -1
- package/dist/utils/page-mode.d.ts +0 -18
- package/dist/utils/page-mode.js +0 -150
- package/dist/utils/page-mode.js.map +0 -1
- package/dist/utils/page-ssr-module/bundle-webpack.d.ts +0 -17
- package/dist/utils/page-ssr-module/bundle-webpack.js +0 -158
- package/dist/utils/page-ssr-module/bundle-webpack.js.map +0 -1
- package/dist/utils/page-ssr-module/entry.d.ts +0 -43
- package/dist/utils/page-ssr-module/entry.js +0 -299
- package/dist/utils/page-ssr-module/entry.js.map +0 -1
- package/dist/utils/parcel/compile-gatsby-files.d.ts +0 -18
- package/dist/utils/parcel/compile-gatsby-files.js +0 -152
- package/dist/utils/parcel/compile-gatsby-files.js.map +0 -1
- package/dist/utils/path.d.ts +0 -5
- package/dist/utils/path.js +0 -74
- package/dist/utils/path.js.map +0 -1
- package/dist/utils/prepare-regex.d.ts +0 -1
- package/dist/utils/prepare-regex.js +0 -17
- package/dist/utils/prepare-regex.js.map +0 -1
- package/dist/utils/prepare-urls.d.ts +0 -7
- package/dist/utils/prepare-urls.js +0 -68
- package/dist/utils/prepare-urls.js.map +0 -1
- package/dist/utils/print-deprecation-warnings.d.ts +0 -1
- package/dist/utils/print-deprecation-warnings.js +0 -37
- package/dist/utils/print-deprecation-warnings.js.map +0 -1
- package/dist/utils/print-instructions.d.ts +0 -2
- package/dist/utils/print-instructions.js +0 -51
- package/dist/utils/print-instructions.js.map +0 -1
- package/dist/utils/reach-router-add-basecontext-export-loader.d.ts +0 -1
- package/dist/utils/reach-router-add-basecontext-export-loader.js +0 -23
- package/dist/utils/reach-router-add-basecontext-export-loader.js.map +0 -1
- package/dist/utils/report-once.d.ts +0 -1
- package/dist/utils/report-once.js +0 -25
- package/dist/utils/report-once.js.map +0 -1
- package/dist/utils/require-gatsby-plugin.d.ts +0 -9
- package/dist/utils/require-gatsby-plugin.js +0 -24
- package/dist/utils/require-gatsby-plugin.js.map +0 -1
- package/dist/utils/restarting-screen.d.ts +0 -2
- package/dist/utils/restarting-screen.js +0 -136
- package/dist/utils/restarting-screen.js.map +0 -1
- package/dist/utils/sample-site-for-experiment.d.ts +0 -2
- package/dist/utils/sample-site-for-experiment.js +0 -17
- package/dist/utils/sample-site-for-experiment.js.map +0 -1
- package/dist/utils/sanitize-node.js +0 -80
- package/dist/utils/sanitize-node.js.map +0 -1
- package/dist/utils/show-experiment-notice.d.ts +0 -6
- package/dist/utils/show-experiment-notice.js +0 -68
- package/dist/utils/show-experiment-notice.js.map +0 -1
- package/dist/utils/source-nodes.d.ts +0 -8
- package/dist/utils/source-nodes.js +0 -116
- package/dist/utils/source-nodes.js.map +0 -1
- package/dist/utils/stack-trace-utils.d.ts +0 -24
- package/dist/utils/stack-trace-utils.js +0 -132
- package/dist/utils/stack-trace-utils.js.map +0 -1
- package/dist/utils/start-server.d.ts +0 -22
- package/dist/utils/start-server.js +0 -779
- package/dist/utils/start-server.js.map +0 -1
- package/dist/utils/state-machine-logging.d.ts +0 -2
- package/dist/utils/state-machine-logging.js +0 -56
- package/dist/utils/state-machine-logging.js.map +0 -1
- package/dist/utils/static-query-utils.d.ts +0 -16
- package/dist/utils/static-query-utils.js +0 -91
- package/dist/utils/static-query-utils.js.map +0 -1
- package/dist/utils/telemetry-server.d.ts +0 -1
- package/dist/utils/telemetry-server.js +0 -70
- package/dist/utils/telemetry-server.js.map +0 -1
- package/dist/utils/test-require-error.d.ts +0 -1
- package/dist/utils/test-require-error.js +0 -21
- package/dist/utils/test-require-error.js.map +0 -1
- package/dist/utils/tracer/index.d.ts +0 -12
- package/dist/utils/tracer/index.js +0 -52
- package/dist/utils/tracer/index.js.map +0 -1
- package/dist/utils/tracer/jaeger-local.d.ts +0 -4
- package/dist/utils/tracer/jaeger-local.js +0 -36
- package/dist/utils/tracer/jaeger-local.js.map +0 -1
- package/dist/utils/tracer/zipkin-local.d.ts +0 -11
- package/dist/utils/tracer/zipkin-local.js +0 -97
- package/dist/utils/tracer/zipkin-local.js.map +0 -1
- package/dist/utils/tracer/zipkin-types.d.js +0 -23
- package/dist/utils/tracer/zipkin-types.d.js.map +0 -1
- package/dist/utils/validate-engines/child.d.ts +0 -1
- package/dist/utils/validate-engines/child.js +0 -87
- package/dist/utils/validate-engines/child.js.map +0 -1
- package/dist/utils/validate-engines/index.d.ts +0 -1
- package/dist/utils/validate-engines/index.js +0 -26
- package/dist/utils/validate-engines/index.js.map +0 -1
- package/dist/utils/validate-page-component.d.ts +0 -12
- package/dist/utils/validate-page-component.js +0 -104
- package/dist/utils/validate-page-component.js.map +0 -1
- package/dist/utils/wait-until-jobs-complete.d.ts +0 -2
- package/dist/utils/wait-until-jobs-complete.js +0 -40
- package/dist/utils/wait-until-jobs-complete.js.map +0 -1
- package/dist/utils/webpack/bundle.d.ts +0 -9
- package/dist/utils/webpack/bundle.js +0 -47
- package/dist/utils/webpack/bundle.js.map +0 -1
- package/dist/utils/webpack/plugins/cache-folder-resolver.d.ts +0 -9
- package/dist/utils/webpack/plugins/cache-folder-resolver.js +0 -48
- package/dist/utils/webpack/plugins/cache-folder-resolver.js.map +0 -1
- package/dist/utils/webpack/plugins/corejs-resolver.d.ts +0 -12
- package/dist/utils/webpack/plugins/corejs-resolver.js +0 -74
- package/dist/utils/webpack/plugins/corejs-resolver.js.map +0 -1
- package/dist/utils/webpack/plugins/force-css-hmr-for-edge-cases.d.ts +0 -22
- package/dist/utils/webpack/plugins/force-css-hmr-for-edge-cases.js +0 -104
- package/dist/utils/webpack/plugins/force-css-hmr-for-edge-cases.js.map +0 -1
- package/dist/utils/webpack/plugins/static-query-mapper.d.ts +0 -7
- package/dist/utils/webpack/plugins/static-query-mapper.js +0 -218
- package/dist/utils/webpack/plugins/static-query-mapper.js.map +0 -1
- package/dist/utils/webpack/plugins/webpack-logging.d.ts +0 -12
- package/dist/utils/webpack/plugins/webpack-logging.js +0 -62
- package/dist/utils/webpack/plugins/webpack-logging.js.map +0 -1
- package/dist/utils/webpack-error-utils.d.ts +0 -24
- package/dist/utils/webpack-error-utils.js +0 -124
- package/dist/utils/webpack-error-utils.js.map +0 -1
- package/dist/utils/webpack-plugins.d.ts +0 -46
- package/dist/utils/webpack-plugins.js +0 -66
- package/dist/utils/webpack-plugins.js.map +0 -1
- package/dist/utils/webpack-status.d.ts +0 -3
- package/dist/utils/webpack-status.js +0 -27
- package/dist/utils/webpack-status.js.map +0 -1
- package/dist/utils/webpack-utils.d.ts +0 -121
- package/dist/utils/webpack-utils.js +0 -594
- package/dist/utils/webpack-utils.js.map +0 -1
- package/dist/utils/webpack.config.js +0 -851
- package/dist/utils/webpack.config.js.map +0 -1
- package/dist/utils/websocket-manager.d.ts +0 -40
- package/dist/utils/websocket-manager.js +0 -244
- package/dist/utils/websocket-manager.js.map +0 -1
- package/dist/utils/worker/child/index.d.ts +0 -5
- package/dist/utils/worker/child/index.js +0 -44
- package/dist/utils/worker/child/index.js.map +0 -1
- package/dist/utils/worker/child/load-config-and-plugins.d.ts +0 -2
- package/dist/utils/worker/child/load-config-and-plugins.js +0 -38
- package/dist/utils/worker/child/load-config-and-plugins.js.map +0 -1
- package/dist/utils/worker/child/queries.d.ts +0 -7
- package/dist/utils/worker/child/queries.js +0 -100
- package/dist/utils/worker/child/queries.js.map +0 -1
- package/dist/utils/worker/child/render-html.d.ts +0 -21
- package/dist/utils/worker/child/render-html.js +0 -229
- package/dist/utils/worker/child/render-html.js.map +0 -1
- package/dist/utils/worker/child/schema.d.ts +0 -2
- package/dist/utils/worker/child/schema.js +0 -57
- package/dist/utils/worker/child/schema.js.map +0 -1
- package/dist/utils/worker/child/state.d.ts +0 -2
- package/dist/utils/worker/child/state.js +0 -15
- package/dist/utils/worker/child/state.js.map +0 -1
- package/dist/utils/worker/messaging.d.ts +0 -8
- package/dist/utils/worker/messaging.js +0 -11
- package/dist/utils/worker/messaging.js.map +0 -1
- package/dist/utils/worker/pool.d.ts +0 -10
- package/dist/utils/worker/pool.js +0 -140
- package/dist/utils/worker/pool.js.map +0 -1
- package/dist/utils/worker/reporter.d.ts +0 -3
- package/dist/utils/worker/reporter.js +0 -33
- package/dist/utils/worker/reporter.js.map +0 -1
- package/dist/utils/worker/types.d.ts +0 -3
- package/dist/utils/worker/types.js +0 -4
- package/dist/utils/worker/types.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,13 @@
|
|
|
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.11.2](https://github.com/gatsbyjs/gatsby/commits/gatsby@4.11.2/packages/gatsby) (2022-04-05)
|
|
7
|
+
|
|
8
|
+
#### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- fix intermittent wrong sort results when sorting on materialized field fix [#35271](https://github.com/gatsbyjs/gatsby/issues/35271) fix [#35340](https://github.com/gatsbyjs/gatsby/issues/35340) ([3f703d1](https://github.com/gatsbyjs/gatsby/commit/3f703d14ae79bc81a0b3701da7e10d5d01f19d9c))
|
|
11
|
+
- React 18 Hydration with offline plugin [#35319](https://github.com/gatsbyjs/gatsby/issues/35319) [#35343](https://github.com/gatsbyjs/gatsby/issues/35343) ([af78344](https://github.com/gatsbyjs/gatsby/commit/af783440ae60b8f562bb836d9dde7e23644529d5))
|
|
12
|
+
|
|
6
13
|
### [4.11.1](https://github.com/gatsbyjs/gatsby/commits/gatsby@4.11.1/packages/gatsby) (2022-03-31)
|
|
7
14
|
|
|
8
15
|
#### Bug Fixes
|
package/cache-dir/app.js
CHANGED
|
@@ -44,12 +44,18 @@ let reactRender
|
|
|
44
44
|
let reactHydrate
|
|
45
45
|
if (HAS_REACT_18) {
|
|
46
46
|
const reactDomClient = require(`react-dom/client`)
|
|
47
|
-
reactRender = (Component, el) =>
|
|
48
|
-
reactDomClient.createRoot(el)
|
|
47
|
+
reactRender = (Component, el) => {
|
|
48
|
+
const root = reactDomClient.createRoot(el)
|
|
49
|
+
root.render(Component)
|
|
50
|
+
return () => root.unmount()
|
|
51
|
+
}
|
|
49
52
|
reactHydrate = (Component, el) => reactDomClient.hydrateRoot(el, Component)
|
|
50
53
|
} else {
|
|
51
54
|
const reactDomClient = require(`react-dom`)
|
|
52
|
-
reactRender =
|
|
55
|
+
reactRender = (Component, el) => {
|
|
56
|
+
reactDomClient.render(Component, el)
|
|
57
|
+
return () => ReactDOM.unmountComponentAtNode(el)
|
|
58
|
+
}
|
|
53
59
|
reactHydrate = reactDomClient.hydrate
|
|
54
60
|
}
|
|
55
61
|
|
|
@@ -163,19 +169,26 @@ apiRunnerAsync(`onClientEntry`).then(() => {
|
|
|
163
169
|
process.env.GATSBY_QUERY_ON_DEMAND_LOADING_INDICATOR === `true`
|
|
164
170
|
) {
|
|
165
171
|
let indicatorMountElement
|
|
172
|
+
let cleanupFn
|
|
166
173
|
|
|
167
174
|
const showIndicatorTimeout = setTimeout(() => {
|
|
168
175
|
indicatorMountElement = document.createElement(
|
|
169
176
|
`first-render-loading-indicator`
|
|
170
177
|
)
|
|
171
178
|
document.body.append(indicatorMountElement)
|
|
172
|
-
renderer(<Indicator />, indicatorMountElement)
|
|
179
|
+
cleanupFn = renderer(<Indicator />, indicatorMountElement)
|
|
173
180
|
}, 1000)
|
|
174
181
|
|
|
175
182
|
dismissLoadingIndicator = () => {
|
|
176
183
|
clearTimeout(showIndicatorTimeout)
|
|
177
184
|
if (indicatorMountElement) {
|
|
178
|
-
|
|
185
|
+
// If user defined replaceHydrateFunction themselves the cleanupFn return might not be there
|
|
186
|
+
// So fallback to unmountComponentAtNode for now
|
|
187
|
+
if (cleanupFn) {
|
|
188
|
+
cleanupFn()
|
|
189
|
+
} else {
|
|
190
|
+
ReactDOM.unmountComponentAtNode(indicatorMountElement)
|
|
191
|
+
}
|
|
179
192
|
indicatorMountElement.remove()
|
|
180
193
|
}
|
|
181
194
|
}
|
|
@@ -53,10 +53,20 @@ function WrappedAccordionItem({ error, open }) {
|
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
export function RuntimeErrors({ errors, dismiss }) {
|
|
56
|
-
const deduplicatedErrors = React.useMemo(
|
|
57
|
-
|
|
58
|
-
[
|
|
59
|
-
|
|
56
|
+
const deduplicatedErrors = React.useMemo(() => {
|
|
57
|
+
const errorCache = new Set()
|
|
58
|
+
const errorList = []
|
|
59
|
+
errors.forEach(error => {
|
|
60
|
+
// Second line contains the exact location
|
|
61
|
+
const secondLine = error.stack.split(`\n`)[1]
|
|
62
|
+
if (!errorCache.has(secondLine)) {
|
|
63
|
+
errorList.push(error)
|
|
64
|
+
errorCache.add(secondLine)
|
|
65
|
+
}
|
|
66
|
+
})
|
|
67
|
+
|
|
68
|
+
return errorList
|
|
69
|
+
}, [errors])
|
|
60
70
|
const hasMultipleErrors = deduplicatedErrors.length > 1
|
|
61
71
|
|
|
62
72
|
return (
|
|
@@ -65,7 +75,7 @@ export function RuntimeErrors({ errors, dismiss }) {
|
|
|
65
75
|
<div data-gatsby-overlay="header__cause-file">
|
|
66
76
|
<h1 id="gatsby-overlay-labelledby">
|
|
67
77
|
{hasMultipleErrors
|
|
68
|
-
? `${
|
|
78
|
+
? `${deduplicatedErrors.length} Unhandled Runtime Errors`
|
|
69
79
|
: `Unhandled Runtime Error`}
|
|
70
80
|
</h1>
|
|
71
81
|
</div>
|
package/cache-dir/loader.js
CHANGED
|
@@ -60,6 +60,9 @@ const doesConnectionSupportPrefetch = () => {
|
|
|
60
60
|
return true
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
+
// Regex that matches common search crawlers
|
|
64
|
+
const BOT_REGEX = /bot|crawler|spider|crawling/i
|
|
65
|
+
|
|
63
66
|
const toPageResources = (pageData, component = null) => {
|
|
64
67
|
const page = {
|
|
65
68
|
componentChunkName: pageData.componentChunkName,
|
|
@@ -388,6 +391,11 @@ export class BaseLoader {
|
|
|
388
391
|
return false
|
|
389
392
|
}
|
|
390
393
|
|
|
394
|
+
// Don't prefetch if this is a crawler bot
|
|
395
|
+
if (navigator.userAgent && BOT_REGEX.test(navigator.userAgent)) {
|
|
396
|
+
return false
|
|
397
|
+
}
|
|
398
|
+
|
|
391
399
|
// Check if the page exists.
|
|
392
400
|
if (this.pageDb.has(pagePath)) {
|
|
393
401
|
return false
|
|
@@ -30,11 +30,15 @@ setLoader(loader)
|
|
|
30
30
|
loader.setApiRunner(apiRunner)
|
|
31
31
|
|
|
32
32
|
let reactHydrate
|
|
33
|
+
let reactRender
|
|
33
34
|
if (HAS_REACT_18) {
|
|
34
35
|
const reactDomClient = require(`react-dom/client`)
|
|
36
|
+
reactRender = (Component, el) =>
|
|
37
|
+
reactDomClient.createRoot(el).render(Component)
|
|
35
38
|
reactHydrate = (Component, el) => reactDomClient.hydrateRoot(el, Component)
|
|
36
39
|
} else {
|
|
37
40
|
const reactDomClient = require(`react-dom`)
|
|
41
|
+
reactRender = reactDomClient.render
|
|
38
42
|
reactHydrate = reactDomClient.hydrate
|
|
39
43
|
}
|
|
40
44
|
|
|
@@ -258,10 +262,19 @@ apiRunnerAsync(`onClientEntry`).then(() => {
|
|
|
258
262
|
return <GatsbyRoot>{SiteRoot}</GatsbyRoot>
|
|
259
263
|
}
|
|
260
264
|
|
|
265
|
+
const focusEl = document.getElementById(`gatsby-focus-wrapper`)
|
|
266
|
+
|
|
267
|
+
// Client only pages have any empty body so we just do a normal
|
|
268
|
+
// render to avoid React complaining about hydration mis-matches.
|
|
269
|
+
let defaultRenderer = reactRender
|
|
270
|
+
if (focusEl && focusEl.children.length) {
|
|
271
|
+
defaultRenderer = reactHydrate
|
|
272
|
+
}
|
|
273
|
+
|
|
261
274
|
const renderer = apiRunner(
|
|
262
275
|
`replaceHydrateFunction`,
|
|
263
276
|
undefined,
|
|
264
|
-
|
|
277
|
+
defaultRenderer
|
|
265
278
|
)[0]
|
|
266
279
|
|
|
267
280
|
function runRender() {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gatsby",
|
|
3
3
|
"description": "Blazing fast modern site generator for React",
|
|
4
|
-
"version": "4.12.0
|
|
4
|
+
"version": "4.12.0",
|
|
5
5
|
"author": "Kyle Mathews <mathews.kyle@gmail.com>",
|
|
6
6
|
"bin": {
|
|
7
7
|
"gatsby": "./cli.js"
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"babel-plugin-add-module-exports": "^1.0.4",
|
|
36
36
|
"babel-plugin-dynamic-import-node": "^2.3.3",
|
|
37
37
|
"babel-plugin-lodash": "^3.3.4",
|
|
38
|
-
"babel-plugin-remove-graphql-queries": "^4.12.0
|
|
39
|
-
"babel-preset-gatsby": "^2.12.0
|
|
38
|
+
"babel-plugin-remove-graphql-queries": "^4.12.0",
|
|
39
|
+
"babel-preset-gatsby": "^2.12.0",
|
|
40
40
|
"better-opn": "^2.1.1",
|
|
41
41
|
"bluebird": "^3.7.2",
|
|
42
42
|
"body-parser": "^1.19.0",
|
|
@@ -78,19 +78,19 @@
|
|
|
78
78
|
"find-cache-dir": "^3.3.2",
|
|
79
79
|
"fs-exists-cached": "1.0.0",
|
|
80
80
|
"fs-extra": "^10.0.0",
|
|
81
|
-
"gatsby-cli": "^4.12.0
|
|
82
|
-
"gatsby-core-utils": "^3.12.0
|
|
83
|
-
"gatsby-graphiql-explorer": "^2.12.0
|
|
84
|
-
"gatsby-legacy-polyfills": "^2.12.0
|
|
85
|
-
"gatsby-link": "^4.12.0
|
|
86
|
-
"gatsby-page-utils": "^2.12.0
|
|
87
|
-
"gatsby-parcel-config": "^0.3.0
|
|
88
|
-
"gatsby-plugin-page-creator": "^4.12.0
|
|
89
|
-
"gatsby-plugin-typescript": "^4.12.0
|
|
90
|
-
"gatsby-plugin-utils": "^3.6.0
|
|
91
|
-
"gatsby-react-router-scroll": "^5.12.0
|
|
92
|
-
"gatsby-telemetry": "^3.12.0
|
|
93
|
-
"gatsby-worker": "^1.12.0
|
|
81
|
+
"gatsby-cli": "^4.12.0",
|
|
82
|
+
"gatsby-core-utils": "^3.12.0",
|
|
83
|
+
"gatsby-graphiql-explorer": "^2.12.0",
|
|
84
|
+
"gatsby-legacy-polyfills": "^2.12.0",
|
|
85
|
+
"gatsby-link": "^4.12.0",
|
|
86
|
+
"gatsby-page-utils": "^2.12.0",
|
|
87
|
+
"gatsby-parcel-config": "^0.3.0",
|
|
88
|
+
"gatsby-plugin-page-creator": "^4.12.0",
|
|
89
|
+
"gatsby-plugin-typescript": "^4.12.0",
|
|
90
|
+
"gatsby-plugin-utils": "^3.6.0",
|
|
91
|
+
"gatsby-react-router-scroll": "^5.12.0",
|
|
92
|
+
"gatsby-telemetry": "^3.12.0",
|
|
93
|
+
"gatsby-worker": "^1.12.0",
|
|
94
94
|
"glob": "^7.2.0",
|
|
95
95
|
"globby": "^11.1.0",
|
|
96
96
|
"got": "^11.8.2",
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
"joi": "^17.4.2",
|
|
106
106
|
"json-loader": "^0.5.7",
|
|
107
107
|
"latest-version": "5.1.0",
|
|
108
|
-
"lmdb": "
|
|
108
|
+
"lmdb": "~2.2.3",
|
|
109
109
|
"lodash": "^4.17.21",
|
|
110
110
|
"md5-file": "^5.0.0",
|
|
111
111
|
"meant": "^1.0.3",
|
|
@@ -179,7 +179,7 @@
|
|
|
179
179
|
"@types/string-similarity": "^4.0.0",
|
|
180
180
|
"@types/tmp": "^0.2.0",
|
|
181
181
|
"@types/webpack-virtual-modules": "^0.1.1",
|
|
182
|
-
"babel-preset-gatsby-package": "^2.12.0
|
|
182
|
+
"babel-preset-gatsby-package": "^2.12.0",
|
|
183
183
|
"copyfiles": "^2.3.0",
|
|
184
184
|
"cross-env": "^7.0.3",
|
|
185
185
|
"documentation": "^13.1.0",
|
|
@@ -193,7 +193,7 @@
|
|
|
193
193
|
"zipkin-transport-http": "^0.22.0"
|
|
194
194
|
},
|
|
195
195
|
"optionalDependencies": {
|
|
196
|
-
"gatsby-sharp": "^0.6.0
|
|
196
|
+
"gatsby-sharp": "^0.6.0"
|
|
197
197
|
},
|
|
198
198
|
"engines": {
|
|
199
199
|
"node": ">=14.15.0"
|
|
@@ -265,5 +265,5 @@
|
|
|
265
265
|
"yargs": {
|
|
266
266
|
"boolean-negation": false
|
|
267
267
|
},
|
|
268
|
-
"gitHead": "
|
|
268
|
+
"gitHead": "12e90fce284eb0a64b7d1f15e293027483826372"
|
|
269
269
|
}
|
package/apis.json
DELETED
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"ssr": {
|
|
3
|
-
"replaceRenderer": {},
|
|
4
|
-
"onRenderBody": {},
|
|
5
|
-
"onPreRenderHTML": {},
|
|
6
|
-
"wrapPageElement": {},
|
|
7
|
-
"wrapRootElement": {}
|
|
8
|
-
},
|
|
9
|
-
"browser": {
|
|
10
|
-
"onClientEntry": {},
|
|
11
|
-
"onInitialClientRender": {},
|
|
12
|
-
"onPreRouteUpdate": {},
|
|
13
|
-
"onRouteUpdateDelayed": {},
|
|
14
|
-
"onRouteUpdate": {},
|
|
15
|
-
"shouldUpdateScroll": {},
|
|
16
|
-
"registerServiceWorker": {},
|
|
17
|
-
"wrapPageElement": {},
|
|
18
|
-
"wrapRootElement": {},
|
|
19
|
-
"onPrefetchPathname": {},
|
|
20
|
-
"onPostPrefetchPathname": {},
|
|
21
|
-
"disableCorePrefetching": {},
|
|
22
|
-
"replaceHydrateFunction": {},
|
|
23
|
-
"onServiceWorkerInstalled": {},
|
|
24
|
-
"onServiceWorkerUpdateFound": {},
|
|
25
|
-
"onServiceWorkerUpdateReady": {},
|
|
26
|
-
"onServiceWorkerActive": {},
|
|
27
|
-
"onServiceWorkerRedundant": {}
|
|
28
|
-
},
|
|
29
|
-
"node": {
|
|
30
|
-
"resolvableExtensions": {},
|
|
31
|
-
"createPages": {},
|
|
32
|
-
"createPagesStatefully": {},
|
|
33
|
-
"sourceNodes": {},
|
|
34
|
-
"onCreateNode": {},
|
|
35
|
-
"unstable_shouldOnCreateNode": {
|
|
36
|
-
"version": "2.24.80"
|
|
37
|
-
},
|
|
38
|
-
"onCreatePage": {},
|
|
39
|
-
"setFieldsOnGraphQLNodeType": {},
|
|
40
|
-
"createSchemaCustomization": {
|
|
41
|
-
"version": "2.12.0"
|
|
42
|
-
},
|
|
43
|
-
"createResolvers": {
|
|
44
|
-
"version": "2.2.0"
|
|
45
|
-
},
|
|
46
|
-
"preprocessSource": {},
|
|
47
|
-
"onCreateBabelConfig": {},
|
|
48
|
-
"onCreateWebpackConfig": {},
|
|
49
|
-
"onPreInit": {},
|
|
50
|
-
"onPluginInit": {
|
|
51
|
-
"version": "3.9.0"
|
|
52
|
-
},
|
|
53
|
-
"onPreBootstrap": {},
|
|
54
|
-
"onPostBootstrap": {},
|
|
55
|
-
"onPreBuild": {},
|
|
56
|
-
"onPostBuild": {},
|
|
57
|
-
"onPreExtractQueries": {},
|
|
58
|
-
"onCreateDevServer": {},
|
|
59
|
-
"pluginOptionsSchema": {
|
|
60
|
-
"version": "2.25.0"
|
|
61
|
-
}
|
|
62
|
-
},
|
|
63
|
-
"features": [
|
|
64
|
-
"image-cdn"
|
|
65
|
-
]
|
|
66
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
// During bootstrap, we write requires at top of this file which looks
|
|
4
|
-
// basically like:
|
|
5
|
-
// module.exports = [
|
|
6
|
-
// {
|
|
7
|
-
// plugin: require("/path/to/plugin1/gatsby-browser.js"),
|
|
8
|
-
// options: { ... },
|
|
9
|
-
// },
|
|
10
|
-
// {
|
|
11
|
-
// plugin: require("/path/to/plugin2/gatsby-browser.js"),
|
|
12
|
-
// options: { ... },
|
|
13
|
-
// },
|
|
14
|
-
// ]
|
|
15
|
-
module.exports = [];
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
const plugins = require(`./api-runner-browser-plugins`);
|
|
4
|
-
|
|
5
|
-
const {
|
|
6
|
-
getResourceURLsForPathname,
|
|
7
|
-
loadPage,
|
|
8
|
-
loadPageSync
|
|
9
|
-
} = require(`./loader`).publicLoader;
|
|
10
|
-
|
|
11
|
-
exports.apiRunner = (api, args = {}, defaultReturn, argTransform) => {
|
|
12
|
-
// Hooks for gatsby-cypress's API handler
|
|
13
|
-
if (process.env.CYPRESS_SUPPORT) {
|
|
14
|
-
if (window.___apiHandler) {
|
|
15
|
-
window.___apiHandler(api);
|
|
16
|
-
} else if (window.___resolvedAPIs) {
|
|
17
|
-
window.___resolvedAPIs.push(api);
|
|
18
|
-
} else {
|
|
19
|
-
window.___resolvedAPIs = [api];
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
let results = plugins.map(plugin => {
|
|
24
|
-
if (!plugin.plugin[api]) {
|
|
25
|
-
return undefined;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
args.getResourceURLsForPathname = getResourceURLsForPathname;
|
|
29
|
-
args.loadPage = loadPage;
|
|
30
|
-
args.loadPageSync = loadPageSync;
|
|
31
|
-
const result = plugin.plugin[api](args, plugin.options);
|
|
32
|
-
|
|
33
|
-
if (result && argTransform) {
|
|
34
|
-
args = argTransform({
|
|
35
|
-
args,
|
|
36
|
-
result,
|
|
37
|
-
plugin
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
return result;
|
|
42
|
-
}); // Filter out undefined results.
|
|
43
|
-
|
|
44
|
-
results = results.filter(result => typeof result !== `undefined`);
|
|
45
|
-
|
|
46
|
-
if (results.length > 0) {
|
|
47
|
-
return results;
|
|
48
|
-
} else if (defaultReturn) {
|
|
49
|
-
return [defaultReturn];
|
|
50
|
-
} else {
|
|
51
|
-
return [];
|
|
52
|
-
}
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
exports.apiRunnerAsync = (api, args, defaultReturn) => plugins.reduce((previous, next) => next.plugin[api] ? previous.then(() => next.plugin[api](args, next.options)) : previous, Promise.resolve());
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
exports.__esModule = true;
|
|
4
|
-
exports.apiRunner = apiRunner;
|
|
5
|
-
exports.apiRunnerAsync = apiRunnerAsync;
|
|
6
|
-
|
|
7
|
-
/* global plugins */
|
|
8
|
-
// During bootstrap, we write requires at top of this file which looks like:
|
|
9
|
-
// var plugins = [
|
|
10
|
-
// {
|
|
11
|
-
// plugin: require("/path/to/plugin1/gatsby-ssr.js"),
|
|
12
|
-
// options: { ... },
|
|
13
|
-
// },
|
|
14
|
-
// {
|
|
15
|
-
// plugin: require("/path/to/plugin2/gatsby-ssr.js"),
|
|
16
|
-
// options: { ... },
|
|
17
|
-
// },
|
|
18
|
-
// ]
|
|
19
|
-
const apis = require(`./api-ssr-docs`);
|
|
20
|
-
|
|
21
|
-
function augmentErrorWithPlugin(plugin, err) {
|
|
22
|
-
if (plugin.name !== `default-site-plugin`) {
|
|
23
|
-
// default-site-plugin is user code and will print proper stack trace,
|
|
24
|
-
// so no point in annotating error message pointing out which plugin is root of the problem
|
|
25
|
-
err.message += ` (from plugin: ${plugin.name})`;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
throw err;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
function apiRunner(api, args, defaultReturn, argTransform) {
|
|
32
|
-
if (!apis[api]) {
|
|
33
|
-
console.log(`This API doesn't exist`, api);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
const results = [];
|
|
37
|
-
plugins.forEach(plugin => {
|
|
38
|
-
const apiFn = plugin.plugin[api];
|
|
39
|
-
|
|
40
|
-
if (!apiFn) {
|
|
41
|
-
return;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
try {
|
|
45
|
-
const result = apiFn(args, plugin.options);
|
|
46
|
-
|
|
47
|
-
if (result && argTransform) {
|
|
48
|
-
args = argTransform({
|
|
49
|
-
args,
|
|
50
|
-
result
|
|
51
|
-
});
|
|
52
|
-
} // This if case keeps behaviour as before, we should allow undefined here as the api is defined
|
|
53
|
-
// TODO V4
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
if (typeof result !== `undefined`) {
|
|
57
|
-
results.push(result);
|
|
58
|
-
}
|
|
59
|
-
} catch (e) {
|
|
60
|
-
augmentErrorWithPlugin(plugin, e);
|
|
61
|
-
}
|
|
62
|
-
});
|
|
63
|
-
return results.length ? results : [defaultReturn];
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
async function apiRunnerAsync(api, args, defaultReturn, argTransform) {
|
|
67
|
-
if (!apis[api]) {
|
|
68
|
-
console.log(`This API doesn't exist`, api);
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
const results = [];
|
|
72
|
-
|
|
73
|
-
for (const plugin of plugins) {
|
|
74
|
-
const apiFn = plugin.plugin[api];
|
|
75
|
-
|
|
76
|
-
if (!apiFn) {
|
|
77
|
-
continue;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
try {
|
|
81
|
-
const result = await apiFn(args, plugin.options);
|
|
82
|
-
|
|
83
|
-
if (result && argTransform) {
|
|
84
|
-
args = argTransform({
|
|
85
|
-
args,
|
|
86
|
-
result
|
|
87
|
-
});
|
|
88
|
-
} // This if case keeps behaviour as before, we should allow undefined here as the api is defined
|
|
89
|
-
// TODO V4
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
if (typeof result !== `undefined`) {
|
|
93
|
-
results.push(result);
|
|
94
|
-
}
|
|
95
|
-
} catch (e) {
|
|
96
|
-
augmentErrorWithPlugin(plugin, e);
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
return results.length ? results : [defaultReturn];
|
|
101
|
-
}
|