@egovernments/digit-ui-libraries 1.9.2 → 1.9.4

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,68 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.9.4] [10-March-2026]
4
+
5
+ ### 🔧 Multi-Root Tenant Support Enhancement:
6
+
7
+ #### 🏢 ULB Service Improvements:
8
+ - **Enhanced `getCurrentTenantId()` Method**: Added sandbox-ui multi-root tenant support
9
+ - Added `MULTI_ROOT_TENANT` global config check
10
+ - When multi-root tenant is enabled, directly returns `user.info.tenantId`
11
+ - Provides better tenant isolation for sandbox environments
12
+ - Falls back to existing logic when multi-root tenant is disabled
13
+
14
+ #### 📋 Modified Files:
15
+ - `packages/libraries/src/services/molecules/Ulb/index.js`:
16
+ - Added `MULTI_ROOT_TENANT` config check in `getCurrentTenantId()`
17
+ - Enhanced tenant ID resolution logic for multi-tenant deployments
18
+
19
+ ### Impact:
20
+ - Better support for sandbox multi-root tenant configurations
21
+ - Improved tenant context handling for multi-tenant deployments
22
+ - Ensures correct tenant ID is used when multi-root tenant is enabled
23
+
24
+ ## [1.9.3] [15-December-2025]
25
+
26
+ ### 🔧 Validation Pattern Enhancements:
27
+
28
+ #### 📱 Mobile Number Validation Improvements:
29
+ - **Simplified MDMS Pattern Retrieval**: Enhanced `getPattern()` function for mobile number validation
30
+ - Removed verbose console logging for production readiness
31
+ - Streamlined MDMS pattern retrieval logic
32
+ - Silent fallback to default pattern if MDMS not available
33
+ - Better error handling with try-catch for robustness
34
+
35
+ #### ✅ Regex Pattern Fixes:
36
+ - **Name Pattern**: Fixed invalid regex characters in Name validation
37
+ - Old: `/^[^{0-9}^\$\"<>?\\\\~!@#$%^()+={}\[\]*,/_:;""'']{1,50}$/i`
38
+ - New: `/^[^0-9\$\"<>?\\~!@#$%^()+={}\[\]*,/_:;]{1,50}$/i`
39
+ - Removed: `{0-9}` → `0-9`, extra `^`, double escapes `\\\\` → `\\`, smart quotes
40
+
41
+ - **Address Pattern**: Fixed invalid regex characters in Address validation
42
+ - Old: `/^[^\$\"<>?\\\\~\`!@$%^()+={}\[\]*:;""'']{1,500}$/i`
43
+ - New: `/^[^\$\"<>?\\~\`!@$%^()+={}\[\]*:;]{1,500}$/i`
44
+ - Removed: Double escapes and smart quotes that caused regex syntax errors
45
+
46
+ #### 🎯 Technical Improvements:
47
+ - Enhanced pattern matching reliability across all form validations
48
+ - Eliminated browser console regex syntax error warnings
49
+ - Maintained backward compatibility with existing validation logic
50
+ - Improved code maintainability with cleaner regex patterns
51
+
52
+ #### 📋 Modified Files:
53
+ - `packages/libraries/src/utils/index.js`:
54
+ - Simplified `getPattern()` function for MobileNo type
55
+ - Fixed Name pattern regex
56
+ - Fixed Address pattern regex
57
+ - Removed debug console logs
58
+
59
+ ### Impact:
60
+ - Fixes console errors: "Pattern attribute value is not a valid regular expression"
61
+ - Ensures proper form validation across all DIGIT-UI modules
62
+ - Better MDMS integration for mobile number validation
63
+ - Production-ready code without debug logging
64
+
65
+
3
66
  ## [1.9.2] [13-November-2025]
4
67
  ### Bug fix
5
68
  - Fixed the logout redirection issue