diff --git a/package.json b/package.json index 2957958..e165f6c 100644 --- a/package.json +++ b/package.json @@ -52,30 +52,36 @@ "lint": "eslint .", "lint:fix": "eslint . --fix", "release": "bumpp && npm publish", + "update-deps": "taze -w && pnpm i", "dev:playground": "pnpm --filter playground dev" }, "peerDependencies": { - "next-auth": "^4.10.0" + "@auth/core": ">=0.1.4" }, "dependencies": { - "fastify-plugin": "^4.3.0", - "node-fetch-native": "^0.1.8" + "@auth/core": "^0.1.4", + "@fastify/middie": "^8.1.0", + "@hattip/adapter-node": "^0.0.22", + "@hattip/polyfills": "^0.0.22", + "authey": "^0.1.5", + "fastify-plugin": "^4.4.0" }, "devDependencies": { - "@antfu/eslint-config": "^0.25.1", - "@fastify/cookie": "^7.0.0", - "@fastify/env": "^4.0.0", - "@fastify/formbody": "7.0.1", - "@types/node": "^17.0.35", + "@antfu/eslint-config": "^0.25.2", + "@fastify/cookie": "^8.3.0", + "@fastify/env": "^4.2.0", + "@fastify/formbody": "7.4.0", + "@types/connect": "^3.4.35", + "@types/node": "^17.0.45", "@types/tap": "^15.0.7", "bumpp": "^8.2.1", - "eslint": "^8.16.0", - "fastify": "4.0.0", - "next-auth": "^4.15.0", + "eslint": "^8.29.0", + "esno": "^0.16.3", + "fastify": "4.10.2", + "taze": "^0.8.4", "tsup": "5.11.13", - "tsx": "^3.4.2", "typescript": "4.5.4", - "vitest": "^0.13.0" + "vitest": "^0.13.1" }, "eslintConfig": { "extends": "@antfu" diff --git a/playground/.env.example b/playground/.env.example index b4f4cd0..2600e22 100644 --- a/playground/.env.example +++ b/playground/.env.example @@ -1,4 +1,4 @@ GITHUB_CLIENT_ID= GITHUB_CLIENT_SECRET= NEXTAUTH_URL= -NEXTAUTH_SECRET= +AUTH_SECRET= diff --git a/playground/package.json b/playground/package.json index 6b93761..ff0e776 100644 --- a/playground/package.json +++ b/playground/package.json @@ -1,11 +1,12 @@ { "name": "playground", + "type": "module", "private": true, "scripts": { - "dev": "tsx watch ./server.ts" + "dev": "esno ./server.ts" }, "dependencies": { - "@fastify/static": "^6.4.0", + "@fastify/static": "^6.6.0", "fastify-next-auth": "workspace:*" } } diff --git a/playground/public/index.html b/playground/public/index.html index e2c54c1..5e21547 100644 --- a/playground/public/index.html +++ b/playground/public/index.html @@ -23,7 +23,7 @@