@alxia/secure-headers 0.4.5 → 0.4.7

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/roadmap.md CHANGED
@@ -29,7 +29,7 @@ Nothing scheduled yet.
29
29
 
30
30
  ## Shipped
31
31
 
32
- ### Next release
32
+ ### 0.2.0
33
33
 
34
34
  - **A nonce per request.** `secureHeaders({ nonce: true })` makes a fresh,
35
35
  random nonce for each request, adds it to the policy's `script-src`, or
@@ -170,7 +170,7 @@ app.use(secureHeaders());
170
170
  **When:** a route or a middleware reads `nonce` from its context.
171
171
 
172
172
  ```text
173
- error TS2339: Property 'nonce' does not exist on type 'RouteBase<RouteApp<"GET", Empty, "">, "/">'.
173
+ error TS2339: Property 'nonce' does not exist on type 'RouteBase<RouteApp<Method, Empty, "">, "/">'.
174
174
  error TS2339: Property 'nonce' does not exist on type 'BaseContext & Empty'.
175
175
  ```
176
176
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alxia/secure-headers",
3
- "version": "0.4.5",
3
+ "version": "0.4.7",
4
4
  "description": "Secure HTTP headers for alxia: HSTS, CSP, nosniff and the rest, each one adjustable",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -41,12 +41,12 @@
41
41
  ]
42
42
  },
43
43
  "devDependencies": {
44
- "@alxia/core": "^0.10.0",
44
+ "@alxia/core": "^0.12.0",
45
45
  "@types/bun": "^1.4.2",
46
46
  "zod": "^4.2.0"
47
47
  },
48
48
  "peerDependencies": {
49
- "@alxia/core": "^0.10.0",
49
+ "@alxia/core": "^0.12.0",
50
50
  "typescript": "^6.0.3 || ^7.0.0"
51
51
  }
52
52
  }