@digitaldefiance/node-express-suite 3.12.0 → 3.12.1

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 +16 -8
  2. package/package.json +5 -5
package/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # @digitaldefiance/node-express-suite
2
2
 
3
3
  [![npm version](https://badge.fury.io/js/%40digitaldefiance%2Fnode-express-suite.svg)](https://badge.fury.io/js/%40digitaldefiance%2Fnode-express-suite)
4
- [![Tests](https://img.shields.io/badge/tests-604%20passing-brightgreen)]()
4
+ [![Tests](https://img.shields.io/badge/tests-2541%20passing-brightgreen)]()
5
5
  [![Coverage](https://img.shields.io/badge/coverage-57.86%25-yellow)]()
6
6
  [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)
7
7
 
@@ -115,7 +115,7 @@ yarn add @digitaldefiance/node-express-suite
115
115
 
116
116
  ```typescript
117
117
  import { Application, DatabaseInitializationService, emailServiceRegistry } from '@digitaldefiance/node-express-suite';
118
- import { CoreLanguage } from '@digitaldefiance/i18n-lib';
118
+ import { LanguageCodes } from '@digitaldefiance/i18n-lib';
119
119
  import { EmailService } from './services/email'; // Your concrete implementation
120
120
 
121
121
  // Create application instance
@@ -123,7 +123,7 @@ const app = new Application({
123
123
  port: 3000,
124
124
  mongoUri: 'mongodb://localhost:27017/myapp',
125
125
  jwtSecret: process.env.JWT_SECRET,
126
- defaultLanguage: CoreLanguage.EnglishUS
126
+ defaultLanguage: LanguageCodes.EN_US
127
127
  });
128
128
 
129
129
  // Configure email service (required before using middleware)
@@ -563,7 +563,7 @@ Built-in support for multiple languages using the plugin-based i18n architecture
563
563
 
564
564
  ```typescript
565
565
  import { getGlobalI18nEngine, translateExpressSuite } from '@digitaldefiance/node-express-suite';
566
- import { CoreLanguage } from '@digitaldefiance/i18n-lib';
566
+ import { LanguageCodes } from '@digitaldefiance/i18n-lib';
567
567
 
568
568
  // Get the global i18n engine
569
569
  const i18n = getGlobalI18nEngine();
@@ -573,12 +573,12 @@ const i18n = getGlobalI18nEngine();
573
573
  const message = translateExpressSuite(
574
574
  ExpressSuiteStringKey.Common_Ready,
575
575
  {},
576
- CoreLanguage.French
576
+ LanguageCodes.FR
577
577
  );
578
578
  // "Prêt"
579
579
 
580
580
  // Change language globally
581
- i18n.setLanguage(CoreLanguage.Spanish);
581
+ i18n.setLanguage(LanguageCodes.ES);
582
582
  ```
583
583
 
584
584
  ### Direct String Key Translation
@@ -637,7 +637,7 @@ try {
637
637
 
638
638
  ## Testing
639
639
 
640
- Comprehensive test suite with 604 passing tests:
640
+ Comprehensive test suite with 2541 passing tests:
641
641
 
642
642
  ```bash
643
643
  # Run all tests
@@ -680,7 +680,7 @@ yarn add -D @faker-js/faker
680
680
 
681
681
  ### Test Coverage (v2.1)
682
682
 
683
- - **604 tests** passing (100% success rate)
683
+ - **2541 tests** passing (100% success rate)
684
684
  - **57.86%** overall coverage
685
685
  - **11 modules** at 100% coverage
686
686
  - All critical paths tested (validation, auth, services)
@@ -765,6 +765,14 @@ yarn add -D @faker-js/faker
765
765
  - `BackupCodeService` - Backup code management
766
766
  - `MnemonicService` - Mnemonic storage and retrieval
767
767
  - `SystemUserService` - System user operations
768
+ - `DatabaseInitializationService` - Database initialization with default users and roles
769
+ - `DirectLoginTokenService` - One-time login token management
770
+ - `RequestUserService` - Extract user from request context
771
+ - `ChecksumService` - CRC checksum operations
772
+ - `SymmetricService` - Symmetric encryption operations
773
+ - `XorService` - XOR cipher operations
774
+ - `FecService` - Forward error correction
775
+ - `DummyEmailService` - Test email service implementation
768
776
 
769
777
  ### Utilities
770
778
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digitaldefiance/node-express-suite",
3
- "version": "3.12.0",
3
+ "version": "3.12.1",
4
4
  "homepage": "https://github.com/Digital-Defiance/node-express-suite",
5
5
  "repository": {
6
6
  "type": "git",
@@ -38,12 +38,12 @@
38
38
  "publish:public": "npm publish --access public"
39
39
  },
40
40
  "dependencies": {
41
- "@digitaldefiance/ecies-lib": "4.16.30",
42
- "@digitaldefiance/i18n-lib": "4.3.0",
41
+ "@digitaldefiance/ecies-lib": "4.17.2",
42
+ "@digitaldefiance/i18n-lib": "4.3.2",
43
43
  "@digitaldefiance/mongoose-types": "8.20.9",
44
- "@digitaldefiance/node-ecies-lib": "4.16.30",
44
+ "@digitaldefiance/node-ecies-lib": "4.17.2",
45
45
  "@digitaldefiance/reed-solomon-erasure.wasm": "^1.0.1",
46
- "@digitaldefiance/suite-core-lib": "3.10.31",
46
+ "@digitaldefiance/suite-core-lib": "3.12.1",
47
47
  "@noble/curves": "^1.9.0",
48
48
  "@noble/hashes": "^1.8.0",
49
49
  "argon2": "^0.40.1",