Skip to content

Conversation

@philon-
Copy link
Contributor

@philon- philon- commented Jun 3, 2025

Description

This PR removes the dependence on the old, deprecated package meshtastic/js and uses meshtastic/transport-web-bluetooth instead.

Note: This PR in meshtastic/js needs to be merged before this PR can be merged.

Related Issues

This PR in meshtastic/js

Changes Made

  • Changed to meshtastic/transport-web-bluetooth

Testing Done

Tested using Chrome with an esp32 device.

Checklist

  • Upstream changes have been merged

Copilot AI review requested due to automatic review settings June 3, 2025 11:48
@vercel
Copy link

vercel bot commented Jun 3, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
web-test ✅ Ready (Inspect) Visit Preview Jun 10, 2025 5:35pm

@philon- philon- marked this pull request as draft June 3, 2025 11:48
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR removes the deprecated meshtastic/js dependency and updates the code to use meshtastic/transport-web-bluetooth along with updated core module imports. Key changes include:

  • Updating import paths in PacketToMessageDTO.ts to use "@meshtastic/core" and revised message store locations.
  • Changing the dependency in MessageItem.tsx from meshtastic/js to meshtastic/core.
  • Refactoring BLE.tsx to use TransportWebBluetooth and MeshDevice, including updating the Bluetooth service filter.
  • Removing the meshtastic/js dependency from package.json.

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
src/core/dto/PacketToMessageDTO.ts Updated imports for core types and message store files to reflect new dependency
src/components/PageComponents/Messages/MessageItem.tsx Updated dependency imports from meshtastic/js to meshtastic/core
src/components/PageComponents/Connect/BLE.tsx Refactored BLE connection to use TransportWebBluetooth and MeshDevice, with updated service filter
package.json Removed meshtastic/js dependency and retained transport dependencies

Copy link
Collaborator

@danditomaso danditomaso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔥

@danditomaso
Copy link
Collaborator

@philon- Wanted to see if we can make this PR active so we can get it merged?

@philon- philon- marked this pull request as ready for review June 9, 2025 18:23
@philon- philon- requested a review from danditomaso June 9, 2025 18:23
Copy link
Collaborator

@danditomaso danditomaso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔥 🚒 🧯

@danditomaso danditomaso merged commit 4275bdd into meshtastic:main Jun 11, 2025
2 of 3 checks passed
@philon- philon- deleted the remove-meshtastic-js branch June 11, 2025 17:01
tjpaulsondev pushed a commit to tjpaulsondev/web that referenced this pull request Jun 12, 2025
* Remove deprecated meshtastic/js dependency

* Bump dependency version

* Fix linting

---------

Co-authored-by: philon- <philon-@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants