Skip to content

Releases: honojs/vite-plugins

@hono/vite-dev-server@0.26.1

Choose a tag to compare

@github-actions github-actions released this 11 Jul 04:05
93b0840

Patch Changes

@hono/vite-dev-server@0.26.0

Choose a tag to compare

@github-actions github-actions released this 23 May 05:46
683169b

Minor Changes

@hono/vite-dev-server@0.25.3

Choose a tag to compare

@github-actions github-actions released this 21 Apr 01:14
6db08d9

Patch Changes

@hono/vite-dev-server@0.25.2

Choose a tag to compare

@github-actions github-actions released this 20 Apr 09:14
1dfff21

Patch Changes

@hono/vite-build@1.11.1

Choose a tag to compare

@github-actions github-actions released this 05 Apr 03:16
cde672c

@hono/vite-build

1.11.0

Minor Changes

1.10.1

Patch Changes

1.10.0

Minor Changes

Patch Changes

  • #342 ce81be036106779d04fe690d7eb8baa85b47b03f Thanks @meck93! - Fix static path discovery when publicDir does not exist.
    Split shared try/catch so a missing publicDir no longer prevents outDir from being read, which caused serveStatic middleware to not be injected.

1.9.3

Patch Changes

  • #337 a759e7533a915215154d4a211893d309e80199b4 Thanks @meck93! - Fix Bun adapter build output to preserve an entry's websocket handler in the generated default export.
    This prevents Bun runtime WebSocket upgrade failures when apps export { fetch, websocket }.

1.9.2

Patch Changes

1.9.1

Patch Changes

1.9.0

Minor Changes

1.8.0

Minor Changes

  • #315 d9ecb01ac8220d85c539081b139e4117b53ba711 Thanks @chadxz! - Added shutdownTimeoutMs option 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

1.6.2

Patch Changes

1.6.1

Patch Changes

1.6.0

Minor Changes

1.5.0

Minor Changes

1.4.0

Minor Changes

  • #241 314c66da2b656d4705c4d0636cd1623b643dbd61 Thanks @justblender! - Added a new Vercel build adapter.

    This adapter can be imported from @hono/vite-build/vercel and 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/vercel adapter applied to it.

Patch Changes

1.3.1

Patch Changes

1.3.0

Minor Changes

  • #218 65e2f768a26d0665aaa05f60abf36bb66a6b6fa9 Thanks @chadxz! - Added a new Netlify Functions build adapter.

    This adapter can be imported from @hono/vite-build/netlify-functions and will
    compile your Hono app to comply with the requirements of the Netlify Functions
    runtime.

    • The default export will have the hono/netlify adapter applied to it.
    • A config object will be exported, setting the function path to '/*' and
      preferStatic to true.

    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/publish directory 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"

1.2.1

Patch Changes

1.2.0

Minor Changes

1.1.1

Patch Changes

1.1.0

Minor Changes

1.0.0

Major Changes

@hono/vite-build@1.11.0

Choose a tag to compare

@github-actions github-actions released this 03 Apr 11:39
c6c4d95

Minor Changes

@hono/vite-build@1.10.1

Choose a tag to compare

@github-actions github-actions released this 19 Mar 10:50
fecfb07

Patch Changes

@hono/vite-dev-server@0.25.1

Choose a tag to compare

@github-actions github-actions released this 10 Mar 02:28
b4149a9

Patch Changes

@hono/vite-build@1.10.0

Choose a tag to compare

@github-actions github-actions released this 03 Mar 11:20
12cd06a

Minor Changes

Patch Changes

  • #342 ce81be036106779d04fe690d7eb8baa85b47b03f Thanks @meck93! - Fix static path discovery when publicDir does not exist.
    Split shared try/catch so a missing publicDir no longer prevents outDir from being read, which caused serveStatic middleware to not be injected.

@hono/vite-build@1.9.3

Choose a tag to compare

@github-actions github-actions released this 13 Feb 14:06
747a237

Patch Changes

  • #337 a759e7533a915215154d4a211893d309e80199b4 Thanks @meck93! - Fix Bun adapter build output to preserve an entry's websocket handler in the generated default export.
    This prevents Bun runtime WebSocket upgrade failures when apps export { fetch, websocket }.