@ultimat3/http 22.6.2 → 22.7.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.
Files changed (2) hide show
  1. package/package.json +5 -5
  2. package/src/error-map.ts +4 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ultimat3/http",
3
- "version": "22.6.2",
3
+ "version": "22.7.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": "22.6.2",
35
- "@ultimat3/i18n": "22.6.2",
36
- "@ultimat3/schema": "22.6.2",
37
- "@ultimat3/time": "22.6.2"
34
+ "@ultimat3/core": "22.7.0",
35
+ "@ultimat3/i18n": "22.7.0",
36
+ "@ultimat3/schema": "22.7.0",
37
+ "@ultimat3/time": "22.7.0"
38
38
  }
39
39
  }
package/src/error-map.ts CHANGED
@@ -392,6 +392,10 @@ export const ERROR_STATUS = {
392
392
  // page calls `asset()` INSIDE the request it renders, so it reaches a caller there — a deploy
393
393
  // defect, never the visitor's, hence 500, declared so the cause naming the missing file survives.
394
394
  X_ASSET_MISSING: 500,
395
+ // @ultimat3/seo — a `meta.links` entry an `ssr` page's `meta()` built from data: an unsafe href,
396
+ // a preload with no `as`. Thrown while that request renders its head, so it reaches the caller —
397
+ // an authoring defect, never the visitor's, hence 500 with the cause naming the link intact.
398
+ X_SEO_LINK_INVALID: 500,
395
399
  // @ultimat3/mail
396
400
  // The deployment configured no transport. It reaches a caller only through an inline
397
401
  // `send(…, { sync: true })` inside a request; the queued path dead-letters instead. A server-side