Skip to content

Commit c089775

Browse files
committed
update dependencies
1 parent 183e267 commit c089775

16 files changed

+16363
-10155
lines changed

.eslintrc

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@
1212
"rules": {
1313
"prettier/prettier": "error",
1414
"global-require": "off",
15-
"import/no-dynamic-require": "off"
15+
"import/no-dynamic-require": "off",
16+
"no-empty-function": "off",
17+
"@typescript-eslint/no-empty-function": [
18+
"error",
19+
{
20+
"allow": ["constructors"]
21+
}
22+
]
1623
}
1724
}

.yarn/install-state.gz

1.57 MB
Binary file not shown.

.yarnrc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
nodeLinker: node-modules

package.json

Lines changed: 27 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "@4c/graphql-node-resource",
33
"version": "5.1.0",
4+
"packageManager": "yarn@4.12.0",
45
"main": "lib/index.js",
56
"repository": {
67
"type": "git",
@@ -40,51 +41,51 @@
4041
"conventionalCommits": true
4142
},
4243
"dependencies": {
43-
"@types/lodash": "^4.14.178",
44-
"@types/node": "^17.0.8",
45-
"@types/node-fetch": "^2.5.12",
46-
"@types/pluralize": "^0.0.29",
47-
"dataloader": "^2.0.0",
48-
"express": "^4.17.2",
49-
"form-data": "^4.0.0",
44+
"@types/lodash": "^4.17.21",
45+
"@types/node": "^25.0.3",
46+
"@types/node-fetch": "^2.6.13",
47+
"@types/pluralize": "^0.0.33",
48+
"dataloader": "^2.2.3",
49+
"express": "^5.2.1",
50+
"form-data": "^4.0.5",
5051
"lodash": "^4.17.21",
5152
"node-fetch": "^2.6.1",
5253
"pluralize": "^8.0.0",
53-
"utility-types": "^3.10.0"
54+
"utility-types": "^3.11.0"
5455
},
5556
"peerDependencies": {
5657
"graphql": ">=14.0.0",
5758
"graphql-relay": ">=0.7.0"
5859
},
5960
"devDependencies": {
60-
"@4c/babel-preset": "^9.1.0",
61-
"@4c/cli": "^3.0.1",
61+
"@4c/babel-preset": "^10.2.1",
62+
"@4c/cli": "^4.0.4",
6263
"@4c/jest-preset": "^1.8.1",
6364
"@4c/prettier-config": "^1.1.0",
6465
"@4c/tsconfig": "^0.4.1",
65-
"@babel/preset-typescript": "^7.18.6",
66-
"@types/jest": "^27.5.2",
67-
"@typescript-eslint/eslint-plugin": "^5.33.1",
68-
"@typescript-eslint/parser": "^5.33.1",
66+
"@babel/preset-typescript": "^7.28.5",
67+
"@types/jest": "^30.0.0",
68+
"@typescript-eslint/eslint-plugin": "^8.51.0",
69+
"@typescript-eslint/parser": "^8.51.0",
6970
"codecov": "^3.8.3",
7071
"eslint-config-4catalyzer": "^1.5.0",
7172
"eslint-config-4catalyzer-jest": "^2.3.0",
7273
"eslint-config-4catalyzer-typescript": "^3.3.0",
73-
"eslint-config-prettier": "^8.5.0",
74-
"eslint-plugin-import": "^2.26.0",
75-
"eslint-plugin-jest": "^25.7.0",
76-
"eslint-plugin-prettier": "^4.2.1",
74+
"eslint-config-prettier": "^10.1.8",
75+
"eslint-plugin-import": "^2.32.0",
76+
"eslint-plugin-jest": "^29.12.0",
77+
"eslint-plugin-prettier": "^5.5.4",
7778
"fetch-mock": "^9.11.0",
78-
"graphql": "^16.6.0",
79-
"graphql-relay": "^0.10.0",
80-
"hookem": "^2.0.1",
81-
"jest": "^27.5.1",
82-
"lint-staged": "^12.5.0",
83-
"prettier": "^2.7.1",
84-
"typescript": "^4.7.4"
79+
"graphql": "^16.12.0",
80+
"graphql-relay": "^0.10.2",
81+
"hookem": "^3.0.4",
82+
"jest": "^30.2.0",
83+
"lint-staged": "^16.2.7",
84+
"prettier": "^3.7.4",
85+
"typescript": "^5.9.3"
8586
},
8687
"engines": {
87-
"node": ">=v12.0.0"
88+
"node": ">=v20.0.0"
8889
},
8990
"bugs": {
9091
"url": "https://github.com/4Catalyzer/graphql-node-resource/issues"

src/api/HttpApi.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ import flatten from 'lodash/flatten';
1212
import omit from 'lodash/omit';
1313
import pick from 'lodash/pick';
1414

15+
import { HttpMethod } from './fetch';
1516
import { Maybe, Obj } from '../utils/typing';
1617
import urlJoin from '../utils/urlJoin';
17-
import { HttpMethod } from './fetch';
1818

1919
const PAGINATION_ARG_KEYS = Object.keys(forwardConnectionArgs);
2020

@@ -60,11 +60,11 @@ export default abstract class HttpApi {
6060
/** The serializer and deserializer used for query parameters */
6161
readonly qs: QueryString = querystring;
6262

63-
/**
64-
DataLoader requests with many keys will be split into multiple
65-
requests to avoid hitting URL size limits. The default works well for
66-
chunking UUID keys
67-
*/
63+
/**
64+
* DataLoader requests with many keys will be split into multiple
65+
* requests to avoid hitting URL size limits. The default works well for
66+
* chunking UUID keys
67+
*/
6868
readonly numKeysPerChunk: number = 25;
6969

7070
constructor({ apiBase, origin, externalOrigin }: HttpApiOptions) {

src/api/HttpError.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export default class HttpError extends Error {
4949
errors: this.errors,
5050
},
5151
};
52-
} catch (e) {
52+
} catch {
5353
this.errors = [];
5454
}
5555

src/resources/HttpResource.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1+
import Resource from './Resource';
12
import HttpApi, { Args, Data } from '../api/HttpApi';
23
import { Context } from '../types/Context';
34
import { Maybe, Obj } from '../utils/typing';
45
import urlJoin from '../utils/urlJoin';
5-
import Resource from './Resource';
66

77
export type Endpoint = string | ((id?: string) => string);
88

src/resources/PaginatedHttpResource.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import HttpApi, { Args } from '../api/HttpApi';
21
import HttpResource from './HttpResource';
2+
import HttpApi, { Args } from '../api/HttpApi';
33

44
export default class PaginatedHttpResource<
55
TApi extends HttpApi = HttpApi,

src/types/NodeType.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,10 @@ import Resource from '../resources/Resource';
1919
import resolveThunk from '../utils/resolveThunk';
2020
import { Obj } from '../utils/typing';
2121

22-
export interface NodeTypeConfig<R extends Resource, TSource>
23-
extends GraphQLObjectTypeConfig<TSource, R['context']> {
22+
export interface NodeTypeConfig<
23+
R extends Resource,
24+
TSource,
25+
> extends GraphQLObjectTypeConfig<TSource, R['context']> {
2426
localIdFieldName?: string | null | undefined;
2527
createResource: (context: R['context']) => R;
2628

src/types/ResourceCache.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import Resource from '../resources/Resource';
21
import { Context, RESOURCE_CACHE_KEY } from './Context';
2+
import Resource from '../resources/Resource';
33

44
export default class ResourceCache {
55
cache = new WeakMap<any, Map<string, Resource<any>>>();

0 commit comments

Comments
 (0)