Releases: fastify/fastify-vite
Releases · fastify/fastify-vite
Release list
@fastify/vite@10.0.0
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
setHeaderssignature:@fastify/staticv10 passes the FastifyReply
object to thesetHeaderscallback infastifyStaticOptionsinstead of the
raw Node.js response.- Header precedence: Headers set in
setHeadersnow take precedence over the headers
@fastify/staticsets itself (e.g.Cache-ControlfrommaxAge).
Migration
If you pass a
setHeaderscallback viafastifyStaticOptions:// Before setHeaders(res) { res.setHeader('X-Custom-Header', 'value') } // After setHeaders(reply) { reply.header('X-Custom-Header', 'value') }
@fastify/react@1.2.2
Patch Changes
- Updated dependencies [03cf160]
- @fastify/vite@10.0.0
@fastify/vue@2.0.1
Patch Changes
- Updated dependencies [03cf160]
- @fastify/vite@10.0.0
@fastify/vite@9.2.0
Minor Changes
- 58d7d59: Expose "resolvePkgDir" function in utils so @fastify/react can use it to resolve relative paths in vite's
build.outDirconfig.
@fastify/react@1.2.0
Minor Changes
- e72805c: Update
@fastify/reactrouting to useresolvePkgDirwithconfig.root. This ensures that relative paths set in the vite config'sbuild.outDirare resolved correctly according to theFastifyViteOptionsconfiguration.
Patch Changes
- Updated dependencies [58d7d59]
- @fastify/vite@9.2.0
@fastify/vite@9.1.1
Patch Changes
-
e70066c: Refactor environment discovery to iterate
viteConfig.environmentsdirectlyReplaces the fragile
findPlugin/hasPluginconfig-hook re-invocation pattern with direct iteration ofviteConfig.environments, which is always available after Vite resolves its config. Also usesisRunnableDevEnvironment(envConfig).runnerwhere available to avoid creating duplicateModuleRunnerinstances for cross-environment imports.
@fastify/react@1.1.8
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
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 synchronouscreateHtmlFunction. Type-only.
@fastify/vite@9.0.2
Patch Changes
- 122bd3c: Upgrade @fastify/static to v9.1.2
@fastify/vite@9.0.1
Patch Changes
- 9e43724: Security bump: @fastify/middie@9.3.2. Also bumps @fastify/static@9.1.1.