Skip to content

Commit

Permalink
Merge pull request #525 from gadget-inc/fastify-v4-again
Browse files Browse the repository at this point in the history
Add fastify v4 support
  • Loading branch information
airhorns authored Dec 15, 2023
2 parents fdf8a4c + 01e45f7 commit 36ecf9f
Show file tree
Hide file tree
Showing 11 changed files with 757 additions and 723 deletions.
27 changes: 17 additions & 10 deletions packages/fastify-renderer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,22 +57,21 @@
"node": ">= 18.0.0"
},
"dependencies": {
"@fastify/accepts": "^4.2.0",
"@fastify/middie": "^8.3.0",
"@fastify/static": "^6.11.2",
"@opentelemetry/api": "^1.6.0",
"@vitejs/plugin-react-refresh": "^1.3.6",
"@fastify/accepts": "^3.0.0",
"@fastify/static": "^5.0.0",
"fastify-express": "^0.3.3",
"fastify-plugin": "^3.0.1",
"fastify-plugin": "^4.5.1",
"http-errors": "^1.8.1",
"middie": "^5.4.0",
"path-to-regexp": "^6.2.1",
"sanitize-filename": "^1.6.3",
"stream-template": "^0.0.10",
"vite": "^2.9.15",
"wouter": "^2.7.5"
},
"peerDependencies": {
"fastify": "^3.13.0",
"fastify": "^4.24.2",
"react": "experimental",
"react-dom": "experimental"
},
Expand All @@ -85,14 +84,22 @@
"@types/react": "^17.0.43",
"@types/react-dom": "^17.0.11",
"@types/sanitize-filename": "^1.6.3",
"@typescript-eslint/eslint-plugin": "^5.40.0",
"@typescript-eslint/parser": "^5.40.0",
"@typescript-eslint/eslint-plugin": "^6.7.3",
"@typescript-eslint/parser": "^6.7.3",
"cheerio": "^1.0.0-rc.12",
"fastify": "^3.29.0",
"eslint": "^7.32.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-prettier": "^3.4.1",
"eslint-plugin-react": "^7.31.7",
"eslint-plugin-react-hooks": "^4.6.0",
"fastify": "^4.24.2",
"gitpkg": "^1.0.0-beta.2",
"jest": "^29.7.0",
"npm-run-all": "^4.1.5",
"pino-pretty": "^4.8.0",
"pino-pretty": "^8.1.0",
"prettier": "^2.7.1",
"prettier-plugin-organize-imports": "^2.3.4",
"react": "0.0.0-experimental-4ead6b530",
"react-dom": "0.0.0-experimental-4ead6b530",
"rimraf": "^3.0.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/fastify-renderer/src/node/Plugin.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-disable @typescript-eslint/require-await */
import '@fastify/middie'
import fs from 'fs'
import 'middie'
import path from 'path'
import { InlineConfig } from 'vite'
import { Template } from './DocumentTemplate'
Expand Down
Loading

0 comments on commit 36ecf9f

Please sign in to comment.