@graphql-hive/plugin-deduplicate-request 2.0.9 → 2.0.10-alpha-c3a03e3e856064194a0455a2e2febe7a2f21b88e

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # @graphql-hive/plugin-deduplicate-request
2
2
 
3
+ ## 2.0.10-alpha-c3a03e3e856064194a0455a2e2febe7a2f21b88e
4
+ ### Patch Changes
5
+
6
+
7
+
8
+ - [#2249](https://github.com/graphql-hive/gateway/pull/2249) [`cd5366e`](https://github.com/graphql-hive/gateway/commit/cd5366efbc0eeacc6e60e8ac6a5b709ebd9ff39d) Thanks [@dependabot](https://github.com/apps/dependabot)! - dependencies updates:
9
+
10
+ - Updated dependency [`@graphql-mesh/utils@^0.104.35` ↗︎](https://www.npmjs.com/package/@graphql-mesh/utils/v/0.104.35) (from `^0.104.16`, in `dependencies`)
11
+
3
12
  ## 2.0.9
4
13
  ### Patch Changes
5
14
 
package/dist/index.d.cts CHANGED
@@ -20,6 +20,11 @@ interface LogWriter {
20
20
  }
21
21
 
22
22
  type LogLevel = 'trace' | 'debug' | 'info' | 'warn' | 'error';
23
+ type RedactOptions = string[] | {
24
+ paths: string[];
25
+ censor?: string | ((value: unknown, path: string[]) => unknown) | undefined;
26
+ remove?: boolean;
27
+ };
23
28
  interface LoggerOptions {
24
29
  /**
25
30
  * The minimum log level to log.
@@ -44,6 +49,17 @@ interface LoggerOptions {
44
49
  * @default env.LOG_JSON ? [new JSONLogWriter()] : [new ConsoleLogWriter()]
45
50
  */
46
51
  writers?: [LogWriter, ...LogWriter[]];
52
+ /**
53
+ * Paths that should have their values redacted from any log output.
54
+ *
55
+ * Can be an array of path strings or an object with `paths`, `censor`, and `remove` options.
56
+ *
57
+ * Note that using the `remove` option will set the value at the specified paths to `undefined`
58
+ * instead of a deleting the key. This is the more performant option.
59
+ *
60
+ * @default undefined
61
+ */
62
+ redact?: RedactOptions;
47
63
  }
48
64
  declare class Logger implements AsyncDisposable {
49
65
  #private;
package/dist/index.d.ts CHANGED
@@ -20,6 +20,11 @@ interface LogWriter {
20
20
  }
21
21
 
22
22
  type LogLevel = 'trace' | 'debug' | 'info' | 'warn' | 'error';
23
+ type RedactOptions = string[] | {
24
+ paths: string[];
25
+ censor?: string | ((value: unknown, path: string[]) => unknown) | undefined;
26
+ remove?: boolean;
27
+ };
23
28
  interface LoggerOptions {
24
29
  /**
25
30
  * The minimum log level to log.
@@ -44,6 +49,17 @@ interface LoggerOptions {
44
49
  * @default env.LOG_JSON ? [new JSONLogWriter()] : [new ConsoleLogWriter()]
45
50
  */
46
51
  writers?: [LogWriter, ...LogWriter[]];
52
+ /**
53
+ * Paths that should have their values redacted from any log output.
54
+ *
55
+ * Can be an array of path strings or an object with `paths`, `censor`, and `remove` options.
56
+ *
57
+ * Note that using the `remove` option will set the value at the specified paths to `undefined`
58
+ * instead of a deleting the key. This is the more performant option.
59
+ *
60
+ * @default undefined
61
+ */
62
+ redact?: RedactOptions;
47
63
  }
48
64
  declare class Logger implements AsyncDisposable {
49
65
  #private;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-hive/plugin-deduplicate-request",
3
- "version": "2.0.9",
3
+ "version": "2.0.10-alpha-c3a03e3e856064194a0455a2e2febe7a2f21b88e",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",
@@ -42,16 +42,16 @@
42
42
  "graphql": "^16.12.0"
43
43
  },
44
44
  "dependencies": {
45
- "@graphql-mesh/utils": "^0.104.16",
45
+ "@graphql-mesh/utils": "^0.104.35",
46
46
  "@graphql-tools/utils": "^11.0.0",
47
47
  "@whatwg-node/promise-helpers": "^1.3.2"
48
48
  },
49
49
  "devDependencies": {
50
- "@graphql-hive/gateway-runtime": "2.5.2",
51
- "@graphql-mesh/types": "^0.104.16",
50
+ "@graphql-hive/gateway-runtime": "2.8.8-alpha-c3a03e3e856064194a0455a2e2febe7a2f21b88e",
51
+ "@graphql-mesh/types": "^0.104.27",
52
52
  "@whatwg-node/fetch": "^0.10.13",
53
53
  "graphql": "^16.12.0",
54
- "pkgroll": "2.21.5"
54
+ "pkgroll": "2.27.0"
55
55
  },
56
56
  "sideEffects": false
57
57
  }