Skip to content
This repository was archived by the owner on Feb 17, 2025. It is now read-only.

Commit d54a26f

Browse files
authored
chore: Update all dependencies (#24)
* update packages * fix types * unpin parcel * Create rich-glasses-think.md
1 parent 7fe260e commit d54a26f

File tree

10 files changed

+4245
-4348
lines changed

10 files changed

+4245
-4348
lines changed

.changeset/rich-glasses-think.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"example": patch
3+
"gatsby-source-tmdb": patch
4+
---
5+
6+
Update all dependencies

.github/workflows/testing.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,5 @@ jobs:
1919
run: yarn --immutable
2020
- name: Run Vitest
2121
run: yarn test:ci
22+
- name: Run TypeScript
23+
run: yarn typecheck

example/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818
"gatsby-source-tmdb": "^3.0.3",
1919
"gatsby-transformer-sharp": "next",
2020
"node-fetch": "^2.6.1",
21-
"react": "^17.0.2",
21+
"react": "^18.2.0",
2222
"react-content-loader": "^6.2.0",
23-
"react-dom": "^17.0.2",
23+
"react-dom": "^18.2.0",
2424
"react-helmet-async": "^1.2.3",
2525
"react-query": "^3.34.19",
2626
"react-spring": "^9.4.4",

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@
2929
"lint-staged": "^12.3.7",
3030
"prettier": "^2.6.1",
3131
"typescript": "^4.6.3",
32-
"vite": "^2.8.6",
33-
"vitest": "^0.8.0"
32+
"vitest": "^0.18.1"
3433
},
3534
"scripts": {
3635
"develop": "yarn workspace example develop",

package/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@
2929
"got": "^11.8.2"
3030
},
3131
"devDependencies": {
32-
"@parcel/packager-ts": "2.3.2",
33-
"@parcel/transformer-typescript-types": "2.3.2",
32+
"@parcel/packager-ts": "^2.6.2",
33+
"@parcel/transformer-typescript-types": "^2.6.2",
3434
"@types/got": "^9.6.12",
3535
"gatsby": "next",
3636
"gatsby-plugin-utils": "next",
37-
"parcel": "2.3.2"
37+
"parcel": "^2.6.2"
3838
},
3939
"keywords": [
4040
"gatsby",

package/src/node-builder.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,13 @@ import { ERROR_CODES, IMAGE_BASE_URL, IMAGE_SIZES, IMAGE_TYPES } from "./constan
1010

1111
const downloadImgAndCreateFileNode = async (
1212
{ url, nodeId }: { url: string; nodeId: string },
13-
{ actions: { createNode }, createNodeId, cache, store, reporter }: SourceNodesArgs
13+
{ actions: { createNode }, createNodeId, cache }: SourceNodesArgs
1414
): Promise<string> => {
1515
const fileNode = await GatsbyFS.createRemoteFileNode({
1616
url,
1717
cache,
1818
createNode,
1919
createNodeId,
20-
store,
21-
reporter,
2220
parentNodeId: nodeId,
2321
})
2422

@@ -169,7 +167,7 @@ export const nodeBuilder = async ({
169167

170168
return results
171169
},
172-
shouldContinue: (item, allItems) => {
170+
shouldContinue: (item: Response.ResponseItem, allItems: Response.ResponseItem[]) => {
173171
const hasNoPagination = allItems.length > 0 && allItems.every((entry) => entry.id === item.id)
174172
return !hasNoPagination
175173
},

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"compilerOptions": {
33
"noEmit": true,
4-
"target": "es5",
4+
"target": "ES6",
55
"moduleResolution": "node",
66
"noUnusedLocals": true,
77
"noUnusedParameters": true,

vite.config.ts

Lines changed: 0 additions & 9 deletions
This file was deleted.

vitest.config.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import { defineConfig } from "vitest/config"
2+
3+
export default defineConfig({
4+
test: {
5+
include: [`package/**/__tests__/*.ts`],
6+
},
7+
})

0 commit comments

Comments
 (0)