@cslug/http 0.7.0 → 0.7.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/docs/README.md CHANGED
@@ -10,7 +10,7 @@ export default defineRoutes((r) => {
10
10
  r.get('/circuits/:slug', [CircuitController, 'show']).name('circuits.show')
11
11
  })
12
12
  r.resource('operators', OperatorController).only(['index', 'show'])
13
- r.group({ domain: 'api.albastr.com', prefix: '/v1' }, (r) => { … })
13
+ r.group({ domain: 'api.example.com', prefix: '/v1' }, (r) => { … })
14
14
  })
15
15
 
16
16
  // a controller action
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cslug/http",
3
- "version": "0.7.0",
3
+ "version": "0.7.1",
4
4
  "description": "Router, middleware, HttpContext, sessions, CSRF, error rendering on Bun.serve.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -29,7 +29,7 @@
29
29
  "bun": ">=1.3.14"
30
30
  },
31
31
  "peerDependencies": {
32
- "@cslug/core": "0.7.0",
33
- "@cslug/validation": "0.7.0"
32
+ "@cslug/core": "0.7.1",
33
+ "@cslug/validation": "0.7.1"
34
34
  }
35
35
  }
@@ -16,7 +16,7 @@ export type SessionOptions = {
16
16
  cookie?: string
17
17
  lifetime?: string
18
18
  sameSite?: 'lax' | 'strict' | 'none'
19
- /** Cookie domain, e.g. `.albastr.com` to share a login across subdomains. */
19
+ /** Cookie domain, e.g. `.example.com` to share a login across subdomains. */
20
20
  domain?: string
21
21
  }
22
22
 
package/src/router.ts CHANGED
@@ -31,7 +31,7 @@ export type RouteDef = {
31
31
 
32
32
  export type GroupOptions = {
33
33
  prefix?: string
34
- /** Host to match, may contain parameters: `':operator.albastr.com'`. */
34
+ /** Host to match, may contain parameters: `':operator.example.com'`. */
35
35
  domain?: string
36
36
  middleware?: Middleware[]
37
37
  /** Route-name prefix: `as: 'admin'` + `.name('show')` → `admin.show`. */