@astrale-os/kernel-server 0.5.0-beta.22 → 0.5.0-beta.23

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/CHANGELOG.md CHANGED
@@ -21,6 +21,21 @@
21
21
  * the first supported V2 release is a coordinated `1.0.0`; see
22
22
  [the API migration contract](../api/.spec/MIGRATION.md)
23
23
 
24
+ ## [0.5.0-beta.23](https://github.com/astrale-os/kernel/compare/kernel-server-v0.5.0-beta.22...kernel-server-v0.5.0-beta.23) (2026-08-28)
25
+
26
+
27
+ ### Performance Improvements
28
+
29
+ * **server:** cache successful CORS preflights ([#514](https://github.com/astrale-os/kernel/issues/514)) ([a9a3d7c](https://github.com/astrale-os/kernel/commit/a9a3d7ccb4c6e5ca763e5d0798a3c905f5936b28))
30
+
31
+
32
+ ### Dependencies
33
+
34
+ * The following workspace dependencies were updated
35
+ * dependencies
36
+ * @astrale-os/kernel-core bumped to 0.9.0-beta.20
37
+ * @astrale-os/kernel-protocol bumped to 0.5.0-beta.21
38
+
24
39
  ## [0.5.0-beta.22](https://github.com/astrale-os/kernel/compare/kernel-server-v0.5.0-beta.21...kernel-server-v0.5.0-beta.22) (2026-08-27)
25
40
 
26
41
 
package/dist/cors/cors.js CHANGED
@@ -1,5 +1,6 @@
1
1
  /** Request-aware CORS admission shared by every Server-owned HTTP surface. */
2
2
  const TOKEN = /^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/u;
3
+ const PREFLIGHT_MAX_AGE_SECONDS = 24 * 60 * 60;
3
4
  /** Admit one immutable policy. `false` delegates the complete concern to an outer application. */
4
5
  export function prepareCors(input) {
5
6
  if (input === false)
@@ -64,6 +65,7 @@ export function prepareCors(input) {
64
65
  const allowedHeaders = requestedHeaders.length > 0 ? requestedHeaders : [...routeHeaders];
65
66
  const output = new Headers(response(request));
66
67
  output.set('access-control-allow-methods', [...allowedMethods, 'OPTIONS'].join(', '));
68
+ output.set('access-control-max-age', String(PREFLIGHT_MAX_AGE_SECONDS));
67
69
  if (allowedHeaders.length > 0) {
68
70
  output.set('access-control-allow-headers', allowedHeaders.join(', '));
69
71
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astrale-os/kernel-server",
3
- "version": "0.5.0-beta.22",
3
+ "version": "0.5.0-beta.23",
4
4
  "description": "Portable HTTP and WebSocket boundary for Astrale invocation, publication, installation, and issuer protocols",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -33,9 +33,9 @@
33
33
  "access": "public"
34
34
  },
35
35
  "dependencies": {
36
- "@astrale-os/kernel-core": "0.9.0-beta.19",
36
+ "@astrale-os/kernel-core": "0.9.0-beta.20",
37
37
  "@astrale-os/kernel-dsl": "0.2.0-beta.15",
38
- "@astrale-os/kernel-protocol": "0.5.0-beta.20",
38
+ "@astrale-os/kernel-protocol": "0.5.0-beta.21",
39
39
  "hono": "^4.6.20",
40
40
  "msgpackr": "^2.0.5"
41
41
  },