@aneuhold/core-ts-lib 2.3.5 → 2.3.6
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 +13 -0
- package/lib/browser.d.ts +14 -0
- package/lib/browser.d.ts.map +1 -0
- package/lib/browser.js +12 -0
- package/lib/browser.js.map +1 -0
- package/lib/browser.ts +28 -0
- package/lib/index.d.ts +3 -13
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +4 -9
- package/lib/index.js.map +1 -1
- package/lib/index.ts +6 -22
- package/package.json +20 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,18 @@ 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.3.6] (2025-11-06)
|
|
9
|
+
|
|
10
|
+
### ✅ Added
|
|
11
|
+
|
|
12
|
+
- New browser-safe bundle: added src/browser.ts and updated exports for browser/node compatibility.
|
|
13
|
+
|
|
14
|
+
### 🏗️ Changed
|
|
15
|
+
|
|
16
|
+
- Refactored exports in package.json for browser/node/default support.
|
|
17
|
+
- Marked package as side-effect free in package.json ("sideEffects": false).
|
|
18
|
+
- Refactored src/index.ts to re-export from browser.ts and separate Node-specific exports.
|
|
19
|
+
|
|
8
20
|
## 🔖 [2.3.5] (2025-11-02)
|
|
9
21
|
|
|
10
22
|
### ✅ Added
|
|
@@ -87,6 +99,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|
|
87
99
|
|
|
88
100
|
<!-- Link References -->
|
|
89
101
|
|
|
102
|
+
[2.3.6]: https://github.com/aneuhold/ts-libs/compare/core-ts-lib-v2.3.5...core-ts-lib-v2.3.6
|
|
90
103
|
[2.3.5]: https://github.com/aneuhold/ts-libs/compare/core-ts-lib-v2.3.4...core-ts-lib-v2.3.5
|
|
91
104
|
[2.3.4]: https://github.com/aneuhold/ts-libs/compare/core-ts-lib-v2.3.3...core-ts-lib-v2.3.4
|
|
92
105
|
[2.3.3]: https://github.com/aneuhold/ts-libs/compare/core-ts-lib-v2.3.2...core-ts-lib-v2.3.3
|
package/lib/browser.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import sleep from './helperFunctions/sleep.js';
|
|
2
|
+
import { ILogger, NoopLogger } from './interfaces/ILogger.js';
|
|
3
|
+
import { ISpan, ITracer, NoopTracer } from './interfaces/ITracer.js';
|
|
4
|
+
import ArrayService from './services/ArrayService.js';
|
|
5
|
+
import DateService from './services/DateService/DateService.js';
|
|
6
|
+
import { DependencyRegistry, DR } from './services/DependencyRegistry.js';
|
|
7
|
+
import StringService from './services/StringService.js';
|
|
8
|
+
import { PackageJson } from './types/PackageJson.js';
|
|
9
|
+
import { VersionType } from './types/VersionType.js';
|
|
10
|
+
import ErrorUtils from './utils/ErrorUtils.js';
|
|
11
|
+
import TestUtils from './utils/TestUtils.js';
|
|
12
|
+
export { ArrayService, DateService, DependencyRegistry, DR, ErrorUtils, NoopLogger, NoopTracer, sleep, StringService, TestUtils };
|
|
13
|
+
export type { ILogger, ISpan, ITracer, PackageJson, VersionType };
|
|
14
|
+
//# sourceMappingURL=browser.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"browser.d.ts","sourceRoot":"","sources":["../src/browser.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,4BAA4B,CAAC;AAC/C,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrE,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,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,UAAU,MAAM,uBAAuB,CAAC;AAC/C,OAAO,SAAS,MAAM,sBAAsB,CAAC;AAG7C,OAAO,EACL,YAAY,EACZ,WAAW,EACX,kBAAkB,EAClB,EAAE,EACF,UAAU,EACV,UAAU,EACV,UAAU,EACV,KAAK,EACL,aAAa,EACb,SAAS,EACV,CAAC;AAGF,YAAY,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,CAAC"}
|
package/lib/browser.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import sleep from './helperFunctions/sleep.js';
|
|
2
|
+
import { NoopLogger } from './interfaces/ILogger.js';
|
|
3
|
+
import { NoopTracer } from './interfaces/ITracer.js';
|
|
4
|
+
import ArrayService from './services/ArrayService.js';
|
|
5
|
+
import DateService from './services/DateService/DateService.js';
|
|
6
|
+
import { DependencyRegistry, DR } from './services/DependencyRegistry.js';
|
|
7
|
+
import StringService from './services/StringService.js';
|
|
8
|
+
import ErrorUtils from './utils/ErrorUtils.js';
|
|
9
|
+
import TestUtils from './utils/TestUtils.js';
|
|
10
|
+
// Export all browser-safe functions and classes from this library
|
|
11
|
+
export { ArrayService, DateService, DependencyRegistry, DR, ErrorUtils, NoopLogger, NoopTracer, sleep, StringService, TestUtils };
|
|
12
|
+
//# sourceMappingURL=browser.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"browser.js","sourceRoot":"","sources":["../src/browser.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,4BAA4B,CAAC;AAC/C,OAAO,EAAW,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAkB,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrE,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,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,EACV,CAAC"}
|
package/lib/browser.ts
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import sleep from './helperFunctions/sleep.js';
|
|
2
|
+
import { ILogger, NoopLogger } from './interfaces/ILogger.js';
|
|
3
|
+
import { ISpan, ITracer, NoopTracer } from './interfaces/ITracer.js';
|
|
4
|
+
import ArrayService from './services/ArrayService.js';
|
|
5
|
+
import DateService from './services/DateService/DateService.js';
|
|
6
|
+
import { DependencyRegistry, DR } from './services/DependencyRegistry.js';
|
|
7
|
+
import StringService from './services/StringService.js';
|
|
8
|
+
import { PackageJson } from './types/PackageJson.js';
|
|
9
|
+
import { VersionType } from './types/VersionType.js';
|
|
10
|
+
import ErrorUtils from './utils/ErrorUtils.js';
|
|
11
|
+
import TestUtils from './utils/TestUtils.js';
|
|
12
|
+
|
|
13
|
+
// Export all browser-safe functions and classes from this library
|
|
14
|
+
export {
|
|
15
|
+
ArrayService,
|
|
16
|
+
DateService,
|
|
17
|
+
DependencyRegistry,
|
|
18
|
+
DR,
|
|
19
|
+
ErrorUtils,
|
|
20
|
+
NoopLogger,
|
|
21
|
+
NoopTracer,
|
|
22
|
+
sleep,
|
|
23
|
+
StringService,
|
|
24
|
+
TestUtils
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
// Export TypeScript types where needed
|
|
28
|
+
export type { ILogger, ISpan, ITracer, PackageJson, VersionType };
|
package/lib/index.d.ts
CHANGED
|
@@ -1,19 +1,9 @@
|
|
|
1
|
-
import sleep from './helperFunctions/sleep.js';
|
|
2
|
-
import { ILogger } from './interfaces/ILogger.js';
|
|
3
|
-
import { ISpan, ITracer } from './interfaces/ITracer.js';
|
|
4
|
-
import ArrayService from './services/ArrayService.js';
|
|
5
1
|
import ChangelogService from './services/ChangelogService/index.js';
|
|
6
|
-
import DateService from './services/DateService/DateService.js';
|
|
7
|
-
import { DependencyRegistry, DR } from './services/DependencyRegistry.js';
|
|
8
2
|
import DependencyService from './services/DependencyService.js';
|
|
9
3
|
import FileSystemService, { type ReplaceInFilesOptions } from './services/FileSystemService/FileSystemService.js';
|
|
10
4
|
import GlobMatchingService from './services/FileSystemService/GlobMatchingService.js';
|
|
11
5
|
import PackageService from './services/PackageService/PackageService.js';
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
import ErrorUtils from './utils/ErrorUtils.js';
|
|
16
|
-
import TestUtils from './utils/TestUtils.js';
|
|
17
|
-
export { ArrayService, ChangelogService, DateService, DependencyRegistry, DependencyService, DR, ErrorUtils, FileSystemService, GlobMatchingService, PackageService, sleep, StringService, TestUtils };
|
|
18
|
-
export type { ILogger, ISpan, ITracer, PackageJson, ReplaceInFilesOptions, VersionType };
|
|
6
|
+
export * from './browser.js';
|
|
7
|
+
export { ChangelogService, DependencyService, FileSystemService, GlobMatchingService, PackageService };
|
|
8
|
+
export type { ReplaceInFilesOptions };
|
|
19
9
|
//# sourceMappingURL=index.d.ts.map
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,gBAAgB,MAAM,sCAAsC,CAAC;AACpE,OAAO,iBAAiB,MAAM,iCAAiC,CAAC;AAChE,OAAO,iBAAiB,EAAE,EACxB,KAAK,qBAAqB,EAC3B,MAAM,mDAAmD,CAAC;AAC3D,OAAO,mBAAmB,MAAM,qDAAqD,CAAC;AACtF,OAAO,cAAc,MAAM,6CAA6C,CAAC;AAGzE,cAAc,cAAc,CAAC;AAG7B,OAAO,EACL,gBAAgB,EAChB,iBAAiB,EACjB,iBAAiB,EACjB,mBAAmB,EACnB,cAAc,EACf,CAAC;AAGF,YAAY,EAAE,qBAAqB,EAAE,CAAC"}
|
package/lib/index.js
CHANGED
|
@@ -1,15 +1,10 @@
|
|
|
1
|
-
import sleep from './helperFunctions/sleep.js';
|
|
2
|
-
import ArrayService from './services/ArrayService.js';
|
|
3
1
|
import ChangelogService from './services/ChangelogService/index.js';
|
|
4
|
-
import DateService from './services/DateService/DateService.js';
|
|
5
|
-
import { DependencyRegistry, DR } from './services/DependencyRegistry.js';
|
|
6
2
|
import DependencyService from './services/DependencyService.js';
|
|
7
3
|
import FileSystemService from './services/FileSystemService/FileSystemService.js';
|
|
8
4
|
import GlobMatchingService from './services/FileSystemService/GlobMatchingService.js';
|
|
9
5
|
import PackageService from './services/PackageService/PackageService.js';
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
export { ArrayService, ChangelogService, DateService, DependencyRegistry, DependencyService, DR, ErrorUtils, FileSystemService, GlobMatchingService, PackageService, sleep, StringService, TestUtils };
|
|
6
|
+
// Export all browser-safe exports from browser.ts
|
|
7
|
+
export * from './browser.js';
|
|
8
|
+
// Export Node.js-specific functions and classes from this library
|
|
9
|
+
export { ChangelogService, DependencyService, FileSystemService, GlobMatchingService, PackageService };
|
|
15
10
|
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,gBAAgB,MAAM,sCAAsC,CAAC;AACpE,OAAO,iBAAiB,MAAM,iCAAiC,CAAC;AAChE,OAAO,iBAEN,MAAM,mDAAmD,CAAC;AAC3D,OAAO,mBAAmB,MAAM,qDAAqD,CAAC;AACtF,OAAO,cAAc,MAAM,6CAA6C,CAAC;AAEzE,kDAAkD;AAClD,cAAc,cAAc,CAAC;AAE7B,kEAAkE;AAClE,OAAO,EACL,gBAAgB,EAChB,iBAAiB,EACjB,iBAAiB,EACjB,mBAAmB,EACnB,cAAc,EACf,CAAC"}
|
package/lib/index.ts
CHANGED
|
@@ -1,38 +1,22 @@
|
|
|
1
|
-
import sleep from './helperFunctions/sleep.js';
|
|
2
|
-
import { ILogger } from './interfaces/ILogger.js';
|
|
3
|
-
import { ISpan, ITracer } from './interfaces/ITracer.js';
|
|
4
|
-
import ArrayService from './services/ArrayService.js';
|
|
5
1
|
import ChangelogService from './services/ChangelogService/index.js';
|
|
6
|
-
import DateService from './services/DateService/DateService.js';
|
|
7
|
-
import { DependencyRegistry, DR } from './services/DependencyRegistry.js';
|
|
8
2
|
import DependencyService from './services/DependencyService.js';
|
|
9
3
|
import FileSystemService, {
|
|
10
4
|
type ReplaceInFilesOptions
|
|
11
5
|
} from './services/FileSystemService/FileSystemService.js';
|
|
12
6
|
import GlobMatchingService from './services/FileSystemService/GlobMatchingService.js';
|
|
13
7
|
import PackageService from './services/PackageService/PackageService.js';
|
|
14
|
-
import StringService from './services/StringService.js';
|
|
15
|
-
import { PackageJson } from './types/PackageJson.js';
|
|
16
|
-
import { VersionType } from './types/VersionType.js';
|
|
17
|
-
import ErrorUtils from './utils/ErrorUtils.js';
|
|
18
|
-
import TestUtils from './utils/TestUtils.js';
|
|
19
8
|
|
|
20
|
-
// Export all
|
|
9
|
+
// Export all browser-safe exports from browser.ts
|
|
10
|
+
export * from './browser.js';
|
|
11
|
+
|
|
12
|
+
// Export Node.js-specific functions and classes from this library
|
|
21
13
|
export {
|
|
22
|
-
ArrayService,
|
|
23
14
|
ChangelogService,
|
|
24
|
-
DateService,
|
|
25
|
-
DependencyRegistry,
|
|
26
15
|
DependencyService,
|
|
27
|
-
DR,
|
|
28
|
-
ErrorUtils,
|
|
29
16
|
FileSystemService,
|
|
30
17
|
GlobMatchingService,
|
|
31
|
-
PackageService
|
|
32
|
-
sleep,
|
|
33
|
-
StringService,
|
|
34
|
-
TestUtils
|
|
18
|
+
PackageService
|
|
35
19
|
};
|
|
36
20
|
|
|
37
21
|
// Export TypeScript types where needed
|
|
38
|
-
export type {
|
|
22
|
+
export type { ReplaceInFilesOptions };
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@aneuhold/core-ts-lib",
|
|
3
3
|
"author": "Anton G. Neuhold Jr.",
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"version": "2.3.
|
|
5
|
+
"version": "2.3.6",
|
|
6
6
|
"description": "A core library for all of my TypeScript projects",
|
|
7
7
|
"packageManager": "pnpm@10.12.1",
|
|
8
8
|
"type": "module",
|
|
@@ -28,10 +28,29 @@
|
|
|
28
28
|
],
|
|
29
29
|
"exports": {
|
|
30
30
|
".": {
|
|
31
|
+
"browser": {
|
|
32
|
+
"types": "./lib/browser.d.ts",
|
|
33
|
+
"import": "./lib/browser.js"
|
|
34
|
+
},
|
|
35
|
+
"node": {
|
|
36
|
+
"types": "./lib/index.d.ts",
|
|
37
|
+
"import": "./lib/index.js"
|
|
38
|
+
},
|
|
39
|
+
"default": {
|
|
40
|
+
"types": "./lib/browser.d.ts",
|
|
41
|
+
"import": "./lib/browser.js"
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"./browser": {
|
|
45
|
+
"types": "./lib/browser.d.ts",
|
|
46
|
+
"import": "./lib/browser.js"
|
|
47
|
+
},
|
|
48
|
+
"./node": {
|
|
31
49
|
"types": "./lib/index.d.ts",
|
|
32
50
|
"import": "./lib/index.js"
|
|
33
51
|
}
|
|
34
52
|
},
|
|
53
|
+
"sideEffects": false,
|
|
35
54
|
"repository": {
|
|
36
55
|
"type": "git",
|
|
37
56
|
"url": "git+https://github.com/aneuhold/ts-libs.git",
|