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: 715739c81824862bcf724ea581a9408fa357a27c
Choose a base ref
...
head repository: gatsbyjs/gatsby
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 808f32ff1506297af5daeef1dd9907f3e1ec47a1
Choose a head ref

Commits on Jun 18, 2021

  1. chore(release): Publish next pre-minor

     - babel-plugin-remove-graphql-queries@3.9.0-next.0
     - babel-preset-gatsby-package@1.9.0-next.0
     - babel-preset-gatsby@1.9.0-next.0
     - create-gatsby@1.9.0-next.0
     - gatsby-admin@0.19.0-next.0
     - gatsby-cli@3.9.0-next.0
     - gatsby-codemods@2.9.0-next.0
     - gatsby-core-utils@2.9.0-next.0
     - gatsby-cypress@1.9.0-next.0
     - gatsby-design-tokens@3.9.0-next.0
     - gatsby-dev-cli@3.9.0-next.0
     - gatsby-graphiql-explorer@1.9.0-next.0
     - gatsby-image@3.9.0-next.0
     - gatsby-legacy-polyfills@1.9.0-next.0
     - gatsby-link@3.9.0-next.0
     - gatsby-page-utils@1.9.0-next.0
     - gatsby-plugin-benchmark-reporting@1.9.0-next.0
     - gatsby-plugin-canonical-urls@3.9.0-next.0
     - gatsby-plugin-catch-links@3.9.0-next.0
     - gatsby-plugin-coffeescript@3.9.0-next.0
     - gatsby-plugin-create-client-paths@3.9.0-next.0
     - gatsby-plugin-cxs@3.9.0-next.0
     - gatsby-plugin-emotion@6.9.0-next.0
     - gatsby-plugin-facebook-analytics@3.9.0-next.0
     - gatsby-plugin-feed@3.9.0-next.0
     - gatsby-plugin-flow@2.9.0-next.0
     - gatsby-plugin-fullstory@3.9.0-next.0
     - gatsby-plugin-gatsby-cloud@2.9.0-next.0
     - gatsby-plugin-glamor@3.9.0-next.0
     - gatsby-plugin-google-analytics@3.9.0-next.0
     - gatsby-plugin-google-gtag@3.9.0-next.0
     - gatsby-plugin-google-tagmanager@3.9.0-next.0
     - gatsby-plugin-graphql-config@0.18.0-next.0
     - gatsby-plugin-image@1.9.0-next.0
     - gatsby-plugin-jss@3.9.0-next.0
     - gatsby-plugin-layout@2.9.0-next.0
     - gatsby-plugin-less@5.9.0-next.0
     - gatsby-plugin-lodash@4.9.0-next.0
     - gatsby-plugin-manifest@3.9.0-next.0
     - gatsby-plugin-mdx@2.9.0-next.0
     - gatsby-plugin-netlify-cms@5.9.0-next.0
     - gatsby-plugin-netlify@3.9.0-next.0
     - gatsby-plugin-no-sourcemaps@3.9.0-next.0
     - gatsby-plugin-nprogress@3.9.0-next.0
     - gatsby-plugin-offline@4.9.0-next.0
     - gatsby-plugin-page-creator@3.9.0-next.0
     - gatsby-plugin-postcss@4.9.0-next.0
     - gatsby-plugin-preact@5.9.0-next.0
     - gatsby-plugin-preload-fonts@2.9.0-next.0
     - gatsby-plugin-react-css-modules@3.9.0-next.0
     - gatsby-plugin-react-helmet@4.9.0-next.0
     - gatsby-plugin-remove-trailing-slashes@3.9.0-next.0
     - gatsby-plugin-sass@4.9.0-next.0
     - gatsby-plugin-schema-snapshot@2.9.0-next.0
     - gatsby-plugin-sharp@3.9.0-next.0
     - gatsby-plugin-sitemap@4.5.0-next.0
     - gatsby-plugin-styled-components@4.9.0-next.0
     - gatsby-plugin-styled-jsx@4.9.0-next.0
     - gatsby-plugin-styletron@6.9.0-next.0
     - gatsby-plugin-stylus@3.9.0-next.0
     - gatsby-plugin-subfont@3.9.0-next.0
     - gatsby-plugin-twitter@3.9.0-next.0
     - gatsby-plugin-typescript@3.9.0-next.0
     - gatsby-plugin-typography@3.9.0-next.0
     - gatsby-plugin-utils@1.9.0-next.0
     - gatsby-react-router-scroll@4.9.0-next.0
     - gatsby-recipes@0.20.0-next.0
     - gatsby-remark-autolink-headers@4.6.0-next.0
     - gatsby-remark-code-repls@5.6.0-next.0
     - gatsby-remark-copy-linked-files@4.6.0-next.0
     - gatsby-remark-custom-blocks@3.9.0-next.0
     - gatsby-remark-embed-snippet@6.6.0-next.0
     - gatsby-remark-graphviz@3.6.0-next.0
     - gatsby-remark-images-contentful@4.6.0-next.0
     - gatsby-remark-images@5.6.0-next.0
     - gatsby-remark-katex@5.6.0-next.0
     - gatsby-remark-prismjs@5.6.0-next.0
     - gatsby-remark-responsive-iframe@4.6.0-next.0
     - gatsby-remark-smartypants@4.6.0-next.0
     - gatsby-source-contentful@5.9.0-next.0
     - gatsby-source-drupal@4.9.0-next.0
     - gatsby-source-faker@3.9.0-next.0
     - gatsby-source-filesystem@3.9.0-next.0
     - gatsby-source-graphql@3.9.0-next.0
     - gatsby-source-hacker-news@3.9.0-next.0
     - gatsby-source-lever@3.9.0-next.0
     - gatsby-source-medium@3.9.0-next.0
     - gatsby-source-mongodb@3.9.0-next.0
     - gatsby-source-npm-package-search@3.9.0-next.0
     - gatsby-source-shopify@5.1.0-next.0
     - gatsby-source-wikipedia@3.9.0-next.0
     - gatsby-source-wordpress@5.9.0-next.0
     - gatsby-telemetry@2.9.0-next.0
     - gatsby-transformer-asciidoc@2.9.0-next.0
     - gatsby-transformer-csv@3.9.0-next.0
     - gatsby-transformer-documentationjs@5.9.0-next.0
     - gatsby-transformer-excel@3.9.0-next.0
     - gatsby-transformer-hjson@3.9.0-next.0
     - gatsby-transformer-javascript-frontmatter@3.9.0-next.0
     - gatsby-transformer-javascript-static-exports@3.9.0-next.0
     - gatsby-transformer-json@3.9.0-next.0
     - gatsby-transformer-pdf@2.9.0-next.0
     - gatsby-transformer-react-docgen@6.9.0-next.0
     - gatsby-transformer-remark@4.6.0-next.0
     - gatsby-transformer-screenshot@3.9.0-next.0
     - gatsby-transformer-sharp@3.9.0-next.0
     - gatsby-transformer-sqip@3.9.0-next.0
     - gatsby-transformer-toml@3.9.0-next.0
     - gatsby-transformer-xml@3.9.0-next.0
     - gatsby-transformer-yaml@3.9.0-next.0
     - gatsby@3.9.0-next.0
    vladar committed Jun 18, 2021
    Copy the full SHA
    33f0feb View commit details
  2. feat(gatsby): PQR worker can create schema (#31919)

    Co-authored-by: gatsbybot <mathews.kyle+gatsbybot@gmail.com>
    Co-authored-by: Michal Piechowiak <misiek.piechowiak@gmail.com>
    3 people authored Jun 18, 2021

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    308eb94 View commit details

Commits on Jun 21, 2021

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    c895504 View commit details
  2. chore: Ignore transpiled files in -gatsby-cloud and -preact during es…

    …lint (#31995)
    
    * Ignoring gatsby-plugin-gatsby-cloud and gatsby-plugin-preact due to multiple linting issues which, as I understand, are not needed for bootstrapping / prepareing the monorepo for general framework development
    
    * Update .eslintignore
    
    Updating to only ignore directories of built files, as suggested by reviewer.
    
    Co-authored-by: Michal Piechowiak <misiek.piechowiak@gmail.com>
    
    Co-authored-by: gatsbybot <mathews.kyle+gatsbybot@gmail.com>
    Co-authored-by: Michal Piechowiak <misiek.piechowiak@gmail.com>
    3 people authored Jun 21, 2021

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    8b089a8 View commit details
  3. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    92346b7 View commit details
  4. feat(gatsby-source-shopify): add default sales channel when using sho…

    …pify app integration (#32010)
    
    * add default sales channel when using shopify app integration
    
    * set default salesChannel during schema initialization
    DanielSLew authored Jun 21, 2021

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    95280a3 View commit details

Commits on Jun 22, 2021

  1. fix(docs): rewrite environment variables docs to simplify explanation…

    …s and focus on the essentials (#31988)
    
    * fix(docs): rewrite environment variables docs to simplify explanations and focus on the essentials
    
    * Update docs/docs/how-to/local-development/environment-variables.md
    
    Co-authored-by: Lennart <lekoarts@gmail.com>
    
    * Add example for use env variable in browser
    
    * avoid back slash
    
    * rearrange
    
    * Restore some deleted content
    
    * fix
    
    * Fix
    
    Co-authored-by: Lennart <lekoarts@gmail.com>
    KyleAMathews and LekoArts authored Jun 22, 2021

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    7d79c2e View commit details
  2. feat(gatsby): PQR worker can run static queries (#32000)

    * run queries in child/schema
    
    * split schema into schema & queries, add new test
    
    * wip
    
    * test static queries
    
    * revert changes related to page queries
    LekoArts authored Jun 22, 2021

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    a6fd7b1 View commit details
  3. fix(gatsby-source-contentful): Don't ignore errors thrown when fetchi…

    …ng assets (#24288)
    
    Co-authored-by: Shane Kenney <shane.kenney@lwb.org.au>
    shanekenney and Shane Kenney authored Jun 22, 2021

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    2d4a791 View commit details
  4. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    a30aa0b View commit details
  5. feat(gatsby-design-tokens): palette update (#30662)

    * feat(gatsby-design-tokens): palette update
    
    * feat(gatsby-design-tokens): Add `lime` color ramp
    
    * revert change to `purple.50`
    
    Co-authored-by: Ward Peeters <ward@coding-tech.com>
    fk and wardpeet authored Jun 22, 2021

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    fe853ae View commit details
  6. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    174d3f1 View commit details
  7. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    47cf675 View commit details
  8. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    d75b965 View commit details
  9. feat(gatsby-source-drupal): Disable caching + add http/2 agent (#32012)

    * feat(gatsby-source-drupal): Force revalidation on Drupal API requests
    
    Talking to Gatsby/Drupal users — most set long max-age for the Drupal cache to
    keep their edge http cache as fresh as possible as Drupal can directly purge
    its edge http cache.
    
    But this has the unfortunate side-effect with the recent http client change in
    #31514 that API calls aren't
    revalidated. Meaning that a user could change some content in Drupal and not
    see those updates in their Gatsby site until the Drupal cache expires in the
    Gatsby cache.
    
    This PR removes the `cache-control` header from Drupal API responses so that
    we only can use `etag` for caching which forces revalidation on every request.
    
    * Remove debugging line
    
    * Add http/2 agent
    
    * Disable cache — it's slower than refetch with revalidation
    
    * push don't concat
    
    * consistent return
    
    * Fix statusCode check for got
    
    * Actually this was correct...
    
    * Actually use http/2
    KyleAMathews authored Jun 22, 2021

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    113e43e View commit details
  10. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    589051f View commit details
  11. docs: 3.8 release notes (#32001)

    * docs: 3.8 release notes
    
    * Update index.md
    
    * Update docs/docs/reference/release-notes/v3.8/index.md
    
    Co-authored-by: Sam Bhagwat <calcsam@gmail.com>
    
    * Update index.md
    
    * Update index.md
    
    * Update index.md
    
    * Update index.md
    
    * Update index.md
    
    * Update index.md
    
    * Add Drupal
    
    * copy edits
    
    * Add shopify announcement
    
    * add contributors
    
    Co-authored-by: Lennart <lekoarts@gmail.com>
    Co-authored-by: Sam Bhagwat <calcsam@gmail.com>
    Co-authored-by: Ward Peeters <ward@coding-tech.com>
    Co-authored-by: Kyle Mathews <mathews.kyle@gmail.com>
    Co-authored-by: Jack Sellwood <jacksellwood@me.com>
    6 people authored Jun 22, 2021

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    4648d34 View commit details
  12. Fix typo

    KyleAMathews authored Jun 22, 2021

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    9abeaac View commit details
  13. Update index.md (#32041)

    vladar authored Jun 22, 2021

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    5c97144 View commit details
  14. Update index.md

    KyleAMathews authored Jun 22, 2021

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    861a56d View commit details
  15. Copy the full SHA
    f10554a View commit details

Commits on Jun 23, 2021

  1. fix(gatsby-plugin-gatsby-cloud): add gatsby-telemetry as a dependency (

    …#32047)
    
    * fix(gatsby-plugin-gatsby-cloud): add gatsby-telemetry as a dependency
    
    * why yarn.lock why
    
    * run git diff to see what is modified
    
    * ok
    
    * revert
    
    * moooer
    KyleAMathews authored Jun 23, 2021

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    4ba8c2c View commit details
  2. chore(docs): Fix typo in tutorial (#32050)

    deleted extra word
    evank21 authored Jun 23, 2021

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    29211f0 View commit details
  3. fix(gatsby-source-drupal): Comment out http2-wrapper (#32045)

    Until we can see if szmarczak/http2-wrapper#73 can get resolved.
    
    Fixes #32043
    KyleAMathews authored Jun 23, 2021

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    b5f93e9 View commit details
  4. chore(examples): Add loadable components (#31954)

    Co-authored-by: LekoArts <lekoarts@gmail.com>
    graysonhicks and LekoArts authored Jun 23, 2021

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    6edfc22 View commit details
  5. chore(examples): Fix functions examples + add google oauth (#31953)

    Co-authored-by: LekoArts <lekoarts@gmail.com>
    graysonhicks and LekoArts authored Jun 23, 2021

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    66c7b79 View commit details
  6. chore(examples): Add two redux examples (#31928)

    Co-authored-by: LekoArts <lekoarts@gmail.com>
    graysonhicks and LekoArts authored Jun 23, 2021

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    06dfa9c View commit details
  7. Break variants into separate operation (#32027)

    Sam Slotsky authored Jun 23, 2021

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    069cb53 View commit details

Commits on Jun 24, 2021

  1. feat(gatsby): PQR worker can run page queries (#32017)

    * run queries in child/schema
    
    * split schema into schema & queries, add new test
    
    * wip
    
    * test static queries
    
    * revert changes related to page queries
    
    * initial
    
    * smaller ts improvements
    
    removing unused types, consolidate them, export IQueryJob
    
    * convert query/index.js to TS + change pageQueryIds type to Array<IGatsbyPage>
    
    * wip
    
    * use .cache/worker folder for slices location
    
    * optional chaining, test context variables
    
    * make cloud tests pass?
    
    * add runQueriesInWorkers function
    
    * remove runQueriesInWorkersQueue from build command for now
    
    * add test for runQueriesInWorkersQueue
    
    * adapt activity
    
    * first part of review comments
    
    * wip test
    
    * finalize test
    
    * proper test with jest-extended
    
    Co-authored-by: pieh@users.noreply.github.com
    
    * typescript magic
    
    * revert createProgress changes
    LekoArts authored Jun 24, 2021

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    44257b6 View commit details

Commits on Jun 25, 2021

  1. feat: add unstable_onPluginInit that would execute once in all proces…

    …ses (#31901)
    
    * feat: add unstable_onPluginInit that would execute once in all processes
    
    * update tests
    
    * add basic unit test for isGatsbyNodeLifecycleSupported
    
    * add readme section about added lifecycle existance check
    
    * don't mix ESM and CJS in readme
    
    * add example to node api docs
    
    * set version to 3.9
    
    * try/catch lifecycle check, just to make sure we never crash because of it
    
    * uncoditionally set actions and plugins in onPreBootstrap, it doesn't hurt to do so
    pieh authored Jun 25, 2021

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    2bf8c0d View commit details
  2. Copy the full SHA
    70a36de View commit details
  3. fix(deps): update starters and examples - gatsby (#32046)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Jun 25, 2021
    Copy the full SHA
    27d3553 View commit details
  4. chore(gatsby-plugin-image): Add duotone, grayscale, rotate and trim o…

    …ptions in transformOptions TS type (#31926)
    
    * add duotone option in transformOptions gatsby-plugin-image
    
    * add grayscale, rotate and trim types
    
    * chore: format
    
    Co-authored-by: gatsbybot <mathews.kyle+gatsbybot@gmail.com>
    Co-authored-by: Ward Peeters <ward@coding-tech.com>
    3 people authored Jun 25, 2021
    Copy the full SHA
    e7e77a1 View commit details
  5. Copy the full SHA
    9a03fc1 View commit details
  6. chore(deps): update dependency graphql to ^15.5.0 (#31698)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    Co-authored-by: Ward Peeters <ward@coding-tech.com>
    3 people authored Jun 25, 2021
    Copy the full SHA
    a6a6f96 View commit details
  7. Copy the full SHA
    3f81ee0 View commit details

Commits on Jun 26, 2021

  1. Copy the full SHA
    23b3e64 View commit details

Commits on Jun 28, 2021

  1. fix(gatsby): correct args type in createParentChildLink (#32139)

    we don't have the child node when calling this method, and we only need `id` from the child node.
    alvis authored Jun 28, 2021
    Copy the full SHA
    31828e4 View commit details
  2. Copy the full SHA
    3f3d5c8 View commit details
  3. Copy the full SHA
    2eb57c7 View commit details
  4. Copy the full SHA
    51804a0 View commit details
  5. Copy the full SHA
    27c01fc View commit details
  6. chore(release): Publish next

     - create-gatsby@1.9.0-next.1
     - gatsby-admin@0.19.0-next.1
     - gatsby-cli@3.9.0-next.1
     - gatsby-design-tokens@3.9.0-next.1
     - gatsby-plugin-cxs@3.9.0-next.1
     - gatsby-plugin-feed@3.9.0-next.1
     - gatsby-plugin-flow@2.9.0-next.1
     - gatsby-plugin-gatsby-cloud@2.9.0-next.1
     - gatsby-plugin-glamor@3.9.0-next.1
     - gatsby-plugin-google-tagmanager@3.9.0-next.1
     - gatsby-plugin-image@1.9.0-next.1
     - gatsby-plugin-manifest@3.9.0-next.1
     - gatsby-plugin-mdx@2.9.0-next.1
     - gatsby-plugin-netlify@3.9.0-next.1
     - gatsby-plugin-offline@4.9.0-next.1
     - gatsby-plugin-page-creator@3.9.0-next.1
     - gatsby-plugin-sass@4.9.0-next.1
     - gatsby-plugin-sharp@3.9.0-next.1
     - gatsby-plugin-sitemap@4.5.0-next.1
     - gatsby-plugin-twitter@3.9.0-next.1
     - gatsby-plugin-utils@1.9.0-next.1
     - gatsby-recipes@0.20.0-next.1
     - gatsby-remark-autolink-headers@4.6.0-next.1
     - gatsby-remark-images@5.6.0-next.1
     - gatsby-source-contentful@5.9.0-next.1
     - gatsby-source-drupal@4.9.0-next.1
     - gatsby-source-shopify@5.1.0-next.1
     - gatsby-telemetry@2.9.0-next.1
     - gatsby-transformer-remark@4.6.0-next.1
     - gatsby-transformer-sqip@3.9.0-next.1
     - gatsby@3.9.0-next.1
    LekoArts committed Jun 28, 2021
    Copy the full SHA
    74a1a9b View commit details

Commits on Jun 29, 2021

  1. feat(gatsby): Add activity for writing out page-data.json files to th…

    …e public directory (#31987)
    
    Co-authored-by: Ward Peeters <ward@coding-tech.com>
    Co-authored-by: gatsbybot <mathews.kyle+gatsbybot@gmail.com>
    3 people authored Jun 29, 2021
    Copy the full SHA
    0be1025 View commit details
  2. Copy the full SHA
    726731a View commit details
  3. refactor(jobs): make it possible to start running job from internalJob (

    #32054)
    
    * refactor(jobs): make it possible to start running job from internalJob
    
    * Update packages/gatsby/src/bootstrap/__tests__/remove-stale-jobs.ts
    
    Co-authored-by: Ward Peeters <ward@coding-tech.com>
    
    * no need for ts-ignore directive if we have non-null-assertion
    
    Co-authored-by: Ward Peeters <ward@coding-tech.com>
    pieh and wardpeet authored Jun 29, 2021
    Copy the full SHA
    12b5702 View commit details
  4. fix(plugin-netlify-cms): exclude cms.css from index.html (#32106)

    * fix(plugin-netlify-cms): exclude cms.css from index.html
    
    * refactor(plugin-netlify-cms): switch to string matching instead of custom function
    erezrokah authored Jun 29, 2021
    Copy the full SHA
    6ce7c62 View commit details
  5. feat(gatsby): Prevent generation of polyfill bundle if not needed (#3…

    …1993)
    
    * Add hasES6ModuleSupport
    
    * Fix test names
    
    * don't load polyfill during develop
    
    * fix tests
    
    * update snapshot
    
    Co-authored-by: Ward Peeters <ward@coding-tech.com>
    herecydev and wardpeet authored Jun 29, 2021
    Copy the full SHA
    7d41a98 View commit details
  6. Copy the full SHA
    7c343ff View commit details
  7. feat: worker pool that can execute tasks on all workers (#32120)

    * feat: create gatsby-worker package
    
    * chore(gatsby): convert ssr and PQR workerpool to gatsby-worker
    
    * chore(gatsby): convert dev-ssr to gatsby-worker
    
    * test(gatsby-cli): one test at a time
    
    * some code shuffling to avoid some error throwing when importing child (preperation for messaging API)
    
    * drop commented out console.log ( from review comments )
    
    * port debug|inspect cli flag handling from jest-worker
    
    * drop skipLibCheck from tsconfig
    
    * address Vlad's comment
    
    * add some jsdocs
    
    * mention why gatsby-worker only expose functions
    
    * document isWorker export
    
    * add comments about usage of JEST_WORKER_ID which is used by tests, even tho we ourselves will be using gatsby-worker
    pieh authored Jun 29, 2021
    Copy the full SHA
    a82f6db View commit details
Showing 539 changed files with 20,818 additions and 5,429 deletions.
5 changes: 4 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -484,10 +484,11 @@ jobs:
executor: node
steps:
- checkout
# jq is helpful for parsing json & python required for node-gyp to build lmdb
- run: apt-get update && apt-get install jq python -y
- <<: *restore_cache
- <<: *install_node_modules
- run: yarn markdown
- run: sudo apt-get update && sudo apt-get install jq # jq is helpful for parsing json
- run: git config --global user.name "GatsbyJS Bot"
- run: git config --global user.email "core-team@gatsbyjs.com"
- run: sh ./scripts/publish-starters.sh "starters/*"
@@ -563,6 +564,8 @@ jobs:
default: "next"
steps:
- checkout
# python 2 is not built in and node-gyp needs it to build lmdb
- run: apt-get update && apt-get install python -y
- run:
name: "Update React to prerelease"
command: "REACT_CHANNEL=<< parameters.version >> node ./scripts/upgrade-react"
3 changes: 3 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -28,6 +28,9 @@ packages/gatsby-admin/public
packages/gatsby/gatsby-admin-public
packages/gatsby-codemods/transforms
packages/gatsby-source-graphql/batching
packages/gatsby-plugin-gatsby-cloud/components
packages/gatsby-plugin-gatsby-cloud/utils
packages/gatsby-plugin-preact/fast-refresh

packages/gatsby-source-wordpress/test-site/**
!packages/gatsby-source-wordpress/test-site/__tests__
98 changes: 98 additions & 0 deletions .github/ISSUE_TEMPLATE/BUG_REPORT.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
name: Bug Report
description: Something isn't working as expected? Report your bugs here.
labels: "type: bug"
body:
- type: markdown
attributes:
value: |
# Welcome 👋
Thanks for taking the time to fill out this bug report.
Please fill out each section below. This info allows Gatsby maintainers to diagnose (and fix!) your issue as quickly as possible. Otherwise we might need to close the issue without e.g. clear reproduction steps.
Also please verify that your issue is present in `gatsby@next`, too. The `next` version is the latest beta version of Gatsby and has any pending changes that are in the next stable release.
Useful Links:
- Documentation: https://www.gatsbyjs.com/docs/
- How to File an Issue: https://www.gatsbyjs.com/contributing/how-to-file-an-issue/
- type: checkboxes
attributes:
label: Preliminary Checks
description: Please make sure that you verify each checkbox and follow the instructions for them.
options:
- label: "This issue is not a duplicate. Before opening a new issue, please search existing issues: https://github.com/gatsbyjs/gatsby/issues"
required: true
- label: "This issue is not a question, feature request, RFC, or anything other than a bug report. Please post those things in GitHub Discussions: https://github.com/gatsbyjs/gatsby/discussions"
required: true
- type: textarea
attributes:
label: Description
description: Describe the issue that you're seeing.
placeholder: Be as precise as you can. Feel free to share screenshots, videos, or data from the devtools of your browser.
validations:
required: true
- type: input
id: reproduction-link
attributes:
label: Reproduction Link
placeholder: "https://github.com/username/repository-name/"
description: "Link to a reproduction (GitHub repository, Codesandbox, etc.). How to make a minimal reproduction: https://gatsby.dev/reproduction"
validations:
required: true
- type: textarea
attributes:
label: Steps to Reproduce
description: Clear steps describing how to reproduce the issue.
value: |
1.
2.
3.
...
validations:
required: true
- type: textarea
attributes:
label: Expected Result
description: Describe what you expected to happen.
validations:
required: true
- type: textarea
attributes:
label: Actual Result
description: Describe what actually happened.
validations:
required: true
- type: textarea
attributes:
label: Environment
render: shell
description: Run "gatsby info --clipboard" in your project directory and paste the output here.
placeholder: |
You'll get an output similar to this:
System:
OS: Operating System
CPU: CPU
Binaries:
Node: X
npm: X
Languages:
Python: X
Browsers:
Chrome: X
Edge: X
npmPackages:
gatsby: X => X
validations:
required: true
- type: textarea
attributes:
label: Config Flags
description: Do you use any "flags" inside "gatsby-config.js"? If yes, please paste them here.
placeholder: |
For example:
DEV_SSR: true
FAST_DEV: false
validations:
required: false
43 changes: 43 additions & 0 deletions .github/ISSUE_TEMPLATE/DOCUMENTATION.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Documentation
description: Did you find an error in our documentation? Report your findings here.
labels: "type: documentation"
body:
- type: markdown
attributes:
value: |
# Welcome 👋
Thanks for taking the time to fill out this issue.
Please fill out each section below. This info allows Gatsby maintainers to triage and fix your issue as quickly as possible.
Useful links:
- Documentation: https://www.gatsbyjs.com/docs/
- Contributing: https://www.gatsbyjs.com/contributing/
- type: checkboxes
attributes:
label: Preliminary Checks
description: Please make sure that you verify each checkbox and follow the instructions for them.
options:
- label: "This issue is not a duplicate. Before opening a new issue, please search existing issues: https://github.com/gatsbyjs/gatsby/issues"
required: true
- label: "This issue is not a question, feature request, RFC, or anything other than a bug report. Please post those things in GitHub Discussions: https://github.com/gatsbyjs/gatsby/discussions"
required: true
- type: textarea
validations:
required: true
attributes:
label: Summary
description: |
What problem(s) did you run into that caused you to request a fix to the documentation or additional documentation? What questions do you think we should answer?
- type: textarea
validations:
required: true
attributes:
label: Steps to Resolve this Issue
description: How can the problem be solved? Are there any additional steps required? Do any other pages need to be updated?
value: |
1.
2.
3.
...
38 changes: 0 additions & 38 deletions .github/ISSUE_TEMPLATE/bug_report.md

This file was deleted.

43 changes: 0 additions & 43 deletions .github/ISSUE_TEMPLATE/documentation.md

This file was deleted.

51 changes: 39 additions & 12 deletions benchmarks/query-filters-sort/gatsby-node.js
Original file line number Diff line number Diff line change
@@ -11,6 +11,24 @@ if (NUM_NODES < NUM_PAGES) {
const nodesPerPage = Math.max(1, Math.round(NUM_NODES / NUM_PAGES))
const ptop = require(`process-top`)()

exports.createSchemaCustomization = ({ actions }) => {
actions.createTypes(`
type Test implements Node @dontInfer {
id: ID!
nodeNum: Int!
pageNum: Int!
unique: String!
fooBar: String!
fooBarArray: [TestFooBarArray!]
text: String!
randon: Float
}
type TestFooBarArray {
fooBar: String!
}
`)
}

exports.sourceNodes = async ({ actions: { createNode } }) => {
console.log(`Creating ${NUM_NODES} nodes`)
for (let nodeNum = 0; nodeNum < NUM_NODES; nodeNum++) {
@@ -19,15 +37,14 @@ exports.sourceNodes = async ({ actions: { createNode } }) => {
id: String(nodeNum),
nodeNum,
pageNum,
nodeNumReversed: NUM_NODES - nodeNum,
testEq: String(nodeNum),
testIn: [`foo`, `bar`, `baz`, `foobar`][nodeNum % 4],
testElemMatch: [
{ testIn: [`foo`, `bar`, `baz`, `foobar`][nodeNum % 4] },
{ testEq: String(nodeNum) },
unique: String(nodeNum),
fooBar: [`foo`, `bar`, `baz`, `foobar`][nodeNum % 4],
fooBarArray: [
{ fooBar: [`foo`, `bar`, `baz`, `foobar`][nodeNum % 4] },
{ fooBar: [`bar`, `baz`, `foobar`, `foo`][nodeNum % 4] },
],
text: `${TEXT ? new Array(4128).join("*") : ``}${nodeNum}`,
sortRandom: Math.random() * NUM_NODES,
text: TEXT ? randomStr(4128) : `${nodeNum}`,
random: Math.random() * NUM_NODES,
internal: {
type: `Test`,
contentDigest: String(nodeNum),
@@ -51,20 +68,21 @@ exports.createPages = async ({ actions: { createPage } }) => {
path: `/path/${pageNum}/`,
component: pageTemplate,
context: {
pageNumAsStr: String(pageNum),
fooBarValues: [
fooBarArray: [
[`foo`, `bar`, `baz`, `foobar`][pageNum % 4],
[`foo`, `bar`, `baz`, `foobar`][(pageNum + 1) % 4],
],
intValue: pageNum,
fooBar: [`foo`, `bar`, `baz`, `foobar`][pageNum % 4],
pageNum: pageNum,
pagesLeft: NUM_PAGES - pageNum,
limit: nodesPerPage,
skip: nodesPerPage * pageNum,
nodesTotal: NUM_NODES,
pagesTotal: NUM_PAGES,
sort: SORT
? { fields: ["sortRandom"], order: SORT === `1` ? `ASC` : `DESC` }
? {
fields: SORT === `fooBar` ? ["fooBar", "random"] : ["random"],
}
: undefined,
regex: `/^${String(pageNum).slice(0, 1)}/`, // node id starts with the same number as page id
},
@@ -85,3 +103,12 @@ exports.onPostBuild = () => {
}
console.log(ptop.toString())
}

function randomStr(length) {
let chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"
let str = []
for (let i = 0; i < length; i++) {
str.push(chars.charAt(Math.floor(Math.random() * chars.length)))
}
return str.join(``)
}
10 changes: 4 additions & 6 deletions benchmarks/query-filters-sort/src/templates/elemMatch-eq.js
Original file line number Diff line number Diff line change
@@ -3,19 +3,17 @@ import { graphql } from "gatsby"

export default ({ data }) => {
if (!data?.allTest?.nodes) {
throw new Error("Wrong data")
throw new Error("Wrong data: " + JSON.stringify(data))
}
return <div>{JSON.stringify(data)}</div>
}

export const query = graphql`
query($pageNumAsStr: String, $sort: TestSortInput) {
query($fooBar: String, $sort: TestSortInput) {
allTest(
filter: {
testElemMatch: { elemMatch: { testEq: { eq: $pageNumAsStr } } }
}
filter: { fooBarArray: { elemMatch: { fooBar: { eq: $fooBar } } } }
sort: $sort
limit: 5
limit: 100
) {
nodes {
nodeNum
6 changes: 3 additions & 3 deletions benchmarks/query-filters-sort/src/templates/eq.js
Original file line number Diff line number Diff line change
@@ -3,14 +3,14 @@ import { graphql } from "gatsby"

export default ({ data }) => {
if (!data?.allTest?.nodes) {
throw new Error("Bad query result")
throw new Error("Wrong data: " + JSON.stringify(data))
}
return <div>{JSON.stringify(data)}</div>
}

export const query = graphql`
query($pageNumAsStr: String!, $sort: TestSortInput) {
allTest(filter: { testEq: { eq: $pageNumAsStr } }, sort: $sort, limit: 5) {
query($fooBar: String!, $sort: TestSortInput) {
allTest(filter: { fooBar: { eq: $fooBar } }, sort: $sort, limit: 100) {
nodes {
nodeNum
text
Loading