Skip to content

Commit df5a978

Browse files
committed
chore: updated the changelog
1 parent 6dbad7b commit df5a978

7 files changed

Lines changed: 33 additions & 6 deletions

File tree

CHANGELOG.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,33 @@ All notable changes to Pyra.js are documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

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/`
20+
- `dev-compiler.ts` — on-demand esbuild compilation
21+
- `dev-hmr.ts` — WebSocket HMR server and client injection
22+
- `dev-dashboard.ts``/_pyra` dashboard and API endpoint handlers
23+
- `dev-static.ts` — static file and `public/` directory serving
24+
- `dev-api.ts` — API route dispatch and method validation
25+
- `dev-routes.ts` — page route matching and SSR pipeline entry
26+
- `dev-errors.ts` — error boundary rendering and 404 handling
27+
- `dev-ssr.ts` — core SSR assembly (load → render → shell → inject assets)
28+
- 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
32+
- Image plugin tests - added missing manifest fixture to `image-plugin-tests.ts`
33+
- Middleware tests - corrected assertions after middleware refactor
34+
835
## [0.18.4] - 2026-02-22
936

1037
### Added

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "pyrajs",
3-
"version": "0.18.4",
3+
"version": "0.19.0",
44
"private": true,
55
"type": "module",
66
"description": "Pyra.js is a framework designed for building modern full-stack web applications with pluggable UI adapters, unified routing, and a shared runtime.",

packages/adapter-react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "pyrajs-adapter-react",
3-
"version": "0.4.4",
3+
"version": "0.4.5",
44
"description": "React adapter for Pyra.js - SSR, hydration, and JSX compilation",
55
"type": "module",
66
"main": "./dist/index.js",

packages/cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "pyrajs-cli",
3-
"version": "0.18.4",
3+
"version": "0.19.0",
44
"description": "🔥 @Pyra/cli - A cli tool for using core cli commands",
55
"type": "module",
66
"main": "./dist/index.js",

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "pyrajs-core",
3-
"version": "0.4.12",
3+
"version": "0.4.13",
44
"description": "Core bundler engine for Pyra.js",
55
"type": "module",
66
"main": "./dist/index.js",

packages/create-pyra/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "create-pyra",
3-
"version": "0.18.4",
3+
"version": "0.19.0",
44
"description": "Scaffold a new Pyra.js project",
55
"type": "module",
66
"main": "./dist/index.js",

packages/shared/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "pyrajs-shared",
3-
"version": "0.2.5",
3+
"version": "0.2.6",
44
"description": "Shared utilities and types for Pyra.js",
55
"type": "module",
66
"main": "./dist/index.js",

0 commit comments

Comments
 (0)