Skip to content

Commit 2c0ce13

Browse files
renovate[bot]ardatangithub-actions[bot]
authored
fix(deps): update dependency hash-it to v7 (#2782)
* Replace hash-it with object-hash * chore(dependencies): updated changesets for modified dependencies * chore(dependencies): updated changesets for modified dependencies --------- Co-authored-by: Arda TANRIKULU <[email protected]> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent ce925d7 commit 2c0ce13

File tree

4 files changed

+21
-11
lines changed

4 files changed

+21
-11
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@envelop/validation-cache": patch
3+
---
4+
dependencies updates:
5+
- Added dependency [`object-hash@^3.0.0` ↗︎](https://www.npmjs.com/package/object-hash/v/3.0.0) (to `dependencies`)
6+
- Removed dependency [`hash-it@^6.0.0` ↗︎](https://www.npmjs.com/package/hash-it/v/6.0.0) (from `dependencies`)

packages/plugins/validation-cache/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,13 @@
5151
"graphql": "^14.0.0 || ^15.0.0 || ^16.0.0"
5252
},
5353
"dependencies": {
54-
"hash-it": "^6.0.0",
5554
"lru-cache": "^11.0.0",
55+
"object-hash": "^3.0.0",
5656
"tslib": "^2.5.0"
5757
},
5858
"devDependencies": {
5959
"@envelop/core": "workspace:^",
60+
"@types/object-hash": "^3.0.6",
6061
"graphql": "16.8.1",
6162
"typescript": "5.9.3"
6263
},

packages/plugins/validation-cache/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { GraphQLError, introspectionFromSchema, print, type GraphQLSchema } from 'graphql';
2-
import hashIt from 'hash-it';
32
import { LRUCache } from 'lru-cache';
3+
import objectHash from 'object-hash';
44
import { getDocumentString, type Plugin } from '@envelop/core';
55

66
export interface ValidationCache {
@@ -29,7 +29,7 @@ function getSchemaHash(schema: GraphQLSchema) {
2929
return hash;
3030
}
3131
const introspection = introspectionFromSchema(schema);
32-
hash = String(hashIt(introspection.__schema));
32+
hash = String(objectHash(introspection.__schema));
3333
schemaHashCache.set(schema, hash);
3434
return hash;
3535
}

pnpm-lock.yaml

Lines changed: 11 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)