@guren/server 2.25.0 → 2.25.1
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
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# @guren/server
|
|
2
|
+
|
|
3
|
+
The HTTP layer of [Guren](https://guren.dev/), a Bun-first fullstack TypeScript framework with Laravel-style conventions. Routing, controllers, middleware, auth, sessions, queues, mail, events, and the AWS Lambda adapter, built on [Hono](https://hono.dev/).
|
|
4
|
+
|
|
5
|
+
## Application code should not import this package
|
|
6
|
+
|
|
7
|
+
Install and import [`@guren/core`](https://www.npmjs.com/package/@guren/core) instead. It re-exports this package's whole public API, so there is one import specifier to learn and one to keep working across releases:
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
bun add @guren/core
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { Controller, Router, createApp } from '@guren/core'
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
Starting a new app? Scaffold one, and this is wired up for you:
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
bunx create-guren-app my-app --auth
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
It is published separately because the framework is released as independently versioned packages, not because application code is meant to reach for it. Depend on it directly only when you are writing a Guren plugin against the HTTP layer.
|
|
24
|
+
|
|
25
|
+
## What is in here
|
|
26
|
+
|
|
27
|
+
| Area | Contents |
|
|
28
|
+
|------|----------|
|
|
29
|
+
| HTTP | `Application`, `Router`, `Controller`, middleware, exception handling, CSRF, CORS, rate limiting |
|
|
30
|
+
| Auth | Sessions, guards, password hashing, API tokens, OAuth, authorization policies |
|
|
31
|
+
| Subsystems | Queues, mail, events, notifications, cache, broadcasting, storage, scheduling, i18n, logging, health checks |
|
|
32
|
+
| Runtimes | `@guren/server/lambda` for AWS Lambda, `@guren/server/redis` for Redis-backed stores |
|
|
33
|
+
|
|
34
|
+
Develop on Bun; deploy to Bun, AWS Lambda on the Node.js runtime, Vercel, or Cloudflare Workers. The default password hasher writes `node:crypto` scrypt on every runtime, so a hash written on Bun verifies on Node.js.
|
|
35
|
+
|
|
36
|
+
## Documentation
|
|
37
|
+
|
|
38
|
+
[guren.dev/docs](https://guren.dev/docs)
|
|
39
|
+
|
|
40
|
+
## License
|
|
41
|
+
|
|
42
|
+
MIT
|
package/dist/index.js
CHANGED
|
@@ -25,7 +25,7 @@ import { n as isHotReloadRuntime, r as matchingOpenParen, t as claimHotDisposabl
|
|
|
25
25
|
import { c as tc, d as Translator, f as getPluralizationRule, i as getI18n, l as tryGetI18n, m as selectPluralForm, n as I18nManager, o as setI18n, p as pluralizationRules, r as createI18n, s as t, t as MemoryLoader, u as JsonLoader } from "./i18n-DqcRD4qL.js";
|
|
26
26
|
import { a as cannot, f as setGate, g as tryGetRequestContainer, h as getRequestContainer, i as can, l as getGate, m as CONTAINER_CONTEXT_KEY, n as Response$1, o as createGate, p as AuthorizationException, r as authorize, s as defineGate, t as Gate } from "./Gate-YOt54xGF.js";
|
|
27
27
|
import { r as isDocsViewerEnabled } from "./endpoint-CTIzcagh.js";
|
|
28
|
-
import { c as isViteProduction, d as startViteDevServer, h as logDevServerBanner, i as clientManifestCandidates, l as loadViteManifest, m as isWildcardHost, n as INJECTED_CLIENT_MANIFEST_SOURCE, o as getManifestFile, p as formatHostPort, r as PUBLIC_ASSETS_URL_PREFIX, s as injectedClientManifest, u as normalizeDevServerUrl } from "./vite-manifest-
|
|
28
|
+
import { c as isViteProduction, d as startViteDevServer, h as logDevServerBanner, i as clientManifestCandidates, l as loadViteManifest, m as isWildcardHost, n as INJECTED_CLIENT_MANIFEST_SOURCE, o as getManifestFile, p as formatHostPort, r as PUBLIC_ASSETS_URL_PREFIX, s as injectedClientManifest, u as normalizeDevServerUrl } from "./vite-manifest-DK55BTLk.js";
|
|
29
29
|
import { readObjectSchema, toJsonSchema } from "./internal/zod-json-schema.js";
|
|
30
30
|
import { a as RequestFinished, c as UserLoggedOut, d as EventManager, f as createEventManager, i as JobProcessed, l as createQueueEventDispatcher, n as ApplicationStarted, o as RequestReceived, p as Event, r as JobFailed, s as UserAuthenticated, t as ApplicationShutdown, u as Listener } from "./events-c94CdUFc.js";
|
|
31
31
|
import { a as NotificationManager, c as setNotificationManager, d as getNotification, f as registerNotification, i as MailChannel, l as resolveNotifiableType, n as SlackChannel, o as createNotificationManager, p as Notification, r as DatabaseChannel, s as getNotificationManager, t as MemoryChannel, u as clearNotificationRegistry } from "./notifications-LHuujttf.js";
|
package/dist/runtime/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as trimTrailingSlashes } from "../trim-slashes-BLY9hKAa.js";
|
|
2
2
|
import { n as parseImportMap } from "../inertia-defaults-BjrcT7za.js";
|
|
3
3
|
import { n as hash } from "../Hash-D2DFd8xX.js";
|
|
4
|
-
import { a as getManifestCss, c as isViteProduction, d as startViteDevServer, f as GUREN_ASCII_ART, h as logDevServerBanner, i as clientManifestCandidates, l as loadViteManifest, o as getManifestFile, r as PUBLIC_ASSETS_URL_PREFIX, u as normalizeDevServerUrl } from "../vite-manifest-
|
|
4
|
+
import { a as getManifestCss, c as isViteProduction, d as startViteDevServer, f as GUREN_ASCII_ART, h as logDevServerBanner, i as clientManifestCandidates, l as loadViteManifest, o as getManifestFile, r as PUBLIC_ASSETS_URL_PREFIX, u as normalizeDevServerUrl } from "../vite-manifest-DK55BTLk.js";
|
|
5
5
|
import { createRequire } from "node:module";
|
|
6
6
|
import { dirname, extname, join, resolve, sep } from "node:path";
|
|
7
7
|
import { fileURLToPath } from "node:url";
|
|
@@ -5,7 +5,7 @@ import figlet from "figlet";
|
|
|
5
5
|
import standard from "figlet/importable-fonts/Standard.js";
|
|
6
6
|
import { readFileSync } from "node:fs";
|
|
7
7
|
//#region package.json
|
|
8
|
-
var version = "2.25.
|
|
8
|
+
var version = "2.25.1";
|
|
9
9
|
//#endregion
|
|
10
10
|
//#region src/http/dev-banner.ts
|
|
11
11
|
figlet.parseFont("Standard", standard);
|
package/package.json
CHANGED
|
@@ -1,6 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@guren/server",
|
|
3
|
-
"version": "2.25.
|
|
3
|
+
"version": "2.25.1",
|
|
4
|
+
"description": "HTTP layer of the Guren framework, on Hono: routing, controllers, middleware, auth, sessions, queues and the AWS Lambda adapter. Applications import it through @guren/core.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"guren",
|
|
7
|
+
"bun",
|
|
8
|
+
"typescript",
|
|
9
|
+
"fullstack",
|
|
10
|
+
"framework",
|
|
11
|
+
"hono",
|
|
12
|
+
"http",
|
|
13
|
+
"router",
|
|
14
|
+
"mvc",
|
|
15
|
+
"middleware",
|
|
16
|
+
"auth"
|
|
17
|
+
],
|
|
4
18
|
"type": "module",
|
|
5
19
|
"sideEffects": false,
|
|
6
20
|
"license": "MIT",
|
|
@@ -146,7 +160,7 @@
|
|
|
146
160
|
"test": "bun test"
|
|
147
161
|
},
|
|
148
162
|
"dependencies": {
|
|
149
|
-
"@guren/orm": "^2.11.
|
|
163
|
+
"@guren/orm": "^2.11.1",
|
|
150
164
|
"chalk": "^5.3.0",
|
|
151
165
|
"consola": "^3.4.2",
|
|
152
166
|
"figlet": "^1.7.0",
|