@aneuhold/core-ts-lib 2.4.2 → 2.4.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 +7 -0
- package/lib/browser.d.ts +2 -1
- package/lib/browser.d.ts.map +1 -1
- package/lib/browser.js.map +1 -1
- package/lib/browser.ts +2 -1
- package/lib/types/DeepPartial.d.ts +8 -0
- package/lib/types/DeepPartial.d.ts.map +1 -0
- package/lib/types/DeepPartial.js +2 -0
- package/lib/types/DeepPartial.js.map +1 -0
- package/lib/types/DeepPartial.ts +7 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## 🔖 [2.4.3] (2026-03-15)
|
|
9
|
+
|
|
10
|
+
### ✅ Added
|
|
11
|
+
|
|
12
|
+
- Added `DeepPartial<T>` utility type that recursively makes all properties of a type optional, exported from both the main and browser entry points.
|
|
13
|
+
|
|
8
14
|
## 🔖 [2.4.2] (2026-03-13)
|
|
9
15
|
|
|
10
16
|
### 🩹 Fixed
|
|
@@ -215,6 +221,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|
|
215
221
|
|
|
216
222
|
<!-- Link References -->
|
|
217
223
|
|
|
224
|
+
[2.4.3]: https://github.com/aneuhold/ts-libs/compare/core-ts-lib-v2.4.2...core-ts-lib-v2.4.3
|
|
218
225
|
[2.4.2]: https://github.com/aneuhold/ts-libs/compare/core-ts-lib-v2.4.1...core-ts-lib-v2.4.2
|
|
219
226
|
[2.4.1]: https://github.com/aneuhold/ts-libs/compare/core-ts-lib-v2.4.0...core-ts-lib-v2.4.1
|
|
220
227
|
[2.4.0]: https://github.com/aneuhold/ts-libs/compare/core-ts-lib-v2.3.19...core-ts-lib-v2.4.0
|
package/lib/browser.d.ts
CHANGED
|
@@ -7,10 +7,11 @@ import ArrayService from './services/ArrayService.js';
|
|
|
7
7
|
import DateService from './services/DateService/DateService.js';
|
|
8
8
|
import { DependencyRegistry, DR } from './services/DependencyRegistry.js';
|
|
9
9
|
import StringService from './services/StringService.js';
|
|
10
|
+
import type { DeepPartial } from './types/DeepPartial.js';
|
|
10
11
|
import type { PackageJson } from './types/PackageJson.js';
|
|
11
12
|
import { VersionType } from './types/VersionType.js';
|
|
12
13
|
import ErrorUtils from './utils/ErrorUtils.js';
|
|
13
14
|
import TestUtils from './utils/TestUtils.js';
|
|
14
15
|
export { ArrayService, DateService, DependencyRegistry, DR, ErrorUtils, NoopLogger, NoopTracer, sleep, StringService, TestUtils, VersionType };
|
|
15
|
-
export type { ILogger, ISpan, ITracer, PackageJson };
|
|
16
|
+
export type { DeepPartial, ILogger, ISpan, ITracer, PackageJson };
|
|
16
17
|
//# sourceMappingURL=browser.d.ts.map
|
package/lib/browser.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"browser.d.ts","sourceRoot":"","sources":["../src/browser.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,4BAA4B,CAAC;AAC/C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,YAAY,MAAM,4BAA4B,CAAC;AACtD,OAAO,WAAW,MAAM,uCAAuC,CAAC;AAChE,OAAO,EAAE,kBAAkB,EAAE,EAAE,EAAE,MAAM,kCAAkC,CAAC;AAC1E,OAAO,aAAa,MAAM,6BAA6B,CAAC;AACxD,OAAO,KAAK,EAAE,WAA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,EACV,UAAU,EACV,KAAK,EACL,aAAa,EACb,SAAS,EACT,WAAW,EACZ,CAAC;AAGF,YAAY,EAAE,WAAW,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,CAAC"}
|
package/lib/browser.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"browser.js","sourceRoot":"","sources":["../src/browser.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,4BAA4B,CAAC;AAE/C,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAErD,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,YAAY,MAAM,4BAA4B,CAAC;AACtD,OAAO,WAAW,MAAM,uCAAuC,CAAC;AAChE,OAAO,EAAE,kBAAkB,EAAE,EAAE,EAAE,MAAM,kCAAkC,CAAC;AAC1E,OAAO,aAAa,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"browser.js","sourceRoot":"","sources":["../src/browser.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,4BAA4B,CAAC;AAE/C,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAErD,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,YAAY,MAAM,4BAA4B,CAAC;AACtD,OAAO,WAAW,MAAM,uCAAuC,CAAC;AAChE,OAAO,EAAE,kBAAkB,EAAE,EAAE,EAAE,MAAM,kCAAkC,CAAC;AAC1E,OAAO,aAAa,MAAM,6BAA6B,CAAC;AAGxD,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,UAAU,MAAM,uBAAuB,CAAC;AAC/C,OAAO,SAAS,MAAM,sBAAsB,CAAC;AAE7C,kEAAkE;AAClE,OAAO,EACL,YAAY,EACZ,WAAW,EACX,kBAAkB,EAClB,EAAE,EACF,UAAU,EACV,UAAU,EACV,UAAU,EACV,KAAK,EACL,aAAa,EACb,SAAS,EACT,WAAW,EACZ,CAAC"}
|
package/lib/browser.ts
CHANGED
|
@@ -7,6 +7,7 @@ import ArrayService from './services/ArrayService.js';
|
|
|
7
7
|
import DateService from './services/DateService/DateService.js';
|
|
8
8
|
import { DependencyRegistry, DR } from './services/DependencyRegistry.js';
|
|
9
9
|
import StringService from './services/StringService.js';
|
|
10
|
+
import type { DeepPartial } from './types/DeepPartial.js';
|
|
10
11
|
import type { PackageJson } from './types/PackageJson.js';
|
|
11
12
|
import { VersionType } from './types/VersionType.js';
|
|
12
13
|
import ErrorUtils from './utils/ErrorUtils.js';
|
|
@@ -28,4 +29,4 @@ export {
|
|
|
28
29
|
};
|
|
29
30
|
|
|
30
31
|
// Export TypeScript types where needed
|
|
31
|
-
export type { ILogger, ISpan, ITracer, PackageJson };
|
|
32
|
+
export type { DeepPartial, ILogger, ISpan, ITracer, PackageJson };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Recursively makes all properties of `T` optional. Unlike `Partial<T>` which
|
|
3
|
+
* only applies to the top level, this applies to all nested objects as well.
|
|
4
|
+
*/
|
|
5
|
+
export type DeepPartial<T> = {
|
|
6
|
+
[P in keyof T]?: T[P] extends object ? DeepPartial<T[P]> : T[P];
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=DeepPartial.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DeepPartial.d.ts","sourceRoot":"","sources":["../../src/types/DeepPartial.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,MAAM,WAAW,CAAC,CAAC,IAAI;KAC1B,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS,MAAM,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAChE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DeepPartial.js","sourceRoot":"","sources":["../../src/types/DeepPartial.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Recursively makes all properties of `T` optional. Unlike `Partial<T>` which
|
|
3
|
+
* only applies to the top level, this applies to all nested objects as well.
|
|
4
|
+
*/
|
|
5
|
+
export type DeepPartial<T> = {
|
|
6
|
+
[P in keyof T]?: T[P] extends object ? DeepPartial<T[P]> : T[P];
|
|
7
|
+
};
|
package/package.json
CHANGED