@digitaldefiance/node-ecies-lib 1.0.8 → 1.0.9

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.
Files changed (2) hide show
  1. package/README.md +34 -0
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -240,6 +240,35 @@ const nodeEncrypted = nodeMember.encryptData('message');
240
240
  - **Input Validation**: Comprehensive validation of all cryptographic inputs
241
241
  - **Error Handling**: Detailed error types for debugging and security analysis
242
242
 
243
+ ## 🛠️ Runtime Configuration Registry
244
+
245
+ This package uses a runtime configuration registry for all constants and cryptographic parameters. You can override defaults at runtime for advanced use cases:
246
+
247
+ ```typescript
248
+ import {
249
+ getNodeRuntimeConfiguration,
250
+ registerNodeRuntimeConfiguration,
251
+ NODE_RUNTIME_CONFIGURATION_KEY,
252
+ } from '@digitaldefiance/node-ecies-lib';
253
+
254
+ // Get current config
255
+ const config = getNodeRuntimeConfiguration();
256
+
257
+ // Register a custom config
258
+ const customKey = Symbol('custom-node-ecies-config');
259
+ registerNodeRuntimeConfiguration(customKey, { PBKDF2: { ALGORITHM: 'sha512' } });
260
+ const customConfig = getNodeRuntimeConfiguration(customKey);
261
+ ```
262
+
263
+ All constants are immutable and accessible via the registry/config API. See `src/constants.ts` and `src/defaults.ts` for details.
264
+
265
+ ## 🏛️ Architectural Conventions
266
+
267
+ - Centralized constants file
268
+ - Immutability via Object.freeze
269
+ - Registry/config pattern for runtime overrides
270
+ - Type-safe interfaces for all config objects
271
+
243
272
  ## API Reference
244
273
 
245
274
  ### Constants
@@ -330,6 +359,11 @@ Please read the contributing guidelines in the main repository.
330
359
 
331
360
  ## ChangeLog
332
361
 
362
+ ### Version 1.0.9
363
+
364
+ - Tue Oct 14 2025 15:24:00 GMT-0700 (Pacific Daylight Time)
365
+ - Bump versions of i18n/ecies libs
366
+
333
367
  ### Version 1.0.8
334
368
 
335
369
  - Sun Oct 12 2025 22:30:00 GMT-0700 (Pacific Daylight Time)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digitaldefiance/node-ecies-lib",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "description": "Digital Defiance Node ECIES Library",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -53,8 +53,8 @@
53
53
  "type": "module",
54
54
  "packageManager": "yarn@4.10.3",
55
55
  "dependencies": {
56
- "@digitaldefiance/ecies-lib": "1.0.26",
57
- "@digitaldefiance/i18n-lib": "1.1.2",
56
+ "@digitaldefiance/ecies-lib": "1.0.27",
57
+ "@digitaldefiance/i18n-lib": "1.1.5",
58
58
  "@ethereumjs/wallet": "^10.0.0",
59
59
  "@noble/curves": "^2.0.1",
60
60
  "@noble/hashes": "^2.0.1",