You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+27Lines changed: 27 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,33 @@ All notable changes to Pyra.js are documented in this file.
5
5
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
6
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
8
+
## [0.19.0] - 2026-02-26
9
+
10
+
### Added
11
+
- CORS support - configure cross-origin resource sharing via the `cors` field in `pyra.config.ts`
12
+
- New `CorsConfig` type in `packages/shared/src/types.ts`: `origin`, `methods`, `allowedHeaders`, `exposedHeaders`, `credentials`, `maxAge` fields
13
+
-`packages/core/src/cors.ts` — `buildCORSHeaders()` and `applyCors()` helpers; origin resolution supports wildcard, string, and array allow-lists; automatic `OPTIONS` preflight handling
14
+
- Dev server and production server both apply CORS headers via `applyCors()` before routing
15
+
- Static HTML CSS injection in dev server — prerendered/static HTML pages now receive `<link rel="stylesheet">` tags for co-located CSS imports, consistent with SSR pages
16
+
- HMR client CSS injection - extracted CSS is now injected into the HMR client bundle so hot-reloaded pages receive stylesheet updates
17
+
18
+
### Refactored
19
+
-`packages/core/src/dev-server.ts` split into eight focused modules under `packages/core/src/dev/`
- Dead code removed; `dev-server.ts` now re-exports and wires the modules together
29
+
30
+
### Fixed
31
+
- TypeScript typecheck errors in `Image.test.tsx` — corrected `mockContext`, `renderToHTML`, adapter, and React type annotations across multiple test helpers
Copy file name to clipboardExpand all lines: package.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
{
2
2
"name": "pyrajs",
3
-
"version": "0.18.4",
3
+
"version": "0.19.0",
4
4
"private": true,
5
5
"type": "module",
6
6
"description": "Pyra.js is a framework designed for building modern full-stack web applications with pluggable UI adapters, unified routing, and a shared runtime.",
0 commit comments