Skip to content

Releases: mcansh/remix-fastify

@mcansh/remix-fastify@3.3.1

25 Apr 21:54
@mcansh/remix-fastify@3.3.1
5b4b3d3
Compare
Choose a tag to compare

Patch Changes

  • a7fcb6d: allows you to customize the cache control for both the files in the build directory as well as your public directory if you need to. using pretty-cache-header under the hood so things like 1y or 30 days will work

    await app.register(remixFastify, {
      assetCacheControl: {},
      defaultCacheControl: {},
    });
  • a7fcb6d: fix cache control so that build assets are immutable and cached for 1 year instead of everything being cached for 1 hour

@mcansh/remix-fastify@3.3.0

25 Apr 14:51
@mcansh/remix-fastify@3.3.0
f536e6a
Compare
Choose a tag to compare

Minor Changes

  • 597df2e: re-introduce plugin for easy configuration, we're still publicly exporting all the pieces, so you can still continue to configure your server as you do today.

    import { remixFastify } from "@mcansh/remix-fastify";
    import { installGlobals } from "@remix-run/node";
    import { fastify } from "fastify";
    
    installGlobals();
    
    let app = fastify();
    
    await app.register(remixFastify);
    
    let port = Number(process.env.PORT) || 3000;
    
    let address = await app.listen({ port, host: "0.0.0.0" });
    console.log(`✅ app ready: ${address}`);

    and if you need to configure loadContext, you can do so like this:

    import { remixFastify } from "@mcansh/remix-fastify";
    import { installGlobals } from "@remix-run/node";
    import { fastify } from "fastify";
    
    installGlobals();
    
    let app = fastify();
    
    await app.register(remixFastify, {
      getLoadContext(request, reply) {
        return {};
      },
    });
    
    let port = Number(process.env.PORT) || 3000;
    
    let address = await app.listen({ port, host: "0.0.0.0" });
    console.log(`✅ app ready: ${address}`);

Patch Changes

  • 90c6c61: changeset for #324

    bump dependencies to the latest versions

@mcansh/remix-fastify@3.2.2

03 Feb 00:03
eaaff4a
Compare
Choose a tag to compare

Patch Changes

  • 9300c22: feat: allow http2/https servers

    previously using fastify({ http2: true }) or fastify({ https: {...} }) resulted in type errors for the handler when passing the request
    image

    this has been fixed by passing the server type to all uses of the request and reply internally
    image

    this PR allows any server that extends http.Server | https.Server | http2.Http2Server | http2.Http2SecureServer;

@mcansh/remix-fastify@3.2.1

13 Dec 23:16
3cac5a0
Compare
Choose a tag to compare

Patch Changes

  • d11803a: remove criticalCss option from createRequestHandler as it's now handled by the vite plugin in an agnostic way

@mcansh/remix-fastify@3.2.1-pre.0

23 Nov 18:58
d2860d1
Compare
Choose a tag to compare
Pre-release

Patch Changes

  • add5583: remove criticalCss option from createRequestHandler as it's now handled by the vite plugin in an agnostic way

@mcansh/remix-fastify@3.2.0

21 Nov 21:38
a72b9c0
Compare
Choose a tag to compare

Minor Changes

  • 1d708dc: add support for inlining criticalCss when using the vite plugin

@mcansh/remix-fastify@3.2.0-pre.0

16 Nov 17:50
17ad092
Compare
Choose a tag to compare
Pre-release

Minor Changes

  • a5ee9f1: add support for inlining criticalCss when using the vite plugin

example usage: https://github.com/mcansh/remix-fastify/blob/main/examples/unstable-vite/server.js#L66-L95

@mcansh/remix-fastify@3.1.0

15 Nov 21:17
0dffb36
Compare
Choose a tag to compare

Minor Changes

  • f6793b4: remove staticFilePlugin wrapper around @fastify/static as the example is now configured properly to find new files without colliding with remix routes

Patch Changes

  • 8f3093e: update author info, add keywords and funding keys to package.json
  • 25f00c3: bump dependencies to latest

@mcansh/remix-fastify@3.0.2

04 Oct 19:58
80173dd
Compare
Choose a tag to compare

Patch Changes

  • 9560ef1: fix: actually determind requested file
  • 66ba8e5: move glob inside onRequest hook in order for getStaticFiles to be called. doing this allows the removal of node --watch which i totally didn't realize was restarting the server as we import the build 😅

@mcansh/remix-fastify@3.0.1

20 Sep 01:01
37ea8f1
Compare
Choose a tag to compare

Patch Changes

  • 1484ec4: Uses the normalized path for filePublicPath.