Releases: honojs/vite-plugins
Release list
@hono/vite-dev-server@0.26.1
Patch Changes
-
#363
8af17d452e877f578bb57654963cf6efe2f823faThanks @vhespanha! - fix: include.vite/*to exclude list. -
#367
244ee5d0752de62afd663d9c4c2f59135f6289dbThanks @yusukebe! - fix(dev-server): match exclude patterns against query-stripped pathname
@hono/vite-dev-server@0.26.0
Minor Changes
- #358
ff50c579ea79c048c6dd0edfc61db53675562326Thanks @ryuapp! - Dropping CommonJS and switching to an ESM-only package.
@hono/vite-dev-server@0.25.3
Patch Changes
- #355
cbb97d65ee8ea143a842128cd36735d856f6c7b8Thanks @yusukebe! - fix: correct exporting adapters
@hono/vite-dev-server@0.25.2
Patch Changes
- #353
81c9cbe1bae1d864a8a246480b234ff266058fa3Thanks @yuintei! - fix: use public ssrModule getter in handleHotUpdate
@hono/vite-build@1.11.1
@hono/vite-build
1.11.0
Minor Changes
- #340
1f2b2fc308fe39b3bf940b948199f5fe1c184d65Thanks @josiahwiebe! - feat: configure multiple function output for Vercel
1.10.1
Patch Changes
- #349
7680ba2f76618082b3be6f94da7ef61429f08567Thanks @Moshyfawn! - Propagate user externals to rollupOptions.external and auto-externalize bare "bun" specifier in Bun adapter
1.10.0
Minor Changes
- #339
6896d6d17809c8148c1b2ad067a7deeb4ecb6744Thanks @josiahwiebe! - feat: allows configuring vercel helpers
Patch Changes
- #342
ce81be036106779d04fe690d7eb8baa85b47b03fThanks @meck93! - Fix static path discovery whenpublicDirdoes not exist.
Split sharedtry/catchso a missingpublicDirno longer preventsoutDirfrom being read, which causedserveStaticmiddleware to not be injected.
1.9.3
Patch Changes
- #337
a759e7533a915215154d4a211893d309e80199b4Thanks @meck93! - Fix Bun adapter build output to preserve an entry'swebsockethandler in the generated default export.
This prevents Bun runtime WebSocket upgrade failures when apps export{ fetch, websocket }.
1.9.2
Patch Changes
- #332
beeff30a8ed43a6071ba7e40d52a7e5c196cb322Thanks @0x339! - chore(@hono/vite-build): add '@hono/hono' preset for deno adapter
1.9.1
Patch Changes
- #330
11107bc013ac40c891b4a57d0ef718d822b1fa2cThanks @ryuapp! - Add vite-plugin keyword for Vite plugin registry
1.9.0
Minor Changes
- #328
3e9010da1687c46e610a5ea9ec7a80c9be57684aThanks @yusukebe! - feat: addssrTargetoption
1.8.0
Minor Changes
- #315
d9ecb01ac8220d85c539081b139e4117b53ba711Thanks @chadxz! - AddedshutdownTimeoutMsoption to the Node adapter for graceful shutdown on SIGINT/SIGTERM signals. Set to a timeout in milliseconds to enable graceful shutdown, or 0 to wait indefinitely for connections to close.
1.7.0
Minor Changes
- #279
b45925cf08f82d607f850191589ff154d0c1ea5fThanks @yusukebe! - feat: addpresetoption
1.6.2
Patch Changes
- #266
7e51cc7f29d0d64dc4bd9c27e0f6c5491ccba5c8Thanks @yusukebe! - fix: fix the option types of Cloudflare Workers adapter
1.6.1
Patch Changes
- #261
c116701a2423eb9882de6559223304b66305a281Thanks @yusukebe! - fix: correctCloudflareWorkersBuildOptionstype
1.6.0
Minor Changes
- #254
ee00f8b93a480ab332245c6d661b8001f24028e2Thanks @yusukebe! - feat: exportdefaultOptionsfrom Cloudflare Workers adpater
1.5.0
Minor Changes
- #247
e7f58050840cf2f6a1ec446e3e4e89b0b0a85014Thanks @toga4! - feat(build): support non-fetch handlers for Cloudflare Workers
1.4.0
Minor Changes
-
#241
314c66da2b656d4705c4d0636cd1623b643dbd61Thanks @justblender! - Added a new Vercel build adapter.This adapter can be imported from
@hono/vite-build/verceland will compile
your Hono app to comply with the specification requirements of the Vercel Build Output API.Please note that this adapter produces output suitable only for Vercel Serverless Functions.
It does not support the Edge Runtime, which appears to be gradually phased out in favor of Vercel's Fluid compute architecture.The default export will have the
@hono/node-server/verceladapter applied to it.
Patch Changes
- #244
2d8d6d202a106de6049febc524c29ec24f6911b9Thanks @yusukebe! - fix: enablestaticPathsoption
1.3.1
Patch Changes
- #242
88ca94493ebb39cafe0d42bb741cce870ef58c68Thanks @yusukebe! - fix: supportfetchexport
1.3.0
Minor Changes
-
#218
65e2f768a26d0665aaa05f60abf36bb66a6b6fa9Thanks @chadxz! - Added a new Netlify Functions build adapter.This adapter can be imported from
@hono/vite-build/netlify-functionsand will
compile your Hono app to comply with the requirements of the Netlify Functions
runtime.- The default export will have the
hono/netlifyadapter applied to it. - A
configobject will be exported, setting the function path to'/*'and
preferStatictotrue.
Please note, this is for the Netlify Functions runtime, not the Netlify Edge
Functions runtime.Example:
// vite.config.ts import { defineConfig } from 'vite' import devServer from '@hono/vite-dev-server' import build from '@hono/vite-build/netlify-functions' export default defineConfig({ plugins: [ devServer({ entry: './src/index.ts', }), build({ entry: './src/index.ts', output: 'functions/server/index.js', }), ], })
If you also have a
public/publishdirectory for your assets that should be
published to the corresponding Netlify site, then after running a build, you
would end up with a directory structure like:dist/ functions/ server/ index.js publish/ robots.txt ....then you can use a netlify.toml that looks like:
# https://ntl.fyi/file-based-build-config [build] command = "vite build" functions = "dist/functions" publish = "dist/publish"
- The default export will have the
1.2.1
Patch Changes
- #204
adcdd9ad7a3c7ef6a828dfa1210ba5d08eadc576Thanks @jonz94! - fix(build): removeconsole.log
1.2.0
Minor Changes
- #198
f08c6586018c0da828158ec252be4d889f8c32e8Thanks @yusukebe! - feat: Node.js adapter supportsportoption
1.1.1
Patch Changes
- #196
ead8c3255f2d7fb68084b8d30c3fbe9fcaabb3ecThanks @yusukebe! - fix: support latesthono
1.1.0
Minor Changes
- #181
fc15f718c0172f84748f8717f53abba40470baedThanks @nakasyou! - Added Deno adapter
1.0.0
Major Changes
- #177
1ceb95757f1151e9f08cebd992447fb67b470957Thanks @yusukebe! - Initial release
@hono/vite-build@1.11.0
Minor Changes
- #340
1f2b2fc308fe39b3bf940b948199f5fe1c184d65Thanks @josiahwiebe! - feat: configure multiple function output for Vercel
@hono/vite-build@1.10.1
Patch Changes
- #349
7680ba2f76618082b3be6f94da7ef61429f08567Thanks @Moshyfawn! - Propagate user externals to rollupOptions.external and auto-externalize bare "bun" specifier in Bun adapter
@hono/vite-dev-server@0.25.1
Patch Changes
- #345
02ecfba5288458de55b71237e509a8b0c0567701Thanks @yusukebe! - chore: bump@hono/node-server
@hono/vite-build@1.10.0
Minor Changes
- #339
6896d6d17809c8148c1b2ad067a7deeb4ecb6744Thanks @josiahwiebe! - feat: allows configuring vercel helpers
Patch Changes
- #342
ce81be036106779d04fe690d7eb8baa85b47b03fThanks @meck93! - Fix static path discovery whenpublicDirdoes not exist.
Split sharedtry/catchso a missingpublicDirno longer preventsoutDirfrom being read, which causedserveStaticmiddleware to not be injected.
@hono/vite-build@1.9.3
Patch Changes
- #337
a759e7533a915215154d4a211893d309e80199b4Thanks @meck93! - Fix Bun adapter build output to preserve an entry'swebsockethandler in the generated default export.
This prevents Bun runtime WebSocket upgrade failures when apps export{ fetch, websocket }.