refactor: update memorize decorator to use 'any' type and remove migrations.json

This commit is contained in:
Lorenz Hilpert
2025-02-24 14:26:11 +01:00
parent 39d790c121
commit f68eb33852
4 changed files with 1105 additions and 1907 deletions

View File

@@ -7,7 +7,7 @@ export function memorize(options?: { ttl?: number; comparer?: (current: any[], p
const id = v4();
const comparer = options?.comparer || _.isEqual;
const ttl = options?.ttl || Infinity;
return (target: Object, propertyKey: string, descriptor: TypedPropertyDescriptor<any>): TypedPropertyDescriptor<any> => {
return (target: any, propertyKey: string, descriptor: TypedPropertyDescriptor<any>): TypedPropertyDescriptor<any> => {
const currentMethod = descriptor.value;
descriptor.value = function (...args: any[]) {
const cacheIndex = memorizeCache.findIndex((c) => c.id === id && comparer(c.args, args));

View File

@@ -1,26 +0,0 @@
{
"migrations": [
{
"version": "19.0.0",
"description": "Updates non-standalone Directives, Component and Pipes to 'standalone:false' and removes 'standalone:true' from those who are standalone",
"factory": "./bundles/explicit-standalone-flag#migrate",
"package": "@angular/core",
"name": "explicit-standalone-flag"
},
{
"version": "19.0.0",
"description": "Updates ExperimentalPendingTasks to PendingTasks",
"factory": "./bundles/pending-tasks#migrate",
"package": "@angular/core",
"name": "pending-tasks"
},
{
"version": "19.0.0",
"description": "Replaces `APP_INITIALIZER`, `ENVIRONMENT_INITIALIZER` & `PLATFORM_INITIALIZER` respectively with `provideAppInitializer`, `provideEnvironmentInitializer` & `providePlatformInitializer`.",
"factory": "./bundles/provide-initializer#migrate",
"optional": true,
"package": "@angular/core",
"name": "provide-initializer"
}
]
}

2943
package-lock.json generated
View File

File diff suppressed because it is too large Load Diff

View File

@@ -34,25 +34,21 @@
"@microsoft/signalr": "^8.0.7",
"@ng-icons/core": "^29.5.1",
"@ng-icons/material-icons": "^29.5.1",
"@ngrx/component-store": "^18.1.0",
"@ngrx/effects": "^18.1.0",
"@ngrx/entity": "^18.1.0",
"@ngrx/operators": "^18.1.0",
"@ngrx/store": "^18.1.0",
"@ngrx/store-devtools": "^18.1.0",
"@tempfix/idb": "^8.0.3",
"@ngrx/component-store": "19.0.1",
"@ngrx/effects": "19.0.1",
"@ngrx/entity": "19.0.1",
"@ngrx/operators": "19.0.1",
"@ngrx/store": "19.0.1",
"@ngrx/store-devtools": "19.0.1",
"angular-oauth2-oidc": "^17.0.2",
"angular-oauth2-oidc-jwks": "^17.0.2",
"caniuse-lite": "^1.0.30001696",
"lodash": "^4.17.21",
"moment": "^2.30.1",
"ng2-pdf-viewer": "^10.3.3",
"parse-duration": "^1.1.0",
"rxjs": "~7.8.1",
"ng2-pdf-viewer": "^10.4.0",
"parse-duration": "^2.1.3",
"rxjs": "~7.8.2",
"scandit-web-datacapture-barcode": "^6.28.1",
"scandit-web-datacapture-core": "^6.28.1",
"socket.io": "^4.5.4",
"tslib": "^2.3.0",
"uuid": "^8.3.2",
"zone.js": "~0.15.0"
},
@@ -78,7 +74,7 @@
"@storybook/addon-interactions": "^8.3.6",
"@storybook/addon-links": "^8.3.6",
"@storybook/addon-onboarding": "^8.3.6",
"@storybook/angular": "^8.3.6",
"@storybook/angular": "^8.5.8",
"@storybook/blocks": "^8.3.6",
"@storybook/test": "^8.3.6",
"@swc-node/register": "~1.9.1",
@@ -87,7 +83,7 @@
"@types/jasmine": "~5.1.4",
"@types/uuid": "^10.0.0",
"@typescript-eslint/utils": "^8.19.0",
"angular-eslint": "^18.3.0",
"angular-eslint": "^19.1.0",
"autoprefixer": "^10.4.20",
"eslint": "^9.8.0",
"eslint-config-prettier": "^9.0.0",
@@ -103,22 +99,17 @@
"karma-jasmine-html-reporter": "~2.1.0",
"karma-junit-reporter": "~2.0.1",
"ng-swagger-gen": "^2.3.1",
"ngrx-store-freeze": "^0.2.4",
"npm-run-all": "^4.1.5",
"nx": "20.4.6",
"postcss": "^8.4.47",
"prettier": "~3.3.3",
"postcss": "^8.5.3",
"prettier": "~3.5.2",
"pretty-quick": "~4.0.0",
"storybook": "^8.3.6",
"tailwindcss": "^3.4.14",
"tailwindcss": "^4.0.8",
"typescript": "~5.5.0",
"typescript-eslint": "^8.19.0"
},
"engines": {
"node": ">=18.13.0",
"npm": ">=10.5.2"
},
"optionalDependencies": {
"@rollup/rollup-linux-x64-gnu": "*"
"node": ">=22.13.0",
"npm": ">=11.0.0"
}
}