Skip to content

Commit

Permalink
BREAKING: Gatsby 5 (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
LekoArts authored Nov 7, 2022
1 parent fffb25d commit 8779fbc
Show file tree
Hide file tree
Showing 12 changed files with 2,807 additions and 4,111 deletions.
5 changes: 5 additions & 0 deletions .changeset/happy-drinks-poke.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"gatsby-source-tmdb": major
---

Minimum required Node.js version is 18. Bump peerDependency to Gatsby 5.
2 changes: 1 addition & 1 deletion .github/actions/publish-starter/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:14-slim
FROM node:18-slim

LABEL com.github.actions.name="Publish starter"
LABEL com.github.actions.description="Automatically push subdirectories in a monorepo to their own repositories"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/building.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ jobs:
testing:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"
- uses: actions/cache@v2
- uses: actions/cache@v3
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/publish-starter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ jobs:
name: Publish Starter
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Node.js 14.x
uses: actions/setup-node@v2
- uses: actions/checkout@v3
- name: Setup Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: '14'
node-version: '18'
- name: Publish Starter
uses: ./.github/actions/publish-starter
env:
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,23 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"
- uses: actions/cache@v2
- uses: actions/cache@v3
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Setup Node.js 14.x
uses: actions/setup-node@v2
- name: Setup Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: '14'
node-version: '18'
- name: Install Dependencies
run: yarn --immutable
- name: Create Release Pull Request or Publish to npm
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ jobs:
testing:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"
- uses: actions/cache@v2
- uses: actions/cache@v3
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v16.13.0
v18.9.0
2 changes: 1 addition & 1 deletion example/gatsby-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ const config: GatsbyConfig = {
siteUrl: process.env.URL || `https://tmdb.lekoarts.de`,
logo: `/logo.png`,
},
trailingSlash: `never`,
plugins: [
{
resolve: `gatsby-source-tmdb`,
Expand Down Expand Up @@ -57,7 +58,6 @@ const config: GatsbyConfig = {
`gatsby-plugin-sharp`,
`gatsby-transformer-sharp`,
`gatsby-plugin-react-helmet-async`,
`gatsby-plugin-gatsby-cloud`,
`gatsby-plugin-vanilla-extract`,
] as PluginRef[],
}
Expand Down
32 changes: 15 additions & 17 deletions example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,24 @@
"license": "MIT",
"starter-name": "gatsby-starter-tmdb",
"dependencies": {
"@vanilla-extract/babel-plugin": "^1.1.5",
"@vanilla-extract/css": "^1.6.8",
"@vanilla-extract/webpack-plugin": "^2.1.6",
"date-fns": "^2.28.0",
"gatsby": "next",
"gatsby-plugin-gatsby-cloud": "next",
"gatsby-plugin-image": "next",
"gatsby-plugin-react-helmet-async": "^1.2.1",
"gatsby-plugin-sharp": "next",
"gatsby-plugin-vanilla-extract": "^2.0.1",
"gatsby-source-tmdb": "^3.0.4",
"gatsby-transformer-sharp": "next",
"node-fetch": "^2.6.1",
"@vanilla-extract/css": "^1.9.1",
"@vanilla-extract/webpack-plugin": "^2.2.0",
"date-fns": "^2.29.3",
"gatsby": "^5.0.0-next.0",
"gatsby-plugin-image": "^3.0.0-next.0",
"gatsby-plugin-react-helmet-async": "^1.2.3",
"gatsby-plugin-sharp": "^5.0.0-next.0",
"gatsby-plugin-vanilla-extract": "^3.0.0",
"gatsby-source-tmdb": "^3.0.3",
"gatsby-transformer-sharp": "^5.0.0-next.0",
"node-fetch": "^2.6.7",
"react": "^18.2.0",
"react-content-loader": "^6.2.0",
"react-dom": "^18.2.0",
"react-helmet-async": "^1.2.3",
"react-query": "^3.34.19",
"react-spring": "^9.4.4",
"react-tabs": "^4.0.1"
"react-helmet-async": "^1.3.0",
"react-query": "^3.39.2",
"react-spring": "^9.5.5",
"react-tabs": "^4.2.1"
},
"scripts": {
"develop": "gatsby develop",
Expand Down
38 changes: 19 additions & 19 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,27 +9,27 @@
],
"license": "MIT",
"devDependencies": {
"@changesets/changelog-github": "^0.4.4",
"@changesets/cli": "^2.22.0",
"@types/jest": "^27.4.1",
"@types/node": "^17.0.23",
"@types/react": "^17.0.43",
"@types/react-dom": "^17.0.14",
"@typescript-eslint/eslint-plugin": "^5.17.0",
"@typescript-eslint/parser": "^5.17.0",
"eslint": "^8.12.0",
"@changesets/changelog-github": "^0.4.7",
"@changesets/cli": "^2.25.2",
"@types/jest": "^27.5.2",
"@types/node": "^18.11.9",
"@types/react": "^18.0.25",
"@types/react-dom": "^18.0.8",
"@typescript-eslint/eslint-plugin": "^5.42.0",
"@typescript-eslint/parser": "^5.42.0",
"eslint": "^8.27.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-import": "^2.25.4",
"eslint-plugin-jsx-a11y": "^6.5.1",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-react": "^7.29.4",
"eslint-plugin-react-hooks": "^4.3.0",
"husky": "^7.0.4",
"lint-staged": "^12.3.7",
"prettier": "^2.6.1",
"typescript": "^4.6.3",
"vitest": "^0.18.1"
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jsx-a11y": "^6.6.1",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-react": "^7.31.10",
"eslint-plugin-react-hooks": "^4.6.0",
"husky": "^8.0.1",
"lint-staged": "^13.0.3",
"prettier": "^2.7.1",
"typescript": "4.7.4",
"vitest": "^0.24.5"
},
"scripts": {
"develop": "yarn workspace example develop",
Expand Down
18 changes: 9 additions & 9 deletions package/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"source": "src/gatsby-node.ts",
"types": "dist/types.d.ts",
"engines": {
"node": ">=14.15.0"
"node": ">=18.0.0"
},
"files": [
"dist/*",
Expand All @@ -25,16 +25,16 @@
"license": "MIT",
"dependencies": {
"gatsby-node-helpers": "^1.2.1",
"gatsby-source-filesystem": "^4.9.1",
"got": "^11.8.2"
"gatsby-source-filesystem": "^5.0.0-next.0",
"got": "^11.8.5"
},
"devDependencies": {
"@parcel/packager-ts": "^2.6.2",
"@parcel/transformer-typescript-types": "^2.6.2",
"@parcel/packager-ts": "^2.7.0",
"@parcel/transformer-typescript-types": "^2.7.0",
"@types/got": "^9.6.12",
"gatsby": "next",
"gatsby-plugin-utils": "next",
"parcel": "^2.6.2"
"gatsby": "^5.0.0-next.0",
"gatsby-plugin-utils": "^4.0.0-next.0",
"parcel": "^2.7.0"
},
"keywords": [
"gatsby",
Expand All @@ -45,7 +45,7 @@
"themoviedatabase"
],
"peerDependencies": {
"gatsby": "^4.0.0"
"gatsby": "^5.0.0-next.0"
},
"scripts": {
"watch": "parcel watch",
Expand Down
Loading

0 comments on commit 8779fbc

Please sign in to comment.