ts-serializable 4.5.0 → 4.5.3
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 +26 -0
- package/README.md +4 -1
- package/dist/functions/DeserializeProperty.js +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,32 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
|
|
5
|
+
## [4.5.3] - 2025-12-13
|
|
6
|
+
|
|
7
|
+
### 🚜 Refactor
|
|
8
|
+
|
|
9
|
+
- *(DeserializeProperty)* Update ESLint directives for better readability
|
|
10
|
+
|
|
11
|
+
# Changelog
|
|
12
|
+
|
|
13
|
+
All notable changes to this project will be documented in this file.
|
|
14
|
+
|
|
15
|
+
## [4.5.2] - 2025-12-09
|
|
16
|
+
|
|
17
|
+
# Changelog
|
|
18
|
+
|
|
19
|
+
All notable changes to this project will be documented in this file.
|
|
20
|
+
|
|
21
|
+
## [4.5.1] - 2025-12-07
|
|
22
|
+
|
|
23
|
+
### 🐛 Bug Fixes
|
|
24
|
+
|
|
25
|
+
- Update README badges for npm downloads, license, and CI workflows
|
|
26
|
+
|
|
27
|
+
# Changelog
|
|
28
|
+
|
|
29
|
+
All notable changes to this project will be documented in this file.
|
|
30
|
+
|
|
5
31
|
## [4.5.0] - 2025-12-07
|
|
6
32
|
|
|
7
33
|
### 🚀 Features
|
package/README.md
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
# ts-serializable
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/ts-serializable)
|
|
4
|
-
[](https://www.npmjs.com/package/ts-serializable)
|
|
5
|
+
[](https://github.com/LabEG/Serializable/blob/master/LICENSE)
|
|
6
|
+
[](https://github.com/LabEG/Serializable/actions)
|
|
7
|
+
[](https://github.com/LabEG/Serializable/security/code-scanning)
|
|
5
8
|
|
|
6
9
|
Powerful and flexible TypeScript/JavaScript library for serialization and deserialization with decorators
|
|
7
10
|
|
|
@@ -36,9 +36,9 @@ import { onWrongType } from "./OnWrongType.js";
|
|
|
36
36
|
* // Returns the string "30" since String is checked first
|
|
37
37
|
* ```
|
|
38
38
|
*/
|
|
39
|
-
// eslint-disable-next-line max-lines-per-function, max-statements
|
|
39
|
+
// eslint-disable-next-line max-lines-per-function, max-statements
|
|
40
40
|
export const deserializeProperty = (obj, prop, acceptedTypes, jsonValue, settings
|
|
41
|
-
// eslint-disable-next-line max-params
|
|
41
|
+
// eslint-disable-next-line max-params, complexity
|
|
42
42
|
) => {
|
|
43
43
|
for (const acceptedType of acceptedTypes) { // Type Symbol is not a property
|
|
44
44
|
if ( // Null
|