@gravito/core 1.0.0-beta.6 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -18,6 +18,8 @@
18
18
  - 🛰ïļ **Orbit Mounting** - Easily mount external Photon applications (Orbits) to specific paths.
19
19
  - 📝 **Logger System** - PSR-3 style logger interface with default standard output implementation.
20
20
  - ⚙ïļ **Config Manager** - Unified configuration management supporting environment variables (`Bun.env`) and runtime injection.
21
+ - ðŸ›Ąïļ **Security Middleware** - Built-in protection including CSRF, CORS, HSTS, and request throttling.
22
+ - 🔌 **Runtime Adapters** - Abstraction layer for underlying runtimes (Bun, Node.js) and HTTP engines.
21
23
  - ðŸ›Ąïļ **Error Handling** - Built-in standardized JSON error responses and 404 handling.
22
24
  - 🚀 **Modern** - Built for **Bun** runtime with native TypeScript support.
23
25
  - ðŸŠķ **Lightweight** - Zero external dependencies (except `@gravito/photon`).
package/dist/compat.d.cts CHANGED
@@ -297,6 +297,7 @@ type GravitoHandler<V extends GravitoVariables = GravitoVariables> = (ctx: Gravi
297
297
  * const logger: GravitoMiddleware = async (ctx, next) => {
298
298
  * console.log(`${ctx.req.method} ${ctx.req.path}`)
299
299
  * await next()
300
+ * return undefined
300
301
  * }
301
302
  * ```
302
303
  */
package/dist/compat.d.ts CHANGED
@@ -297,6 +297,7 @@ type GravitoHandler<V extends GravitoVariables = GravitoVariables> = (ctx: Gravi
297
297
  * const logger: GravitoMiddleware = async (ctx, next) => {
298
298
  * console.log(`${ctx.req.method} ${ctx.req.path}`)
299
299
  * await next()
300
+ * return undefined
300
301
  * }
301
302
  * ```
302
303
  */