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

Commits on Aug 31, 2020

  1. fix(gatsby-recipes): Add mdx packages to rollup (#26660)

    Co-authored-by: Laurie Barth <laurie@LauriesrkLaptop.fios-router.home>
    LB and Laurie Barth authored Aug 31, 2020
    Copy the full SHA
    69a93ba View commit details
  2. Fix typos (#26721)

    Added a full stop in the first line.
    Updated WPGraphQL graphql to WPGraphQL.
    thehanimo authored Aug 31, 2020
    Copy the full SHA
    5e7d16d View commit details

Commits on Sep 1, 2020

  1. Copy the full SHA
    32d7442 View commit details
  2. chore(gatsby): Fix error messages for gatsbyPath and telemetry featur…

    …es (#26666)
    
    * chore(gatsby): Fix error messages for gatsbyPath and telemetry features
    
    * Update validate-path-query.ts
    
    fix test
    blainekasten authored Sep 1, 2020
    Copy the full SHA
    b174589 View commit details
  3. chore(gatsby): bump lodash to fix vuln report (#26745)

    Co-authored-by: gatsbybot <mathews.kyle+gatsbybot@gmail.com>
    pvdz and gatsbybot authored Sep 1, 2020
    Copy the full SHA
    6fcb477 View commit details
  4. Copy the full SHA
    cc0cbff View commit details
  5. Copy the full SHA
    3ee1205 View commit details
  6. Copy the full SHA
    12b0930 View commit details

Commits on Sep 2, 2020

  1. chore(docs): maintainers changes (#26674)

    Co-authored-by: Lennart <lekoarts@gmail.com>
    Janson Hartliep and LekoArts authored Sep 2, 2020
    Copy the full SHA
    c149170 View commit details
  2. chore(docs): Update visual-testing-with-storybook (#26718)

    Add global.__BASE_PATH__ Variable
    Sascha Metz authored Sep 2, 2020
    Copy the full SHA
    c76267b View commit details
  3. Copy the full SHA
    b6c8702 View commit details
  4. Copy the full SHA
    0e61ff9 View commit details
  5. chore(docs): Update graphql to GraphQL (#26725)

    Co-authored-by: gatsbybot <mathews.kyle+gatsbybot@gmail.com>
    danielavocado and gatsbybot authored Sep 2, 2020
    Copy the full SHA
    c985f48 View commit details
  6. Copy the full SHA
    41019bd View commit details
  7. chore(docs): add Deploying to Bip tutorial (#26704)

    Co-authored-by: LekoArts <lekoarts@gmail.com>
    joelkennedy and LekoArts authored Sep 2, 2020
    Copy the full SHA
    f7ae8f6 View commit details
  8. Copy the full SHA
    0d986a3 View commit details
  9. Copy the full SHA
    d162947 View commit details
  10. Fix typo on L#218 (#26433)

    "at least" should be written instead of "a least".
    nyafologus authored Sep 2, 2020
    Copy the full SHA
    fc14557 View commit details
  11. Copy the full SHA
    c3677b9 View commit details
  12. Copy the full SHA
    5709e97 View commit details
  13. Copy the full SHA
    e2ca130 View commit details
  14. Copy the full SHA
    1fd7647 View commit details
  15. Copy the full SHA
    9ec814a View commit details
  16. Copy the full SHA
    7a75df0 View commit details
  17. chore(docs): Update Deploy to Vercel documentation (#26672)

    Co-authored-by: gatsbybot <mathews.kyle+gatsbybot@gmail.com>
    Co-authored-by: Lennart <lekoarts@gmail.com>
    3 people authored Sep 2, 2020
    Copy the full SHA
    9ce0d44 View commit details
  18. fix(doc): page graphiql explorer: add backlink to refresh content (#2…

    …6540)
    
    Co-authored-by: Lennart <lekoarts@gmail.com>
    muescha and LekoArts authored Sep 2, 2020
    Copy the full SHA
    f255e6a View commit details
  19. Copy the full SHA
    c971c24 View commit details
  20. chore(docs): add asynchronous example to remark-plugin-tutorial (#26116)

    Co-authored-by: Lennart <lekoarts@gmail.com>
    Co-authored-by: gatsbybot <mathews.kyle+gatsbybot@gmail.com>
    3 people authored Sep 2, 2020
    Copy the full SHA
    18c3af6 View commit details
  21. Copy the full SHA
    952ed0e View commit details
  22. chore(docs): Adding FastComments to comments doc (#26425)

    * Adding FastComments to list embedded comment solutions
    
    Includes link to examples.
    
    * better link name
    
    * FastComments is one word, but the build system doesn't like it.
    
    * Apply suggestions from code review
    
    Co-authored-by: Lennart <lekoarts@gmail.com>
    
    Co-authored-by: Aisha Blake <aisha.g.blake@gmail.com>
    Co-authored-by: Lennart <lekoarts@gmail.com>
    3 people authored Sep 2, 2020
    Copy the full SHA
    991b2a9 View commit details
  23. Copy the full SHA
    123b19f View commit details

Commits on Sep 3, 2020

  1. Copy the full SHA
    268d982 View commit details
  2. chore(docs): add force install command (#25810)

    * chore(docs): add force install command
    
    * chore: update force install description
    
    now it matches with the command help
    juanpicado authored Sep 3, 2020
    Copy the full SHA
    8521fbf View commit details
  3. Copy the full SHA
    289c7f8 View commit details

Commits on Sep 4, 2020

  1. Copy the full SHA
    e4f34da View commit details
  2. docs(api-ssr-docs): Improve onRenderBody example (#26362)

    Co-authored-by: Lennart <lekoarts@gmail.com>
    thehanimo and LekoArts authored Sep 4, 2020
    Copy the full SHA
    fac05bf View commit details
  3. enhancement(docs): Remove entries in dictionary.txt and fix alt text …

    …values in docs files (#26022)
    
    Co-authored-by: Lennart <lekoarts@gmail.com>
    meyian and LekoArts authored Sep 4, 2020
    Copy the full SHA
    a7945f7 View commit details
  4. Copy the full SHA
    8b1f670 View commit details
  5. fix(doc): updated onCreateBabelConfig documentation (#25212)

    Co-authored-by: Andreas Ehrencrona <andreas@scholarsapp.com>
    Co-authored-by: gatsbybot <mathews.kyle+gatsbybot@gmail.com>
    3 people authored Sep 4, 2020
    Copy the full SHA
    5538c49 View commit details
  6. chore(docs): apache troubleshooting section to gatsby-plugin-manifest (

    …#25155)
    
    Co-authored-by: Marcy Sutton <marcy@gatsbyjs.com>
    Co-authored-by: Chris Bird <bird@mbp.local>
    Co-authored-by: gatsbybot <mathews.kyle+gatsbybot@gmail.com>
    Co-authored-by: Lennart <lekoarts@gmail.com>
    5 people authored Sep 4, 2020
    Copy the full SHA
    fc97669 View commit details
  7. chore(docs): Documented that location does not include href (#25022)

    Co-authored-by: Muescha <184316+muescha@users.noreply.github.com>
    Co-authored-by: Aisha Blake <aisha.g.blake@gmail.com>
    Co-authored-by: Andreas Ehrencrona <andreas@scholarsapp.com>
    Co-authored-by: Lennart <lekoarts@gmail.com>
    5 people authored Sep 4, 2020
    Copy the full SHA
    bdda8da View commit details
  8. Copy the full SHA
    bf7d633 View commit details
  9. Add additional logging around conditional page builds (#26748)

    * Add additional logging
    
    * Only log if there was a cached hash
    
    * NIT: missing brackets (just for code uniformity, doesn't functionally change anything)
    
    * NIT: bit nicer indentation
    
    Co-authored-by: Michal Piechowiak <misiek.piechowiak@gmail.com>
    herecydev and pieh authored Sep 4, 2020
    Copy the full SHA
    9fbac50 View commit details
  10. chore(gatsby-telemetry): Generate typings (#26779)

    * chore(gatsby-telemetry): Generate typings
    
    * Add rimraf
    
    * Improve telementry typings
    
    * Add typescript devdep
    
    * Exclude test files etc from typegen
    ascorbic authored Sep 4, 2020
    Copy the full SHA
    d878bfd View commit details

Commits on Sep 6, 2020

  1. style: use generic style for array types (#26738)

    Using this style provides consistency with Set, Map, etc.
    
    Co-authored-by: Blaine Kasten <blainekasten@gmail.com>
    chooban and blainekasten authored Sep 6, 2020
    Copy the full SHA
    3e92795 View commit details

Commits on Sep 7, 2020

  1. Copy the full SHA
    9509d01 View commit details
  2. chore: fix gitignore

    wardpeet committed Sep 7, 2020
    Copy the full SHA
    c9809c7 View commit details
  3. chore(release): Publish

     - babel-preset-gatsby@0.5.9
     - gatsby-admin@0.1.143
     - gatsby-cli@2.12.92
     - gatsby-core-utils@1.3.19
     - gatsby-dev-cli@2.7.19
     - gatsby-image@2.4.17
     - gatsby-page-utils@0.2.24
     - gatsby-plugin-manifest@2.4.28
     - gatsby-plugin-mdx@1.2.38
     - gatsby-plugin-netlify-cms@4.3.13
     - gatsby-plugin-netlify@2.3.14
     - gatsby-plugin-offline@3.2.27
     - gatsby-plugin-page-creator@2.3.26
     - gatsby-plugin-preload-fonts@1.2.24
     - gatsby-plugin-sharp@2.6.32
     - gatsby-recipes@0.2.21
     - gatsby-remark-autolink-headers@2.3.12
     - gatsby-remark-copy-linked-files@2.3.14
     - gatsby-remark-images-contentful@2.3.16
     - gatsby-remark-images@3.3.29
     - gatsby-remark-responsive-iframe@2.4.13
     - gatsby-source-contentful@2.3.42
     - gatsby-source-drupal@3.5.31
     - gatsby-source-filesystem@2.3.28
     - gatsby-source-shopify@3.2.30
     - gatsby-source-wordpress@3.3.32
     - gatsby-telemetry@1.3.31
     - gatsby-theme@0.1.4
     - gatsby-transformer-excel@2.4.11
     - gatsby-transformer-remark@2.8.33
     - gatsby-transformer-sqip@2.3.32
     - gatsby-transformer-toml@2.4.13
     - gatsby-transformer-xml@2.3.11
     - gatsby-transformer-yaml@2.4.11
     - gatsby@2.24.54
    wardpeet committed Sep 7, 2020
    Copy the full SHA
    7f3221b View commit details
Showing with 1,714 additions and 931 deletions.
  1. +4 −0 .eslintrc.js
  2. +0 −20 .github/workflows/schedule-site-showcase-validator-workflow.yml
  3. +71 −0 benchmarks/gabe-markdown/.gitignore
  4. +21 −0 benchmarks/gabe-markdown/LICENSE
  5. +28 −0 benchmarks/gabe-markdown/README.md
  6. 0 benchmarks/gabe-markdown/gatsby-browser.js
  7. +17 −0 benchmarks/gabe-markdown/gatsby-config.js
  8. +62 −0 benchmarks/gabe-markdown/gatsby-node.js
  9. +51 −0 benchmarks/gabe-markdown/gen.js
  10. +36 −0 benchmarks/gabe-markdown/package.json
  11. +30 −0 benchmarks/gabe-markdown/src/components/bio.js
  12. +72 −0 benchmarks/gabe-markdown/src/components/layout.js
  13. +30 −0 benchmarks/gabe-markdown/src/pages/404.js
  14. +72 −0 benchmarks/gabe-markdown/src/pages/index.js
  15. +96 −0 benchmarks/gabe-markdown/src/templates/blog-post.js
  16. BIN benchmarks/gabe-markdown/static/favicon.ico
  17. +2 −0 benchmarks/gabe-markdown/static/robots.txt
  18. 0 benchmarks/{mdx-without-images → gabe-mdx}/.gitattributes
  19. 0 benchmarks/{mdx-without-images → gabe-mdx}/.gitignore
  20. 0 benchmarks/{mdx-without-images → gabe-mdx}/.prettierrc.js
  21. 0 benchmarks/{mdx-without-images → gabe-mdx}/LICENSE
  22. +2 −5 benchmarks/{mdx-without-images → gabe-mdx}/README.md
  23. 0 benchmarks/{mdx-without-images → gabe-mdx}/gatsby-browser.js
  24. +0 −9 benchmarks/{mdx-without-images → gabe-mdx}/gatsby-config.js
  25. 0 benchmarks/{mdx-without-images → gabe-mdx}/gatsby-node.js
  26. 0 benchmarks/{mdx-without-images → gabe-mdx}/gen.js
  27. +16 −18 benchmarks/{mdx-without-images → gabe-mdx}/package.json
  28. 0 benchmarks/{mdx-without-images → gabe-mdx}/src/components/layout_1.js
  29. 0 benchmarks/{mdx-without-images → gabe-mdx}/src/components/layout_2.js
  30. 0 benchmarks/{mdx-without-images → gabe-mdx}/src/pages/index.js
  31. 0 benchmarks/{mdx-without-images → gabe-mdx}/src/templates/article.js
  32. BIN benchmarks/{mdx-without-images → gabe-mdx}/static/favicon.ico
  33. 0 benchmarks/{mdx-without-images → gabe-mdx}/styles.css
  34. +0 −40 benchmarks/mdx-without-images/src/pages/#index.js#
  35. +2 −2 benchmarks/source-wordpress/README.md
  36. +2 −6 dictionary.txt
  37. +1 −1 docs/blog/2019-02-20-introducing-use-static-query/index.md
  38. +2 −2 docs/blog/2019-07-15-theme-jam-contest/index.md
  39. +2 −2 docs/contributing/docs-contributions.md
  40. +10 −10 docs/contributing/gatsby-governance-model.md
  41. +4 −88 docs/contributing/how-to-label-an-issue.md
  42. +1 −3 docs/contributing/how-to-open-a-pull-request.md
  43. BIN docs/contributing/images/github-topic-labels.png
  44. BIN docs/contributing/images/github-type-labels.png
  45. +4 −26 docs/contributing/managing-pull-requests.md
  46. +18 −20 docs/contributing/triaging-github-issues/index.md
  47. +0 −1 docs/contributing/where-to-participate.md
  48. +2 −0 docs/docs/adding-comments.md
  49. +3 −1 docs/docs/babel.md
  50. +36 −0 docs/docs/deploying-to-bip.md
  51. +22 −15 docs/docs/deploying-to-vercel.md
  52. +27 −27 docs/docs/graphql-reference.md
  53. +35 −0 docs/docs/location-data-from-props.md
  54. +13 −15 docs/docs/migrating-from-v1-to-v2.md
  55. +2 −2 docs/docs/preprocessing-external-images.md
  56. +4 −4 docs/docs/recipes/querying-data.md
  57. +4 −0 docs/docs/running-queries-with-graphiql.md
  58. +4 −4 docs/docs/sourcing-from-the-filesystem.md
  59. +2 −0 docs/docs/visual-testing-with-storybook.md
  60. +7 −7 docs/tutorial/part-five/index.md
  61. +1 −1 docs/tutorial/part-seven/index.md
  62. +37 −1 docs/tutorial/remark-plugin-tutorial.md
  63. +4 −0 packages/babel-preset-gatsby/CHANGELOG.md
  64. +2 −2 packages/babel-preset-gatsby/package.json
  65. +1 −1 packages/babel-preset-gatsby/src/optimize-hook-destructuring.ts
  66. +4 −0 packages/gatsby-admin/CHANGELOG.md
  67. +2 −2 packages/gatsby-admin/package.json
  68. +4 −0 packages/gatsby-cli/CHANGELOG.md
  69. +5 −5 packages/gatsby-cli/package.json
  70. +3 −3 packages/gatsby-cli/src/create-cli.ts
  71. +1 −1 packages/gatsby-cli/src/init-starter.ts
  72. +3 −3 packages/gatsby-cli/src/reporter/errors.ts
  73. +4 −3 packages/gatsby-cli/src/reporter/loggers/ink/cli.tsx
  74. +4 −4 packages/gatsby-cli/src/reporter/patch-console.ts
  75. +2 −2 packages/gatsby-cli/src/reporter/redux/index.ts
  76. +1 −1 packages/gatsby-cli/src/reporter/redux/types.ts
  77. +6 −6 packages/gatsby-cli/src/reporter/reporter-progress.ts
  78. +6 −6 packages/gatsby-cli/src/reporter/reporter-timer.ts
  79. +10 −10 packages/gatsby-cli/src/reporter/reporter.ts
  80. +1 −1 packages/gatsby-cli/src/reporter/types.ts
  81. +1 −1 packages/gatsby-cli/src/structured-errors/error-map.ts
  82. +1 −1 packages/gatsby-cli/src/structured-errors/types.ts
  83. +4 −0 packages/gatsby-core-utils/CHANGELOG.md
  84. +1 −1 packages/gatsby-core-utils/README.md
  85. +1 −1 packages/gatsby-core-utils/package.json
  86. +1 −1 packages/gatsby-core-utils/src/ci.ts
  87. +1 −1 packages/gatsby-core-utils/src/create-require-from-path.ts
  88. +1 −1 packages/gatsby-core-utils/src/path.ts
  89. +1 −1 packages/gatsby-core-utils/src/url.ts
  90. +4 −0 packages/gatsby-dev-cli/CHANGELOG.md
  91. +4 −0 packages/gatsby-dev-cli/README.md
  92. +2 −2 packages/gatsby-dev-cli/package.json
  93. +6 −0 packages/gatsby-image/CHANGELOG.md
  94. +1 −1 packages/gatsby-image/package.json
  95. +12 −0 packages/gatsby-image/src/__tests__/index.js
  96. +1 −1 packages/gatsby-image/src/index.js
  97. +4 −0 packages/gatsby-page-utils/CHANGELOG.md
  98. +3 −3 packages/gatsby-page-utils/package.json
  99. +1 −1 packages/gatsby-page-utils/src/ignore-path.ts
  100. +4 −0 packages/gatsby-plugin-manifest/CHANGELOG.md
  101. +60 −0 packages/gatsby-plugin-manifest/README.md
  102. +2 −2 packages/gatsby-plugin-manifest/package.json
  103. +4 −0 packages/gatsby-plugin-mdx/CHANGELOG.md
  104. +3 −3 packages/gatsby-plugin-mdx/package.json
  105. +4 −0 packages/gatsby-plugin-netlify-cms/CHANGELOG.md
  106. +2 −2 packages/gatsby-plugin-netlify-cms/package.json
  107. +4 −0 packages/gatsby-plugin-netlify/CHANGELOG.md
  108. +2 −2 packages/gatsby-plugin-netlify/package.json
  109. +4 −0 packages/gatsby-plugin-offline/CHANGELOG.md
  110. +3 −3 packages/gatsby-plugin-offline/package.json
  111. +1 −0 packages/gatsby-plugin-page-creator/.gitignore
  112. +4 −0 packages/gatsby-plugin-page-creator/CHANGELOG.md
  113. +3 −3 packages/gatsby-plugin-page-creator/package.json
  114. +5 −5 packages/gatsby-plugin-page-creator/src/__tests__/validate-path-query.ts
  115. +1 −1 packages/gatsby-plugin-page-creator/src/create-page-wrapper.ts
  116. +3 −1 packages/gatsby-plugin-page-creator/src/extract-query.ts
  117. +6 −6 packages/gatsby-plugin-page-creator/src/validate-path-query.ts
  118. +1 −1 packages/gatsby-plugin-page-creator/src/watch-collection-builder.ts
  119. +4 −0 packages/gatsby-plugin-preload-fonts/CHANGELOG.md
  120. +2 −2 packages/gatsby-plugin-preload-fonts/package.json
  121. +4 −0 packages/gatsby-plugin-sharp/CHANGELOG.md
  122. +2 −2 packages/gatsby-plugin-sharp/package.json
  123. +6 −0 packages/gatsby-recipes/CHANGELOG.md
  124. +7 −7 packages/gatsby-recipes/package.json
  125. +3 −0 packages/gatsby-recipes/rollup.config.js
  126. +1 −1 packages/gatsby-recipes/src/providers/gatsby/__snapshots__/plugin.test.js.snap
  127. +4 −0 packages/gatsby-remark-autolink-headers/CHANGELOG.md
  128. +2 −2 packages/gatsby-remark-autolink-headers/package.json
  129. +4 −0 packages/gatsby-remark-copy-linked-files/CHANGELOG.md
  130. +2 −2 packages/gatsby-remark-copy-linked-files/package.json
  131. +4 −0 packages/gatsby-remark-images-contentful/CHANGELOG.md
  132. +2 −2 packages/gatsby-remark-images-contentful/package.json
  133. +4 −0 packages/gatsby-remark-images/CHANGELOG.md
  134. +3 −3 packages/gatsby-remark-images/package.json
  135. +4 −0 packages/gatsby-remark-responsive-iframe/CHANGELOG.md
  136. +2 −2 packages/gatsby-remark-responsive-iframe/package.json
  137. +4 −0 packages/gatsby-source-contentful/CHANGELOG.md
  138. +5 −5 packages/gatsby-source-contentful/package.json
  139. +4 −0 packages/gatsby-source-drupal/CHANGELOG.md
  140. +3 −3 packages/gatsby-source-drupal/package.json
  141. +4 −0 packages/gatsby-source-filesystem/CHANGELOG.md
  142. +2 −2 packages/gatsby-source-filesystem/package.json
  143. +4 −0 packages/gatsby-source-shopify/CHANGELOG.md
  144. +3 −3 packages/gatsby-source-shopify/package.json
  145. +1 −0 packages/gatsby-source-wordpress/.gitignore
  146. +4 −0 packages/gatsby-source-wordpress/CHANGELOG.md
  147. +3 −3 packages/gatsby-source-wordpress/package.json
  148. +4 −0 packages/gatsby-telemetry/CHANGELOG.md
  149. +8 −5 packages/gatsby-telemetry/package.json
  150. +1 −1 packages/gatsby-telemetry/src/__tests__/error-helpers.ts
  151. +19 −12 packages/gatsby-telemetry/src/index.ts
  152. +33 −18 packages/gatsby-telemetry/src/telemetry.ts
  153. +2 −1 packages/gatsby-telemetry/tsconfig.json
  154. +4 −0 packages/gatsby-theme/CHANGELOG.md
  155. +2 −2 packages/gatsby-theme/package.json
  156. +4 −0 packages/gatsby-transformer-excel/CHANGELOG.md
  157. +2 −2 packages/gatsby-transformer-excel/README.md
  158. +1 −1 packages/gatsby-transformer-excel/package.json
  159. +4 −0 packages/gatsby-transformer-remark/CHANGELOG.md
  160. +3 −3 packages/gatsby-transformer-remark/package.json
  161. +4 −0 packages/gatsby-transformer-sqip/CHANGELOG.md
  162. +2 −2 packages/gatsby-transformer-sqip/package.json
  163. +4 −0 packages/gatsby-transformer-toml/CHANGELOG.md
  164. +2 −2 packages/gatsby-transformer-toml/package.json
  165. +4 −0 packages/gatsby-transformer-xml/CHANGELOG.md
  166. +2 −2 packages/gatsby-transformer-xml/package.json
  167. +4 −0 packages/gatsby-transformer-yaml/CHANGELOG.md
  168. +2 −2 packages/gatsby-transformer-yaml/package.json
  169. +8 −0 packages/gatsby/CHANGELOG.md
  170. +23 −17 packages/gatsby/cache-dir/api-ssr-docs.js
  171. +7 −7 packages/gatsby/package.json
  172. +3 −1 packages/gatsby/src/bootstrap/__mocks__/resolve-module-exports.ts
  173. +1 −1 packages/gatsby/src/bootstrap/create-graphql-runner.ts
  174. +2 −2 packages/gatsby/src/bootstrap/load-plugins/__tests__/load-plugins.ts
  175. +1 −1 packages/gatsby/src/bootstrap/load-plugins/__tests__/validate.ts
  176. +3 −3 packages/gatsby/src/bootstrap/load-plugins/index.ts
  177. +3 −3 packages/gatsby/src/bootstrap/load-plugins/load.ts
  178. +6 −6 packages/gatsby/src/bootstrap/load-plugins/types.ts
  179. +19 −19 packages/gatsby/src/bootstrap/load-plugins/validate.ts
  180. +1 −1 packages/gatsby/src/bootstrap/log-line-function.ts
  181. +2 −2 packages/gatsby/src/bootstrap/remove-stale-jobs.ts
  182. +11 −7 packages/gatsby/src/bootstrap/requires-writer.ts
  183. +3 −3 packages/gatsby/src/bootstrap/resolve-module-exports.ts
  184. +3 −3 packages/gatsby/src/commands/build-html.ts
  185. +15 −1 packages/gatsby/src/commands/build-javascript.ts
  186. +6 −6 packages/gatsby/src/commands/build-utils.ts
  187. +17 −9 packages/gatsby/src/commands/build.ts
  188. +3 −1 packages/gatsby/src/commands/develop.ts
  189. +3 −3 packages/gatsby/src/commands/serve.ts
  190. +1 −1 packages/gatsby/src/query/graphql-runner.ts
  191. +1 −1 packages/gatsby/src/query/queue.ts
  192. +1 −1 packages/gatsby/src/redux/actions/internal.ts
  193. +13 −8 packages/gatsby/src/redux/actions/restricted.ts
  194. +2 −2 packages/gatsby/src/redux/index.ts
  195. +7 −7 packages/gatsby/src/redux/nodes.ts
  196. +3 −3 packages/gatsby/src/redux/persist.ts
  197. +1 −1 packages/gatsby/src/redux/reducers/redirects.ts
  198. +31 −29 packages/gatsby/src/redux/types.ts
  199. +3 −3 packages/gatsby/src/schema/infer/__tests__/inference-metadata.ts
  200. +5 −5 packages/gatsby/src/schema/infer/build-example-data.ts
  201. +16 −14 packages/gatsby/src/schema/infer/inference-metadata.ts
  202. +3 −3 packages/gatsby/src/schema/infer/is-file.ts
  203. +5 −5 packages/gatsby/src/schema/infer/type-conflict-reporter.ts
  204. +1 −1 packages/gatsby/src/schema/types/built-in-types.ts
  205. +2 −2 packages/gatsby/src/schema/types/date.ts
  206. +2 −2 packages/gatsby/src/schema/types/filter.ts
  207. +2 −2 packages/gatsby/src/services/create-pages.ts
  208. +2 −2 packages/gatsby/src/services/initialize.ts
  209. +1 −1 packages/gatsby/src/services/run-mutation-batch.ts
  210. +2 −2 packages/gatsby/src/services/source-nodes.ts
  211. +4 −4 packages/gatsby/src/services/types.ts
  212. +6 −4 packages/gatsby/src/state-machines/data-layer/actions.ts
  213. +5 −5 packages/gatsby/src/state-machines/data-layer/types.ts
  214. +2 −2 packages/gatsby/src/state-machines/query-running/types.ts
  215. +3 −3 packages/gatsby/src/state-machines/waiting/types.ts
  216. +1 −1 packages/gatsby/src/utils/__tests__/webpack-utils.ts
  217. +19 −7 packages/gatsby/src/utils/api-node-docs.ts
  218. +1 −1 packages/gatsby/src/utils/browserslist.ts
  219. +1 −1 packages/gatsby/src/utils/cache.ts
  220. +6 −6 packages/gatsby/src/utils/changed-pages.ts
  221. +1 −1 packages/gatsby/src/utils/did-you-mean.ts
  222. +1 −1 packages/gatsby/src/utils/feedback.ts
  223. +2 −2 packages/gatsby/src/utils/gatsby-dependents.ts
  224. +1 −1 packages/gatsby/src/utils/gatsby-webpack-eslint-graphql-schema-reload-plugin.ts
  225. +1 −1 packages/gatsby/src/utils/gatsby-webpack-stats-extractor.ts
  226. +1 −1 packages/gatsby/src/utils/gatsby-webpack-virtual-modules.ts
  227. +3 −3 packages/gatsby/src/utils/get-value-at.ts
  228. +3 −3 packages/gatsby/src/utils/jobs-manager.ts
  229. +3 −3 packages/gatsby/src/utils/map-templates-to-static-query-hashes.ts
  230. +5 −2 packages/gatsby/src/utils/merge-gatsby-config.ts
  231. +1 −1 packages/gatsby/src/utils/page-data.ts
  232. +2 −2 packages/gatsby/src/utils/path.ts
  233. +1 −1 packages/gatsby/src/utils/print-deprecation-warnings.ts
  234. +8 −5 packages/gatsby/src/utils/source-nodes.ts
  235. +1 −1 packages/gatsby/src/utils/webpack-error-utils.ts
  236. +15 −11 packages/gatsby/src/utils/webpack-utils.ts
  237. +3 −1 packages/gatsby/src/utils/websocket-manager.ts
  238. +2 −2 packages/gatsby/src/utils/worker/render-html.ts
  239. +0 −39 renovate.json5
  240. +67 −92 starters/default/src/components/layout.css
  241. +3 −0 www/src/data/sidebars/doc-links.yaml
  242. +6 −16 yarn.lock
4 changes: 4 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -168,6 +168,10 @@ module.exports = {
// bump to @typescript-eslint/parser started showing Flow related errors in ts(x) files
// so disabling them in .ts(x) files
"flowtype/no-types-missing-file-annotation": "off",
"@typescript-eslint/array-type": [
'error',
{ default: 'generic' },
],
},
},
],
20 changes: 0 additions & 20 deletions .github/workflows/schedule-site-showcase-validator-workflow.yml

This file was deleted.

71 changes: 71 additions & 0 deletions benchmarks/gabe-markdown/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# Typescript v1 declaration files
typings/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# dotenv environment variable files
.env*

# gatsby files
.cache/
public

# Mac files
.DS_Store

# Yarn
yarn-error.log
.pnp/
.pnp.js
# Yarn Integrity file
.yarn-integrity

generated_articles
21 changes: 21 additions & 0 deletions benchmarks/gabe-markdown/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (c) 2015 Gatsbyjs

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
28 changes: 28 additions & 0 deletions benchmarks/gabe-markdown/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Markdown Benchmark

This is a baseline benchmark for tracking Markdown performance in the Gabe project.

The site can generate an arbitrary amount of super simple pages. Each page has a small header, a quote, and two small paragraphs of random text. No images, because we want to benchmark Markdown.

This uses the local file system plugin, though we might switch to sourcing from csv since that has a more efficient internal representation (fewer `File` nodes).

## Install

Run `yarn` or `npm install`

## Usage

You can start a benchmark run like this:

```shell
N=1000 M=2 yarn bench
```

- `N=1000`: instructs the run to build a site of 1000 pages
- `M=2`: instructs nodejs to use up to 2gb of memory for its long term storage
- Deletes generates files from previous run
- Generates `N` pages with pseudo-random content
- Runs `gatsby clean`
- Runs `gatsby build`

The default `yarn bench` will build 512 pages with 1gb memory.
Empty file.
17 changes: 17 additions & 0 deletions benchmarks/gabe-markdown/gatsby-config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
module.exports = {
siteMetadata: {
title: `Gatsby Markdown Benchmark for Gabe`,
description: "A blog like no other blog",
author: "Bob the Blogger",
},
plugins: [
{
resolve: `gatsby-source-filesystem`,
options: {
path: `${__dirname}/generated_articles`,
name: `blog`,
},
},
`gatsby-transformer-remark`,
],
}
62 changes: 62 additions & 0 deletions benchmarks/gabe-markdown/gatsby-node.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
const path = require(`path`)
const { createFilePath } = require(`gatsby-source-filesystem`)

exports.createPages = async ({ graphql, actions }) => {
const { createPage } = actions
const blogPost = path.resolve(`./src/templates/blog-post.js`)
const result = await graphql(
`
{
allMarkdownRemark(sort: { fields: [frontmatter___date], order: DESC }) {
edges {
node {
id
fields {
slug
}
frontmatter {
title
}
}
}
}
}
`
)

if (result.errors) {
throw result.errors
}

// Create blog posts pages.
const posts = result.data.allMarkdownRemark.edges

posts.forEach((post, index) => {
const previous = index === posts.length - 1 ? null : posts[index + 1].node
const next = index === 0 ? null : posts[index - 1].node

createPage({
path: post.node.fields.slug,
component: blogPost,
context: {
slug: post.node.fields.slug,
id: post.node.id,
previous,
next,
},
})
})
}

exports.onCreateNode = ({ node, actions, getNode }) => {
const { createNodeField } = actions

if (node.internal.type === `MarkdownRemark`) {
const value = createFilePath({ node, getNode })
createNodeField({
name: `slug`,
node,
value,
})
}
}
51 changes: 51 additions & 0 deletions benchmarks/gabe-markdown/gen.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
const fs = require("fs")
const path = require("path")
const faker = require(`faker`)

const N = parseInt(process.env.N, 10) || 100

let n = 0

function createArticle(n, sentence, slug) {
const desc = faker.lorem.sentence();

return `---
articleNumber: ${n}
title: "${sentence.replace(/"/g, '\\"')}"
description: "${desc.replace(/"/g, '\\"')}"
path: '${slug}'
date: ${faker.date.recent(1000).toISOString().slice(0, 10)}
tags: [${faker.random
.words(3)
.split(` `)
.map(w => `"${w}"`)
.join(`, `)}]
---
# ${sentence}
> ${desc}
${faker.lorem.paragraphs(2)}
`
}

console.log("Start of gen")

if (fs.existsSync("./generated_articles")) {
TODO // count existing folders. If they are less than given number, just amend to them. Otherwise abort and require a rimraf
} else {
fs.mkdirSync("./generated_articles", { recursive: true })
}

console.log("Now generating " + N + " articles")
for (let i = 0; i < N; ++i) {
const sentence = faker.lorem.sentence()
const slug = faker.helpers.slugify(sentence).toLowerCase()
fs.writeFileSync(
path.join("./generated_articles", slug + ".md"),
createArticle(i, sentence, slug)
)
}
console.log("Finished generating " + N + " articles")
console.log("End of gen")
36 changes: 36 additions & 0 deletions benchmarks/gabe-markdown/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"name": "markdown_gabe",
"private": true,
"description": "Benchmark site for testing baseline markdown perf",
"author": "Peter van der Zee <pvdz@github>",
"version": "0.1.0",
"license": "MIT",
"scripts": {
"bench": "rm -rf generated_articles; gatsby clean; N=${N:-512} node gen.js; CI=1 node --max_old_space_size=${M:-2}000 node_modules/.bin/gatsby build",
"build": "gatsby build",
"clean": "gatsby clean",
"develop": "gatsby develop",
"format": "prettier --write \"**/*.{js,jsx,json,md}\""
},
"devDependencies": {
"prettier": "2.0.4"
},
"repository": {
"type": "git",
"url": "https://github.com/gatsbyjs/gatsby/tree/master/benchmarks/"
},
"bugs": {
"url": "https://github.com/gatsbyjs/gatsby/issues"
},
"keywords": [
"gatsby", "benchmark", "markdown"
],
"dependencies": {
"faker": "^4.1.0",
"gatsby": "^2",
"gatsby-source-filesystem": "^2",
"gatsby-transformer-remark": "^2",
"react": "^16.12.0",
"react-dom": "^16.12.0"
}
}
30 changes: 30 additions & 0 deletions benchmarks/gabe-markdown/src/components/bio.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
/**
* Bio component that queries for data
* with Gatsby's useStaticQuery component
*
* See: https://www.gatsbyjs.org/docs/use-static-query/
*/

import React from "react"

const Bio = () => {
return (
<div
style={{
display: `flex`,
marginBottom: '5px',
}}
>
<p>
Written by <strong>Bob</strong> who lives and works in Fan
Srancisco building useful things.
{` `}
<a href={`https://twitter.com/bob`}>
You should follow him on Twitter
</a>
</p>
</div>
)
}

export default Bio
Loading