From 0a9ff3e9b3af992c28c3b89a599f7ee3cd4d92d3 Mon Sep 17 00:00:00 2001 From: Robert Knight Date: Wed, 3 Sep 2025 14:31:21 +0100 Subject: [PATCH] Upgrade connection library --- package-lock.json | 8 ++++---- package.json | 2 +- src/project/project-actions.tsx | 5 ----- 3 files changed, 5 insertions(+), 10 deletions(-) diff --git a/package-lock.json b/package-lock.json index e9fa1800e..c45856cdf 100644 --- a/package-lock.json +++ b/package-lock.json @@ -20,7 +20,7 @@ "@codemirror/view": "^6.26.3", "@emotion/react": "^11.11.4", "@emotion/styled": "^11.11.5", - "@microbit/microbit-connection": "^0.0.0-alpha.36", + "@microbit/microbit-connection": "^0.0.0-alpha.39", "@microbit/microbit-fs": "^0.10.0", "@sanity/block-content-to-react": "^3.0.0", "@sanity/image-url": "^1.0.1", @@ -3795,9 +3795,9 @@ } }, "node_modules/@microbit/microbit-connection": { - "version": "0.0.0-alpha.36", - "resolved": "https://registry.npmjs.org/@microbit/microbit-connection/-/microbit-connection-0.0.0-alpha.36.tgz", - "integrity": "sha512-R/UQmPQq1s9eSx1NFWPfsJAsflJVbMCyfuHAuqEri3eCSRy5cJ8qqRmdlMQ40XfTps3roDMJkVUGN5Zw6JUCAg==", + "version": "0.0.0-alpha.39", + "resolved": "https://registry.npmjs.org/@microbit/microbit-connection/-/microbit-connection-0.0.0-alpha.39.tgz", + "integrity": "sha512-P4/G1reVl4KE028w+7hRAUXGtgYn/5G56qHVKcZXYBbVWfl2bcEZig6lXoq7HZKwVlyRpRszk7mR6PNhEMRK6w==", "dependencies": { "@microbit/microbit-universal-hex": "^0.2.2", "@types/web-bluetooth": "^0.0.20", diff --git a/package.json b/package.json index 3957f72b2..f181c6202 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ "@codemirror/view": "^6.26.3", "@emotion/react": "^11.11.4", "@emotion/styled": "^11.11.5", - "@microbit/microbit-connection": "^0.0.0-alpha.36", + "@microbit/microbit-connection": "^0.0.0-alpha.39", "@microbit/microbit-fs": "^0.10.0", "@sanity/block-content-to-react": "^3.0.0", "@sanity/image-url": "^1.0.1", diff --git a/src/project/project-actions.tsx b/src/project/project-actions.tsx index 6ac24c17e..b77d27441 100644 --- a/src/project/project-actions.tsx +++ b/src/project/project-actions.tsx @@ -20,7 +20,6 @@ import { Dialogs } from "../common/use-dialogs"; import { ConnectionStatus, MicrobitWebUSBConnection, - AfterRequestDevice, FlashDataError, DeviceError, DeviceErrorCode, @@ -836,10 +835,6 @@ export class ProjectActions { finalFocusRef: FinalFocusRef ) { if (e instanceof DeviceError) { - this.device.dispatchTypedEvent( - "afterrequestdevice", - new AfterRequestDevice() - ); switch (e.code) { case "no-device-selected": { // User just cancelled the browser dialog, perhaps because there