updating-secrets 1.0.1 → 1.0.3

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.
@@ -1,5 +1,5 @@
1
1
  import { type PartialWithUndefined, type Values } from '@augment-vir/common';
2
- import { type ShapeDefinition } from 'object-shape-tester';
2
+ import { type Shape } from 'object-shape-tester';
3
3
  import { type Exact, type RequireExactlyOne } from 'type-fest';
4
4
  /**
5
5
  * The shape definition for built-in handling of secret rotation. Use this shape in a secret
@@ -39,12 +39,12 @@ import { type Exact, type RequireExactlyOne } from 'type-fest';
39
39
  * });
40
40
  * ```
41
41
  */
42
- export declare const rotatableSecretShape: ShapeDefinition<{
42
+ export declare const rotatableSecretShape: Shape<{
43
43
  /** The latest up-to-date version of the secret's value. */
44
44
  current: string;
45
45
  /** The optional legacy value for the secret. Use for graceful secret rotation. */
46
- legacy: import("object-shape-tester").ShapeOptional<string>;
47
- }, false>;
46
+ legacy: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
47
+ }>;
48
48
  /**
49
49
  * Type expansion for {@link rotatableSecretShape}.
50
50
  *
@@ -150,7 +150,7 @@ export type ProcessedSecretDefinitions = {
150
150
  description: string;
151
151
  whereToFind: string;
152
152
  };
153
- shapeDefinition: ShapeDefinition<unknown, true> | undefined;
153
+ shapeDefinition: Shape | undefined;
154
154
  adapterConfig: NonNullable<Values<SecretDefinitions>['adapterConfig']>;
155
155
  };
156
156
  };
@@ -160,5 +160,5 @@ export type ProcessedSecretDefinitions = {
160
160
  * @category Internal
161
161
  */
162
162
  export type SecretValues<Secrets extends SecretDefinitions = SecretDefinitions> = {
163
- [SecretName in keyof Secrets]: 'shape' extends keyof Secrets[SecretName] ? ShapeDefinition<Secrets[SecretName]['shape'], true>['runtimeType'] : string;
163
+ [SecretName in keyof Secrets]: 'shape' extends keyof Secrets[SecretName] ? Shape<Secrets[SecretName]['shape']>['runtimeType'] : string;
164
164
  };
@@ -1,4 +1,4 @@
1
- import { defineShape, optional } from 'object-shape-tester';
1
+ import { defineShape, optionalShape } from 'object-shape-tester';
2
2
  /**
3
3
  * The shape definition for built-in handling of secret rotation. Use this shape in a secret
4
4
  * definition's `shape` property (when using {@link defineSecrets}).
@@ -41,7 +41,7 @@ export const rotatableSecretShape = defineShape({
41
41
  /** The latest up-to-date version of the secret's value. */
42
42
  current: '',
43
43
  /** The optional legacy value for the secret. Use for graceful secret rotation. */
44
- legacy: optional(''),
44
+ legacy: optionalShape(''),
45
45
  });
46
46
  /**
47
47
  * Defines and configures all secrets expected to be loaded by `UpdatingSecrets`.
@@ -187,6 +187,6 @@ export declare function processSecrets<const Secrets extends SecretDefinitions>(
187
187
  description: string;
188
188
  whereToFind: string;
189
189
  };
190
- shapeDefinition: import("object-shape-tester").ShapeDefinition<unknown, true> | undefined;
190
+ shapeDefinition: import("object-shape-tester").Shape | undefined;
191
191
  adapterConfig: NonNullable<Values<SecretDefinitions>["adapterConfig"]>;
192
192
  }>;
@@ -310,7 +310,7 @@ export function processSecrets(secrets) {
310
310
  whereToFind: secretInit.whereToFind,
311
311
  },
312
312
  secretName,
313
- shapeDefinition: secretInit.shape ? defineShape(secretInit.shape, true) : undefined,
313
+ shapeDefinition: secretInit.shape ? defineShape(secretInit.shape) : undefined,
314
314
  };
315
315
  return {
316
316
  key: secretName,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "updating-secrets",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "Automatically update secrets on an interval with support for seamless secret rotation.",
5
5
  "keywords": [
6
6
  "secrets",
@@ -44,20 +44,20 @@
44
44
  "test:update": "npm run test update"
45
45
  },
46
46
  "dependencies": {
47
- "@augment-vir/assert": "^31.27.0",
48
- "@augment-vir/common": "^31.27.0",
49
- "date-vir": "^7.3.2",
50
- "object-shape-tester": "^5.2.1",
47
+ "@augment-vir/assert": "^31.34.0",
48
+ "@augment-vir/common": "^31.34.0",
49
+ "date-vir": "^7.4.2",
50
+ "object-shape-tester": "^6.2.1",
51
51
  "type-fest": "^4.41.0"
52
52
  },
53
53
  "devDependencies": {
54
- "@augment-vir/test": "^31.27.0",
55
- "@types/node": "^24.1.0",
54
+ "@augment-vir/test": "^31.34.0",
55
+ "@types/node": "^24.3.1",
56
56
  "c8": "^10.1.3",
57
57
  "istanbul-smart-text-reporter": "^1.1.5",
58
58
  "markdown-code-example-inserter": "^3.0.3",
59
- "typedoc": "^0.28.7",
60
- "typescript": "^5.8.3"
59
+ "typedoc": "^0.28.12",
60
+ "typescript": "^5.9.2"
61
61
  },
62
62
  "engines": {
63
63
  "node": ">=22"