asherah 4.0.39 → 4.0.41

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/index.d.ts CHANGED
@@ -169,7 +169,7 @@ export type AsherahConfigCompat = {
169
169
  * serviceName: 'my-svc',
170
170
  * productId: 'my-prod',
171
171
  * metastore: 'memory', // production: 'rdbms' or 'dynamodb'
172
- * kms: 'static', // production: 'aws'
172
+ * kms: 'test-debug-static', // production: 'aws'
173
173
  * });
174
174
  * ```
175
175
  *
@@ -280,7 +280,7 @@ export declare function decryptStringAsync(partitionId: string, dataRowRecordJso
280
280
  * serviceName: 'my-svc',
281
281
  * productId: 'my-prod',
282
282
  * metastore: 'memory',
283
- * kms: 'static',
283
+ * kms: 'test-debug-static',
284
284
  * });
285
285
  * const session = factory.getSession('user-42');
286
286
  * try {
package/npm/index.js CHANGED
@@ -152,10 +152,15 @@ const METASTORE_ALIASES = {
152
152
  'test-debug-static': 'static',
153
153
  };
154
154
 
155
- // Legacy/debug KMS aliases
156
- const KMS_ALIASES = {
157
- 'test-debug-static': 'static',
158
- };
155
+ // Legacy/debug KMS aliases.
156
+ //
157
+ // `test-debug-static` is intentionally NOT aliased to `static` here:
158
+ // the Rust core has a dedicated `test-debug-static` KMS kind that
159
+ // auto-supplies a publicly-known test key. Rewriting it to `static`
160
+ // would trip the `KMS=static requires STATIC_MASTER_KEY_HEX`
161
+ // validation (commit 9049fa4) and break every binding test that
162
+ // uses the debug fixture.
163
+ const KMS_ALIASES = {};
159
164
 
160
165
  function normalizeConfig(config) {
161
166
  if (!config || typeof config !== 'object') {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "asherah",
3
- "version": "4.0.39",
3
+ "version": "4.0.41",
4
4
  "private": false,
5
5
  "description": "Asherah application-layer encryption for Node.js with automatic key rotation, powered by the native Rust implementation.",
6
6
  "author": "Jay Gowdy",
@@ -70,13 +70,13 @@
70
70
  "node": ">= 18"
71
71
  },
72
72
  "optionalDependencies": {
73
- "asherah-darwin-arm64": "4.0.39",
74
- "asherah-darwin-x64": "4.0.39",
75
- "asherah-linux-x64-gnu": "4.0.39",
76
- "asherah-linux-arm64-gnu": "4.0.39",
77
- "asherah-linux-x64-musl": "4.0.39",
78
- "asherah-linux-arm64-musl": "4.0.39",
79
- "asherah-windows-x64": "4.0.39",
80
- "asherah-windows-arm64": "4.0.39"
73
+ "asherah-darwin-arm64": "4.0.41",
74
+ "asherah-darwin-x64": "4.0.41",
75
+ "asherah-linux-x64-gnu": "4.0.41",
76
+ "asherah-linux-arm64-gnu": "4.0.41",
77
+ "asherah-linux-x64-musl": "4.0.41",
78
+ "asherah-linux-arm64-musl": "4.0.41",
79
+ "asherah-windows-x64": "4.0.41",
80
+ "asherah-windows-arm64": "4.0.41"
81
81
  }
82
82
  }