@primer/gatsby-theme-doctocat 4.7.1 → 5.0.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
@@ -1,5 +1,11 @@
1
1
  # @primer/gatsby-theme-doctocat
2
2
 
3
+ ## 5.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - [`7b07123`](https://github.com/primer/doctocat/commit/7b0712311247b5f8ddf8e306eb89424d162a6e7b) [#479](https://github.com/primer/doctocat/pull/479) Thanks [@joshblack](https://github.com/joshblack)! - Update gatsby to v3
8
+
3
9
  ## 4.7.1
4
10
 
5
11
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primer/gatsby-theme-doctocat",
3
- "version": "4.7.1",
3
+ "version": "5.0.0",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
6
  "scripts": {
@@ -9,6 +9,10 @@
9
9
  "lint:fix": "yarn lint -- --fix"
10
10
  },
11
11
  "prettier": "@github/prettier-config",
12
+ "resolutions": {
13
+ "graphql": "^15.4.0",
14
+ "graphql-compose": "^7.25.0"
15
+ },
12
16
  "devDependencies": {
13
17
  "@github/prettier-config": "^0.0.4",
14
18
  "eslint": "^8.0.1",
@@ -17,17 +21,18 @@
17
21
  "eslint-plugin-prettier": "^4.0.0",
18
22
  "eslint-plugin-primer-react": "0.7.4",
19
23
  "eslint-plugin-react": "^7.26.1",
20
- "gatsby": "^2.32.13",
24
+ "gatsby": "^3.14.6",
21
25
  "prettier": "^2.4.1",
22
- "react": "^16.13.1",
23
- "react-dom": "^16.13.1"
26
+ "react": "^18.2.0",
27
+ "react-dom": "^18.2.0"
24
28
  },
25
29
  "peerDependencies": {
26
- "gatsby": "2.x",
27
- "react": "^16.9.x",
28
- "react-dom": "^16.9.x"
30
+ "gatsby": "3.x",
31
+ "react": "^18.x",
32
+ "react-dom": "^18.x"
29
33
  },
30
34
  "dependencies": {
35
+ "@babel/core": "^7.19.1",
31
36
  "@babel/preset-env": "^7.5.5",
32
37
  "@babel/preset-react": "^7.0.0",
33
38
  "@mdx-js/mdx": "^1.0.21",
@@ -40,6 +45,7 @@
40
45
  "@testing-library/react": "^9.1.3",
41
46
  "axios": "^0.21.2",
42
47
  "babel-jest": "^24.9.0",
48
+ "babel-plugin-styled-components": "^2.0.7",
43
49
  "copy-to-clipboard": "^3.2.0",
44
50
  "date-fns": "^2.28.0",
45
51
  "details-element-polyfill": "^2.4.0",
@@ -47,21 +53,22 @@
47
53
  "find-up": "^6.3.0",
48
54
  "framer-motion": "^1.4.2",
49
55
  "fuse.js": "^3.4.5",
50
- "gatsby-plugin-catch-links": "^2.1.2",
51
- "gatsby-plugin-manifest": "^2.2.1",
56
+ "gatsby-plugin-catch-links": "^3.14.0",
57
+ "gatsby-plugin-manifest": "^3.14.0",
52
58
  "gatsby-plugin-mdx": "^1.0.13",
53
- "gatsby-plugin-page-creator": "^2.1.1",
54
- "gatsby-plugin-react-helmet": "^3.1.0",
55
- "gatsby-plugin-remove-trailing-slashes": "^2.1.2",
56
- "gatsby-plugin-styled-components": "^3.1.0",
57
- "gatsby-source-filesystem": "^2.1.0",
58
- "gatsby-transformer-yaml": "^2.2.0",
59
+ "gatsby-plugin-page-creator": "^3.14.0",
60
+ "gatsby-plugin-react-helmet": "^4.14.0",
61
+ "gatsby-plugin-remove-trailing-slashes": "^3.14.0",
62
+ "gatsby-plugin-styled-components": "^4.14.0",
63
+ "gatsby-source-filesystem": "^3.14.0",
64
+ "gatsby-transformer-yaml": "^3.14.0",
59
65
  "get-pkg-repo": "^4.1.0",
60
66
  "github-slugger": "^1.2.1",
61
67
  "html-react-parser": "^1.4.0",
62
68
  "jest": "^24.9.0",
63
69
  "lodash.debounce": "4.0.8",
64
70
  "lodash.uniqby": "^4.7.0",
71
+ "path-browserify": "^1.0.1",
65
72
  "pkg-up": "^3.1.0",
66
73
  "pluralize": "^8.0.0",
67
74
  "preval.macro": "^3.0.0",
@@ -75,7 +82,7 @@
75
82
  "react-measure": "^2.3.0",
76
83
  "read-pkg-up": "^6.0.0",
77
84
  "sentence-case": "^2.1.1",
78
- "styled-components": "^4.3.2",
85
+ "styled-components": "^5.3.5",
79
86
  "styled-system": "^5.0.18",
80
87
  "worker-loader": "^3.0.2"
81
88
  }
package/src/use-search.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import {graphql, useStaticQuery} from 'gatsby'
2
- import path from 'path'
2
+ import path from 'path-browserify'
3
3
  import React from 'react'
4
4
  import SearchWorker from 'worker-loader!./search.worker.js'
5
5