Skip to content

Commit

Permalink
Upgrade fastify to v5
Browse files Browse the repository at this point in the history
Also updated typescript and @types/node.
Updated fastify plugins.
Fixed import of webPush.
Added ts-ignores where decorate with null.

Signed-off-by: Brian Evans <ebrian101@gmail.com>
  • Loading branch information
mrbrianevans committed Oct 5, 2024
1 parent f8865ec commit 85d406d
Show file tree
Hide file tree
Showing 12 changed files with 227 additions and 506 deletions.
4 changes: 2 additions & 2 deletions Backend.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM node:22 AS builder

RUN corepack enable && corepack prepare pnpm@9.1.1 --activate && pnpm store path
RUN corepack enable && corepack prepare pnpm@9.12.0 --activate && pnpm store path
WORKDIR /filing-deadlines
COPY pnpm-*.yaml ./
RUN pnpm fetch
Expand All @@ -24,7 +24,7 @@ RUN pnpm run build

FROM node:22-alpine

RUN corepack enable && corepack prepare pnpm@9.1.1 --activate && pnpm store path
RUN corepack enable && corepack prepare pnpm@9.12.0 --activate && pnpm store path
WORKDIR /filing-deadlines
COPY pnpm-*.yaml ./
RUN pnpm fetch --prod
Expand Down
2 changes: 1 addition & 1 deletion Frontend.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM node:22 as build_ui

RUN corepack enable && corepack prepare pnpm@9.1.1 --activate && pnpm store path
RUN corepack enable && corepack prepare pnpm@9.12.0 --activate && pnpm store path
WORKDIR /filing-deadlines
COPY pnpm-*.yaml ./
RUN pnpm fetch
Expand Down
3 changes: 2 additions & 1 deletion backend-shared/notifications/sendWebNotification.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import {getRedisClient} from "../getRedisClient.js";
import webPush,{PushSubscription} from 'web-push'
import * as webPush from 'web-push'
import type {PushSubscription} from "web-push";
import {sharedLogger} from "../loggers.js";


Expand Down
11 changes: 6 additions & 5 deletions backend-shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,13 @@
"pino": "^8.12.1",
"pino-loki": "^2.0.4",
"string-template": "^1.0.0",
"web-push": "^3.6.1"
"web-push": "^3.6.7"
},
"devDependencies": {
"@types/node": "^18.16.3",
"@types/node": "^22.7.4",
"@types/string-template": "^1.0.2",
"@types/web-push": "^3.3.2",
"typescript": "^5.0.4"
}
"@types/web-push": "^3.6.3",
"typescript": "^5.6.2"
},
"packageManager": "pnpm@9.12.0+sha512.4abf725084d7bcbafbd728bfc7bee61f2f791f977fd87542b3579dcb23504d170d46337945e4c66485cd12d588a0c0e570ed9c477e7ccdd8507cf05f3f92eaca"
}
2 changes: 1 addition & 1 deletion client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"svelte-check": "^3.7.1",
"svelte-preprocess": "^5.1.4",
"tslib": "^2.6.2",
"typescript": "^5.4.5",
"typescript": "^5.6.2",
"vite": "^4.5.3"
},
"dependencies": {
Expand Down
7 changes: 4 additions & 3 deletions fs-shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"start": "node index.js"
},
"devDependencies": {
"@types/node": "^18.16.3",
"typescript": "^5.0.4"
}
"@types/node": "^22.7.4",
"typescript": "^5.6.2"
},
"packageManager": "pnpm@9.12.0+sha512.4abf725084d7bcbafbd728bfc7bee61f2f791f977fd87542b3579dcb23504d170d46337945e4c66485cd12d588a0c0e570ed9c477e7ccdd8507cf05f3f92eaca"
}
Loading

0 comments on commit 85d406d

Please sign in to comment.