-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into renovate/typescript
- Loading branch information
Showing
59 changed files
with
270 additions
and
291 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "babel-preset-gatsby", | ||
"version": "2.19.0-next.0", | ||
"version": "2.19.0-next.1", | ||
"author": "Philipp Spiess <[email protected]>", | ||
"repository": { | ||
"type": "git", | ||
|
@@ -23,7 +23,7 @@ | |
"babel-plugin-macros": "^3.1.0", | ||
"babel-plugin-transform-react-remove-prop-types": "^0.4.24", | ||
"gatsby-core-utils": "^3.19.0-next.0", | ||
"gatsby-legacy-polyfills": "^2.19.0-next.0" | ||
"gatsby-legacy-polyfills": "^2.19.0-next.1" | ||
}, | ||
"peerDependencies": { | ||
"@babel/core": "^7.11.6", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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": "4.19.0-next.0", | ||
"version": "4.19.0-next.2", | ||
"author": "Kyle Mathews <[email protected]>", | ||
"bin": { | ||
"gatsby": "cli.js" | ||
|
@@ -27,13 +27,13 @@ | |
"common-tags": "^1.8.2", | ||
"configstore": "^5.0.1", | ||
"convert-hrtime": "^3.0.0", | ||
"create-gatsby": "^2.19.0-next.0", | ||
"create-gatsby": "^2.19.0-next.1", | ||
"envinfo": "^7.8.1", | ||
"execa": "^5.1.1", | ||
"fs-exists-cached": "^1.0.0", | ||
"fs-extra": "^10.1.0", | ||
"gatsby-core-utils": "^3.19.0-next.0", | ||
"gatsby-telemetry": "^3.19.0-next.0", | ||
"gatsby-telemetry": "^3.19.0-next.1", | ||
"hosted-git-info": "^3.0.8", | ||
"is-valid-path": "^0.1.1", | ||
"joi": "^17.4.2", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"name": "gatsby-legacy-polyfills", | ||
"description": "Polyfills for legacy browsers", | ||
"version": "2.19.0-next.0", | ||
"version": "2.19.0-next.1", | ||
"main": "dist/polyfills.js", | ||
"author": "Ward Peeters <[email protected]>", | ||
"homepage": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-legacy-polyfills#readme", | ||
|
@@ -40,7 +40,7 @@ | |
"event-target-polyfill": "^0.0.3", | ||
"execa": "^5.1.1", | ||
"fs-extra": "^10.1.0", | ||
"microbundle": "^0.14.2", | ||
"microbundle": "^0.15.0", | ||
"npm-run-all": "^4.1.5", | ||
"object-assign": "^4.1.1", | ||
"url-polyfill": "^1.1.12", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1 @@ | ||
{ | ||
"presets": [["babel-preset-gatsby-package", { "browser": true, "esm": true }]] | ||
} | ||
{} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,35 @@ | ||
{ | ||
"name": "gatsby-link", | ||
"description": "An enhanced Link component for Gatsby sites with support for resource prefetching", | ||
"version": "4.19.0-next.0", | ||
"version": "4.19.0-next.1", | ||
"author": "Kyle Mathews <[email protected]>", | ||
"bugs": { | ||
"url": "https://github.com/gatsbyjs/gatsby/issues" | ||
}, | ||
"source": "src/index.js", | ||
"main": "dist/index.js", | ||
"module": "dist/index.modern.mjs", | ||
"types": "index.d.ts", | ||
"files": [ | ||
"dist/*" | ||
], | ||
"sideEffects": false, | ||
"scripts": { | ||
"build": "microbundle -f cjs,modern --jsx React.createElement --generateTypes false", | ||
"watch": "npm run build watch --no-compress", | ||
"prepare": "cross-env NODE_ENV=production npm run clean && npm run build", | ||
"clean": "del-cli dist/*" | ||
}, | ||
"dependencies": { | ||
"@babel/runtime": "^7.15.4", | ||
"@types/reach__router": "^1.3.10", | ||
"gatsby-page-utils": "^2.19.0-next.0", | ||
"prop-types": "^15.8.1" | ||
}, | ||
"devDependencies": { | ||
"@babel/cli": "^7.15.4", | ||
"@babel/core": "^7.15.5", | ||
"@testing-library/react": "^11.2.7", | ||
"babel-preset-gatsby-package": "^2.19.0-next.0", | ||
"cross-env": "^7.0.3" | ||
"cross-env": "^7.0.3", | ||
"del-cli": "^3.0.1", | ||
"microbundle": "^0.15.0" | ||
}, | ||
"peerDependencies": { | ||
"@gatsbyjs/reach-router": "^1.3.5", | ||
|
@@ -29,18 +41,11 @@ | |
"gatsby" | ||
], | ||
"license": "MIT", | ||
"main": "index.js", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/gatsbyjs/gatsby.git", | ||
"directory": "packages/gatsby-link" | ||
}, | ||
"scripts": { | ||
"build": "babel src --out-dir . --ignore \"**/__tests__\"", | ||
"prepare": "cross-env NODE_ENV=production npm run build", | ||
"watch": "babel -w src --out-dir . --ignore \"**/__tests__\"" | ||
}, | ||
"types": "index.d.ts", | ||
"engines": { | ||
"node": ">=14.15.0" | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import { isLocalLink } from "./is-local-link" | ||
|
||
export const getGlobalBasePrefix = () => | ||
process.env.NODE_ENV !== `production` | ||
? typeof __BASE_PATH__ !== `undefined` | ||
? __BASE_PATH__ | ||
: undefined | ||
: __BASE_PATH__ | ||
|
||
// These global values are wrapped in typeof clauses to ensure the values exist. | ||
// This is especially problematic in unit testing of this component. | ||
export const getGlobalPathPrefix = () => | ||
process.env.NODE_ENV !== `production` | ||
? typeof __PATH_PREFIX__ !== `undefined` | ||
? __PATH_PREFIX__ | ||
: undefined | ||
: __PATH_PREFIX__ | ||
|
||
export function withPrefix(path, prefix = getGlobalBasePrefix()) { | ||
if (!isLocalLink(path)) { | ||
return path | ||
} | ||
|
||
if (path.startsWith(`./`) || path.startsWith(`../`)) { | ||
return path | ||
} | ||
const base = prefix ?? getGlobalPathPrefix() ?? `/` | ||
|
||
return `${base?.endsWith(`/`) ? base.slice(0, -1) : base}${ | ||
path.startsWith(`/`) ? path : `/${path}` | ||
}` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"name": "gatsby-plugin-gatsby-cloud", | ||
"description": "A Gatsby plugin which optimizes working with Gatsby Cloud", | ||
"version": "4.19.0-next.0", | ||
"version": "4.19.0-next.1", | ||
"author": "Kyle Mathews <[email protected]>", | ||
"bugs": { | ||
"url": "https://github.com/gatsbyjs/gatsby/issues" | ||
|
@@ -10,7 +10,7 @@ | |
"@babel/runtime": "^7.15.4", | ||
"fs-extra": "^10.1.0", | ||
"gatsby-core-utils": "^3.19.0-next.0", | ||
"gatsby-telemetry": "^3.19.0-next.0", | ||
"gatsby-telemetry": "^3.19.0-next.1", | ||
"kebab-hash": "^0.1.2", | ||
"lodash": "^4.17.21", | ||
"webpack-assets-manifest": "^5.1.0" | ||
|
Oops, something went wrong.