Minor Changes
-
BREAKING CHANGE: Custom browser HMR update events now carry JSON data in a
datarecord instead of top-leveltimestampandupdatesfields (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-hmrforwards 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 } }, }, ])