diff --git a/examples/basic-auth/package.json b/examples/basic-auth/package.json index f30caae1..f51986cf 100644 --- a/examples/basic-auth/package.json +++ b/examples/basic-auth/package.json @@ -24,6 +24,6 @@ "@zerva/bin": "workspace:*", "@zerva/core": "workspace:*", "@zerva/http": "workspace:*", - "zeed": "^0.25.4" + "zeed": "^0.27.1" } } diff --git a/examples/bin/package.json b/examples/bin/package.json index d7755378..1092fad8 100644 --- a/examples/bin/package.json +++ b/examples/bin/package.json @@ -23,7 +23,7 @@ "start": "LEVEL=i ZEED=* zerva" }, "dependencies": { - "zeed": "^0.25.4" + "zeed": "^0.27.1" }, "devDependencies": { "@zerva/bin": "workspace:*", diff --git a/examples/email/package.json b/examples/email/package.json index 8088bbd2..a4941444 100644 --- a/examples/email/package.json +++ b/examples/email/package.json @@ -22,6 +22,6 @@ "dependencies": { "@zerva/core": "workspace:*", "@zerva/email": "workspace:*", - "zeed": "^0.25.4" + "zeed": "^0.27.1" } } diff --git a/examples/minimal/package.json b/examples/minimal/package.json index f9f6a167..07f343d1 100644 --- a/examples/minimal/package.json +++ b/examples/minimal/package.json @@ -22,6 +22,6 @@ "dependencies": { "@zerva/core": "workspace:*", "@zerva/http": "workspace:*", - "zeed": "^0.25.4" + "zeed": "^0.27.1" } } diff --git a/examples/oauth2/package.json b/examples/oauth2/package.json index fb481a24..2c9fc9f7 100644 --- a/examples/oauth2/package.json +++ b/examples/oauth2/package.json @@ -20,11 +20,11 @@ "start": "ZEED=* LEVEL=a zerva index.ts" }, "dependencies": { - "@types/express-session": "^1.18.0", + "@types/express-session": "^1.18.1", "@zerva/bin": "workspace:*", "@zerva/core": "workspace:*", "@zerva/http": "workspace:*", "express-session": "^1.18.1", - "zeed": "^0.25.4" + "zeed": "^0.27.1" } } diff --git a/examples/openapi/package.json b/examples/openapi/package.json index 6cef101b..c5e48bf0 100644 --- a/examples/openapi/package.json +++ b/examples/openapi/package.json @@ -24,6 +24,6 @@ "@zerva/core": "workspace:*", "@zerva/http": "workspace:*", "@zerva/openapi": "workspace:*", - "zeed": "^0.25.4" + "zeed": "^0.27.1" } } diff --git a/examples/plausible/package.json b/examples/plausible/package.json index 11a9884b..7a2665d0 100644 --- a/examples/plausible/package.json +++ b/examples/plausible/package.json @@ -24,6 +24,6 @@ "@zerva/core": "workspace:*", "@zerva/http": "workspace:*", "@zerva/plausible": "workspace:*", - "zeed": "^0.25.4" + "zeed": "^0.27.1" } } diff --git a/examples/rpc/package.json b/examples/rpc/package.json index 894d096d..4f65053b 100644 --- a/examples/rpc/package.json +++ b/examples/rpc/package.json @@ -21,16 +21,16 @@ }, "dependencies": { "@zerva/rpc": "workspace:*", - "vue": "^3.5.12", - "zeed": "^0.25.4" + "vue": "^3.5.13", + "zeed": "^0.27.1" }, "devDependencies": { - "@vitejs/plugin-vue": "^5.1.4", - "@vue/compiler-sfc": "^3.5.12", + "@vitejs/plugin-vue": "^5.2.1", + "@vue/compiler-sfc": "^3.5.13", "@zerva/bin": "workspace:*", "@zerva/core": "workspace:*", "@zerva/http": "workspace:*", "@zerva/vite": "workspace:*", - "vite": "^5.4.10" + "vite": "^6.0.7" } } diff --git a/examples/sandbox/package.json b/examples/sandbox/package.json index 07fbb45f..49e59868 100644 --- a/examples/sandbox/package.json +++ b/examples/sandbox/package.json @@ -24,6 +24,6 @@ "@zerva/bin": "workspace:*", "@zerva/core": "workspace:*", "@zerva/http": "workspace:*", - "zeed": "^0.25.4" + "zeed": "^0.27.1" } } diff --git a/examples/vite-pwa/package.json b/examples/vite-pwa/package.json index 670a9493..16989bbe 100644 --- a/examples/vite-pwa/package.json +++ b/examples/vite-pwa/package.json @@ -23,17 +23,17 @@ "vite_serve": "vite preview" }, "dependencies": { - "vue": "^3.5.12", - "zeed": "^0.25.4" + "vue": "^3.5.13", + "zeed": "^0.27.1" }, "devDependencies": { - "@vitejs/plugin-vue": "^5.1.4", + "@vitejs/plugin-vue": "^5.2.1", "@zerva/bin": "workspace:*", "@zerva/core": "workspace:*", "@zerva/http": "workspace:*", "@zerva/vite": "workspace:*", - "typescript": "^5.6.3", - "vite": "^5.4.10", - "vite-plugin-pwa": "^0.20.5" + "typescript": "^5.7.3", + "vite": "^6.0.7", + "vite-plugin-pwa": "^0.21.1" } } diff --git a/examples/vite-serviceworker/package.json b/examples/vite-serviceworker/package.json index b2b5126c..878582be 100644 --- a/examples/vite-serviceworker/package.json +++ b/examples/vite-serviceworker/package.json @@ -23,16 +23,16 @@ "vite_serve": "vite preview" }, "dependencies": { - "vue": "^3.5.12", - "zeed": "^0.25.4" + "vue": "^3.5.13", + "zeed": "^0.27.1" }, "devDependencies": { - "@vitejs/plugin-vue": "^5.1.4", + "@vitejs/plugin-vue": "^5.2.1", "@zerva/bin": "workspace:*", "@zerva/core": "workspace:*", "@zerva/http": "workspace:*", "@zerva/vite": "workspace:*", - "typescript": "^5.6.3", - "vite": "^5.4.10" + "typescript": "^5.7.3", + "vite": "^6.0.7" } } diff --git a/examples/vite/package.json b/examples/vite/package.json index 23eca95f..11eba1b8 100644 --- a/examples/vite/package.json +++ b/examples/vite/package.json @@ -23,16 +23,16 @@ "vite_serve": "vite preview" }, "dependencies": { - "vue": "^3.5.12" + "vue": "^3.5.13" }, "devDependencies": { - "@vitejs/plugin-vue": "^5.1.4", + "@vitejs/plugin-vue": "^5.2.1", "@zerva/bin": "workspace:*", "@zerva/core": "workspace:*", "@zerva/http": "workspace:*", "@zerva/vite": "workspace:*", - "typescript": "^5.6.3", - "vite": "^5.4.10", - "zeed": "^0.25.4" + "typescript": "^5.7.3", + "vite": "^6.0.7", + "zeed": "^0.27.1" } } diff --git a/examples/websocket/package.json b/examples/websocket/package.json index 598893e3..002800f8 100644 --- a/examples/websocket/package.json +++ b/examples/websocket/package.json @@ -24,13 +24,13 @@ "@zerva/http": "workspace:*", "@zerva/vite": "workspace:*", "@zerva/websocket": "workspace:*", - "vue": "^3.5.12", - "zeed": "^0.25.4" + "vue": "^3.5.13", + "zeed": "^0.27.1" }, "devDependencies": { - "@vitejs/plugin-vue": "^5.1.4", - "@vue/compiler-sfc": "^3.5.12", + "@vitejs/plugin-vue": "^5.2.1", + "@vue/compiler-sfc": "^3.5.13", "@zerva/bin": "workspace:*", - "vite": "^5.4.10" + "vite": "^6.0.7" } } diff --git a/package.json b/package.json index c281593d..cf5229fa 100644 --- a/package.json +++ b/package.json @@ -24,20 +24,20 @@ "update": "pnpm -r update -i --latest" }, "devDependencies": { - "@antfu/eslint-config": "^3.8.0", - "@antfu/ni": "^0.23.0", - "@types/bun": "^1.1.12", + "@antfu/eslint-config": "^3.13.0", + "@antfu/ni": "^23.2.0", + "@types/bun": "^1.1.16", "@types/jest": "^29.5.14", - "@types/node": "^22.8.5", - "bumpp": "^9.8.0", - "eslint": "^9.13.0", + "@types/node": "^22.10.5", + "bumpp": "^9.10.0", + "eslint": "^9.17.0", "only-allow": "^1.2.1", - "sort-package-json": "^2.10.1", + "sort-package-json": "^2.12.0", "tsup": "^8.3.5", - "typescript": "^5.6.3", - "vite": "^5.4.10", - "vitest": "^2.1.4", - "vue-tsc": "^2.1.10", - "zeed": "^0.25.7" + "typescript": "^5.7.3", + "vite": "^6.0.7", + "vitest": "^2.1.8", + "vue-tsc": "^2.2.0", + "zeed": "^0.27.1" } } diff --git a/zerva-basic-auth/package.json b/zerva-basic-auth/package.json index 29e0b478..0b761dc1 100644 --- a/zerva-basic-auth/package.json +++ b/zerva-basic-auth/package.json @@ -52,10 +52,10 @@ "dependencies": { "@zerva/core": "workspace:*", "@zerva/http": "workspace:*", - "zeed": "^0.25.4" + "zeed": "^0.27.1" }, "devDependencies": { "tsup": "^8.3.5", - "typescript": "^5.6.3" + "typescript": "^5.7.3" } } diff --git a/zerva-bin/package.json b/zerva-bin/package.json index ed2dc498..966c7328 100644 --- a/zerva-bin/package.json +++ b/zerva-bin/package.json @@ -46,10 +46,10 @@ "test": "echo todo" }, "dependencies": { - "@types/node": "^22.8.1", + "@types/node": "^22.10.5", "display-notification": "^3.0.0", - "esbuild": "^0.24.0", + "esbuild": "^0.24.2", "esbuild-plugin-yaml": "^0.0.1", - "zeed": "^0.25.4" + "zeed": "^0.27.1" } } diff --git a/zerva-core/package.json b/zerva-core/package.json index 53d0e13b..4320abfc 100644 --- a/zerva-core/package.json +++ b/zerva-core/package.json @@ -50,14 +50,14 @@ "watch": "tsup src/index.ts --watch" }, "dependencies": { - "zeed": "^0.25.4" + "zeed": "^0.27.1" }, "devDependencies": { "@types/jest": "^29.5.14", - "@types/node": "^22.8.1", + "@types/node": "^22.10.5", "@zerva/bin": "workspace:*", "tsup": "^8.3.5", - "typescript": "^5.6.3", - "vitest": "^2.1.4" + "typescript": "^5.7.3", + "vitest": "^2.1.8" } } diff --git a/zerva-email/package.json b/zerva-email/package.json index 31563c46..c7d60fae 100644 --- a/zerva-email/package.json +++ b/zerva-email/package.json @@ -50,14 +50,14 @@ "watch": "tsup src/index.ts --watch" }, "dependencies": { - "@types/nodemailer": "^6.4.16", + "@types/nodemailer": "^6.4.17", "@zerva/core": "workspace:*", "@zerva/http": "workspace:*", "nodemailer": "^6.9.16", - "zeed": "^0.25.4" + "zeed": "^0.27.1" }, "devDependencies": { - "@types/node": "^22.8.1", + "@types/node": "^22.10.5", "tsup": "^8.3.5" } } diff --git a/zerva-http-log/package.json b/zerva-http-log/package.json index 1cdde66f..b1522727 100644 --- a/zerva-http-log/package.json +++ b/zerva-http-log/package.json @@ -55,11 +55,11 @@ "@zerva/http": "workspace:*", "morgan": "^1.10.0", "rotating-file-stream": "^3.2.5", - "zeed": "^0.25.4" + "zeed": "^0.27.1" }, "devDependencies": { "tsup": "^8.3.5", - "typescript": "^5.6.3", - "vite": "^5.4.10" + "typescript": "^5.7.3", + "vite": "^6.0.7" } } diff --git a/zerva-http/package.json b/zerva-http/package.json index 64c75d84..915a669d 100644 --- a/zerva-http/package.json +++ b/zerva-http/package.json @@ -50,11 +50,11 @@ "watch": "tsup src/index.ts --watch" }, "dependencies": { - "@types/bytes": "^3.1.4", + "@types/bytes": "^3.1.5", "@types/compressible": "^2.0.2", "@types/cors": "^2.8.17", "@types/express": "^5.0.0", - "@types/express-serve-static-core": "^5.0.1", + "@types/express-serve-static-core": "^5.0.4", "@types/negotiator": "^0.6.3", "@types/on-headers": "^1.0.3", "@types/vary": "^1.1.3", @@ -64,16 +64,16 @@ "cors": "^2.8.5", "express": "^5.0.1", "helmet": "^8.0.0", - "mime": "^4.0.4", + "mime": "^4.0.6", "negotiator": "^1.0.0", "on-headers": "^1.0.2", "vary": "^1.1.2", - "zeed": "^0.25.4" + "zeed": "^0.27.1" }, "devDependencies": { "@zerva/bin": "workspace:*", "tsup": "^8.3.5", - "typescript": "^5.6.3", - "vitest": "^2.1.4" + "typescript": "^5.7.3", + "vitest": "^2.1.8" } } diff --git a/zerva-http/src/compression.ts b/zerva-http/src/compression.ts index d4d78412..75eb32b5 100644 --- a/zerva-http/src/compression.ts +++ b/zerva-http/src/compression.ts @@ -7,14 +7,14 @@ * MIT Licensed */ +import type { IncomingMessage } from 'node:http' +import type { Readable } from 'node:stream' import { Buffer } from 'node:buffer' import zlib from 'node:zlib' import bytes from 'bytes' import compressible from 'compressible' import onHeaders from 'on-headers' import vary from 'vary' -import type { IncomingMessage } from 'node:http' -import type { Readable } from 'node:stream' import accepts from './accepts' const cacheControlNoTransformRegExp = /(?:^|,)\s*?no-transform\s*?(?:,|$)/ diff --git a/zerva-http/src/http.ts b/zerva-http/src/http.ts index f973c836..57b42b65 100644 --- a/zerva-http/src/http.ts +++ b/zerva-http/src/http.ts @@ -1,5 +1,9 @@ /* eslint-disable no-console */ +import type { HelmetOptions } from 'helmet' +import type { AddressInfo } from 'node:net' +import type { LogConfig } from 'zeed' +import type { Express, NextFunction, Request, Response, Server, zervaHttpGetHandler, zervaHttpHandlerModes, zervaHttpInterface, zervaHttpPaths, ZervaHttpRouteDescription } from './types' import fs from 'node:fs' import httpModule from 'node:http' import httpsModule from 'node:https' @@ -9,11 +13,7 @@ import corsDefault from 'cors' import express from 'express' import helmetDefault from 'helmet' import { isLocalHost, isString, LoggerFromConfig, LogLevelInfo, promisify, valueToBoolean } from 'zeed' -import type { HelmetOptions } from 'helmet' -import type { AddressInfo } from 'node:net' -import type { LogConfig } from 'zeed' import { compressionMiddleware } from './compression' -import type { Express, NextFunction, Request, Response, Server, zervaHttpGetHandler, zervaHttpHandlerModes, zervaHttpInterface, zervaHttpPaths, ZervaHttpRouteDescription } from './types' export * from './status' export * from './types' diff --git a/zerva-mqtt/package.json b/zerva-mqtt/package.json index d7a24034..1329ed5e 100644 --- a/zerva-mqtt/package.json +++ b/zerva-mqtt/package.json @@ -51,11 +51,11 @@ }, "dependencies": { "@zerva/core": "workspace:*", - "mqtt": "^5.10.1", - "zeed": "^0.25.4" + "mqtt": "^5.10.3", + "zeed": "^0.27.1" }, "devDependencies": { - "@types/node": "^22.8.1", + "@types/node": "^22.10.5", "tsup": "^8.3.5" } } diff --git a/zerva-openapi/package.json b/zerva-openapi/package.json index a110dc00..b9bce326 100644 --- a/zerva-openapi/package.json +++ b/zerva-openapi/package.json @@ -53,7 +53,7 @@ "dependencies": { "@zerva/core": "workspace:*", "@zerva/http": "workspace:*", - "zeed": "^0.25.4" + "zeed": "^0.27.1" }, "devDependencies": { "@zerva/bin": "workspace:*", diff --git a/zerva-plausible/package.json b/zerva-plausible/package.json index c62935a6..084e91e5 100644 --- a/zerva-plausible/package.json +++ b/zerva-plausible/package.json @@ -53,10 +53,10 @@ "@types/request-ip": "^0.0.41", "@zerva/core": "workspace:*", "request-ip": "^3.3.0", - "zeed": "^0.25.4" + "zeed": "^0.27.1" }, "devDependencies": { "tsup": "^8.3.5", - "typescript": "^5.6.3" + "typescript": "^5.7.3" } } diff --git a/zerva-rpc/package.json b/zerva-rpc/package.json index 0becd55a..8105f3c8 100644 --- a/zerva-rpc/package.json +++ b/zerva-rpc/package.json @@ -57,13 +57,13 @@ "@zerva/core": "workspace:*", "@zerva/http": "workspace:*", "@zerva/websocket": "workspace:*", - "zeed": "^0.25.4" + "zeed": "^0.27.1" }, "devDependencies": { - "@types/node": "^22.8.1", + "@types/node": "^22.10.5", "@zerva/bin": "workspace:*", "tsup": "^8.3.5", - "typescript": "^5.6.3", - "vitest": "^2.1.4" + "typescript": "^5.7.3", + "vitest": "^2.1.8" } } diff --git a/zerva-sqlite-bun/package.json b/zerva-sqlite-bun/package.json index dddce72b..605c6db7 100644 --- a/zerva-sqlite-bun/package.json +++ b/zerva-sqlite-bun/package.json @@ -48,14 +48,14 @@ "watch": "tsup src/index.ts --watch" }, "dependencies": { - "zeed": "^0.25.4" + "zeed": "^0.27.1" }, "devDependencies": { - "@types/bun": "^1.1.12", + "@types/bun": "^1.1.16", "tsup": "^8.3.5", "tsx": "^4.19.2", - "typescript": "^5.6.3", - "vite": "^5.4.10", - "vitest": "^2.1.4" + "typescript": "^5.7.3", + "vite": "^6.0.7", + "vitest": "^2.1.8" } } diff --git a/zerva-sqlite/package.json b/zerva-sqlite/package.json index 595cf1e1..b18a73b4 100644 --- a/zerva-sqlite/package.json +++ b/zerva-sqlite/package.json @@ -48,15 +48,15 @@ "watch": "tsup src/index.ts --watch" }, "dependencies": { - "better-sqlite3": "^11.5.0", - "zeed": "^0.25.4" + "better-sqlite3": "^11.7.2", + "zeed": "^0.27.1" }, "devDependencies": { - "@types/better-sqlite3": "^7.6.11", + "@types/better-sqlite3": "^7.6.12", "tsup": "^8.3.5", "tsx": "^4.19.2", - "typescript": "^5.6.3", - "vite": "^5.4.10", - "vitest": "^2.1.4" + "typescript": "^5.7.3", + "vite": "^6.0.7", + "vitest": "^2.1.8" } } diff --git a/zerva-vite/package.json b/zerva-vite/package.json index 2480dd78..b7b59e9c 100644 --- a/zerva-vite/package.json +++ b/zerva-vite/package.json @@ -55,12 +55,12 @@ "dependencies": { "@zerva/core": "workspace:*", "@zerva/http": "workspace:*", - "zeed": "^0.25.4" + "zeed": "^0.27.1" }, "devDependencies": { "@zerva/bin": "workspace:*", "tsup": "^8.3.5", - "typescript": "^5.6.3", - "vite": "^5.4.10" + "typescript": "^5.7.3", + "vite": "^6.0.7" } } diff --git a/zerva-websocket/package.json b/zerva-websocket/package.json index 009b6e29..268d835d 100644 --- a/zerva-websocket/package.json +++ b/zerva-websocket/package.json @@ -55,18 +55,18 @@ "watch": "tsup src/index.ts src/index.browser.ts --watch" }, "dependencies": { - "@types/ws": "^8.5.12", + "@types/ws": "^8.5.13", "@zerva/core": "workspace:*", "@zerva/http": "workspace:*", "ws": "^8.18.0", - "zeed": "^0.25.4" + "zeed": "^0.27.1" }, "devDependencies": { - "@types/node": "^22.8.1", + "@types/node": "^22.10.5", "@zerva/bin": "workspace:*", "tsup": "^8.3.5", - "typescript": "^5.6.3", - "vitest": "^2.1.4", - "vue-tsc": "^2.1.8" + "typescript": "^5.7.3", + "vitest": "^2.1.8", + "vue-tsc": "^2.2.0" } }