github remix-run/remix node-hmr@0.2.0
node-hmr v0.2.0

latest releases: remix@3.0.0-rc.2, static-middleware@0.4.15, spa@0.1.1...
4 hours ago

Minor Changes

  • BREAKING CHANGE: Custom browser HMR update events now carry JSON data in a data record instead of top-level timestamp and updates fields (see #11706).

    Apps using the standard asset server and createBrowserHmrChannel() integration need no changes to their event handling. Give each tool a separate key in the record, for example { type: 'update', data: { 'my-tool@1': { version: 1 } } }. node-hmr forwards this data unchanged to browser clients in a { type: 'browser:update', data } event.

     channel.onFileEvents(async () => [
       {
         type: 'update',
    -    timestamp,
    -    updates,
    +    data: { 'my-tool@1': { timestamp, updates } },
       },
     ])

Don't miss a new remix release

NewReleases is sending notifications on new releases.