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.24
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.25
Choose a head ref
  • 8 commits
  • 108 files changed
  • 60 contributors

Commits on Aug 3, 2020

  1. fix(gatsby-plugin-mdx): support import shorthand syntax (#26198)

    The "shorthand" syntax is an import that only imports a path, without declaring any symbols:
    
    ```js
    import "./foo.css"
    ```
    
    This happened in the real world so we have to support it.
    
    This fixes #25734
    pvdz authored Aug 3, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    0df7977 View commit details
  2. chore(release): Publish

     - gatsby-plugin-mdx@1.2.32
    pvdz committed Aug 3, 2020
    Copy the full SHA
    70cd249 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
    ae5f581 View commit details
  4. fix: update www (#26197)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Aug 3, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    138ef07 View commit details
  5. chore(gatsby-plugin-mdx): Revert "perf(gatsby-plugin-mdx): performanc…

    …e changes" (#26202)
    
    This reverts commit 9e02abe.
    pvdz authored Aug 3, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    7e431fd View commit details
  6. feat(gatsby-recipes): add recipes gui (#24595)

    * feat(gatsby-recipes): Pass data retrieved from the resource to its children via context
    
    * chore(gatsby-recipes): Swap out Promise.all for a true queue
    
    * feat(gatsby-recipes): Implement a render loop for nested resources
    
    * Continue spiking out recipes gui
    
    * Hardcode the project root in a clear place for now
    
    * Join plan steps in order to create entire recipe plan at once + initial efforts on GUI
    
    * WIP
    
    * feat(gatsby-recipes): Implement a wait for input state when props are missing for a resource
    
    * chore(gatsby-recipes): Use an INVALID_PROP event for schema validation
    
    * feat(gatsby-recipes): Wrap intro and each step with components, add metadata
    
    * chore(gatsby-recipes): Spike out basic gui component for steps
    
    * feat(gatsby-recipes): Pass data retrieved from the resource to its children via context
    
    * chore(gatsby-recipes): Swap out Promise.all for a true queue
    
    * feat(gatsby-recipes): Implement a render loop for nested resources
    
    * Continue spiking out recipes gui
    
    * Hardcode the project root in a clear place for now
    
    * Join plan steps in order to create entire recipe plan at once + initial efforts on GUI
    
    * WIP
    
    * feat(gatsby-recipes): Implement a wait for input state when props are missing for a resource
    
    * chore(gatsby-recipes): Use an INVALID_PROP event for schema validation
    
    * feat(gatsby-recipes): Wrap intro and each step with components, add metadata
    
    * chore(gatsby-recipes): Spike out basic gui component for steps
    
    * Lots of styling changes
    
    * Put text & resources in same steps
    
    * Lots more styling tweaks
    
    * paragraphs had too much margin bottom
    
    * more style tweaks
    
    * feat(gatsby-recipes): Implement a wait for input state when props are missing for a resource
    
    Also adds the use of an INVALID_PROP event for schema validation.
    
    * chore(gatsby-recipes): Use MDX v2 canary for access to the JSX AST
    
    * feat(gatsby-recipes): Apply a UUID prop to all resources for input handling
    
    * checkin: Begin wiring up event for passing input data to server
    
    * fix(gatsby-recipes): Update step wrapping for MDX v2
    
    * fix(gatsby-recipes): Get tests passing, add debugging output
    
    * Get applying working
    
    * PROGRESSSSS
    
    * feat(gatsby-recipes): Allow for inputs based on uuid to override props
    
    * Remove sleep
    
    * style tweaks
    
    * Add updater to input provider, spike out File form
    
    * feat(gatsby-recipes): Implement basic input functionality
    
    * feat(gatsby-recipes): Spike out a contentful space resource, use renderer for applying plan
    
    * feat(gatsby-recipes): Spike out contentful provider and basic rendering (#24655)
    
    * feat(gatsby-recipes): Spike out contentful provider and basic rendering
    
    * Update packages/gatsby-recipes/src/gui.js
    
    * WIP
    
    * More design tweaks
    
    * Style inline code
    
    * Update packages/gatsby-recipes/recipes/cypress.mdx
    
    Co-authored-by: Marcy Sutton <marcy@gatsbyjs.com>
    
    * Update packages/gatsby-recipes/recipes/cypress.mdx
    
    Co-authored-by: Marcy Sutton <marcy@gatsbyjs.com>
    
    * Update packages/gatsby-recipes/recipes/cypress.mdx
    
    Co-authored-by: Marcy Sutton <marcy@gatsbyjs.com>
    
    * feat(gatsby-recipes): fix MDX rendering for exports (#25133)
    
    * feat(gatsby-recipes): Handle exports, render MDX directly
    
    * Continue working towards proper exports
    
    * Continue implementing MDX renderer v2
    
    * More MDX rendering hacking
    
    * Finish basic export handling
    
    * Small fixes
    
    Co-authored-by: John Otander <johnotander@gmail.com>
    
    * live updating is working more-or-less
    
    * Speedups & cleanups
    
    * Rename hook to match signature
    
    * Rename context
    
    * Add support for useResourceByKey
    
    * fix @babel/template not accepting integers as options
    
    * Only update resources when it's changed
    
    * make child Resource components work
    
    * rename useResourceByKey -> useResource
    
    * Implement ContentfulEntry resource
    
    * Add useProvider & ensure only apply resource once
    
    * Address some design feedback
    
    * Fix spacing for input forms
    
    * Fix spacing and size of step indicator
    
    * Flatten nested resources in display
    
    * Use input builtins from gatsby-interface
    
    * Add special file diff
    
    * Get things running again
    
    * Reload recipe session on changes
    
    - when the recipe file is updated
    - when the recipe api is restarted
    - when the browser is refreshed.
    
    * Update tests
    
    * Only emit updates when the state has actually changed
    
    * Fix building recipe component
    
    * update resolutions/dependencies
    
    * fix fetch dependency
    
    * moer fixes
    
    * Upgrade to Ink v3 & start migrating cli to showing all steps
    
    * Properly handle nested resources when rendering the plan (#25930)
    
    * Don't hardcode port
    
    * Ensure that nested resource get resourceName populated
    
    * feat(gatsby-recipes): Refactor CLI UI for new one-shot show plan (#25939)
    
    * feat(gatsby-recipes): Refactor CLI UI for new one-shot show plan
    
    * Restore experimental message + showing list of recipes to run
    
    * Add a --develop command for hot-reloading of recipes
    
    * Add --install command support
    
    * Remove unused code + old pre Ink v3 logging system
    
    * Cleanup + show step count
    
    * Remove console.log
    
    * add key
    
    * small fixes + add script to start dev server
    
    * Add dev instructions for running the recipes graphql server in the foreground
    
    * small fixes
    
    * @babel/standalone caches transforms unless you delete the require cache
    
    * fix linting problems
    
    * Extract shared code into common library
    
    * Checkin useInput beginning
    
    * Ensure that diff html isn't rendered by escaping
    
    * Update providers snapshots, looked like they weren't run with chalk turned off
    
    * Update other snapshots as well
    
    * Begin fixing some lint errors
    
    * Fix some more lint errors
    
    * Fix grabbing the right resource
    
    Co-authored-by: John Otander <johnotander@gmail.com>
    
    * move back to v2 for deploying for compatability with the regular CLI
    
    * Also do a compatability layer for <Box>
    
    * test
    
    * Add missing dependency
    
    * sad
    
    * Add rollup to bundle the cli app so we can use Ink v3
    
    * Move packages packed by rollup to be dev dependencies as user won't need to download them
    
    * Remove console.logs
    
    * Remove logs
    
    * feat(gatsby-recipes): copy edits for some recipes (#26009)
    
    * Fix rendering li > p
    
    * Fix formatting of emotion recipe
    
    * Improve recipe
    
    * Name of key changed
    
    * Match keyed resources correctly in the install step + cleanups
    
    * Fix linting errors
    
    * fix margin
    
    * Surround inlineCode with back ticks so it looks like markdown
    
    * vendor ink-link as it's not upgraded to v3 yet
    
    * feat(gatsby-recipes) (#26085)
    
    * prettier file
    
    * Fix linting errors
    
    * feat(gatsby-recipes): fix recipes copy 2 (#26115)
    
    * feat(gatsby-recipes)
    
    * second half of copy edits
    
    donezo!
    
    * feat(gatsby-source-shopify): Add shopifyShop query (#25763)
    
    * Start moving gatsby-telemetry to typescript (#25812)
    
    * Fix camelCase
    
    * Start moving gatsby-telemetry to ts
    
    * Continue converting base to typescript
    
    * Debug transpilation issues
    
    * Debug transpilation issues
    
    * Fix telemetry tests
    
    * Add Changelog entry for merged PR #24306
    
    * chore(gatsby-telemetry): Migrate is-truthy to TypeScript (#25884)
    
    * Detect vercel again after rebranding in gatsby-telemetry (#25883)
    
    * Detect vercel again after rebranding as per https://vercel.com/docs/v2/build-step
    
    * Add another Vercel NOW matcher
    
    * chore(gatsby-telemetry): Migrate flush to TypeScript (#25886)
    
    * feat(gatsby-source-shopify): set link from product variant to product (#25316)
    
    * fix: update www (#25874)
    
    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    
    * docs(gatsby-internals): update page -> node dependency tracking (#25606)
    
    * docs(gatsby-internals): update page -> node dependency tracking
    
    * Apply suggestions from code review
    
    Co-authored-by: Aisha Blake <aisha@gatsbyjs.com>
    
    * remove surplus `and` from performance comma list (#25891)
    
    * fixed typo (#25896)
    
    * fix(gatsby): Support symlinks in static directories (#25894)
    
    * Added the link to 'MDX' (#25905)
    
    * Update localization-i18n.md (#25902)
    
    Some important links for **React-intl** had broken due to update in repo whose links were given. Added the correct links to it.
    
    * added a cookieflags option (#25907)
    
    Co-authored-by: Thijs van Diessen <thijs.vandiessen@incentro.com>
    
    * fix(readme): gatsby-source-shopify: unify variable names (#25882)
    
    * chore(showcase): Add MongoDB Developer Hub (#25892)
    
    * Add file names to code blocks (#25879)
    
    * enhancement(docs): dictionary.txt -> CodePen -> fix brand name (#25875)
    
    * feat(gatsby-admin): list all pages of site (#25744)
    
    * feat(gatsby-admin): plugin search (#25903)
    
    * Copy plugin search from www into admin
    
    * Move to Combobox search
    
    * Cleanup
    
    * TypeScript cleanup
    
    * add algolia types
    
    * Fix syntax
    
    * fix: Restore CLI port in use prompt feature (#25863)
    
    * fix: Restore CLI port in use prompt feature
    
    Seems like it got accidentally removed during a big PR?
    
    * fix: Ensure port var types are the same
    
    The CLI option and default value for `port` is a string, despite the TypeScript typing the arg to `number`.
    
    Unclear if `port` should be a `number` elsewhere, so checking for and converting to a number within the utility.
    
    * Fix/follow up 25863 (#25915)
    
    * fix: Restore CLI port in use prompt feature
    
    Seems like it got accidentally removed during a big PR?
    
    * fix: Ensure port var types are the same
    
    The CLI option and default value for `port` is a string, despite the TypeScript typing the arg to `number`.
    
    Unclear if `port` should be a `number` elsewhere, so checking for and converting to a number within the utility.
    
    * Force program.port to a number early
    
    Co-authored-by: polarathene <5098581+polarathene@users.noreply.github.com>
    
    * chore(release): Publish
    
     - babel-preset-gatsby@0.5.3
     - gatsby-admin@0.1.97
     - gatsby-cli@2.12.64
     - gatsby-core-utils@1.3.13
     - gatsby-page-utils@0.2.18
     - gatsby-plugin-google-analytics@2.3.13
     - gatsby-plugin-manifest@2.4.20
     - gatsby-plugin-mdx@1.2.28
     - gatsby-plugin-offline@3.2.20
     - gatsby-plugin-page-creator@2.3.18
     - gatsby-plugin-preload-fonts@1.2.18
     - gatsby-plugin-sharp@2.6.21
     - gatsby-recipes@0.1.54
     - gatsby-remark-images@3.3.20
     - gatsby-source-contentful@2.3.29
     - gatsby-source-drupal@3.5.24
     - gatsby-source-filesystem@2.3.21
     - gatsby-source-shopify@3.2.23
     - gatsby-source-wordpress@3.3.24
     - gatsby-telemetry@1.3.21
     - gatsby-transformer-remark@2.8.26
     - gatsby-transformer-sqip@2.3.21
     - gatsby@2.24.8
    
    * Capture repositoryId from heroku (#25910)
    
    * Capture repositoryId from heroku
    
    * Add comments
    
    * fixed typo (#25912)
    
    * Update README.md (#25901)
    
    No need to link to `example.com` it's a sample domain.
    
    * Add __BASE_PATH__ definition to storybook config (#25643)
    
    * Add __BASE_PATH__ definition to storybook config
    
    * Globals need not be defined for Storybook Docs
    
    Update to Docs: Removes the need to declare the `__BASE_PATH__` and `__PATH_PREFIX__` in the Storybook config for Tests to work
    
    * fix(gatsby): don't place virtual modules in node_modules directory (#25720)
    
    * fix(gatsby): don't place virtual modules in node_modules directory
    
    * fix eslint rule
    
    Co-authored-by: Ward Peeters <ward@coding-tech.com>
    
    * chore(doc):Add guide to Deploy Gatsby to DigitalOcean droplet.  (#24652)
    
    * Added doc for deploying to digitalocean droplet
    
    Added doc for deploying gatsby site to digitalocean droplet and configuring domain name with SSL. For issue #24549 .
    
    * Updated with deploying to digitalocean droplet doc
    
    Updated with deploying to digitalocean droplet doc to fix issue #24549.
    
    * Added missing code language flag to fix lint check
    
    Lint Check failed due to one code language flag was missing in one of the code snippet in the md file. Fixed that.
    
    * Updated grammar and styles as per code review
    
    Co-authored-by: Marcy Sutton <marcy@gatsbyjs.com>
    
    * Removed the line for brevity
    
    * Updated grammar change for line #11 as per code review
    
    * Ran prettier to format the code
    
    * Added step to install dependencies after cloning
    
    * Change case of node to Node as per suggestion.
    
    Co-authored-by: Marcy Sutton <marcy@gatsbyjs.com>
    
    * Changing optional to required for installing version of Node
    
    Gatsby required Node 10, so making the use of n package while installing the Node on digitalocean as a REQUIRED step.
    
    Co-authored-by: Marcy Sutton <marcy@gatsbyjs.com>
    
    * Adding suggested changes for better understanding.
    
    Co-authored-by: Marcy Sutton <marcy@gatsbyjs.com>
    
    * Adding the suggested changes.
    
    Using "Generate your Gatsby site for production" instead of "Build your gatsby site to generate static site for production"
    
    Co-authored-by: Marcy Sutton <marcy@gatsbyjs.com>
    
    * Making changes as per suggestion by moderator
    
    Making the docs style changes as suggested by moderator marcysutton
    
    Co-authored-by: Marcy Sutton <marcy@gatsbyjs.com>
    
    * Making changes as per suggestion
    
    Co-authored-by: Marcy Sutton <marcy@gatsbyjs.com>
    
    * Making changes as per the suggestion
    
    Co-authored-by: Marcy Sutton <marcy@gatsbyjs.com>
    
    * Update docs/docs/deploying-to-digitalocean-droplet.md
    
    Co-authored-by: Marcy Sutton <marcy@gatsbyjs.com>
    
    * Making changes as per the suggestion
    
    Adding path resemble line to make it easy for people to understand the path
    
    Co-authored-by: Marcy Sutton <marcy@gatsbyjs.com>
    
    * Adding changes as per the suggestion
    
    Co-authored-by: Marcy Sutton <marcy@gatsbyjs.com>
    
    * Making changes as per the suggestion
    
    Co-authored-by: Marcy Sutton <marcy@gatsbyjs.com>
    
    * Added snippet to get rid of permission denied
    
    Added snippet to get rid of permission denied while cloning the repository
    
    * Adding indentation as per linting rules
    
    * Ran prettier
    
    * Updating grammar as per suggested
    
    Co-authored-by: Marcy Sutton <marcy@gatsbyjs.com>
    
    * Added note to copy local repo path for future ref
    
    * Ran prettier to format the code
    
    Co-authored-by: Marcy Sutton <marcy@gatsbyjs.com>
    
    * Update migrating-from-v1-to-v2.md (#25832)
    
    * fix dictionary for digitalocean guide (#25936)
    
    * fix(docs): show where `getNodesByType` comes from (#25344)
    
    * show where getNodesByType comes from
    
    * indicate the code is an example per PR feedback
    
    Co-authored-by: Marcy Sutton <marcy@gatsbyjs.com>
    
    Co-authored-by: Marcy Sutton <marcy@gatsbyjs.com>
    
    * chore(docs): Changes to "Setting Up Your Local Dev Environment" doc (#25721)
    
    * chore(gatsby): add log to gatsby develop if Admin is enabled (#25943)
    
    * feat(gatsby): Defer node mutation during querying (#25479)
    
    * Move bootstrap into machine
    
    * Add parent span and query extraction
    
    * Add rebuildSchemaWithSitePage
    
    * Use values from context
    
    * Remove logs
    
    * Add redirectListener
    
    * Changes from review
    
    * Log child state transitions
    
    * Add state machine for query running
    
    * Changes from review
    
    * Changes from review
    
    * Switch to reporter
    
    * Use assertStore
    
    * Remove unused action
    
    * Remove unusued config
    
    * Remove unusued config
    
    * Add gql runner reset
    
    * Handle node mutation queuing and batching in state machine
    
    * Use new pagedata utils
    
    * Use develop queue
    
    * New xstate syntax
    
    * Work-around xstate bug
    
    * Track first run
    
    * Track first run
    
    * Disable --quiet in e2e
    
    * Don't defer node mutation if we're outside the state machine
    
    * Re-quieten e2e
    
    * Listen for query file changes
    
    * Lint
    
    * Handle webhook
    
    * Changes from review
    
    * Fix typings
    
    * Changes from review
    
    * Typefix
    
    * feat(gatsby): Move final parts into develop state machine (#25716)
    
    * Move remaining parts into state machine
    
    * Move top level state machine into state machines dir
    
    * Add machine ids
    
    * Add missing imports
    
    * Resolve api promises
    
    * Remove unused action
    
    * Move logging into helper
    
    * Changes from review
    
    * Manually save db
    
    * Add comments
    
    * Remove first run from query running
    
    * Refactor into separate data layer machines
    
    * Fix condition
    
    Co-authored-by: gatsbybot <mathews.kyle+gatsbybot@gmail.com>
    
    * chore(release): Publish
    
     - gatsby-admin@0.1.98
     - gatsby-cli@2.12.65
     - gatsby-recipes@0.1.55
     - gatsby-source-contentful@2.3.30
     - gatsby-source-drupal@3.5.25
     - gatsby-source-filesystem@2.3.22
     - gatsby-source-shopify@3.2.24
     - gatsby-source-wordpress@3.3.25
     - gatsby-telemetry@1.3.22
     - gatsby@2.24.9
    
    * fix(docs): Fix broken mdx (#25946)
    
    * chore(gatsby-admin): build in postbuild of gatsby instead of prepublish (#25940)
    
    * Move admin to postbuild of gatsby
    
    * Remove prepublish gatsby-admin build
    
    * Dont run tests in .cache
    
    * Ignore _tests_ in .cache
    
    * Use local copy of Gatsby to build gatsby-admin
    
    * perf(gatsby-source-contentful): speed up resolving of huge spaces (#25954)
    
    closes #25464
    
    * docs: use hello-world starter in quick start guide instead of default starter (#25914)
    
    * Small tweak to see if we can reduce errors driven by the default starter using  and its dependency on sharp.
    
    * chore: format
    
    * Reverted working directory name
    
    A change to address feedback about changing the name to preserve continuity with current manual recipes.
    
    Co-authored-by: gatsbybot <mathews.kyle+gatsbybot@gmail.com>
    
    * chore(docs): Fix RFC typo (#25970)
    
    * chore(gatsby-admin): cleanup stale artifacts pre build (#25972)
    
    * Handle webpack in state machine (#25815)
    
    Co-authored-by: gatsbybot <mathews.kyle+gatsbybot@gmail.com>
    
    * chore(release): Publish
    
     - gatsby-admin@0.1.99
     - gatsby-source-contentful@2.3.31
     - gatsby@2.24.10
    
    * fix(gatsby-admin): show error messages in the interface (#25944)
    
    * docs(gatsby-admin): more detailed architecture explanation (#25941)
    
    * Write more detailed Admin architecture docs
    
    * Add section on production deployment to gatsby-admin docs
    
    * Absolute URLs so they work on npm etc.
    
    * Fix pronouns and wording
    
    * Clean up some more
    
    * Tighten up language around production deployment
    
    Co-authored-by: Brent Jackson <jxnblk@gmail.com>
    
    * Update packages/gatsby-admin/README.md
    
    Co-authored-by: Brent Jackson <jxnblk@gmail.com>
    
    Co-authored-by: Brent Jackson <jxnblk@gmail.com>
    
    * fix(gatsby): call predicate for the root ancestor in findRootNodeAncestor (#25974)
    
    * fix(gatsby-admin): small design tweaks (#25971)
    
    * feat(gatsby): Add internal types export (#25921)
    
    * Handle webpack in state machine
    
    * Add internal export
    
    * feat(plugin-manifest): support SVG favicon (#25276)
    
    Co-authored-by: Yogi <me@yogi.codes>
    
    * maintenance(www) remove unused dependencies (#25463)
    
    Co-authored-by: Aisha Blake <aisha@gatsbyjs.com>
    
    * Update contributor-swag.md (#25980)
    
    Based on a recent increase in the volume of requests, I'm updating how people can request their free Gatsby swag for contributions that aren't made on GitHub.
    
    * feat(gatsby-source-filesystem): improve wrong url rejection message (#25965)
    
    * feat(gatsby-source-filesystem: improve wrong url rejection message
    
    The existing message made tracing down a bug from within the new WP source plugin harder than necessary.
    
    Old message: `wrong url: ${url}`
    
    Updated message: `url passed to createRemoteFileNode is either missing or not a proper web uri: ${url}`
    
    * chore: format
    
    * update rejects test to match new message
    
    Co-authored-by: gatsbybot <mathews.kyle+gatsbybot@gmail.com>
    
    * Also detect VERCEL_BUILDER should Vercel one day use it as per the docs (#25926)
    
    * fix(babel-preset-gatsby): enable transformer-regenerator (#25983)
    
    * fix(docs): bash to shell (#25958)
    
    * change bash to shell
    
    * dont change text file code language
    
    * chore: add tests to static-query filepaths (#25978)
    
    * chore: add tests to static-query filepaths
    
    * fix windows paths
    
    * chore(release): Publish
    
     - babel-preset-gatsby@0.5.4
     - gatsby-admin@0.1.100
     - gatsby-cli@2.12.66
     - gatsby-core-utils@1.3.14
     - gatsby-page-utils@0.2.19
     - gatsby-plugin-manifest@2.4.21
     - gatsby-plugin-mdx@1.2.29
     - gatsby-plugin-offline@3.2.21
     - gatsby-plugin-page-creator@2.3.19
     - gatsby-plugin-preload-fonts@1.2.19
     - gatsby-plugin-sharp@2.6.22
     - gatsby-recipes@0.1.56
     - gatsby-remark-images@3.3.21
     - gatsby-source-contentful@2.3.32
     - gatsby-source-drupal@3.5.26
     - gatsby-source-filesystem@2.3.23
     - gatsby-source-shopify@3.2.25
     - gatsby-source-wordpress@3.3.26
     - gatsby-telemetry@1.3.23
     - gatsby-transformer-remark@2.8.27
     - gatsby-transformer-sqip@2.3.22
     - gatsby@2.24.11
    
    * highlighted plugins (#25998)
    
    * Revert "perf(gatsby-plugin-mdx): drop another babel step during sourcing" (#26002)
    
    This reverts commit 6d0c791.
    
    * fix: Enable CLI integration tests (#25997)
    
    * [docs][glossary] add new entry for client-side rendering (#25984)
    
    * add new glossary entry for client-side routing
    
    * update text to address rendering vs. routing
    
    * Add link to page, rather than anchor
    
    Co-authored-by: Hashim Warren <hashim@gatsbyjs.com>
    
    * fix: do not augment plugin-options (#26006)
    
    * fix(gatsby-recipes) Fix docs for name in NPMPackage
    
    * fix: update www (#26043)
    
    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    
    * Added extra markup (#26030)
    
    * Added extra markup
    
    I found some js code which was not highlighted so I wrapped it in js code block,
    secondly, I added the link to reach/router as it was confusing if its react/router or reach/router
    
    * added the link to reach/router
    
    * Update glossary.md
    
    * chore(showcase): Add leanier.com site (#26016)
    
    * Add support for cache refresh via GraphiQL (#25960)
    
    * Add cache refresh button
    
    * Formatting
    
    * Explicit return type
    
    * www: Remove sw (#26054)
    
    * Docs: Add a warning about static queries (#25929)
    
    * feat(gatsby): Add top-level error handling to state machine (#25995)
    
    * chore: Update stale yarn.lock (#26068)
    
    * tests(gatsby): Add unit tests for develop state machine (#26051)
    
    * feat(gatsby): Add top-level error handling to state machine
    
    * Add initial tests
    
    * Add tests for top-level machine
    
    * Test error handling
    
    * Add post-bootstrap to tests
    
    * chore(showcase): Add johnkavanagh.co.uk (#25747)
    
    * chore(showcase): Minor changes Showcase Tatjana Volbeke Portfolio (#25613)
    
    * fix(gatsby): Defer node mutation in more APIs (#26067)
    
    * chore(release): Publish
    
     - gatsby-admin@0.1.101
     - gatsby-cli@2.12.67
     - gatsby-graphiql-explorer@0.4.12
     - gatsby-plugin-mdx@1.2.30
     - gatsby-plugin-sharp@2.6.23
     - gatsby-recipes@0.1.57
     - gatsby-remark-copy-linked-files@2.3.12
     - gatsby-remark-images-contentful@2.3.12
     - gatsby-remark-images@3.3.22
     - gatsby-remark-responsive-iframe@2.4.12
     - gatsby-source-contentful@2.3.33
     - gatsby-transformer-sqip@2.3.23
     - gatsby@2.24.12
    
    * chore(showcase): add Julien Karst website (#25682)
    
    Co-authored-by: Obinna Ekwuno <obinnacodes@gmail.com>
    
    * chore(showcase): BRIKL & TRUE STORY in showcase (#25631)
    
    * chore(showcase): BRIKL & TRUE STORY in showcase
    
    * chore(showcase): run prettier sites.yml
    
    Co-authored-by: Obinna Ekwuno <obinnacodes@gmail.com>
    
    * chore(blog): Add i18n theme blog post (#26065)
    
    * add blog post
    
    * fix linting
    
    * put head in code tag lol
    
    * chore(showcase): add Château de Morey 🏰 (#25683)
    
    Co-authored-by: Obinna Ekwuno <obinnacodes@gmail.com>
    
    * chore(showcase): meetup.com (#25792)
    
    Co-authored-by: Obinna Ekwuno <obinnacodes@gmail.com>
    
    * chore(gatsby): fix typegen for publishing (#26078)
    
    * chore(gatsby): add typescript as dev dependency
    
    * chore(gatsby): run typegen after rimraf
    
    * fix(gatsby): Delete babel and terser cache dirs (#26053)
    
    * Delete babel and terser cache dirs
    
    * Clean up yarn lock
    
    * fix yarn.lock (?)
    
    * verbose gatsby-dev
    
    * chore(gatsby): add typescript as dev dependency
    
    * Update e2e-test.sh
    
    * chore(gatsby): run typegen after rimraf
    
    Co-authored-by: Michal Piechowiak <misiek.piechowiak@gmail.com>
    Co-authored-by: gatsbybot <mathews.kyle+gatsbybot@gmail.com>
    
    * fix(gatsby): Load static query results from its own Db (#26077)
    
    * Load static query results from its own Db
    
    * Keep StaticQueryContext because it is public API
    
    * Switch to an Object for static query results from a Map
    
    * Move getStaticQueryResults to private API
    
    * chore(release): Publish
    
     - gatsby-admin@0.1.102
     - gatsby@2.24.13
    
    * fix(gatsby-image): add required check for one of fluid or fixed (#25371)
    
    * Do not crash the page if the image component is invoked without parameters
    
    * added a warning if missing fluid and fixed props
    
    * had swapped a condition
    
    * doing destructuring in function parameter list
    
    * now with functioning tree-shaking
    
    * updating function doc: returns undefined, not null
    
    * switching to proptypes for validation
    
    * Update packages/gatsby-image/src/index.js
    
    Co-authored-by: Andreas Ehrencrona <andreas@scholarsapp.com>
    Co-authored-by: Ward Peeters <ward@coding-tech.com>
    
    * fix(gatsby): Load resources in ProdPageRenderer (#26092)
    
    * Load resources in ProdPageRenderer
    
    * Add simple unit tests
    
    * chore(release): Publish
    
     - gatsby-admin@0.1.103
     - gatsby-image@2.4.14
     - gatsby@2.24.14
    
    * Update gatsby in www
    
    * Add plugincreator to API (#26101)
    
    * Add plugincreator to API
    
    * fix capitlization
    
    Co-authored-by: Laurie Barth <laurie@LauriesrkLaptop.fios-router.home>
    
    * chore(showcase): Add Devnet (#25952)
    
    Co-authored-by: Obinna Ekwuno <obinnacodes@gmail.com>
    
    * Add pluagin source for page (#26104)
    
    Co-authored-by: Laurie Barth <laurie@LauriesrkLaptop.fios-router.home>
    
    * fix(gatsby-source-contentful): support height parameter for srcset (#25776)
    
    * Calculate fixed image width if necessary
    
    * Calculate fixed image width if necessary
    
    * Revert snapshot test changes
    
    * Bring back new test
    
    * Update snapshot
    
    * chore(docs): Add author Colby Fayock (#26109)
    
    * adding Colby Fayock author avatar and bio
    
    * Update author.yaml
    
    adding new line at end of file
    
    * pretier
    
    * Use commonmark option to better handle list parsing
    
    * revert fixpack changes to root package.json
    
    * Squashed commit of the following:
    
    commit 33aff39
    Author: Kyle Mathews <mathews.kyle@gmail.com>
    Date:   Thu Jul 30 13:09:59 2020 -0700
    
        Update index.md
    
    * Actually fix lint error
    
    * Fix test
    
    * more fixing tests
    
    * Only log when DEBUG=true
    
    * Remove --quiet to see errors
    
    * Add rollup
    
    * resolve conflicts
    
    * remove testing code
    
    * Make yarn.lock file valid
    
    * WORK PLEASE
    
    * Add yoga-layout-prebuilt as explicit dependency to make rollup + yarn 2.0 happy
    
    * Add node-fetch as dependency
    
    * Update packages/gatsby-recipes/src/graphql-server/server.js
    
    Co-authored-by: Peter van der Zee <209817+pvdz@users.noreply.github.com>
    
    * Use string matching for NPMPackage versions
    
    * Add missing string matcher
    
    * Fix lint error
    
    * Add missing normalize.css dep
    
    Co-authored-by: John Otander <johnotander@gmail.com>
    Co-authored-by: Marcy Sutton <marcy@gatsbyjs.com>
    Co-authored-by: shannonbux <32467162+shannonbux@users.noreply.github.com>
    Co-authored-by: Paul Scanlon <pauliescanlon@gmail.com>
    Co-authored-by: Jarmo Isotalo <jamo@isotalo.fi>
    Co-authored-by: Blaine Kasten <blainekasten@gmail.com>
    Co-authored-by: Johnny Zabala <jzabala.s@gmail.com>
    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    Co-authored-by: Michal Piechowiak <misiek.piechowiak@gmail.com>
    Co-authored-by: Aisha Blake <aisha@gatsbyjs.com>
    Co-authored-by: Michael Murphy <mikeymurph77@gmail.com>
    Co-authored-by: Dawood Sadiq <dawoodsadiq171@gmail.com>
    Co-authored-by: James Brooks <52410024+jabrks@users.noreply.github.com>
    Co-authored-by: Haseeb Khan <haseebasif97@gmail.com>
    Co-authored-by: Ankit Ghosh <33004850+kaknut@users.noreply.github.com>
    Co-authored-by: Thijs <thijsvandiessen@users.noreply.github.com>
    Co-authored-by: Thijs van Diessen <thijs.vandiessen@incentro.com>
    Co-authored-by: Muescha <184316+muescha@users.noreply.github.com>
    Co-authored-by: Jordan Stapinski <jordan.stapinski@mongodb.com>
    Co-authored-by: Max Stoiber <contact@mxstbr.com>
    Co-authored-by: Brennan Kinney <5098581+polarathene@users.noreply.github.com>
    Co-authored-by: Nabeel Valley <36758308+nabeelvalley@users.noreply.github.com>
    Co-authored-by: Ward Peeters <ward@coding-tech.com>
    Co-authored-by: Vatsal Mistry <mistryvatsal11@gmail.com>
    Co-authored-by: Jack <jpwww@protonmail.com>
    Co-authored-by: Kurt Tomlinson <kurttomlinson@gmail.com>
    Co-authored-by: Lennart <lekoarts@gmail.com>
    Co-authored-by: Matt Kane <matt@gatsbyjs.com>
    Co-authored-by: gatsbybot <mathews.kyle+gatsbybot@gmail.com>
    Co-authored-by: Benedikt Rötsch <axe312ger@users.noreply.github.com>
    Co-authored-by: Joel Smith <jsumnersmith@gmail.com>
    Co-authored-by: Brent Jackson <jxnblk@gmail.com>
    Co-authored-by: Vladimir Razuvaev <vladimir.razuvaev@gmail.com>
    Co-authored-by: Alex Moon <moonmeister@users.noreply.github.com>
    Co-authored-by: Yogi <me@yogi.codes>
    Co-authored-by: Nat Alison <1278991+tesseralis@users.noreply.github.com>
    Co-authored-by: Laci-Texter <46265213+Laci-Texter@users.noreply.github.com>
    Co-authored-by: Tyler Barnes <tylerdbarnes@gmail.com>
    Co-authored-by: LB <laurie@gatsbyjs.com>
    Co-authored-by: Hashim Warren <hashim@gatsbyjs.com>
    Co-authored-by: anubhavmeet <57403244+anubhavmeet@users.noreply.github.com>
    Co-authored-by: Dan Kirkham <herecy@live.co.uk>
    Co-authored-by: Sidhartha Chatterjee <me@sidharthachatterjee.com>
    Co-authored-by: John Kavanagh <mail@johnkavanagh.co.uk>
    Co-authored-by: Julius <jlsvaicius@users.noreply.github.com>
    Co-authored-by: Julien Karst <JulienKode@users.noreply.github.com>
    Co-authored-by: Obinna Ekwuno <obinnacodes@gmail.com>
    Co-authored-by: Tobias Meixner <MeixnerTobias@users.noreply.github.com>
    Co-authored-by: Andy Stanberry <astanberry@meetup.com>
    Co-authored-by: Andreas Ehrencrona <andreas.ehrencrona@velik.it>
    Co-authored-by: Andreas Ehrencrona <andreas@scholarsapp.com>
    Co-authored-by: Laurie Barth <laurie@LauriesrkLaptop.fios-router.home>
    Co-authored-by: Marin Matošević <7361552+Marin-Matosevic@users.noreply.github.com>
    Co-authored-by: Sean Baines <mrseanbaines@gmail.com>
    Co-authored-by: Colby Fayock <colbyfayock@users.noreply.github.com>
    Co-authored-by: Peter van der Zee <209817+pvdz@users.noreply.github.com>

    Partially verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    We cannot verify signatures from co-authors, and some of the co-authors attributed to this commit require their commits to be signed.
    Copy the full SHA
    07085fa View commit details
  7. RFC: File System Routing Improvements (#24463)

    * RFC: Secret
    
    * Update 0013-secret.md
    
    * Update 0013-secret.md
    
    * rename rfc
    blainekasten authored Aug 3, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    dd6550c View commit details
  8. chore(release): Publish

     - gatsby-admin@0.1.114
     - gatsby-cli@2.12.70
     - gatsby-plugin-mdx@1.2.33
     - gatsby-recipes@0.2.0
     - gatsby@2.24.25
    johno committed Aug 3, 2020
    Copy the full SHA
    911831a View commit details
Showing with 4,477 additions and 1,190 deletions.
  1. +4 −0 packages/gatsby-admin/CHANGELOG.md
  2. +2 −2 packages/gatsby-admin/package.json
  3. +6 −0 packages/gatsby-cli/CHANGELOG.md
  4. +2 −2 packages/gatsby-cli/package.json
  5. +22 −2 packages/gatsby-cli/src/create-cli.ts
  6. +6 −2 packages/gatsby-cli/src/recipes.ts
  7. +12 −0 packages/gatsby-plugin-mdx/CHANGELOG.md
  8. +11 −10 packages/gatsby-plugin-mdx/gatsby/on-create-node.js
  9. +3 −9 packages/gatsby-plugin-mdx/loaders/mdx-loader.js
  10. +2 −2 packages/gatsby-plugin-mdx/loaders/mdx-loader.test.js
  11. +1 −1 packages/gatsby-plugin-mdx/package.json
  12. +20 −0 packages/gatsby-plugin-mdx/utils/__tests__/__snapshots__/import-parser.js.snap
  13. +14 −0 packages/gatsby-plugin-mdx/utils/__tests__/fixtures/test-plugin.js
  14. +59 −0 packages/gatsby-plugin-mdx/utils/__tests__/gen-mdx.js
  15. +58 −1 packages/gatsby-plugin-mdx/utils/__tests__/import-parser.js
  16. +43 −14 packages/gatsby-plugin-mdx/utils/create-mdx-node.js
  17. +16 −20 packages/gatsby-plugin-mdx/utils/gen-mdx.js
  18. +3 −2 packages/gatsby-plugin-mdx/utils/import-parser.js
  19. +0 −45 packages/gatsby-plugin-mdx/utils/mdx-node-with-scope.js
  20. +7 −0 packages/gatsby-recipes/.babelrc.json
  21. +6 −0 packages/gatsby-recipes/CHANGELOG.md
  22. +2 −0 packages/gatsby-recipes/README.md
  23. 0 packages/gatsby-recipes/{babel.config.js → non-rollup-babel.config.js}
  24. +78 −41 packages/gatsby-recipes/package.json
  25. +5 −5 packages/gatsby-recipes/recipes/animated-page-transitions.mdx
  26. +7 −5 packages/gatsby-recipes/recipes/ava.mdx
  27. +8 −15 packages/gatsby-recipes/recipes/cypress.mdx
  28. +8 −6 packages/gatsby-recipes/recipes/emotion.mdx
  29. +9 −7 packages/gatsby-recipes/recipes/eslint.mdx
  30. +6 −7 packages/gatsby-recipes/recipes/gatsby-plugin-layout.mdx
  31. +7 −9 packages/gatsby-recipes/recipes/gatsby-plugin-react-helmet.mdx
  32. +8 −5 packages/gatsby-recipes/recipes/gatsby-theme-blog-core.mdx
  33. +7 −6 packages/gatsby-recipes/recipes/gatsby-theme-blog.mdx
  34. +8 −5 packages/gatsby-recipes/recipes/gatsby-theme-notes.mdx
  35. +6 −4 packages/gatsby-recipes/recipes/gitlab-ci-cd.mdx
  36. +11 −9 packages/gatsby-recipes/recipes/jest.mdx
  37. +11 −9 packages/gatsby-recipes/recipes/mdx-images.mdx
  38. +9 −9 packages/gatsby-recipes/recipes/mdx-pages.mdx
  39. +6 −4 packages/gatsby-recipes/recipes/preact.mdx
  40. +11 −9 packages/gatsby-recipes/recipes/prettier-git-hook.mdx
  41. +9 −7 packages/gatsby-recipes/recipes/pwa.mdx
  42. +6 −6 packages/gatsby-recipes/recipes/sass.mdx
  43. +9 −9 packages/gatsby-recipes/recipes/storybook-js.mdx
  44. +9 −9 packages/gatsby-recipes/recipes/storybook-ts.mdx
  45. +5 −5 packages/gatsby-recipes/recipes/styled-components.mdx
  46. +5 −6 packages/gatsby-recipes/recipes/tailwindcss.mdx
  47. +6 −6 packages/gatsby-recipes/recipes/theme-ui.mdx
  48. +7 −5 packages/gatsby-recipes/recipes/travis-deploy-github-pages.mdx
  49. +6 −6 packages/gatsby-recipes/recipes/typescript.mdx
  50. +9 −9 packages/gatsby-recipes/recipes/wordpress.mdx
  51. +60 −0 packages/gatsby-recipes/rollup.config.js
  52. +10 −32 packages/gatsby-recipes/src/apply-plan.js
  53. +266 −265 packages/gatsby-recipes/src/{cli.js → cli/index.js}
  54. +35 −0 packages/gatsby-recipes/src/components/mdx.js
  55. +3 −7 packages/gatsby-recipes/src/create-plan.js
  56. +160 −0 packages/gatsby-recipes/src/create-types.test.js
  57. +14 −10 packages/gatsby-recipes/src/graphql-server/index.js
  58. +82 −39 packages/gatsby-recipes/src/graphql-server/server.js
  59. +37 −0 packages/gatsby-recipes/src/graphql-server/start-dev-cli-server.js
  60. +1,015 −0 packages/gatsby-recipes/src/gui.js
  61. +2 −3 packages/gatsby-recipes/src/index.js
  62. +0 −102 packages/gatsby-recipes/src/parser/__snapshots__/index.test.js.snap
  63. +82 −6 packages/gatsby-recipes/src/parser/index.js
  64. +10 −2 packages/gatsby-recipes/src/parser/index.test.js
  65. +25 −0 packages/gatsby-recipes/src/parser/util.js
  66. +3 −1 packages/gatsby-recipes/src/parser/validate.test.js
  67. +11 −0 packages/gatsby-recipes/src/providers/contentful/client.js
  68. +80 −0 packages/gatsby-recipes/src/providers/contentful/entry.js
  69. +65 −0 packages/gatsby-recipes/src/providers/contentful/environment.js
  70. +94 −0 packages/gatsby-recipes/src/providers/contentful/space.js
  71. +75 −0 packages/gatsby-recipes/src/providers/contentful/type.js
  72. +1 −1 packages/gatsby-recipes/src/providers/fs/file.js
  73. +37 −9 packages/gatsby-recipes/src/providers/gatsby/plugin.js
  74. +1 −1 packages/gatsby-recipes/src/providers/gatsby/plugin.test.js
  75. +5 −2 packages/gatsby-recipes/src/providers/gatsby/utils/build-plugin-node.js
  76. +4 −4 packages/gatsby-recipes/src/providers/npm/__snapshots__/script.test.js.snap
  77. +2 −2 packages/gatsby-recipes/src/providers/npm/script.js
  78. +1 −0 packages/gatsby-recipes/src/providers/resource-schema.js
  79. +1 −1 packages/gatsby-recipes/src/providers/utils/get-diff.js
  80. +10 −6 packages/gatsby-recipes/src/providers/utils/get-graphql-fields.js
  81. +10 −10 packages/gatsby-recipes/src/providers/utils/get-graphql-fields.test.js
  82. +0 −18 packages/gatsby-recipes/src/recipe-machine/__snapshots__/index.test.js.snap
  83. +73 −17 packages/gatsby-recipes/src/recipe-machine/index.js
  84. +3 −50 packages/gatsby-recipes/src/recipe-machine/index.test.js
  85. +17 −0 packages/gatsby-recipes/src/renderer/babel-plugin-copy-key-prop.js
  86. +56 −0 packages/gatsby-recipes/src/renderer/babel-plugin-move-export-keywords.js
  87. +74 −0 packages/gatsby-recipes/src/renderer/babel-plugin-remove-shortcodes.js
  88. +25 −30 packages/gatsby-recipes/src/renderer/index.js
  89. +76 −5 packages/gatsby-recipes/src/renderer/index.test.js
  90. +30 −0 packages/gatsby-recipes/src/renderer/input-provider.js
  91. +15 −0 packages/gatsby-recipes/src/renderer/input.js
  92. +19 −0 packages/gatsby-recipes/src/renderer/parent-resource-provider.js
  93. +18 −0 packages/gatsby-recipes/src/renderer/provider-provider.js
  94. +18 −5 packages/gatsby-recipes/src/renderer/reconciler.js
  95. +206 −39 packages/gatsby-recipes/src/renderer/render.js
  96. +130 −3 packages/gatsby-recipes/src/renderer/render.test.js
  97. +7 −7 packages/gatsby-recipes/src/renderer/resource-components.js
  98. +22 −0 packages/gatsby-recipes/src/renderer/resource-provider.js
  99. +22 −0 packages/gatsby-recipes/src/renderer/step-component.js
  100. +53 −8 packages/gatsby-recipes/src/renderer/transform-to-plan-structure.js
  101. +8 −0 packages/gatsby-recipes/src/resources.js
  102. +59 −0 packages/gatsby-recipes/src/transform-recipe-mdx.js
  103. +6 −0 packages/gatsby/CHANGELOG.md
  104. +8 −3 packages/gatsby/package.json
  105. +84 −0 rfcs/text/0013-file-system-routing-expanded.md
  106. +1 −1 scripts/e2e-test.sh
  107. +12 −12 www/package.json
  108. +659 −154 yarn.lock
4 changes: 4 additions & 0 deletions packages/gatsby-admin/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [0.1.114](https://github.com/gatsbyjs/gatsby/compare/gatsby-admin@0.1.113...gatsby-admin@0.1.114) (2020-08-03)

**Note:** Version bump only for package gatsby-admin

## [0.1.113](https://github.com/gatsbyjs/gatsby/compare/gatsby-admin@0.1.112...gatsby-admin@0.1.113) (2020-08-03)

**Note:** Version bump only for package gatsby-admin
4 changes: 2 additions & 2 deletions packages/gatsby-admin/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gatsby-admin",
"version": "0.1.113",
"version": "0.1.114",
"main": "index.js",
"author": "Max Stoiber",
"license": "MIT",
@@ -19,7 +19,7 @@
"csstype": "^2.6.10",
"feedback-fish": "^0.1.12",
"formik": "^2.1.4",
"gatsby": "^2.24.24",
"gatsby": "^2.24.25",
"gatsby-interface": "0.0.183",
"gatsby-plugin-typescript": "^2.4.16",
"gatsby-plugin-webfonts": "^1.1.3",
6 changes: 6 additions & 0 deletions packages/gatsby-cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -3,6 +3,12 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [2.12.70](https://github.com/gatsbyjs/gatsby/compare/gatsby-cli@2.12.69...gatsby-cli@2.12.70) (2020-08-03)

### Features

- **gatsby-recipes:** add recipes gui ([#24595](https://github.com/gatsbyjs/gatsby/issues/24595)) ([07085fa](https://github.com/gatsbyjs/gatsby/commit/07085fa)), closes [#24655](https://github.com/gatsbyjs/gatsby/issues/24655) [#25133](https://github.com/gatsbyjs/gatsby/issues/25133) [#25930](https://github.com/gatsbyjs/gatsby/issues/25930) [#25939](https://github.com/gatsbyjs/gatsby/issues/25939) [#26009](https://github.com/gatsbyjs/gatsby/issues/26009) [#26085](https://github.com/gatsbyjs/gatsby/issues/26085) [#26115](https://github.com/gatsbyjs/gatsby/issues/26115) [#25763](https://github.com/gatsbyjs/gatsby/issues/25763) [#25812](https://github.com/gatsbyjs/gatsby/issues/25812) [#24306](https://github.com/gatsbyjs/gatsby/issues/24306) [#25884](https://github.com/gatsbyjs/gatsby/issues/25884) [#25883](https://github.com/gatsbyjs/gatsby/issues/25883) [#25886](https://github.com/gatsbyjs/gatsby/issues/25886) [#25316](https://github.com/gatsbyjs/gatsby/issues/25316) [#25874](https://github.com/gatsbyjs/gatsby/issues/25874) [#25606](https://github.com/gatsbyjs/gatsby/issues/25606) [#25891](https://github.com/gatsbyjs/gatsby/issues/25891) [#25896](https://github.com/gatsbyjs/gatsby/issues/25896) [#25894](https://github.com/gatsbyjs/gatsby/issues/25894) [#25905](https://github.com/gatsbyjs/gatsby/issues/25905) [#25902](https://github.com/gatsbyjs/gatsby/issues/25902) [#25907](https://github.com/gatsbyjs/gatsby/issues/25907) [#25882](https://github.com/gatsbyjs/gatsby/issues/25882) [#25892](https://github.com/gatsbyjs/gatsby/issues/25892) [#25879](https://github.com/gatsbyjs/gatsby/issues/25879) [#25875](https://github.com/gatsbyjs/gatsby/issues/25875) [#25744](https://github.com/gatsbyjs/gatsby/issues/25744) [#25903](https://github.com/gatsbyjs/gatsby/issues/25903) [#25863](https://github.com/gatsbyjs/gatsby/issues/25863) [#25915](https://github.com/gatsbyjs/gatsby/issues/25915) [#25910](https://github.com/gatsbyjs/gatsby/issues/25910) [#25912](https://github.com/gatsbyjs/gatsby/issues/25912) [#25901](https://github.com/gatsbyjs/gatsby/issues/25901) [#25643](https://github.com/gatsbyjs/gatsby/issues/25643) [#25720](https://github.com/gatsbyjs/gatsby/issues/25720) [#24652](https://github.com/gatsbyjs/gatsby/issues/24652) [#24549](https://github.com/gatsbyjs/gatsby/issues/24549) [#24549](https://github.com/gatsbyjs/gatsby/issues/24549) [#11](https://github.com/gatsbyjs/gatsby/issues/11) [#25832](https://github.com/gatsbyjs/gatsby/issues/25832) [#25936](https://github.com/gatsbyjs/gatsby/issues/25936) [#25344](https://github.com/gatsbyjs/gatsby/issues/25344) [#25721](https://github.com/gatsbyjs/gatsby/issues/25721) [#25943](https://github.com/gatsbyjs/gatsby/issues/25943) [#25479](https://github.com/gatsbyjs/gatsby/issues/25479) [#25716](https://github.com/gatsbyjs/gatsby/issues/25716) [#25946](https://github.com/gatsbyjs/gatsby/issues/25946) [#25940](https://github.com/gatsbyjs/gatsby/issues/25940) [#25954](https://github.com/gatsbyjs/gatsby/issues/25954) [#25464](https://github.com/gatsbyjs/gatsby/issues/25464) [#25914](https://github.com/gatsbyjs/gatsby/issues/25914) [#25970](https://github.com/gatsbyjs/gatsby/issues/25970) [#25972](https://github.com/gatsbyjs/gatsby/issues/25972) [#25815](https://github.com/gatsbyjs/gatsby/issues/25815) [#25944](https://github.com/gatsbyjs/gatsby/issues/25944) [#25941](https://github.com/gatsbyjs/gatsby/issues/25941) [#25974](https://github.com/gatsbyjs/gatsby/issues/25974) [#25971](https://github.com/gatsbyjs/gatsby/issues/25971) [#25921](https://github.com/gatsbyjs/gatsby/issues/25921) [#25276](https://github.com/gatsbyjs/gatsby/issues/25276) [#25463](https://github.com/gatsbyjs/gatsby/issues/25463) [#25980](https://github.com/gatsbyjs/gatsby/issues/25980) [#25965](https://github.com/gatsbyjs/gatsby/issues/25965) [#25926](https://github.com/gatsbyjs/gatsby/issues/25926) [#25983](https://github.com/gatsbyjs/gatsby/issues/25983) [#25958](https://github.com/gatsbyjs/gatsby/issues/25958) [#25978](https://github.com/gatsbyjs/gatsby/issues/25978) [#25998](https://github.com/gatsbyjs/gatsby/issues/25998) [#26002](https://github.com/gatsbyjs/gatsby/issues/26002) [#25997](https://github.com/gatsbyjs/gatsby/issues/25997) [#25984](https://github.com/gatsbyjs/gatsby/issues/25984) [#26006](https://github.com/gatsbyjs/gatsby/issues/26006) [#26043](https://github.com/gatsbyjs/gatsby/issues/26043) [#26030](https://github.com/gatsbyjs/gatsby/issues/26030) [#26016](https://github.com/gatsbyjs/gatsby/issues/26016) [#25960](https://github.com/gatsbyjs/gatsby/issues/25960) [#26054](https://github.com/gatsbyjs/gatsby/issues/26054) [#25929](https://github.com/gatsbyjs/gatsby/issues/25929) [#25995](https://github.com/gatsbyjs/gatsby/issues/25995) [#26068](https://github.com/gatsbyjs/gatsby/issues/26068) [#26051](https://github.com/gatsbyjs/gatsby/issues/26051) [#25747](https://github.com/gatsbyjs/gatsby/issues/25747) [#25613](https://github.com/gatsbyjs/gatsby/issues/25613) [#26067](https://github.com/gatsbyjs/gatsby/issues/26067) [#25682](https://github.com/gatsbyjs/gatsby/issues/25682) [#25631](https://github.com/gatsbyjs/gatsby/issues/25631) [#26065](https://github.com/gatsbyjs/gatsby/issues/26065) [#25683](https://github.com/gatsbyjs/gatsby/issues/25683) [#25792](https://github.com/gatsbyjs/gatsby/issues/25792) [#26078](https://github.com/gatsbyjs/gatsby/issues/26078) [#26053](https://github.com/gatsbyjs/gatsby/issues/26053) [#26077](https://github.com/gatsbyjs/gatsby/issues/26077) [#25371](https://github.com/gatsbyjs/gatsby/issues/25371) [#26092](https://github.com/gatsbyjs/gatsby/issues/26092) [#26101](https://github.com/gatsbyjs/gatsby/issues/26101) [#25952](https://github.com/gatsbyjs/gatsby/issues/25952) [#26104](https://github.com/gatsbyjs/gatsby/issues/26104) [#25776](https://github.com/gatsbyjs/gatsby/issues/25776) [#26109](https://github.com/gatsbyjs/gatsby/issues/26109)

## [2.12.69](https://github.com/gatsbyjs/gatsby/compare/gatsby-cli@2.12.68...gatsby-cli@2.12.69) (2020-08-03)

**Note:** Version bump only for package gatsby-cli
4 changes: 2 additions & 2 deletions packages/gatsby-cli/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "gatsby-cli",
"description": "Gatsby command-line interface for creating new sites and running Gatsby commands",
"version": "2.12.69",
"version": "2.12.70",
"author": "Kyle Mathews <mathews.kyle@gmail.com>",
"bin": {
"gatsby": "cli.js"
@@ -24,7 +24,7 @@
"fs-exists-cached": "^1.0.0",
"fs-extra": "^8.1.0",
"gatsby-core-utils": "^1.3.14",
"gatsby-recipes": "^0.1.59",
"gatsby-recipes": "^0.2.0",
"gatsby-telemetry": "^1.3.25",
"hosted-git-info": "^3.0.4",
"ink": "^2.7.1",
24 changes: 22 additions & 2 deletions packages/gatsby-cli/src/create-cli.ts
Original file line number Diff line number Diff line change
@@ -354,9 +354,29 @@ function buildLocalCommands(cli: yargs.Argv, isLocalSite: boolean): void {
cli.command({
command: `recipes [recipe]`,
describe: `[EXPERIMENTAL] Run a recipe`,
builder: _ =>
_.option(`D`, {
alias: `develop`,
type: `boolean`,
default: false,
describe: `Start recipe in develop mode to live-develop your recipe (defaults to false)`,
}).option(`I`, {
alias: `install`,
type: `boolean`,
default: false,
describe: `Install recipe (defaults to plan mode)`,
}),
handler: handlerP(
async ({ recipe }: yargs.Arguments<{ recipe: string | undefined }>) => {
await recipesHandler(siteInfo.directory, recipe)
async ({
recipe,
develop,
install,
}: yargs.Arguments<{
recipe: string | undefined
develop: boolean
install: boolean
}>) => {
await recipesHandler(siteInfo.directory, recipe, develop, install)
}
),
})
8 changes: 6 additions & 2 deletions packages/gatsby-cli/src/recipes.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
import { trackCli } from "gatsby-telemetry"
import runRecipe, { startGraphQLServer } from "gatsby-recipes"
import { startGraphQLServer, recipesHandler as runRecipe } from "gatsby-recipes"

export async function recipesHandler(
projectRoot: string,
recipe: string | undefined
recipe: string | undefined,
develop: boolean,
install: boolean
): Promise<void> {
trackCli(`RECIPE_RUN`, { name: recipe })

const graphql = await startGraphQLServer(projectRoot)

return runRecipe({
recipe,
isDevelopMode: develop,
isInstallMode: install,
graphqlPort: graphql.port,
projectRoot,
})
12 changes: 12 additions & 0 deletions packages/gatsby-plugin-mdx/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -3,6 +3,18 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [1.2.33](https://github.com/gatsbyjs/gatsby/compare/gatsby-plugin-mdx@1.2.32...gatsby-plugin-mdx@1.2.33) (2020-08-03)

### Bug Fixes

- gatsby-plugin-mdx's findImports not running plugins ([#26191](https://github.com/gatsbyjs/gatsby/issues/26191)) ([ae5f581](https://github.com/gatsbyjs/gatsby/commit/ae5f581))

## [1.2.32](https://github.com/gatsbyjs/gatsby/compare/gatsby-plugin-mdx@1.2.31...gatsby-plugin-mdx@1.2.32) (2020-08-03)

### Bug Fixes

- **gatsby-plugin-mdx:** support import shorthand syntax ([#26198](https://github.com/gatsbyjs/gatsby/issues/26198)) ([0df7977](https://github.com/gatsbyjs/gatsby/commit/0df7977))

## [1.2.31](https://github.com/gatsbyjs/gatsby/compare/gatsby-plugin-mdx@1.2.30...gatsby-plugin-mdx@1.2.31) (2020-07-31)

### Performance Improvements
21 changes: 11 additions & 10 deletions packages/gatsby-plugin-mdx/gatsby/on-create-node.js
Original file line number Diff line number Diff line change
@@ -4,8 +4,9 @@ const babel = require(`@babel/core`)
const { createContentDigest } = require(`gatsby-core-utils`)

const defaultOptions = require(`../utils/default-options`)
const createMDXNodeWithScope = require(`../utils/mdx-node-with-scope`)
const createMDXNode = require(`../utils/create-mdx-node`)
const { MDX_SCOPES_LOCATION } = require(`../constants`)
const { findImports } = require(`../utils/gen-mdx`)

const contentDigest = val => createContentDigest(val)

@@ -45,14 +46,18 @@ module.exports = async (

const content = await loadNodeContent(node)

const {
mdxNode,
scopeIdentifiers,
scopeImports,
} = await createMDXNodeWithScope({
const mdxNode = await createMDXNode({
id: createNodeId(`${node.id} >>> Mdx`),
node,
content,
})

createNode(mdxNode)
createParentChildLink({ parent: node, child: mdxNode })

// write scope files into .cache for later consumption
const { scopeImports, scopeIdentifiers } = await findImports({
node: mdxNode,
getNode,
getNodes,
reporter,
@@ -64,10 +69,6 @@ module.exports = async (
createNodeId,
...helpers,
})

createNode(mdxNode)
createParentChildLink({ parent: node, child: mdxNode })

await cacheScope({
cache,
scopeIdentifiers,
12 changes: 3 additions & 9 deletions packages/gatsby-plugin-mdx/loaders/mdx-loader.js
Original file line number Diff line number Diff line change
@@ -25,7 +25,7 @@ const debugMore = require(`debug`)(`gatsby-plugin-mdx-info:mdx-loader`)

const genMdx = require(`../utils/gen-mdx`)
const withDefaultOptions = require(`../utils/default-options`)
const createMDXNodeWithScope = require(`../utils/mdx-node-with-scope`)
const createMDXNode = require(`../utils/create-mdx-node`)
const { createFileNode } = require(`../utils/create-fake-file-node`)

const DEFAULT_OPTIONS = {
@@ -94,7 +94,6 @@ module.exports = async function (content) {
const {
getNode: rawGetNode,
getNodes,
getNodesByType,
reporter,
cache,
pathPrefix,
@@ -122,15 +121,11 @@ module.exports = async function (content) {

let mdxNode
try {
// This node attempts to break the chicken-egg problem, where parsing mdx
// allows for custom plugins, which can receive a mdx node
;({ mdxNode } = await createMDXNodeWithScope({
mdxNode = await createMDXNode({
id: `fakeNodeIdMDXFileABugIfYouSeeThis`,
node: fileNode,
content,
options,
getNodesByType,
}))
})
} catch (e) {
return callback(e)
}
@@ -197,7 +192,6 @@ ${contentWithoutFrontmatter}`
node: { ...mdxNode, rawBody: code },
getNode,
getNodes,
getNodesByType,
reporter,
cache,
pathPrefix,
4 changes: 2 additions & 2 deletions packages/gatsby-plugin-mdx/loaders/mdx-loader.test.js
Original file line number Diff line number Diff line change
@@ -16,9 +16,9 @@ array: [1,2,3]
)`,
namedExports: `export const meta = {author: "chris"}`,
body: `# Some title
a bit of a paragraph
some content`,
}

2 changes: 1 addition & 1 deletion packages/gatsby-plugin-mdx/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gatsby-plugin-mdx",
"version": "1.2.31",
"version": "1.2.33",
"description": "MDX integration for Gatsby",
"main": "index.js",
"license": "MIT",
Original file line number Diff line number Diff line change
@@ -985,6 +985,26 @@ Object {
`;

exports[`regex import scanner syntactic coverage should parse brute force regular case 62 1`] = `
Object {
"input": "import \\"./empty.css\\"",
"result": Object {
"bindings": Array [],
"segments": Array [],
},
}
`;

exports[`regex import scanner syntactic coverage should parse brute force regular case 63 1`] = `
Object {
"input": "import \\"./empty.css\\"; // This happens in the real world",
"result": Object {
"bindings": Array [],
"segments": Array [],
},
}
`;

exports[`regex import scanner syntactic coverage should parse brute force regular case 64 1`] = `
Object {
"input": "import multi as dong, {foo} from 'bar'
import as as x, {from as y} from 'bar'",
14 changes: 14 additions & 0 deletions packages/gatsby-plugin-mdx/utils/__tests__/fixtures/test-plugin.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
function createImportAST(name, filePath) {
return {
type: `import`,
value: `import ${name} from '${filePath}'`,
}
}

module.exports = ({ markdownAST }) => {
markdownAST.children = [
createImportAST(`* as testInjection`, `@private/test-inject`),
...markdownAST.children,
]
return markdownAST
}
59 changes: 59 additions & 0 deletions packages/gatsby-plugin-mdx/utils/__tests__/gen-mdx.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
const path = require(`path`)
const { findImports } = require(`../gen-mdx`)

const markdownContent = `---
title: Introduction
---
# Header 1
## Header 2
### Header 3
\`\`\`js
console.log('hello world')
\`\`\`
`

describe(`find imports`, () => {
it(`allows injecting imports via plugins`, async () => {
const results = await findImports({
node: {
id: `bbffffbb-bfff-bfff-bfff-dededededede`,
children: [],
parent: `bbffffbb-bfff-bfff-bfff-dededededebb`,
internal: {
content: markdownContent,
type: `Mdx`,
contentDigest: `6433c536b5eb922ad01f8d420bcabf6d`,
counter: 38,
owner: `gatsby-plugin-mdx`,
},
frontmatter: { title: `Introduction` },
excerpt: undefined,
exports: {},
rawBody: markdownContent,
fileAbsolutePath: `/path/to/getting-started.mdx`,
},
options: {
remarkPlugins: [],
gatsbyRemarkPlugins: [
{ resolve: path.join(__dirname, `fixtures`, `test-plugin`) },
],
},
getNode: () => null,
getNodes: () => [],
getNodesByType: () => [],
repoter: () => {},
cache: () => {},
pathPrefix: ``,
})

expect(results).toEqual({
scopeImports: [
`import * as testInjection from '@private/test-inject'`,
`import * as React from 'react'`,
],
scopeIdentifiers: [`testInjection`, `React`],
})
})
})
Loading