Skip to content

Releases: fastify/fastify-vite

@fastify/vite@10.0.0

Choose a tag to compare

@onlywei onlywei released this 30 Jul 19:34
ba140ac

Major Changes

  • 03cf160: Upgrade @fastify/static to v10.1.2

    Includes the security fixes released in @fastify/static v10.1.1 and v10.1.2.

    Breaking Changes

    • setHeaders signature: @fastify/static v10 passes the Fastify Reply
      object to the setHeaders callback in fastifyStaticOptions instead of the
      raw Node.js response.
    • Header precedence: Headers set in setHeaders now take precedence over the headers
      @fastify/static sets itself (e.g. Cache-Control from maxAge).

    Migration

    If you pass a setHeaders callback via fastifyStaticOptions:

    // Before
    setHeaders(res) {
      res.setHeader('X-Custom-Header', 'value')
    }
    
    // After
    setHeaders(reply) {
      reply.header('X-Custom-Header', 'value')
    }

@fastify/react@1.2.2

Choose a tag to compare

@onlywei onlywei released this 30 Jul 19:34
ba140ac

Patch Changes

  • Updated dependencies [03cf160]
    • @fastify/vite@10.0.0

@fastify/vue@2.0.1

Choose a tag to compare

@github-actions github-actions released this 29 Jul 22:54
4b52364

Patch Changes

  • Updated dependencies [03cf160]
    • @fastify/vite@10.0.0

@fastify/vite@9.2.0

Choose a tag to compare

@github-actions github-actions released this 21 Jul 17:36
ff3652d

Minor Changes

  • 58d7d59: Expose "resolvePkgDir" function in utils so @fastify/react can use it to resolve relative paths in vite's build.outDir config.

@fastify/react@1.2.0

Choose a tag to compare

@github-actions github-actions released this 21 Jul 17:36
ff3652d

Minor Changes

  • e72805c: Update @fastify/react routing to use resolvePkgDir with config.root. This ensures that relative paths set in the vite config's build.outDir are resolved correctly according to the FastifyViteOptions configuration.

Patch Changes

  • Updated dependencies [58d7d59]
    • @fastify/vite@9.2.0

@fastify/vite@9.1.1

Choose a tag to compare

@github-actions github-actions released this 02 Jul 16:33
e5048cb

Patch Changes

  • e70066c: Refactor environment discovery to iterate viteConfig.environments directly

    Replaces the fragile findPlugin/hasPlugin config-hook re-invocation pattern with direct iteration of viteConfig.environments, which is always available after Vite resolves its config. Also uses isRunnableDevEnvironment(envConfig).runner where available to avoid creating duplicate ModuleRunner instances for cross-environment imports.

@fastify/react@1.1.8

Choose a tag to compare

@github-actions github-actions released this 22 Jun 17:47
87659fd

Patch Changes

  • 5657db4: Fix React renderer virtual module resolution under Vite 8 and skip preload generation when Vite closes a dev server without a production bundle.

@fastify/vite@9.1.0

Choose a tag to compare

@github-actions github-actions released this 16 Jun 17:42
0bba1ed

Minor Changes

  • bbab7c8: Align the renderer typings with the actual runtime contract and export the shared renderer types so TypeScript renderer packages can build against them instead of redeclaring them. Also widens reply.html() to allow string and stream returns and a synchronous createHtmlFunction. Type-only.

@fastify/vite@9.0.2

Choose a tag to compare

@github-actions github-actions released this 21 Apr 19:07
9740769

Patch Changes

  • 122bd3c: Upgrade @fastify/static to v9.1.2

@fastify/vite@9.0.1

Choose a tag to compare

@github-actions github-actions released this 17 Apr 19:51
9a7c4db

Patch Changes

  • 9e43724: Security bump: @fastify/middie@9.3.2. Also bumps @fastify/static@9.1.1.