Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: gatsbyjs/gatsby
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 445800fca728521eaca5c409210b857ada2eec35
Choose a base ref
...
head repository: gatsbyjs/gatsby
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 5e72a5d1fab1f312685a533f25a637fbbbefb518
Choose a head ref
  • 19 commits
  • 219 files changed
  • 9 contributors

Commits on Oct 25, 2022

  1. Copy the full SHA
    c7f4cd7 View commit details
  2. adjust v4 release branch tests (#36881)

    * next -> concrete versions in the branch
    
    * chore: Create static file server for e2e tests (#36674)
    
    (cherry picked from commit 239b822)
    
    Co-authored-by: Ty Hopp <tyhopp@users.noreply.github.com>
    pieh and tyhopp authored Oct 25, 2022
    Copy the full SHA
    36211d1 View commit details
  3. fix(gatsby): track multiple root nodes and not just one (#36867) (#36879

    )
    
    * tests: add cases for shared references in nodes for findRootNodeAncestor
    
    * fix: track potentially multiple root nodes and not just 1
    
    * Update packages/gatsby/src/schema/node-model.js
    
    Co-authored-by: Lennart <lekoarts@gmail.com>
    
    * format
    
    Co-authored-by: Lennart <lekoarts@gmail.com>
    (cherry picked from commit 696a7ba)
    
    Co-authored-by: Michal Piechowiak <misiek.piechowiak@gmail.com>
    gatsbybot and pieh authored Oct 25, 2022
    Copy the full SHA
    c9d97f9 View commit details
  4. chore(release): Publish

     - gatsby@4.24.5
    pieh committed Oct 25, 2022
    Copy the full SHA
    012761e View commit details

Commits on Oct 31, 2022

  1. fix(gatsby): Also clear cache on gatsby version change (#36913) (#36925)

    Co-authored-by: Ward Peeters <ward@coding-tech.com>
    gatsbybot and wardpeet authored Oct 31, 2022
    Copy the full SHA
    be43418 View commit details
  2. chore(release): Publish

     - gatsby@4.24.6
    wardpeet committed Oct 31, 2022
    Copy the full SHA
    5e5d565 View commit details

Commits on Nov 3, 2022

  1. feat(gatsby): handle graphql-import-node bundling (#36951) (#36953)

    (cherry picked from commit d5c775a)
    
    Co-authored-by: Michal Piechowiak <misiek.piechowiak@gmail.com>
    gatsbybot and pieh authored Nov 3, 2022
    Copy the full SHA
    1926b4e View commit details
  2. chore(release): Publish

     - gatsby@4.24.7
    pieh committed Nov 3, 2022
    Copy the full SHA
    c7b94b5 View commit details

Commits on Nov 9, 2022

  1. Copy the full SHA
    288d836 View commit details
  2. fix(gatsby): stale node manifests (#36988)

    * process stale node manifests
    
    * add condition
    TylerBarnes authored Nov 9, 2022
    Copy the full SHA
    07a126d View commit details
  3. chore(release): Publish

     - gatsby@4.24.8
    pieh committed Nov 9, 2022
    Copy the full SHA
    ab793c3 View commit details

Commits on Nov 23, 2022

  1. fix(gatsby-source-wordpress) pass store for auth (#37006) (#37083)

    Co-authored-by: Ward Peeters <ward@coding-tech.com>
    Co-authored-by: Sophie McGarity <48594165+sophiemcgarity@users.noreply.github.com>
    3 people authored Nov 23, 2022
    Copy the full SHA
    1f92e69 View commit details
  2. feat(gatsby-source-wordpress): MediaItem.excludeFieldNames / auto exc…

    …lude interface types that have no fields (#37062) (#37085)
    
    Co-authored-by: Tyler Barnes <tylerdbarnes@gmail.com>
    LekoArts and TylerBarnes authored Nov 23, 2022
    Copy the full SHA
    2bc5902 View commit details
  3. feat(gatsby-source-drupal): Provide proxyUrl in addition to baseUrl t…

    …o allow using CDN, API gateway, etc. (#36819) (#37084)
    
    Co-authored-by: Tomáš Fülöpp <tomi@vacilando.org>
    gatsbybot and Vacilando authored Nov 23, 2022
    Copy the full SHA
    fac9fbc View commit details
  4. chore(release): Publish

     - gatsby-source-drupal@5.25.1
     - gatsby-source-wordpress@6.24.1
    marvinjude committed Nov 23, 2022
    Copy the full SHA
    49cca44 View commit details

Commits on Dec 6, 2022

  1. fix(gatsby-source-wordpress): WPGraphQL 1.13.0 compatibility (#37134) (

    …#37183)
    
    * fix(gatsby-source-wordpress): WPGraphQL 1.13.0 compatibility (#37134)
    
    (cherry picked from commit dd52a14)
    
    * v4 starters
    
    * v4 assertion
    
    Co-authored-by: Tyler Barnes <tylerdbarnes@gmail.com>
    Co-authored-by: pieh <misiek.piechowiak@gmail.com>
    3 people authored Dec 6, 2022
    Copy the full SHA
    c698f13 View commit details
  2. chore(release): Publish

     - gatsby-source-wordpress@6.24.2
    pieh committed Dec 6, 2022
    Copy the full SHA
    07c0478 View commit details
  3. chore: remove tracedSVG (#37093) (#37127)

    * init
    
    * gri
    
    * update shopify snapshot
    
    * gatsby-plugin-sharp tests
    
    * update gatsby-remark-images/gatsby-node tests
    
    * update gatsby-plugin-image tests
    
    * update schema print tests
    
    * remove traceSVG unit tests as it was removed
    
    * legacy gatsby-image fields
    
    * update polyfill tests
    
    * update cypress assertion
    
    * update contentful cypress assertions
    
    * drop few more packages from gatsby-plugin-sharp as they are no onger used
    
    * correct IMAGE_CDN fallback for TRACE_SVG
    
    * update generateImageData
    
    * update e2e-prod/assertions
    
    * update unit test
    
    * update snapshot
    
    * update e2e-dev/assertions
    
    * drop more unused
    
    * sync yarn.lock
    
    * a bit more prod warnings
    
    * adjust gatsby-remark-images plugin options warning
    
    * add link to gatsby-remark-images warning
    
    (cherry picked from commit 94c2d73)
    
    Co-authored-by: Michal Piechowiak <misiek.piechowiak@gmail.com>
    gatsbybot and pieh authored Dec 6, 2022
    Copy the full SHA
    2dc715d View commit details

Commits on Dec 7, 2022

  1. chore(release): Publish

     - babel-plugin-remove-graphql-queries@4.25.0
     - babel-preset-gatsby-package@2.25.0
     - babel-preset-gatsby@2.25.0
     - create-gatsby@2.25.0
     - gatsby-cli@4.25.0
     - gatsby-codemods@3.25.0
     - gatsby-core-utils@3.25.0
     - gatsby-cypress@2.25.0
     - gatsby-design-tokens@4.25.0
     - gatsby-dev-cli@4.25.0
     - gatsby-graphiql-explorer@2.25.0
     - gatsby-legacy-polyfills@2.25.0
     - gatsby-link@4.25.0
     - gatsby-page-utils@2.25.0
     - gatsby-parcel-config@0.16.0
     - @gatsbyjs/parcel-namer-relative-to-cwd@1.10.0
     - gatsby-plugin-benchmark-reporting@2.25.0
     - gatsby-plugin-canonical-urls@4.25.0
     - gatsby-plugin-catch-links@4.25.0
     - gatsby-plugin-coffeescript@4.25.0
     - gatsby-plugin-cxs@4.25.0
     - gatsby-plugin-emotion@7.25.0
     - gatsby-plugin-facebook-analytics@4.25.0
     - gatsby-plugin-feed@4.25.0
     - gatsby-plugin-flow@3.25.0
     - gatsby-plugin-fullstory@4.25.0
     - gatsby-plugin-gatsby-cloud@4.25.0
     - gatsby-plugin-google-analytics@4.25.0
     - gatsby-plugin-google-gtag@4.25.0
     - gatsby-plugin-google-tagmanager@4.25.0
     - gatsby-plugin-image@2.25.0
     - gatsby-plugin-jss@4.25.0
     - gatsby-plugin-layout@3.25.0
     - gatsby-plugin-less@6.25.0
     - gatsby-plugin-lodash@5.25.0
     - gatsby-plugin-manifest@4.25.0
     - gatsby-plugin-mdx@4.4.0
     - gatsby-plugin-netlify-cms@6.25.0
     - gatsby-plugin-no-sourcemaps@4.25.0
     - gatsby-plugin-nprogress@4.25.0
     - gatsby-plugin-offline@5.25.0
     - gatsby-plugin-page-creator@4.25.0
     - gatsby-plugin-postcss@5.25.0
     - gatsby-plugin-preact@6.25.0
     - gatsby-plugin-preload-fonts@3.25.0
     - gatsby-plugin-react-css-modules@4.25.0
     - gatsby-plugin-react-helmet@5.25.0
     - gatsby-plugin-sass@5.25.0
     - gatsby-plugin-schema-snapshot@3.25.0
     - gatsby-plugin-sharp@4.25.0
     - gatsby-plugin-sitemap@5.25.0
     - gatsby-plugin-styled-components@5.25.0
     - gatsby-plugin-styled-jsx@5.25.0
     - gatsby-plugin-styletron@7.25.0
     - gatsby-plugin-stylus@4.25.0
     - gatsby-plugin-subfont@4.25.0
     - gatsby-plugin-twitter@4.25.0
     - gatsby-plugin-typescript@4.25.0
     - gatsby-plugin-typography@4.25.0
     - gatsby-plugin-utils@3.19.0
     - gatsby-react-router-scroll@5.25.0
     - gatsby-remark-autolink-headers@5.25.0
     - gatsby-remark-code-repls@6.25.0
     - gatsby-remark-copy-linked-files@5.25.0
     - gatsby-remark-custom-blocks@4.25.0
     - gatsby-remark-embed-snippet@7.25.0
     - gatsby-remark-graphviz@4.25.0
     - gatsby-remark-images-contentful@5.25.0
     - gatsby-remark-images@6.25.0
     - gatsby-remark-katex@6.25.0
     - gatsby-remark-prismjs@6.25.0
     - gatsby-remark-responsive-iframe@5.25.0
     - gatsby-remark-smartypants@5.25.0
     - gatsby-script@1.10.0
     - gatsby-sharp@0.19.0
     - gatsby-source-contentful@7.23.0
     - gatsby-source-drupal@5.26.0
     - gatsby-source-faker@4.25.0
     - gatsby-source-filesystem@4.25.0
     - gatsby-source-graphql@4.25.0
     - gatsby-source-hacker-news@4.25.0
     - gatsby-source-lever@4.25.0
     - gatsby-source-medium@4.25.0
     - gatsby-source-mongodb@4.25.0
     - gatsby-source-npm-package-search@4.25.0
     - gatsby-source-shopify@7.14.0
     - gatsby-source-wikipedia@4.25.0
     - gatsby-source-wordpress@6.25.0
     - gatsby-telemetry@3.25.0
     - gatsby-transformer-asciidoc@3.25.0
     - gatsby-transformer-csv@4.25.0
     - gatsby-transformer-documentationjs@6.25.0
     - gatsby-transformer-excel@4.25.0
     - gatsby-transformer-hjson@4.25.0
     - gatsby-transformer-javascript-frontmatter@4.25.0
     - gatsby-transformer-javascript-static-exports@4.25.0
     - gatsby-transformer-json@4.25.0
     - gatsby-transformer-pdf@3.25.0
     - gatsby-transformer-react-docgen@7.25.0
     - gatsby-transformer-remark@5.25.0
     - gatsby-transformer-screenshot@4.25.0
     - gatsby-transformer-sharp@4.25.0
     - gatsby-transformer-sqip@4.25.0
     - gatsby-transformer-toml@4.25.0
     - gatsby-transformer-xml@4.25.0
     - gatsby-transformer-yaml@4.25.0
     - gatsby-worker@1.25.0
     - gatsby@4.25.0
    pieh committed Dec 7, 2022
    Copy the full SHA
    5e72a5d View commit details
Showing with 1,831 additions and 1,669 deletions.
  1. +1 −1 e2e-tests/contentful/cypress/integration/gatsby-plugin-image.js
  2. BIN e2e-tests/contentful/cypress/snapshots/gatsby-plugin-image.js/english-0.snap.png
  3. +8 −8 e2e-tests/contentful/package.json
  4. +1 −1 e2e-tests/contentful/snapshots.js
  5. +3 −1 e2e-tests/contentful/src/pages/gatsby-plugin-image.js
  6. +3 −2 e2e-tests/development-runtime/cypress/integration/remote-file/gatsby-plugin-image.js
  7. +7 −5 e2e-tests/development-runtime/cypress/integration/static-image/traced.js
  8. +2 −2 e2e-tests/development-runtime/gatsby-config.js
  9. +4 −4 e2e-tests/development-runtime/gatsby-script-scripts.js
  10. +22 −20 e2e-tests/development-runtime/package.json
  11. +0 −1 e2e-tests/development-runtime/playwright.config.ts
  12. +12 −3 e2e-tests/development-runtime/playwright/gatsby-script-off-main-thread.spec.ts
  13. +36 −0 e2e-tests/development-runtime/serve-static-files.mjs
  14. +3 −0 e2e-tests/development-runtime/static/j-query.js
  15. +5 −0 e2e-tests/development-runtime/static/marked.js
  16. +3 −0 e2e-tests/development-runtime/static/popper.js
  17. +5 −0 e2e-tests/development-runtime/static/three.js
  18. +7 −7 e2e-tests/mdx/package.json
  19. +10 −10 e2e-tests/path-prefix/package.json
  20. +125 −121 e2e-tests/production-runtime/cypress/integration/remote-file.js
  21. +7 −5 e2e-tests/production-runtime/cypress/integration/static-image/traced.js
  22. +2 −2 e2e-tests/production-runtime/gatsby-config.js
  23. +4 −4 e2e-tests/production-runtime/gatsby-script-scripts.js
  24. +19 −17 e2e-tests/production-runtime/package.json
  25. +0 −1 e2e-tests/production-runtime/playwright.config.ts
  26. +12 −3 e2e-tests/production-runtime/playwright/gatsby-script-off-main-thread.spec.ts
  27. +36 −0 e2e-tests/production-runtime/serve-static-files.mjs
  28. +3 −0 e2e-tests/production-runtime/static/j-query.js
  29. +5 −0 e2e-tests/production-runtime/static/marked.js
  30. +3 −0 e2e-tests/production-runtime/static/popper.js
  31. +5 −0 e2e-tests/production-runtime/static/three.js
  32. +3 −3 e2e-tests/themes/development-runtime/package.json
  33. +2 −2 e2e-tests/themes/gatsby-theme-about/package.json
  34. +3 −3 e2e-tests/themes/production-runtime/package.json
  35. +2 −2 e2e-tests/trailing-slash/package.json
  36. +6 −6 e2e-tests/visual-regression/package.json
  37. +1 −0 examples/using-contentful/package.json
  38. +1 −1 integration-tests/artifacts/package.json
  39. +2 −2 integration-tests/functions/package.json
  40. +6 −2 integration-tests/gatsby-cli/__tests__/new.js
  41. +4 −4 integration-tests/gatsby-cli/package.json
  42. +53 −39 integration-tests/gatsby-source-wordpress/__tests__/__snapshots__/index.js.snap
  43. +40 −0 integration-tests/gatsby-source-wordpress/__tests__/index.js
  44. +1 −0 integration-tests/gatsby-source-wordpress/gatsby-config.js
  45. +6 −6 integration-tests/gatsby-source-wordpress/package.json
  46. +0 −2 integration-tests/gatsby-source-wordpress/test-fns/test-utils/queries.js
  47. +1 −1 integration-tests/head-function-export/package.json
  48. +6 −6 integration-tests/images/package.json
  49. +1 −1 integration-tests/long-term-caching/package.json
  50. +1 −1 integration-tests/node-manifest/package.json
  51. +3 −3 integration-tests/ssr/package.json
  52. +1 −1 integration-tests/structured-logging/package.json
  53. +1 −1 package.json
  54. +3 −3 packages/babel-plugin-remove-graphql-queries/package.json
  55. +1 −1 packages/babel-preset-gatsby-package/package.json
  56. +4 −4 packages/babel-preset-gatsby/package.json
  57. +2 −2 packages/create-gatsby/package.json
  58. +5 −5 packages/gatsby-cli/package.json
  59. +2 −2 packages/gatsby-codemods/package.json
  60. +2 −2 packages/gatsby-core-utils/package.json
  61. +2 −2 packages/gatsby-cypress/package.json
  62. +1 −1 packages/gatsby-design-tokens/package.json
  63. +2 −2 packages/gatsby-dev-cli/package.json
  64. +2 −2 packages/gatsby-graphiql-explorer/package.json
  65. +1 −1 packages/gatsby-legacy-polyfills/package.json
  66. +2 −2 packages/gatsby-link/package.json
  67. +3 −3 packages/gatsby-page-utils/package.json
  68. +2 −2 packages/gatsby-parcel-config/package.json
  69. +3 −3 packages/gatsby-parcel-namer-relative-to-cwd/package.json
  70. +3 −3 packages/gatsby-plugin-benchmark-reporting/package.json
  71. +2 −2 packages/gatsby-plugin-canonical-urls/package.json
  72. +2 −2 packages/gatsby-plugin-catch-links/package.json
  73. +2 −2 packages/gatsby-plugin-coffeescript/package.json
  74. +3 −3 packages/gatsby-plugin-cxs/package.json
  75. +2 −2 packages/gatsby-plugin-emotion/package.json
  76. +2 −2 packages/gatsby-plugin-facebook-analytics/package.json
  77. +3 −3 packages/gatsby-plugin-feed/package.json
  78. +3 −3 packages/gatsby-plugin-flow/package.json
  79. +2 −2 packages/gatsby-plugin-fullstory/package.json
  80. +4 −4 packages/gatsby-plugin-gatsby-cloud/package.json
  81. +2 −2 packages/gatsby-plugin-google-analytics/package.json
  82. +2 −2 packages/gatsby-plugin-google-gtag/package.json
  83. +3 −3 packages/gatsby-plugin-google-tagmanager/package.json
  84. +4 −4 packages/gatsby-plugin-image/package.json
  85. +3 −3 packages/gatsby-plugin-image/src/resolver-utils.ts
  86. +2 −2 packages/gatsby-plugin-jss/package.json
  87. +2 −2 packages/gatsby-plugin-layout/package.json
  88. +2 −2 packages/gatsby-plugin-less/package.json
  89. +2 −2 packages/gatsby-plugin-lodash/package.json
  90. +4 −4 packages/gatsby-plugin-manifest/package.json
  91. +4 −4 packages/gatsby-plugin-mdx/package.json
  92. +2 −2 packages/gatsby-plugin-netlify-cms/package.json
  93. +1 −1 packages/gatsby-plugin-no-sourcemaps/package.json
  94. +2 −2 packages/gatsby-plugin-nprogress/package.json
  95. +4 −4 packages/gatsby-plugin-offline/package.json
  96. +6 −6 packages/gatsby-plugin-page-creator/package.json
  97. +2 −2 packages/gatsby-plugin-postcss/package.json
  98. +2 −2 packages/gatsby-plugin-preact/package.json
  99. +3 −3 packages/gatsby-plugin-preload-fonts/package.json
  100. +2 −2 packages/gatsby-plugin-react-css-modules/package.json
  101. +2 −2 packages/gatsby-plugin-react-helmet/package.json
  102. +3 −3 packages/gatsby-plugin-sass/package.json
  103. +1 −1 packages/gatsby-plugin-schema-snapshot/package.json
  104. +6 −9 packages/gatsby-plugin-sharp/package.json
  105. +4 −4 packages/gatsby-plugin-sharp/src/__tests__/__snapshots__/index.js.snap
  106. +9 −3 packages/gatsby-plugin-sharp/src/__tests__/index.js
  107. +0 −270 packages/gatsby-plugin-sharp/src/__tests__/trace-svg.js
  108. +12 −1 packages/gatsby-plugin-sharp/src/image-data.ts
  109. +44 −28 packages/gatsby-plugin-sharp/src/index.js
  110. +0 −187 packages/gatsby-plugin-sharp/src/trace-svg.js
  111. +3 −3 packages/gatsby-plugin-sitemap/package.json
  112. +2 −2 packages/gatsby-plugin-styled-components/package.json
  113. +2 −2 packages/gatsby-plugin-styled-jsx/package.json
  114. +2 −2 packages/gatsby-plugin-styletron/package.json
  115. +2 −2 packages/gatsby-plugin-stylus/package.json
  116. +2 −2 packages/gatsby-plugin-subfont/package.json
  117. +3 −3 packages/gatsby-plugin-twitter/package.json
  118. +3 −3 packages/gatsby-plugin-typescript/package.json
  119. +2 −2 packages/gatsby-plugin-typography/package.json
  120. +5 −8 packages/gatsby-plugin-utils/package.json
  121. +6 −6 packages/gatsby-plugin-utils/src/polyfill-remote-file/__tests__/gatsby-image-resolver.ts
  122. +12 −3 packages/gatsby-plugin-utils/src/polyfill-remote-file/graphql/gatsby-image-resolver.ts
  123. +14 −70 packages/gatsby-plugin-utils/src/polyfill-remote-file/placeholder-handler.ts
  124. +2 −2 packages/gatsby-react-router-scroll/package.json
  125. +3 −3 packages/gatsby-remark-autolink-headers/package.json
  126. +2 −2 packages/gatsby-remark-code-repls/package.json
  127. +2 −2 packages/gatsby-remark-copy-linked-files/package.json
  128. +2 −2 packages/gatsby-remark-custom-blocks/package.json
  129. +2 −2 packages/gatsby-remark-embed-snippet/package.json
  130. +2 −2 packages/gatsby-remark-graphviz/package.json
  131. +2 −2 packages/gatsby-remark-images-contentful/package.json
  132. +4 −5 packages/gatsby-remark-images/package.json
  133. +31 −31 packages/gatsby-remark-images/src/__tests__/__snapshots__/index.js.snap
  134. +113 −57 packages/gatsby-remark-images/src/__tests__/gatsby-node.js
  135. +2 −12 packages/gatsby-remark-images/src/__tests__/index.js
  136. +17 −15 packages/gatsby-remark-images/src/gatsby-node.js
  137. +1 −26 packages/gatsby-remark-images/src/index.js
  138. +2 −2 packages/gatsby-remark-katex/package.json
  139. +2 −2 packages/gatsby-remark-prismjs/package.json
  140. +2 −2 packages/gatsby-remark-responsive-iframe/package.json
  141. +2 −2 packages/gatsby-remark-smartypants/package.json
  142. +1 −1 packages/gatsby-script/package.json
  143. +1 −1 packages/gatsby-sharp/package.json
  144. +5 −5 packages/gatsby-source-contentful/package.json
  145. +4 −10 packages/gatsby-source-contentful/src/__tests__/__snapshots__/gatsby-plugin-image.js.snap
  146. +6 −7 packages/gatsby-source-contentful/src/__tests__/gatsby-plugin-image.js
  147. +12 −5 packages/gatsby-source-contentful/src/gatsby-plugin-image.js
  148. +23 −0 packages/gatsby-source-drupal/README.md
  149. +4 −4 packages/gatsby-source-drupal/package.json
  150. +41 −1 packages/gatsby-source-drupal/src/__tests__/index.js
  151. +9 −0 packages/gatsby-source-drupal/src/gatsby-node.js
  152. +2 −2 packages/gatsby-source-faker/package.json
  153. +3 −3 packages/gatsby-source-filesystem/package.json
  154. +3 −3 packages/gatsby-source-graphql/package.json
  155. +2 −2 packages/gatsby-source-hacker-news/package.json
  156. +2 −2 packages/gatsby-source-lever/package.json
  157. +2 −2 packages/gatsby-source-medium/package.json
  158. +2 −2 packages/gatsby-source-mongodb/package.json
  159. +2 −2 packages/gatsby-source-npm-package-search/package.json
  160. +6 −6 packages/gatsby-source-shopify/__tests__/__snapshots__/create-resolvers.ts.snap
  161. +5 −5 packages/gatsby-source-shopify/package.json
  162. +2 −2 packages/gatsby-source-wikipedia/package.json
  163. +21 −0 packages/gatsby-source-wordpress/docs/plugin-options.md
  164. +8 −8 packages/gatsby-source-wordpress/package.json
  165. +2 −2 packages/gatsby-source-wordpress/src/models/remoteSchema.ts
  166. +15 −67 packages/gatsby-source-wordpress/src/steps/create-schema-customization/build-types.js
  167. +169 −23 packages/gatsby-source-wordpress/src/steps/create-schema-customization/helpers.js
  168. +9 −6 packages/gatsby-source-wordpress/src/steps/create-schema-customization/index.js
  169. +3 −3 ...atsby-source-wordpress/src/steps/create-schema-customization/transform-fields/default-resolver.js
  170. +37 −14 ...sby-source-wordpress/src/steps/create-schema-customization/transform-fields/field-transformers.js
  171. +25 −20 packages/gatsby-source-wordpress/src/steps/create-schema-customization/transform-fields/index.js
  172. +6 −4 ...atsby-source-wordpress/src/steps/create-schema-customization/transform-fields/transform-object.js
  173. +3 −2 ...gatsby-source-wordpress/src/steps/create-schema-customization/transform-fields/transform-union.js
  174. +0 −14 packages/gatsby-source-wordpress/src/steps/create-schema-customization/type-filters.js
  175. +14 −0 packages/gatsby-source-wordpress/src/steps/declare-plugin-options-schema.js
  176. +1 −1 ...e-wordpress/src/steps/ingest-remote-schema/build-queries-from-introspection/build-node-queries.js
  177. +2 −2 ...ress/src/steps/ingest-remote-schema/build-queries-from-introspection/build-query-on-field-name.js
  178. +10 −1 ...s/ingest-remote-schema/build-queries-from-introspection/generate-queries-from-ingestable-types.js
  179. +24 −37 ...s/src/steps/ingest-remote-schema/build-queries-from-introspection/recursively-transform-fields.js
  180. +60 −31 ...ges/gatsby-source-wordpress/src/steps/ingest-remote-schema/identify-and-store-ingestable-types.js
  181. +21 −10 packages/gatsby-source-wordpress/src/steps/ingest-remote-schema/is-excluded.js
  182. +9 −1 packages/gatsby-source-wordpress/src/steps/ingest-remote-schema/write-queries-to-disk.js
  183. +1 −0 packages/gatsby-source-wordpress/src/steps/source-nodes/create-nodes/create-local-file-node.js
  184. +2 −1 packages/gatsby-source-wordpress/src/steps/source-nodes/create-nodes/process-node.js
  185. +22 −1 packages/gatsby-source-wordpress/src/steps/source-nodes/fetch-nodes/fetch-nodes.js
  186. +10 −1 packages/gatsby-source-wordpress/src/steps/source-nodes/fetch-nodes/fetch-referenced-media-items.js
  187. +2 −1 packages/gatsby-source-wordpress/src/steps/source-nodes/helpers.js
  188. +3 −3 packages/gatsby-telemetry/package.json
  189. +2 −2 packages/gatsby-transformer-asciidoc/package.json
  190. +2 −2 packages/gatsby-transformer-csv/package.json
  191. +2 −2 packages/gatsby-transformer-documentationjs/package.json
  192. +2 −2 packages/gatsby-transformer-excel/package.json
  193. +2 −2 packages/gatsby-transformer-hjson/package.json
  194. +2 −2 packages/gatsby-transformer-javascript-frontmatter/package.json
  195. +2 −2 packages/gatsby-transformer-javascript-static-exports/package.json
  196. +2 −2 packages/gatsby-transformer-json/package.json
  197. +2 −2 packages/gatsby-transformer-pdf/package.json
  198. +2 −2 packages/gatsby-transformer-react-docgen/package.json
  199. +4 −4 packages/gatsby-transformer-remark/package.json
  200. +2 −2 packages/gatsby-transformer-screenshot/package.json
  201. +3 −4 packages/gatsby-transformer-sharp/package.json
  202. +49 −30 packages/gatsby-transformer-sharp/src/customize-schema.js
  203. +6 −7 packages/gatsby-transformer-sharp/src/types.ts
  204. +4 −4 packages/gatsby-transformer-sqip/package.json
  205. +2 −2 packages/gatsby-transformer-toml/package.json
  206. +2 −2 packages/gatsby-transformer-xml/package.json
  207. +2 −2 packages/gatsby-transformer-yaml/package.json
  208. +2 −2 packages/gatsby-worker/package.json
  209. +20 −19 packages/gatsby/package.json
  210. +9 −9 packages/gatsby/src/schema/__tests__/__snapshots__/print.js.snap
  211. +5 −0 packages/gatsby/src/schema/__tests__/fixtures/node-model.js
  212. +49 −0 packages/gatsby/src/schema/__tests__/node-model.js
  213. +9 −0 packages/gatsby/src/schema/graphql-engine/bundle-webpack.ts
  214. +1 −0 packages/gatsby/src/schema/graphql-engine/shims/no-op-module.js
  215. +48 −17 packages/gatsby/src/schema/node-model.js
  216. +2 −0 packages/gatsby/src/services/initialize.ts
  217. +23 −0 packages/gatsby/src/utils/page-data.ts
  218. +3 −3 scripts/assert-changed-files.sh
  219. +2 −14 yarn.lock
Original file line number Diff line number Diff line change
@@ -78,7 +78,7 @@ describe(`gatsby-plugin-image`, () => {
testGatsbyPluginImage(`dominant-color`, hasColorPlaceholder)
)
it(`traced`, testConfig, () =>
testGatsbyPluginImage(`traced`, hasSVGPlaceholder)
testGatsbyPluginImage(`traced`, hasColorPlaceholder)
)
it(`blurred`, testConfig, () =>
testGatsbyPluginImage(`blurred`, hasBase64Placeholder)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 8 additions & 8 deletions e2e-tests/contentful/package.json
Original file line number Diff line number Diff line change
@@ -5,13 +5,13 @@
"author": "Kyle Mathews <mathews.kyle@gmail.com>",
"dependencies": {
"@contentful/rich-text-types": "^14.1.2",
"gatsby": "next",
"gatsby-plugin-image": "next",
"gatsby-plugin-sharp": "next",
"gatsby-source-contentful": "next",
"gatsby-transformer-remark": "next",
"gatsby-transformer-sharp": "next",
"gatsby-transformer-sqip": "next",
"gatsby": "^4",
"gatsby-plugin-image": "^2",
"gatsby-plugin-sharp": "^4",
"gatsby-source-contentful": "^7",
"gatsby-transformer-remark": "^5",
"gatsby-transformer-sharp": "^4",
"gatsby-transformer-sqip": "^4",
"modern-normalize": "^1.0.0",
"prop-types": "^15.7.2",
"react": "^17.0.2",
@@ -23,7 +23,7 @@
"cross-env": "^7.0.3",
"cypress": "^9.7.0",
"cypress-image-snapshot": "^4.0.1",
"gatsby-cypress": "next",
"gatsby-cypress": "^2",
"prettier": "^2.6.2",
"srcset": "^5.0.0",
"start-server-and-test": "^1.7.1"
2 changes: 1 addition & 1 deletion e2e-tests/contentful/snapshots.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion e2e-tests/contentful/src/pages/gatsby-plugin-image.js
Original file line number Diff line number Diff line change
@@ -94,7 +94,9 @@ const GatsbyPluginImagePage = ({ data }) => {
))}
</Grid>

<h2>gatsby-plugin-image: Traced SVG Placeholder</h2>
<h2>
gatsby-plugin-image: Traced SVG Placeholder (fallback to DOMINANT_COLOR)
</h2>
<Grid data-cy="traced">
{data.default.nodes.map(node => (
<div key={node.title}>
Original file line number Diff line number Diff line change
@@ -126,8 +126,9 @@ describe(`remote-file`, () => {
cy.get(".constrained_traced [data-placeholder-image]")
.first()
.should($el => {
expect($el.prop("tagName")).to.be.equal("IMG")
expect($el.prop("src")).to.contain("data:image/svg+xml,%3csvg")
// traced falls back to DOMINANT_COLOR
expect($el.prop("tagName")).to.be.equal("DIV")
expect($el).to.be.empty
})
cy.get(".full [data-placeholder-image]")
.first()
Original file line number Diff line number Diff line change
@@ -5,12 +5,14 @@ describe(`fixed`, () => {
cy.visit(`/static-image/traced`).waitForRouteChange()
})

it(`renders a traced svg`, () => {
it(`traced svg (falls back to DOMINANT_COLOR)`, () => {
cy.getTestElement(tracedTestId)
.find(`.gatsby-image-wrapper > img`)
.should(`have.attr`, `src`)
.and(src => {
;[`data:image/svg+xml`].forEach(part => expect(src).to.include(part))
.find(`.gatsby-image-wrapper > [data-placeholder-image]`)
.first()
.should($el => {
// traced falls
expect($el.prop("tagName")).to.be.equal("DIV")
expect($el).to.be.empty
})
})

4 changes: 2 additions & 2 deletions e2e-tests/development-runtime/gatsby-config.js
Original file line number Diff line number Diff line change
@@ -70,7 +70,7 @@ module.exports = {
// 'gatsby-plugin-offline',
],
partytownProxiedURLs: [
`https://unpkg.com/three@0.139.1/build/three.js`,
`http://localhost:8000/used-by-off-main-thread-2.js`,
`http://localhost:8888/three.js`,
`http://localhost:8000/used-by-off-main-thread-2.js`, // Meant to be same site
],
}
8 changes: 4 additions & 4 deletions e2e-tests/development-runtime/gatsby-script-scripts.js
Original file line number Diff line number Diff line change
@@ -6,10 +6,10 @@ export const script = {
}

export const scripts = {
[script.three]: `https://cdnjs.cloudflare.com/ajax/libs/three.js/0.144.0/three.min.js`,
[script.marked]: `https://cdn.jsdelivr.net/npm/marked/marked.min.js`,
[script.jQuery]: `https://code.jquery.com/jquery-3.4.1.min.js`,
[script.popper]: `https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js`,
[script.three]: `http://localhost:8888/three.js`,
[script.marked]: `http://localhost:8888/marked.js`,
[script.jQuery]: `http://localhost:8888/j-query.js`,
[script.popper]: `http://localhost:8888/popper.js`,
}

export const scriptStrategyIndex = {
42 changes: 22 additions & 20 deletions e2e-tests/development-runtime/package.json
Original file line number Diff line number Diff line change
@@ -5,20 +5,20 @@
"author": "Dustin Schau <dustin@gatsbyjs.com>",
"dependencies": {
"babel-plugin-search-and-replace": "^1.1.0",
"gatsby": "next",
"gatsby-image": "next",
"gatsby-plugin-image": "next",
"gatsby-plugin-less": "next",
"gatsby-plugin-manifest": "next",
"gatsby-plugin-offline": "next",
"gatsby-plugin-sass": "next",
"gatsby-plugin-sharp": "next",
"gatsby-plugin-stylus": "next",
"gatsby-remark-images": "next",
"gatsby-source-filesystem": "next",
"gatsby-transformer-json": "next",
"gatsby-transformer-remark": "next",
"gatsby-transformer-sharp": "next",
"gatsby": "^4",
"gatsby-image": "^3",
"gatsby-plugin-image": "^2",
"gatsby-plugin-less": "^6",
"gatsby-plugin-manifest": "^4",
"gatsby-plugin-offline": "^5",
"gatsby-plugin-sass": "^5",
"gatsby-plugin-sharp": "^4",
"gatsby-plugin-stylus": "^4",
"gatsby-remark-images": "^6",
"gatsby-source-filesystem": "^4",
"gatsby-transformer-json": "^4",
"gatsby-transformer-remark": "^5",
"gatsby-transformer-sharp": "^4",
"node-fetch": "^2.6.1",
"prop-types": "^15.6.2",
"react": "^17.0.2",
@@ -33,6 +33,7 @@
"scripts": {
"build": "gatsby build",
"develop": "cross-env CYPRESS_SUPPORT=y ENABLE_GATSBY_REFRESH_ENDPOINT=true GATSBY_EXPERIMENTAL_QUERY_ON_DEMAND=y gatsby develop",
"serve-static-files": "node ./serve-static-files.mjs",
"serve": "gatsby serve",
"clean": "gatsby clean",
"typecheck": "tsc --noEmit",
@@ -46,14 +47,14 @@
"update:webhook": "node scripts/webhook.js",
"update:cms-webhook": "node scripts/cms-webhook.js",
"update:preview": "curl -X POST -d \"{ \\\"fake-data-update\\\": true }\" -H \"Content-Type: application/json\" http://localhost:8000/__refresh",
"start-server-and-test": "start-server-and-test develop http://localhost:8000 combined",
"start-server-and-test:locally": "start-server-and-test develop http://localhost:8000 cy:open",
"start-server-and-test": "start-server-and-test develop http://localhost:8000 serve-static-files http://localhost:8888 combined",
"start-server-and-test:locally": "start-server-and-test develop http://localhost:8000 serve-static-files http://localhost:8888 cy:open",
"cy:open": "cypress open",
"cy:run": "node ../../scripts/cypress-run-with-conditional-record-flag.js --browser chrome",
"playwright": "playwright test --project=chromium",
"playwright:debug": "playwright test --project=chromium --debug",
"start-server-and-test:playwright": "start-server-and-test develop http://localhost:8000 playwright",
"start-server-and-test:playwright-debug": "start-server-and-test develop http://localhost:8000 playwright:debug",
"start-server-and-test:playwright": "start-server-and-test develop http://localhost:8000 serve-static-files http://localhost:8888 playwright",
"start-server-and-test:playwright-debug": "start-server-and-test develop http://localhost:8000 serve-static-files http://localhost:8888 playwright:debug",
"combined": "npm run playwright && npm run cy:run",
"postinstall": "playwright install chromium"
},
@@ -63,9 +64,10 @@
"cross-env": "^5.2.0",
"cypress": "^9.7.0",
"cypress-image-snapshot": "^4.0.1",
"express": "^4.18.1",
"fs-extra": "^7.0.1",
"gatsby-core-utils": "next",
"gatsby-cypress": "next",
"gatsby-core-utils": "^3",
"gatsby-cypress": "^2",
"is-ci": "^2.0.0",
"prettier": "2.0.4",
"start-server-and-test": "^1.7.11",
1 change: 0 additions & 1 deletion e2e-tests/development-runtime/playwright.config.ts
Original file line number Diff line number Diff line change
@@ -44,7 +44,6 @@ const config: PlaywrightTestConfig = {
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
trace: "on-first-retry",
},

/* Configure projects for major browsers */
projects: [
{
Original file line number Diff line number Diff line change
@@ -21,7 +21,10 @@ test.describe(`off-main-thread scripts`, () => {
const templateLiteral = page.locator(`[id=${id.templateLiteral}]`)
const dangerouslySet = page.locator(`[id=${id.dangerouslySet}]`)

await expect(partytownSnippet).toContainText(/THREE/) // Forwards configured
// Unsure why this locator appears to behave differently, get text content to compare directly
const partytownSnippetText = await partytownSnippet.textContent()
expect(partytownSnippetText).toMatch(/THREE/) // Forwards configured

await expect(templateLiteral).toHaveText(`${id.templateLiteral}: success`) // Template literal inline scripts loaded
await expect(dangerouslySet).toHaveText(`${id.dangerouslySet}: success`) // Dangerously set inline scripts loaded
await expect(scriptWithSrc).toHaveAttribute(`type`, `text/partytown-x`) // Scripts with sources loaded
@@ -39,7 +42,10 @@ test.describe(`off-main-thread scripts`, () => {
const templateLiteral = page.locator(`[id=${id.templateLiteral}]`)
const dangerouslySet = page.locator(`[id=${id.dangerouslySet}]`)

await expect(partytownSnippet).toContainText(/THREE/) // Forwards configured
// Unsure why this locator appears to behave differently, get text content to compare directly
const partytownSnippetText = await partytownSnippet.textContent()
expect(partytownSnippetText).toMatch(/THREE/) // Forwards configured

await expect(templateLiteral).toHaveText(`${id.templateLiteral}: success`) // Template literal inline scripts loaded
await expect(dangerouslySet).toHaveText(`${id.dangerouslySet}: success`) // Dangerously set inline scripts loaded
await expect(scriptWithSrc).toHaveAttribute(`type`, `text/partytown-x`) // Scripts with sources loaded, use `type` attr Partytown mutates on success as proxy
@@ -57,7 +63,10 @@ test.describe(`off-main-thread scripts`, () => {
const dangerouslySet = page.locator(`[id=${id.dangerouslySet}-2]`)
const scriptWithSrc = page.locator(`[id=${id.scriptWithSrc}]`)

await expect(partytownSnippet).toContainText(/some-other-forward/) // Forwards configured
// Unsure why this locator appears to behave differently, get text content to compare directly
const partytownSnippetText = await partytownSnippet.textContent()
expect(partytownSnippetText).toMatch(/some-other-forward/) // Forwards configured

await expect(templateLiteral).toHaveText(`${id.templateLiteral}-2: success`) // Template literal inline scripts loaded
await expect(dangerouslySet).toHaveText(`${id.dangerouslySet}-2: success`) // Dangerously set inline scripts loaded
await expect(scriptWithSrc).toHaveText(`${id.scriptWithSrc}: success`) // Scripts with sources loaded
36 changes: 36 additions & 0 deletions e2e-tests/development-runtime/serve-static-files.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
import express from "express"
import fs from "fs-extra"

/**
* Statically serve assets from `static` folder for tests. Reasons:
*
* - Making requests to third-party services we don't own can cause flakiness if the service has issues
* - Making requests to the same site as the test doesn't simulate real behavior as well as a separate site
*/

const app = express()
const port = 8888

app.use(express.static(`static`))

app.get(`/`, (_, res) => {
const staticFiles = fs.readdirSync(`static`)

const staticFilesHTML = staticFiles
.map(file => `<li><a href="${file}">${file}</a></li>`)
.join(``)

res.send(
`
This is a static file server for tests. It serves files from the <code>static</code> folder.
Files include:
\n<ul>${staticFilesHTML}</ul>
`
)
})

app.listen(port, () => {
console.info(
`Static file server is serving files from \`static\` and available at http://localhost:${port}`
)
})
3 changes: 3 additions & 0 deletions e2e-tests/development-runtime/static/j-query.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
;(() => {
window.jQuery = () => `It loaded`
})()
5 changes: 5 additions & 0 deletions e2e-tests/development-runtime/static/marked.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
;(() => {
window.marked = {
it: `loaded`,
}
})()
3 changes: 3 additions & 0 deletions e2e-tests/development-runtime/static/popper.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
;(() => {
window.Popper = () => `It loaded`
})()
5 changes: 5 additions & 0 deletions e2e-tests/development-runtime/static/three.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
;(() => {
window.THREE = {
it: `loaded`,
}
})()
14 changes: 7 additions & 7 deletions e2e-tests/mdx/package.json
Original file line number Diff line number Diff line change
@@ -7,13 +7,13 @@
"@sindresorhus/slugify": "^1.0.0",
"cypress": "^9.7.0",
"fs-extra": "^8.1.0",
"gatsby": "next",
"gatsby-plugin-mdx": "next",
"gatsby-plugin-sharp": "next",
"gatsby": "^4",
"gatsby-plugin-mdx": "^4",
"gatsby-plugin-sharp": "^4",
"gatsby-plugin-webpack-bundle-analyser-v2": "^1.1.27",
"gatsby-remark-autolink-headers": "next",
"gatsby-remark-images": "next",
"gatsby-source-filesystem": "next",
"gatsby-remark-autolink-headers": "^5",
"gatsby-remark-images": "^6",
"gatsby-source-filesystem": "^4",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"theme-ui": "^0.3.1"
@@ -42,7 +42,7 @@
},
"devDependencies": {
"cross-env": "^5.2.0",
"gatsby-cypress": "next",
"gatsby-cypress": "^2",
"is-ci": "^2.0.0",
"prettier": "2.0.4",
"start-server-and-test": "^1.7.1"
20 changes: 10 additions & 10 deletions e2e-tests/path-prefix/package.json
Original file line number Diff line number Diff line change
@@ -5,15 +5,15 @@
"author": "Kyle Mathews <mathews.kyle@gmail.com>",
"dependencies": {
"cypress": "^9.7.0",
"gatsby": "next",
"gatsby-plugin-feed": "next",
"gatsby-plugin-image": "next",
"gatsby-plugin-manifest": "next",
"gatsby-plugin-offline": "next",
"gatsby-plugin-sharp": "next",
"gatsby-plugin-sitemap": "next",
"gatsby-source-filesystem": "next",
"gatsby-transformer-sharp": "next",
"gatsby": "^4",
"gatsby-plugin-feed": "^4",
"gatsby-plugin-image": "^2",
"gatsby-plugin-manifest": "^4",
"gatsby-plugin-offline": "^5",
"gatsby-plugin-sharp": "^4",
"gatsby-plugin-sitemap": "^5",
"gatsby-source-filesystem": "^4",
"gatsby-transformer-sharp": "^4",
"http-proxy": "^1.18.1",
"react": "^17.0.2",
"react-dom": "^17.0.2"
@@ -40,7 +40,7 @@
"cpy-cli": "^2.0.0",
"cross-env": "^5.2.0",
"del-cli": "^3.0.0",
"gatsby-cypress": "next",
"gatsby-cypress": "^2",
"is-ci": "^2.0.0",
"make-dir-cli": "^2.0.0",
"npm-run-all": "^4.1.5",
Loading