gatsby-link 5.14.0-next.2 → 5.14.1

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
+ ### [5.13.1](https://github.com/gatsbyjs/gatsby/commits/gatsby-link@5.13.1/packages/gatsby-link) (2024-01-23)
7
+
8
+ **Note:** Version bump only for package gatsby-link
9
+
6
10
  ## [5.13.0](https://github.com/gatsbyjs/gatsby/commits/gatsby-link@5.13.0/packages/gatsby-link) (2023-12-18)
7
11
 
8
12
  [🧾 Release notes](https://www.gatsbyjs.com/docs/reference/release-notes/v5.13)
package/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as React from "react"
2
- import { NavigateFn, LinkProps } from "@reach/router" // These come from `@types/reach__router`
2
+ import { NavigateOptions, LinkProps } from "@reach/router" // These come from `@types/reach__router`
3
3
 
4
4
  // eslint-disable-next-line @typescript-eslint/naming-convention
5
5
  export interface GatsbyLinkProps<TState> extends LinkProps<TState> {
@@ -33,7 +33,10 @@ export class Link<TState> extends React.Component<
33
33
  * Sometimes you need to navigate to pages programmatically, such as during form submissions. In these
34
34
  * cases, `Link` won’t work.
35
35
  */
36
- export const navigate: (...args: Parameters<NavigateFn>) => void;
36
+ export const navigate: {
37
+ (to: string, options?: NavigateOptions<{}>): void
38
+ (to: number): void
39
+ }
37
40
 
38
41
  /**
39
42
  * It is common to host sites in a sub-directory of a site. Gatsby lets you set the path prefix for your site.
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": "5.14.0-next.2",
4
+ "version": "5.14.1",
5
5
  "author": "Kyle Mathews <mathews.kyle@gmail.com>",
6
6
  "bugs": {
7
7
  "url": "https://github.com/gatsbyjs/gatsby/issues"
@@ -23,7 +23,7 @@
23
23
  },
24
24
  "dependencies": {
25
25
  "@types/reach__router": "^1.3.10",
26
- "gatsby-page-utils": "^3.14.0-next.2",
26
+ "gatsby-page-utils": "^3.14.0",
27
27
  "prop-types": "^15.8.1"
28
28
  },
29
29
  "devDependencies": {
@@ -51,5 +51,5 @@
51
51
  "engines": {
52
52
  "node": ">=18.0.0"
53
53
  },
54
- "gitHead": "94b24825c8811ca968fadade3a0529406bc5390d"
54
+ "gitHead": "2290b19368d7d332a8f69483337d874988fe7143"
55
55
  }