gatsby-link 4.11.0-next.2 → 4.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,10 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ### [4.10.1](https://github.com/gatsbyjs/gatsby/commits/gatsby-link@4.10.1/packages/gatsby-link) (2022-03-23)
7
+
8
+ **Note:** Version bump only for package gatsby-link
9
+
6
10
  ## [4.10.0](https://github.com/gatsbyjs/gatsby/commits/gatsby-link@4.10.0/packages/gatsby-link) (2022-03-16)
7
11
 
8
12
  [🧾 Release notes](https://www.gatsbyjs.com/docs/reference/release-notes/v4.10)
package/README.md CHANGED
@@ -2,4 +2,4 @@
2
2
 
3
3
  All components and utility functions from this package are now exported from [`gatsby`](https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby) package. You should not import anything from this package directly.
4
4
 
5
- The [API reference](https://www.gatsbyjs.org/docs/gatsby-link/) has more documentation.
5
+ The [API reference](https://www.gatsbyjs.com/docs/gatsby-link/) has more documentation.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "gatsby-link",
3
3
  "description": "An enhanced Link component for Gatsby sites with support for resource prefetching",
4
- "version": "4.11.0-next.2",
4
+ "version": "4.11.0",
5
5
  "author": "Kyle Mathews <mathews.kyle@gmail.com>",
6
6
  "bugs": {
7
7
  "url": "https://github.com/gatsbyjs/gatsby/issues"
@@ -9,14 +9,14 @@
9
9
  "dependencies": {
10
10
  "@babel/runtime": "^7.15.4",
11
11
  "@types/reach__router": "^1.3.10",
12
- "gatsby-page-utils": "^2.11.0-next.1",
12
+ "gatsby-page-utils": "^2.11.0",
13
13
  "prop-types": "^15.7.2"
14
14
  },
15
15
  "devDependencies": {
16
16
  "@babel/cli": "^7.15.4",
17
17
  "@babel/core": "^7.15.5",
18
18
  "@testing-library/react": "^11.2.7",
19
- "babel-preset-gatsby-package": "^2.11.0-next.0",
19
+ "babel-preset-gatsby-package": "^2.11.0",
20
20
  "cross-env": "^7.0.3"
21
21
  },
22
22
  "peerDependencies": {
@@ -44,5 +44,5 @@
44
44
  "engines": {
45
45
  "node": ">=14.15.0"
46
46
  },
47
- "gitHead": "2cfd7dc3db6e4a6325962160170edf8c51053217"
47
+ "gitHead": "ac3f088a160cfb4913310a6992b106f760c2cafd"
48
48
  }
package/parse-path.js CHANGED
@@ -10,15 +10,15 @@ function parsePath(path) {
10
10
  var hashIndex = pathname.indexOf("#");
11
11
 
12
12
  if (hashIndex !== -1) {
13
- hash = pathname.substr(hashIndex);
14
- pathname = pathname.substr(0, hashIndex);
13
+ hash = pathname.slice(hashIndex);
14
+ pathname = pathname.slice(0, hashIndex);
15
15
  }
16
16
 
17
17
  var searchIndex = pathname.indexOf("?");
18
18
 
19
19
  if (searchIndex !== -1) {
20
- search = pathname.substr(searchIndex);
21
- pathname = pathname.substr(0, searchIndex);
20
+ search = pathname.slice(searchIndex);
21
+ pathname = pathname.slice(0, searchIndex);
22
22
  }
23
23
 
24
24
  return {