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.

fastify-dx-react@0.0.5

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.

fastify-dx-solid@0.0.4

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.

fastify-dx-vue@0.0.3

04 Jul 00:07
Compare
Choose a tag to compare

fastify-dx-svelte@0.0.4

04 Jul 00:07
Compare
Choose a tag to compare

fastify-dx-solid@0.0.3

04 Jul 00:06
Compare
Choose a tag to compare

fastify-dx-react@0.0.4

04 Jul 00:06
Compare
Choose a tag to compare

fastify-dx-solid@0.0.2

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

fastify-dx-react@0.0.3

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