Skip to content
This repository has been archived by the owner on Nov 23, 2023. It is now read-only.

Releases: fastify/fastify-dx

@fastify/vue v0.1.0

19 Dec 13:06
Compare
Choose a tag to compare

This is the first beta release for Fastify DX for React, now featuring support for Fastify v4 and Vite v3.

If you've been using the alpha version, update your imports as follows:

- import FastifyVite from 'fastify-vite'
+ import FastifyVite from '@fastify/vite'
- import FastifyDXVue from 'fastify-dx-vue'
+ import FastifyVue from '@fastify/vue'

See the starter template and full documentation.

@fastify/react v0.1.1

19 Dec 13:03
6fab09a
Compare
Choose a tag to compare

This is the first beta release for Fastify DX for React, now featuring support for Fastify v4 and Vite v3.

If you've been using the alpha version, update your imports as follows:

- import FastifyVite from 'fastify-vite'
+ import FastifyVite from '@fastify/vite'
- import FastifyDXReact from 'fastify-dx-react'
+ import FastifyReact from '@fastify/react'

See the starter template and full documentation.

[email protected]

04 Aug 21:26
f40758a
Compare
Choose a tag to compare

Features

This release brings TypeScript support, and a react-ts starter template.

In practice, this means you can have root.tsx and context.ts properly recognized as (ejected) virtual modules, and use the tsx extension for route modules. The starter templates comes with tsx (the CLI) and a working eslint configuration.

[email protected]

09 Jul 08:18
a09c36b
Compare
Choose a tag to compare

Features

This release brings TypeScript support, and a solid-ts starter template.

In practice, this means you can have root.tsx and context.ts properly recognized as (ejected) virtual modules, and use the tsx extension for route modules. The starter templates comes with tsx (the CLI) and a working eslint configuration.

[email protected]

04 Jul 00:07
Compare
Choose a tag to compare

[email protected]

04 Jul 00:07
Compare
Choose a tag to compare

[email protected]

04 Jul 00:06
Compare
Choose a tag to compare

[email protected]

04 Jul 00:06
Compare
Choose a tag to compare

[email protected]

01 Jul 09:04
b134a30
Compare
Choose a tag to compare

This release nearly improves SSR performance by roughly 150% replacing renderToStringAsync with renderToString.

Also, for SSR streaming, PassThrough is replaced with minipass which also considerably improves performance.

Improvements

Examples

[email protected]

01 Jul 00:03
efddd02
Compare
Choose a tag to compare

This release nearly doubles SSR performance by replacing PassThrough with minipass.

It also fixes a bug where it was not possible to change the route context's state from within a route component and see the changes reflected in the hydration payload. Previously the only way to change state was via the default function in context.js.

The starter template's index.html also changed slightly, with hydration moved after element:

  <!DOCTYPE html>
  <html>
    <head>
      <meta charset="utf-8">
      <link rel="stylesheet" href="./base.css">
      <!-- head -->
-     <!-- hydration -->
    </head>
    <body>
      <main><!-- element --></main>
    </body>
+   <!-- hydration -->
    <script type="module" src="/dx:mount.js"></script>
  </html>

Note that currently only state and data are automatically hydrated.

Improvements

Fixes

Examples