Releases: dart-lang/webdev
Releases · dart-lang/webdev
package:dwds v25.0.0
- Implemented hot restart over websockets with multi window support.
- Fix refresh race condition bug by adding an isolate destruction grace period.
- Update a call to the
package:shelf_web_socket
webSocketHandler()
function.
Breaking changes - Remove deprecated parameter
injectDebuggingSupportCode
fromDwds.start()
. - Remove all deprecated fields, getters, and parameters
related to the null safety compilation mode. Dart 3 only
supports sound null safety. - Rename
FrontendServerDdcLibraryBundleStrategy.hotReloadSourcesUri
to
reloadedSourcesUri
. The file that theUri
points to should now be updated
for both a hot restart and a hot reload.
package:dwds v24.4.1
- Implemented a WebSocket-based communication protocol that provides essential developer tooling (hot reload, service extensions) when Chrome debugger access is unavailable. - #2605
- Added WebSocket-based hot reload and service extension support via new
WebSocketProxyService
class that implements VM service protocol over WebSockets. - Enhanced
DevHandler
withuseWebSocketConnection
flag to toggle between Chrome-based and WebSocket-based communication protocols. - Fixed an issue where we didn't wait until all scripts were parsed before
recomputing metadata on a hot reload.
package:dwds v24.4.0
- Added support for breakpoint registering on a hot reload with the DDC library bundle format using PausePostRequests.
FrontendServerDdcLibraryBundleStrategy.hotReloadSourceUri
is now expected to also provide the reloaded modules.
package:webdev v3.7.2
package:dwds v24.3.11
- Changed DWDS to always inject the client and added
useDwdsWebSocketConnection
flag to control communication protocol: when true uses socket-based implementation, when false uses Chrome-based communication protocol. - Added WebSocket-based hot reload support:
reloadSources
inChromeProxyService
andDevHandler
now handle hot reload requests and responses over WebSockets. - Refactored the injected client to use a reusable function for handling hot reload requests and responses over WebSockets.
- Added support for breakpoint registering on a hot restart with the DDC library bundle format using PausePostRequests.
package:dwds v24.3.10
- Disabled breakpoints on changed files in a hot reload. They currently do not
map to the correct locations or are broken, so disable them for now. - #60186
package:dwds v24.3.9
- Renamed DWDS Injector parameter
enableDebuggingSupport
toinjectDebuggingSupportCode
for clearer intent.
package:dwds v24.3.8
- Updated DWDS to include a boolean flag that enables debugging support only when set to true. #60289
package:dwds v24.3.7
- The registered extension
reassemble
is now no longer called when calling
reloadSources
. Users should callreassemble
usingcallServiceExtension
. callServiceExtension
now checks the runtime for the list of registered
service extensions. It also now throws aRPCError
with
RPCErrorKind.kMethodNotFound
when a service extension is not found instead
of throwing a JS evaluation error.
package:dwds v24.3.6
- Bump minimum sdk version to 3.7.0
- use 'compile js-dev' instead of directly invoking the ddc snapshot.
FrontendServerDdcLibraryBundleStrategy
now takes ahotReloadSourcesUri
parameter in order to fetch the file that contains the changed sources and
libraries instead of assuming it exists in the globalwindow
.