Skip to content

Commit

Permalink
feat: add support for Gatsby v5 (#1093)
Browse files Browse the repository at this point in the history
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
  • Loading branch information
browniebroke and renovate[bot] committed Nov 11, 2022
1 parent 4376653 commit c943238
Show file tree
Hide file tree
Showing 6 changed files with 23,081 additions and 30,980 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ Please check the table below to choose the version of this library to use depend
| -------------------- | ------ | ------------------- | ------------- |
| v5 | v2 | Not supported | v3 |
| v6 | v3 | v1 | Not supported |
| v7 | v4 | v2 | Not supported |
| v7 | v4-v5 | v2-v3 | Not supported |

Only the latest major version of Gatsby Image Gallery is supported (e.g. no further v5 releases).
Only the latest major version of Gatsby Image Gallery is supported.

## Usage

Expand Down
1 change: 0 additions & 1 deletion example/gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,5 @@ module.exports = {
`gatsby-plugin-typescript`,
`gatsby-transformer-sharp`,
`gatsby-plugin-sharp`,
`gatsby-plugin-netlify`,
],
}
19 changes: 9 additions & 10 deletions example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,15 @@
},
"dependencies": {
"babel-plugin-styled-components": "2.0.7",
"gatsby": "4.24.8",
"gatsby-plugin-image": "2.24.0",
"gatsby-plugin-manifest": "4.24.0",
"gatsby-plugin-netlify": "5.0.1",
"gatsby-plugin-react-helmet": "5.24.0",
"gatsby-plugin-sharp": "4.24.0",
"gatsby-plugin-styled-components": "5.24.0",
"gatsby-plugin-typescript": "4.24.0",
"gatsby-source-filesystem": "4.24.0",
"gatsby-transformer-sharp": "4.24.0",
"gatsby": "5.0.1",
"gatsby-plugin-image": "3.0.0",
"gatsby-plugin-manifest": "5.0.0",
"gatsby-plugin-react-helmet": "6.0.0",
"gatsby-plugin-sharp": "5.0.0",
"gatsby-plugin-styled-components": "6.0.0",
"gatsby-plugin-typescript": "5.0.0",
"gatsby-source-filesystem": "5.0.0",
"gatsby-transformer-sharp": "5.0.0",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-helmet": "6.1.0",
Expand Down
2 changes: 1 addition & 1 deletion example/src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export const pageQuery = graphql`
query ImagesForGallery {
images: allFile(
filter: { relativeDirectory: { eq: "gallery" } }
sort: { fields: name }
sort: { name: ASC }
) {
edges {
node {
Expand Down
4 changes: 2 additions & 2 deletions gatsby-image-gallery/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"analyze": "size-limit --why"
},
"peerDependencies": {
"gatsby-plugin-image": "^2.0",
"gatsby-plugin-image": "^2.0 || ^3.0.0",
"react": ">=16",
"styled-components": ">= 5.0"
},
Expand All @@ -44,7 +44,7 @@
"@types/styled-components": "5.1.26",
"babel-jest": "29.0.1",
"dts-cli": "1.6.0",
"gatsby-plugin-image": "2.24.0",
"gatsby-plugin-image": "3.0.0",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-test-renderer": "18.2.0",
Expand Down
Loading

0 comments on commit c943238

Please sign in to comment.