Merged PR 1898: chore: update dependencies to latest versions

chore: update dependencies to latest versions

- Upgraded @ngrx packages from 19.2.1 to ^20.0.0
- Upgraded ngx-matomo-client from ^7.0.1 to ^8.0.0
- Upgraded jest and related packages from 30.0.4 to ^29.7.0
This commit is contained in:
Lorenz Hilpert
2025-07-30 08:52:36 +00:00
committed by Nino Righi
parent 4732656a0f
commit 239ab52890
4 changed files with 1239 additions and 2952 deletions

View File

@@ -8,7 +8,7 @@ WORKDIR /app
COPY . .
RUN umask 0022
RUN npm version ${SEMVERSION}
RUN npm install --foreground-scripts --legacy-peer-deps
RUN npm install --foreground-scripts
RUN if [ "${IS_PRODUCTION}" = "true" ] ; then npm run-script build-prod ; else npm run-script build ; fi
# stage final

View File

@@ -1,11 +1,20 @@
import { Type } from '@angular/core';
import { getState, patchState, signalStoreFeature, withHooks, withMethods } from '@ngrx/signals';
import {
getState,
patchState,
signalStoreFeature,
withHooks,
withMethods,
} from '@ngrx/signals';
import { rxMethod } from '@ngrx/signals/rxjs-interop';
import { StorageProvider } from './storage-provider';
import { injectStorage } from './storage';
import { debounceTime, pipe, switchMap } from 'rxjs';
export function withStorage(storageKey: string, storageProvider: Type<StorageProvider>) {
export function withStorage(
storageKey: string,
storageProvider: Type<StorageProvider>,
) {
return signalStoreFeature(
withMethods((store, storage = injectStorage(storageProvider)) => ({
storeState: rxMethod<void>(
@@ -16,7 +25,7 @@ export function withStorage(storageKey: string, storageProvider: Type<StoragePro
),
restoreState: async () => {
const data = await storage.get(storageKey);
if (data) {
if (data && typeof data === 'object') {
patchState(store, data);
}
},

4154
package-lock.json generated
View File

File diff suppressed because it is too large Load Diff

View File

@@ -34,20 +34,20 @@
"@microsoft/signalr": "^8.0.7",
"@ng-icons/core": "32.0.0",
"@ng-icons/material-icons": "32.0.0",
"@ngrx/component-store": "19.2.1",
"@ngrx/effects": "19.2.1",
"@ngrx/entity": "19.2.1",
"@ngrx/operators": "19.2.1",
"@ngrx/signals": "19.2.1",
"@ngrx/store": "19.2.1",
"@ngrx/store-devtools": "19.2.1",
"@ngrx/component-store": "^20.0.0",
"@ngrx/effects": "^20.0.0",
"@ngrx/entity": "^20.0.0",
"@ngrx/operators": "^20.0.0",
"@ngrx/signals": "^20.0.0",
"@ngrx/store": "^20.0.0",
"@ngrx/store-devtools": "^20.0.0",
"angular-oauth2-oidc": "20.0.0",
"angular-oauth2-oidc-jwks": "20.0.0",
"date-fns": "^4.1.0",
"lodash": "^4.17.21",
"moment": "^2.30.1",
"ng2-pdf-viewer": "^10.4.0",
"ngx-matomo-client": "^7.0.1",
"ngx-matomo-client": "^8.0.0",
"parse-duration": "^2.1.3",
"rxjs": "~7.8.2",
"scandit-web-datacapture-barcode": "^6.28.1",
@@ -97,8 +97,8 @@
"eslint": "^9.28.0",
"eslint-config-prettier": "^10.1.5",
"husky": "^9.1.7",
"jest": "30.0.4",
"jest-environment-jsdom": "30.0.4",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"jest-environment-node": "^29.7.0",
"jest-junit": "^16.0.0",
"jest-preset-angular": "14.6.0",