We’re thrilled to announce Brisa 0.2.0, a minor milestone in Brisa's journey. This release introduces official support for Deno, alongside multiple performance optimizations and important fixes. Let's dive into the highlights!
🦕 Deno Support
Brisa now officially supports Deno as an output target. Here’s what’s new:
-
Output Configuration: Use
output: 'deno'in yourbrisa.config.tsto build for Deno. -
Deno-Specific Configurations: Brisa leverages
deno.jsonfor custom setups, automatically placed in your build directory. -
CLI Integration: Running
brisa startdetects the Deno output and usesDeno.servefor serving your application.
Brisa every time is more JS runtime agnostic, and we are excited to see how you will use it with Deno!
🚀 Key Fixes and Improvements
- Performance Optimizations: Client builds have been further optimized, enhancing build times and overall performance.
-
Improved Compatibility:
- Added a polyfill for
Promise.tryto ensure working in Node.js and Deno. - Fixed HTTP response issues with uncoded
ReadableStream. - Resolved locale-changing issues in navigation for i18n.
- Added a polyfill for
-
CLI Improvements:
- Fixed
brisa startto correctly loadbrisa.config.tsfor all outputs. - Enhanced build consistency across output types.
- Fixed
🛠️ Recap: Key Features from 0.1.x Releases
Development Tools
- PandaCSS Integration (0.1.1): Seamlessly use PandaCSS within Brisa for robust styling options.
- Hot Reload Enhancements (0.1.6, 0.1.7): Improved hot-reload for multi-save scenarios, making your development workflows faster and more reliable.
-
idleTimeoutConfiguration (0.1.2): Fine-tune connection handling with theidleTimeoutproperty for more predictable server behavior.
Routing & Middleware
- Route Rewrite Support (0.1.3): Dynamically rewrite routes with middleware, enabling flexible routing scenarios.
- Improved SPA Middleware (0.1.3): Added support for transforming hard redirects into soft redirects in SPA navigation, streamlining client-side transitions.
Server-Side Rendering
-
SSR Support for Web Components (0.1.5): Extended support for
selfin Web Components during SSR, enabling advanced interactions with attributes, styles, and events at the server level.
API Utilities
-
getServerAPI (0.1.3): Access the Brisa server instance directly to extend its functionality or introspect runtime details. - Streaming HTML from Async Generators (0.1.2): Combine SQLite queries with async generators for streaming HTML content directly to the client, unlocking performance benefits for large datasets.
What's Changed
- fix(example): update wc external dep to fix warning – @aralroca in #653
- perf: optimize client builds – @aralroca in #643
-
fix(node): add
Promise.trypolyfill to fix error with Node – @aralroca in #656 -
feat: add
output: 'deno'– @aralroca in #657 -
feat: use
deno.jsonand move it inside build – @aralroca in #658 -
feat(cli): run Deno on
brisa startwhen output is 'deno' – @aralroca in #660 -
fix(cli): fix
brisa startto load correctbrisa.config– @aralroca in #662 - docs(www): add Deno to the home – @aralroca in #663
- fix(build): co-relate details with the correct output – @aralroca in #666
-
fix(render): fix uncoded
ReadableStreamin HTTP responses – @aralroca in #668 - fix(i18n): fix change locale from navigate – @aralroca in #669
-
feat(deno): use
Deno.serve– @aralroca in #659
Full Changelog: https://github.com/brisa-build/brisa/compare/0.1.7...0.2.0
Visit our shop to get your Brisa swag and show your support!



Top comments (0)