DEV Community

Cover image for Brisa 0.2.0 Release Notes
Aral Roca
Aral Roca

Posted on • Originally published at brisa.build

Brisa 0.2.0 Release Notes

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 your brisa.config.ts to build for Deno.
  • Deno-Specific Configurations: Brisa leverages deno.json for custom setups, automatically placed in your build directory.
  • CLI Integration: Running brisa start detects the Deno output and uses Deno.serve for serving your application.

Image description

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.

Brisa Build Time improvement

  • Improved Compatibility:
    • Added a polyfill for Promise.try to ensure working in Node.js and Deno.
    • Fixed HTTP response issues with uncoded ReadableStream.
    • Resolved locale-changing issues in navigation for i18n.
  • CLI Improvements:
    • Fixed brisa start to correctly load brisa.config.ts for all outputs.
    • Enhanced build consistency across output types.

🛠️ 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.
  • idleTimeout Configuration (0.1.2): Fine-tune connection handling with the idleTimeout property 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 self in Web Components during SSR, enabling advanced interactions with attributes, styles, and events at the server level.

API Utilities

  • getServer API (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.try polyfill to fix error with Node – @aralroca in #656
  • feat: add output: 'deno'@aralroca in #657
  • feat: use deno.json and move it inside build – @aralroca in #658
  • feat(cli): run Deno on brisa start when output is 'deno' – @aralroca in #660
  • fix(cli): fix brisa start to load correct brisa.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 ReadableStream in 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!


Brisa Shop

Top comments (0)