@easyflow/javascript-sdk 2.2.3 โ 2.2.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/README.md +17 -12
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Enterprise-grade JavaScript SDK for Easyflow payment processing platform - Documentation and TypeScript definitions only
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## Project Status & Quality
|
|
6
6
|
|
|
7
7
|
<div align="center">
|
|
8
8
|
|
|
@@ -13,17 +13,19 @@ Enterprise-grade JavaScript SDK for Easyflow payment processing platform - Docum
|
|
|
13
13
|
|
|
14
14
|
</div>
|
|
15
15
|
|
|
16
|
-
##
|
|
16
|
+
## Quick Links
|
|
17
17
|
|
|
18
18
|
<div align="center">
|
|
19
19
|
|
|
20
|
-
[
|
|
20
|
+
[**Documentation Hub**](https://easyflow-sdk.pages.dev/) | [**Data Structures
|
|
21
|
+
**](https://easyflow-sdk.pages.dev/DATA-STRUCTURES.md) | [**API Reference
|
|
22
|
+
**](https://easyflow-sdk.pages.dev/INDEX.md) | [**NPM Package**](https://www.npmjs.com/package/@easyflow/javascript-sdk)
|
|
21
23
|
|
|
22
24
|
</div>
|
|
23
25
|
|
|
24
26
|
## What's New in v2.2.3
|
|
25
27
|
|
|
26
|
-
###
|
|
28
|
+
### New Features
|
|
27
29
|
|
|
28
30
|
- **Enhanced Buyer Validation**: Comprehensive validation for buyer data in orders, including phone and document number
|
|
29
31
|
format validation
|
|
@@ -31,36 +33,37 @@ Enterprise-grade JavaScript SDK for Easyflow payment processing platform - Docum
|
|
|
31
33
|
quantity, and optional description
|
|
32
34
|
- **Integer Validation**: New `isInteger()` method for validating integer values (no decimals allowed)
|
|
33
35
|
- **Numeric String Validation**: Enhanced validation for phone numbers and document numbers (only digits allowed)
|
|
34
|
-
- **Payload Cleaning**: New `cleanPayload()` function that automatically removes null, undefined, and empty values
|
|
36
|
+
- **Payload Cleaning**: New `cleanPayload()` function that automatically removes null, undefined, and empty values
|
|
37
|
+
before API calls
|
|
35
38
|
|
|
36
|
-
###
|
|
39
|
+
### Improvements
|
|
37
40
|
|
|
38
41
|
- **Better Error Messages**: More specific error messages with field context (e.g., `items[0].name`)
|
|
39
42
|
- **Comprehensive Testing**: 298 test cases across 9 test suites ensuring robust validation and functionality
|
|
40
43
|
- **Type Safety**: Enhanced validation for all data structures with clear error reporting
|
|
41
44
|
- **Code Quality**: 100% test coverage for all core modules and functions
|
|
42
45
|
|
|
43
|
-
###
|
|
46
|
+
### Security & Validation
|
|
44
47
|
|
|
45
|
-
- **Phone Number Format**: Enforces clean numeric format (e.g., "
|
|
46
|
-
- **Document Number Format**: Ensures clean numeric format (e.g., "
|
|
48
|
+
- **Phone Number Format**: Enforces clean numeric format (e.g., "987654321" not "98-765-4321")
|
|
49
|
+
- **Document Number Format**: Ensures clean numeric format (e.g., "01234567890" not "012.456.789-90")
|
|
47
50
|
- **Items Validation**: Strict validation for charge items with required fields and optional description (max 200 chars)
|
|
48
51
|
- **Boolean Validation**: Enhanced validation for boolean fields like `isMobile`
|
|
49
52
|
- **Address Validation**: Rigorous validation for zipCode (exactly 8 digits) and all required address fields
|
|
50
53
|
|
|
51
|
-
###
|
|
54
|
+
### Documentation
|
|
52
55
|
|
|
53
56
|
- **Updated Examples**: All examples now include complete data structures
|
|
54
57
|
- **Validation Rules**: Clear documentation of validation requirements for each field
|
|
55
58
|
- **Error Handling**: Comprehensive error handling examples and best practices
|
|
56
59
|
|
|
57
|
-
##
|
|
60
|
+
## Testing & Quality Assurance
|
|
58
61
|
|
|
59
62
|
### Test Coverage
|
|
60
63
|
|
|
61
64
|
The SDK maintains **100% test coverage** across all core modules:
|
|
62
65
|
|
|
63
|
-
- **298 tests passing**
|
|
66
|
+
- **298 tests passing**
|
|
64
67
|
- **9 test suites** covering all functionality
|
|
65
68
|
- **0 test failures** ensuring reliability
|
|
66
69
|
- **Comprehensive validation testing** for all data structures
|
|
@@ -90,6 +93,7 @@ The SDK maintains **100% test coverage** across all core modules:
|
|
|
90
93
|
### Via CDN
|
|
91
94
|
|
|
92
95
|
```html
|
|
96
|
+
|
|
93
97
|
<script src="https://easyflow-sdk.pages.dev/easyflow-sdk.min.js"></script>
|
|
94
98
|
```
|
|
95
99
|
|
|
@@ -414,6 +418,7 @@ functional interface!** ๐โจ
|
|
|
414
418
|
### Via CDN
|
|
415
419
|
|
|
416
420
|
```html
|
|
421
|
+
|
|
417
422
|
<script src="https://easyflow-sdk.pages.dev/easyflow-sdk.min.js"></script>
|
|
418
423
|
```
|
|
419
424
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@easyflow/javascript-sdk",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.4",
|
|
4
4
|
"description": "Enterprise-grade JavaScript SDK for Easyflow payment processing platform - Documentation and TypeScript definitions only",
|
|
5
5
|
"main": "./dist/easyflow-sdk.min.js",
|
|
6
6
|
"module": "./dist/easyflow-sdk.min.js",
|