Detalhes do pacote

@remix-run/serve

remix-run1mMIT2.16.8

Production application server for Remix

readme (leia-me)

Welcome to Remix!

[!IMPORTANT] With the release of React Router v7 we are sun-setting continued development/maintenance on Remix v2. If you have not already upgraded to React Router v7, we recommend you do so. We've tried to make the upgrade process as smooth as possible with our Future Flags.

We plan to continue to address bugs that pose security concerns or prevent upgrading to React Router v7. If you have a bug in one of those categories, please open an issue in this repository and prefix the title with (v2):.

For all other issues, ongoing maintenance will be happening in React Router v7, so please open issues (bugs) and/or discussions (feature requests) in that repo.

We are happy you're here!

Remix is a full-stack web framework that lets you focus on the user interface and work back through web fundamentals to deliver a fast, slick, and resilient user experience that deploys to any Node.js server and even non-Node.js environments at the edge like Cloudflare Workers.

Want to know more? Read the Technical Explanation of Remix.

This repository contains the Remix source code. This repo is a work in progress, so we appreciate your patience as we figure things out.

Documentation

For documentation about Remix, please visit our website.

Also, please join our community on Discord.

The documentation is automatically generated on each release from the files in the docs directory.

Contributing

If you're interested in contributing code and/or documentation, please see our guide to contributing.

Code of Conduct

Please see our code of conduct for any questions about the kind of community we are trying to build here and what to do if you need help with someone not acting professionally.

changelog (log de mudanças)

@remix-run/serve

2.16.8

Patch Changes

  • Updated dependencies:
    • @remix-run/express@2.16.8
    • @remix-run/node@2.16.8

2.16.7

Patch Changes

  • Updated dependencies:
    • @remix-run/express@2.16.7
    • @remix-run/node@2.16.7

2.16.6

Patch Changes

  • Remove redundant '@remix-run/node/install' import from remix-serve because it manually calls installGlobals separately (#10306)
  • Updated dependencies:
    • @remix-run/node@2.16.6
    • @remix-run/express@2.16.6

2.16.5

Patch Changes

  • Updated dependencies:
    • @remix-run/node@2.16.5
    • @remix-run/express@2.16.5

2.16.4

Patch Changes

  • Updated dependencies:
    • @remix-run/node@2.16.4
    • @remix-run/express@2.16.4

2.16.3

Patch Changes

  • Updated dependencies:
    • @remix-run/express@2.16.3
    • @remix-run/node@2.16.3

2.16.2

Patch Changes

  • Updated dependencies:
    • @remix-run/node@2.16.2
    • @remix-run/express@2.16.2

2.16.1

Patch Changes

  • Updated dependencies:
    • @remix-run/express@2.16.1
    • @remix-run/node@2.16.1

2.16.0

Patch Changes

  • Updated dependencies:
    • @remix-run/node@2.16.0
    • @remix-run/express@2.16.0

2.15.3

Patch Changes

  • Updated dependencies:
    • @remix-run/node@2.15.3
    • @remix-run/express@2.15.3

2.15.2

Patch Changes

  • Updated dependencies:
    • @remix-run/express@2.15.2
    • @remix-run/node@2.15.2

2.15.1

Patch Changes

  • Updated dependencies:
    • @remix-run/express@2.15.1
    • @remix-run/node@2.15.1

2.15.0

Patch Changes

  • Updated dependencies:
    • @remix-run/express@2.15.0
    • @remix-run/node@2.15.0

2.14.0

Patch Changes

  • Updated dependencies:
    • @remix-run/node@2.14.0
    • @remix-run/express@2.14.0

2.13.1

Patch Changes

  • Updated dependencies:
    • @remix-run/express@2.13.1
    • @remix-run/node@2.13.1

2.13.0

Patch Changes

  • Updated dependencies:
    • @remix-run/express@2.13.0
    • @remix-run/node@2.13.0

2.12.1

Patch Changes

  • Updated dependencies:
    • @remix-run/node@2.12.1
    • @remix-run/express@2.12.1

2.12.0

Patch Changes

  • Updated dependencies:
    • @remix-run/node@2.12.0
    • @remix-run/express@2.12.0

2.11.2

Patch Changes

  • Updated dependencies:
    • @remix-run/node@2.11.2
    • @remix-run/express@2.11.2

2.11.1

Patch Changes

  • Updated dependencies:
    • @remix-run/node@2.11.1
    • @remix-run/express@2.11.1

2.11.0

Patch Changes

  • Updated dependencies:
    • @remix-run/node@2.11.0
    • @remix-run/express@2.11.0

2.10.3

Patch Changes

  • Updated dependencies:
    • @remix-run/express@2.10.3
    • @remix-run/node@2.10.3

2.10.2

Patch Changes

  • Updated dependencies:
    • @remix-run/node@2.10.2
    • @remix-run/express@2.10.2

2.10.1

Patch Changes

  • Updated dependencies:
    • @remix-run/express@2.10.1
    • @remix-run/node@2.10.1

2.10.0

Patch Changes

  • Upgrade express dependency to ^4.19.2 (#9184)
  • Updated dependencies:
    • @remix-run/express@2.10.0
    • @remix-run/node@2.10.0

2.9.2

Patch Changes

  • Updated dependencies:
    • @remix-run/node@2.9.2
    • @remix-run/express@2.9.2

2.9.1

Patch Changes

  • Updated dependencies:
    • @remix-run/express@2.9.1
    • @remix-run/node@2.9.1

2.9.0

Minor Changes

  • Put undici fetch polyfill behind a new installGlobals({ nativeFetch: true }) parameter (#9198)
    • remix-serve will default to using undici for the fetch polyfill if future.unstable_singleFetch is enabled because the single fetch implementation relies on the undici polyfill
    • Any users opting into Single Fetch and managing their own polyfill will need to pass the flag to installGlobals on their own to avoid runtime errors with Single Fetch

Patch Changes

  • Updated dependencies:
    • @remix-run/node@2.9.0
    • @remix-run/express@2.9.0

2.8.1

Patch Changes

  • Updated dependencies:
    • @remix-run/express@2.8.1
    • @remix-run/node@2.8.1

2.8.0

Patch Changes

  • Updated dependencies:
    • @remix-run/express@2.8.0
    • @remix-run/node@2.8.0

2.7.2

Patch Changes

  • Updated dependencies:
    • @remix-run/express@2.7.2
    • @remix-run/node@2.7.2

2.7.1

Patch Changes

  • Updated dependencies:
    • @remix-run/express@2.7.1
    • @remix-run/node@2.7.1

2.7.0

Patch Changes

  • Updated dependencies:
    • @remix-run/express@2.7.0
    • @remix-run/node@2.7.0

2.6.0

Patch Changes

  • Updated dependencies:
    • @remix-run/node@2.6.0
    • @remix-run/express@2.6.0

2.5.1

Patch Changes

  • Updated dependencies:
    • @remix-run/express@2.5.1
    • @remix-run/node@2.5.1

2.5.0

Patch Changes

  • Don't try to load sourcemaps if they don't exist on disk (#8446)
  • Updated dependencies:
    • @remix-run/node@2.5.0
    • @remix-run/express@2.5.0

2.4.1

Patch Changes

  • Use node fileURLToPath to convert source map URL to path (#8321)
  • Updated dependencies:
    • @remix-run/node@2.4.1
    • @remix-run/express@2.4.1

2.4.0

Patch Changes

  • Fix source map loading when file has ?t=timestamp suffix (rebuilds) (#8174)
  • Updated dependencies:
    • @remix-run/node@2.4.0
    • @remix-run/express@2.4.0

2.3.1

Patch Changes

  • Updated dependencies:
    • @remix-run/express@2.3.1
    • @remix-run/node@2.3.1

2.3.0

Patch Changes

  • Updated dependencies:
    • @remix-run/express@2.3.0
    • @remix-run/node@2.3.0

2.2.0

Patch Changes

  • Updated dependencies:
    • @remix-run/express@2.2.0
    • @remix-run/node@2.2.0

2.1.0

Patch Changes

  • Updated dependencies:
    • @remix-run/express@2.1.0
    • @remix-run/node@2.1.0

2.0.1

Patch Changes

  • Fix HMR for CJS projects using remix-serve and manual mode (remix dev --manual) (#7487)
    • By explicitly busting the require cache, remix-serve now correctly re-imports new server changes in CJS
    • ESM projects were already working correctly and are not affected by this.
  • Fix error caused by partially written server build (#7470)
    • Previously, it was possible to trigger a reimport of the app server code before the new server build had completely been written. Reimporting the partially written server build caused issues related to build.assets being undefined and crashing when reading build.assets.version
  • Updated dependencies:
    • @remix-run/node@2.0.1
    • @remix-run/express@2.0.1

2.0.0

Major Changes

  • remix-serve now picks an open port if 3000 is taken (#7278)

    • If PORT env var is set, remix-serve will use that port
    • Otherwise, remix-serve picks an open port (3000 unless that is already taken)
  • Integrate manual mode in remix-serve (#7231)

  • Remove undocumented createApp Node API (#7229)

    • remix-serve is a CLI, not a library
  • Require Node >=18.0.0 (#6939)

  • Promote the future.v2_dev flag in remix.config.js to a root level dev config (#7002)

  • Default to serverModuleFormat: "esm" and update remix-serve to use dynamic import to support ESM and CJS build outputs (#6949)

  • Preserve dynamic imports in remix-serve for external bundle (#7173)

  • For preparation of using Node's built in fetch implementation, installing the fetch globals is now a responsibility of the app server (#7009)

    • If you are using remix-serve, nothing is required
    • If you are using your own app server, you will need to install the globals yourself

      ```js filename=server.js import { installGlobals } from "@remix-run/node";

      installGlobals(); ```

  • source-map-support is now a responsibility of the app server (#7009)

    • If you are using remix-serve, nothing is required
    • If you are using your own app server, you will need to install source-map-support yourself.

      npm i source-map-support
      

      js filename=server.js import sourceMapSupport from "source-map-support"; sourceMapSupport.install();

Patch Changes

  • Update remix-serve usage error message to support ESM projects (#7400)
  • Updated dependencies:
    • @remix-run/node@2.0.0
    • @remix-run/express@2.0.0

1.19.3

Patch Changes

  • Updated dependencies:
    • @remix-run/express@1.19.3
    • @remix-run/node@1.19.3

1.19.2

Patch Changes

  • Install source-map-support (#7039)
  • Updated dependencies:
    • @remix-run/node@1.19.2
    • @remix-run/express@1.19.2

1.19.1

Patch Changes

  • Updated dependencies:
    • @remix-run/express@1.19.1
    • @remix-run/node@1.19.1

1.19.0

Patch Changes

  • Updated dependencies:
    • @remix-run/node@1.19.0
    • @remix-run/express@1.19.0

1.18.1

Patch Changes

  • Updated dependencies:
    • @remix-run/node@1.18.1
    • @remix-run/express@1.18.1

1.18.0

Minor Changes

  • stabilize v2 dev server (#6615)

Patch Changes

  • fix(types): better tuple serialization types (#6616)
  • Updated dependencies:
    • @remix-run/node@1.18.0
    • @remix-run/express@1.18.0

1.17.1

Patch Changes

  • Updated dependencies:
    • @remix-run/express@1.17.1
    • @remix-run/node@1.17.1

1.17.0

Patch Changes

  • Add HeadersArgs type to be consistent with loaders/actions/meta and allows for using a function declaration in addition to an arrow function expression (#6247)

    import type { HeadersArgs } from "@remix-run/node"; // or cloudflare/deno
    
    export function headers({ loaderHeaders }: HeadersArgs) {
      return {
        "x-my-custom-thing": loaderHeaders.get("x-my-custom-thing") || "fallback",
      };
    }
    
  • Updated dependencies:

    • @remix-run/node@1.17.0
    • @remix-run/express@1.17.0

1.16.1

Patch Changes

  • Updated dependencies:
    • @remix-run/node@1.16.1
    • @remix-run/express@1.16.1

1.16.0

Patch Changes

  • add @remix-run/node/install side-effect to allow node --require @remix-run/node/install (#6132)
  • Updated dependencies:
    • @remix-run/express@1.16.0
    • @remix-run/node@1.16.0

1.15.0

Patch Changes

  • Updated dependencies:
    • @remix-run/express@1.15.0

1.14.3

Patch Changes

  • Updated dependencies:
    • @remix-run/express@1.14.3

1.14.2

Patch Changes

  • Updated dependencies:
    • @remix-run/express@1.14.2

1.14.1

Patch Changes

  • Updated dependencies:
    • @remix-run/express@1.14.1

1.14.0

Patch Changes

  • Allow configurable NODE_ENV with remix-serve (#5540)
  • Sync FutureConfig interface between packages (#5398)
  • Updated dependencies:
    • @remix-run/express@1.14.0

1.13.0

Patch Changes

  • Updated dependencies:
    • @remix-run/express@1.13.0

1.12.0

Minor Changes

  • Added a new development server available in the Remix config under the unstable_dev flag. See the release notes for a full description. (#5133)

Patch Changes

  • Updated dependencies:
    • @remix-run/express@1.12.0

1.11.1

Patch Changes

  • Updated dependencies:
    • @remix-run/express@1.11.1

1.11.0

Patch Changes

1.10.1

Patch Changes

  • Updated dependencies:
    • @remix-run/express@1.10.1

1.10.0

Patch Changes

  • Updated dependencies:
    • @remix-run/express@1.10.0

1.9.0

Patch Changes

  • Fix TypedResponse so that Typescript correctly shows errors for incompatible types in loader and action functions. (#4734)
  • Updated dependencies:
    • @remix-run/express@1.9.0

1.8.2

Patch Changes

  • Updated dependencies:
    • @remix-run/express@1.8.2

1.8.1

Patch Changes

  • Updated dependencies:
    • @remix-run/express@1.8.1

1.8.0

Patch Changes

  • Updated dependencies:
    • @remix-run/express@1.8.0

1.7.6

Patch Changes

  • Updated dependencies:
    • @remix-run/express@1.7.6

1.7.5

Patch Changes

  • Updated dependencies:
    • @remix-run/express@1.7.5

1.7.4

Patch Changes

  • Updated dependencies:
    • @remix-run/express@1.7.4

1.7.3

Patch Changes

  • Updated dependencies:
    • @remix-run/express@1.7.3

1.7.2

Patch Changes

  • Updated dependencies:
    • @remix-run/express@1.7.2

1.7.1

Patch Changes

  • Updated dependencies:
    • @remix-run/express@1.7.1

1.7.0

Minor Changes

  • We've added a new type: SerializeFrom. This is used to infer the (#4013) JSON-serialized return type of loaders and actions.
  • MetaFunction type can now infer data and parentsData types from route loaders (#4022)

Patch Changes

  • Updated dependencies:
    • @remix-run/express@1.7.0

1.6.8

Patch Changes

  • Updated dependencies:
    • @remix-run/express@1.6.8

1.6.7

Patch Changes

  • Updated dependencies:
    • @remix-run/express@1.6.7

1.6.6

Patch Changes

  • Updated dependencies:
    • @remix-run/express@1.6.6

1.6.5

Patch Changes

  • Updated dependencies
    • @remix-run/express@1.6.5