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@4.7.0
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@4.7.1
Choose a head ref
  • 2 commits
  • 3 files changed
  • 2 contributors

Commits on Feb 8, 2022

  1. fix(gatsby-link): trailing slash undefined check for prod env (#34765) (

    #34766)
    
    (cherry picked from commit d3f2f5e)
    
    Co-authored-by: Josh Johnson <jcjohnson77@gmail.com>
    gatsbybot and imjoshin authored Feb 8, 2022

    Verified

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

     - gatsby-link@4.7.1
     - gatsby@4.7.1
    imjoshin committed Feb 8, 2022
    Copy the full SHA
    f672a67 View commit details
Showing with 4 additions and 8 deletions.
  1. +1 −1 packages/gatsby-link/package.json
  2. +1 −5 packages/gatsby-link/src/rewrite-link-path.js
  3. +2 −2 packages/gatsby/package.json
2 changes: 1 addition & 1 deletion packages/gatsby-link/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "gatsby-link",
"description": "An enhanced Link component for Gatsby sites with support for resource prefetching",
"version": "4.7.0",
"version": "4.7.1",
"author": "Kyle Mathews <mathews.kyle@gmail.com>",
"bugs": {
"url": "https://github.com/gatsbyjs/gatsby/issues"
6 changes: 1 addition & 5 deletions packages/gatsby-link/src/rewrite-link-path.js
Original file line number Diff line number Diff line change
@@ -8,11 +8,7 @@ import { withPrefix } from "."
const isAbsolutePath = path => path?.startsWith(`/`)

const getGlobalTrailingSlash = () =>
process.env.NODE_ENV !== `production`
? typeof __TRAILING_SLASH__ !== `undefined`
? __TRAILING_SLASH__
: undefined
: __TRAILING_SLASH__
typeof __TRAILING_SLASH__ !== `undefined` ? __TRAILING_SLASH__ : undefined

function absolutify(path, current) {
// If it's already absolute, return as-is
4 changes: 2 additions & 2 deletions packages/gatsby/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "gatsby",
"description": "Blazing fast modern site generator for React",
"version": "4.7.0",
"version": "4.7.1",
"author": "Kyle Mathews <mathews.kyle@gmail.com>",
"bin": {
"gatsby": "./cli.js"
@@ -81,7 +81,7 @@
"gatsby-core-utils": "^3.7.0",
"gatsby-graphiql-explorer": "^2.7.0",
"gatsby-legacy-polyfills": "^2.7.0",
"gatsby-link": "^4.7.0",
"gatsby-link": "^4.7.1",
"gatsby-page-utils": "^2.7.0",
"gatsby-plugin-page-creator": "^4.7.0",
"gatsby-plugin-typescript": "^4.7.0",