Refactor CalendarOrchestrator with ts-linq-light

Replaces native array methods with ts-linq-light for improved functional programming
Simplifies data transformation and grouping logic
Enhances code readability and introduces more declarative data manipulation
This commit is contained in:
Janus C. H. Knudsen 2025-12-08 22:26:38 +01:00
parent 23fcaa9985
commit 27561750f8
4 changed files with 52 additions and 29 deletions

28
package-lock.json generated
View file

@ -12,7 +12,8 @@
"@rollup/rollup-win32-x64-msvc": "^4.52.2",
"dayjs": "^1.11.19",
"fuse.js": "^7.1.0",
"json-diff-ts": "^4.8.2"
"json-diff-ts": "^4.8.2",
"ts-linq-light": "^1.0.0"
},
"devDependencies": {
"@fullhuman/postcss-purgecss": "^7.0.2",
@ -4958,6 +4959,31 @@
"node": ">=20"
}
},
"node_modules/ts-linq-light": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/ts-linq-light/-/ts-linq-light-1.0.0.tgz",
"integrity": "sha512-8GGyHkHlKuKFTbT/Xz/0y72OTKl1hVRMJ0MqXAaWaergCExKw3bd5M6DR3NSOA7UL0gkTMhWsql9kFYyAjkIdQ==",
"license": "MIT",
"engines": {
"node": ">=18.0.0"
},
"optionalDependencies": {
"@rollup/rollup-win32-x64-msvc": "^4.53.3"
}
},
"node_modules/ts-linq-light/node_modules/@rollup/rollup-win32-x64-msvc": {
"version": "4.53.3",
"resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.53.3.tgz",
"integrity": "sha512-UhTd8u31dXadv0MopwGgNOBpUVROFKWVQgAg5N1ESyCz8AuBcMqm4AuTjrwgQKGDfoFuz02EuMRHQIw/frmYKQ==",
"cpu": [
"x64"
],
"license": "MIT",
"optional": true,
"os": [
"win32"
]
},
"node_modules/tslib": {
"version": "2.8.1",
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz",