Releases: Pyra-js/Pyra
Releases · Pyra-js/Pyra
v0.16.1
Added
-
CSS pipeline fix in dev server -
import './style.css'in layout/page files now works without Flash of Unstyled Contentbundler.ts: newcssOutputCachestores CSS extracted by esbuild separately from the JS bundle; removed the olddocument.createElement('style')injection that caused FOUC- New
getCSSOutput(filePath)export returns cached CSS for a given entry file dev-server.ts: new/__pyra/styles/*endpoint serves extracted CSS as propertext/cssresponseshandlePageRouteInnereagerly callsbundleFile()for each layout + page before assembly, then injects<link rel="stylesheet" href="/__pyra/styles/...">tags into<head>via<!--pyra-head-->style.cssmoved back tosrc/routes/(co-located with the layout) in all full-stack templates;import './style.css'restored as a standard ES module import
-
Package READMEs:
packages/adapter-react/README.md,packages/core/README.md,packages/shared/README.md- each tailored to its audience (end-user, internal/contributor, type reference) -
.vscode/settings.json- excludespackages/cli/templates/**from Tailwind CSS extension scanning, preventing false "unable to load config" errors caused by the extension attempting CommonJSrequire()on ESM-only template config files
Changed
create-pyrarendering mode prompt labels updated from "SSR / SPA" to "Full-stack / Frontend (SPA)" -valuefields ("ssr"/"spa") are unchanged so template selection is unaffectedpackages/clidev:linkscript changed frompnpm link -gtonpm link- now consistent withcreate-pyra'sdev:link, makingnpm link pyrajs-cliwork correctly in generated test projects- Full-stack template CSS redesigned across all six templates (
create-pyraReact/Preact TS/JS andpyrajs-cliReact TS/JS fullstack) to match the Pyra visual identity
Fixed
vitest.workspace.ts: removeddefineWorkspaceimport that broke TypeScript in Vitest 4 (the export was removed in Vitest 4; workspace files now export the array directly)
Pyra v0.15.2
Full details: CHANGELOG.md
Pyra v0.13.4
Full details: CHANGELOG.md
Pyra v0.13.0
This release introduces improvements to the CLI scaffolding flow and Windows command normalization.
Full details: CHANGELOG.md