@ultimat3/http 5.0.1 → 7.0.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ultimat3/http",
3
- "version": "5.0.1",
3
+ "version": "7.0.0",
4
4
  "description": "Owned request lifecycle over Bun.serve: router, ordered pipeline, problem+json errors",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -31,9 +31,9 @@
31
31
  "test": "bun test"
32
32
  },
33
33
  "dependencies": {
34
- "@ultimat3/core": "5.0.1",
35
- "@ultimat3/i18n": "5.0.1",
36
- "@ultimat3/schema": "5.0.1",
37
- "@ultimat3/time": "5.0.1"
34
+ "@ultimat3/core": "7.0.0",
35
+ "@ultimat3/i18n": "7.0.0",
36
+ "@ultimat3/schema": "7.0.0",
37
+ "@ultimat3/time": "7.0.0"
38
38
  }
39
39
  }
package/src/index.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  // The public surface of @ultimat3/http. Explicit, never `export *`: what is not
2
2
  // listed here is an implementation detail and may change without a major bump.
3
3
 
4
+ export type { RenderMode } from '@ultimat3/core';
4
5
  export { NEXT_PARAM, nextAfterSignIn, signInRedirect } from './auth-redirect';
5
6
  export type { HttpConfig, HttpConfigInput } from './config';
6
7
  export { defineHttpConfig, stripBasePath } from './config';
@@ -129,7 +130,6 @@ export {
129
130
  export type {
130
131
  HttpMethod,
131
132
  MatchResult,
132
- RenderMode,
133
133
  Route,
134
134
  RouteDescription,
135
135
  RouteHandler,
package/src/router.ts CHANGED
@@ -10,6 +10,7 @@
10
10
  // param branch would also match, and a dead end in the static branch still falls
11
11
  // back to the param branch. Two routes that would tie are a build error
12
12
  // (`X_ROUTE_CONFLICT`) rather than a coin flip.
13
+ import type { RenderMode } from '@ultimat3/core';
13
14
  import type { RequestContext } from './context';
14
15
  import { routeConflict } from './errors';
15
16
  import type { Bucket } from './rate-limit';
@@ -29,8 +30,6 @@ export const HTTP_METHODS: readonly HttpMethod[] = [
29
30
  'OPTIONS',
30
31
  ];
31
32
 
32
- export type RenderMode = 'static' | 'isr' | 'ssr' | 'stream' | 'spa';
33
-
34
33
  export type RouteParams = Readonly<Record<string, string>>;
35
34
 
36
35
  export interface RouteMeta {