Skip to content

Js example#119

Merged
abergs merged 6 commits intomainfrom
js-example
Apr 9, 2026
Merged

Js example#119
abergs merged 6 commits intomainfrom
js-example

Conversation

@abergs
Copy link
Copy Markdown
Member

@abergs abergs commented Mar 21, 2026

🎟️ Tracking

📔 Objective

📸 Screenshots

⏰ Reminders before review

  • Contributor guidelines followed
  • All formatters and local linters executed and passed
  • Written new unit and / or integration tests where applicable
  • Protected functional changes with optionality (feature flags)
  • Used internationalization (i18n) for all UI strings
  • CI builds passed
  • Communicated to DevOps any deployment requirements
  • Updated any necessary documentation (Confluence, contributing docs) or informed the documentation team

🦮 Reviewer guidelines

  • 👍 (:+1:) or similar for great changes
  • 📝 (:memo:) or ℹ️ (:information_source:) for notes or general info
  • ❓ (:question:) for questions
  • 🤔 (:thinking:) or 💭 (:thought_balloon:) for more open inquiry that's not quite a confirmed issue and could potentially benefit from discussion
  • 🎨 (:art:) for suggestions / improvements
  • ❌ (:x:) or ⚠️ (:warning:) for more significant problems or concerns needing attention
  • 🌱 (:seedling:) or ♻️ (:recycle:) for future improvements or indications of technical debt
  • ⛏ (:pick:) for minor or nitpick changes

abergs added 2 commits March 21, 2026 20:05
WASM bindings for RemoteClient via wasm-bindgen, with a browser-based
demo using Alpine.js + Tailwind. Includes a web-sys WebSocket
ProxyClient implementation, localStorage-backed identity and session
storage, and a clean JS API wrapper (remote-access.js).
- Remove unused isConnected getter from Rust and JS layers
- Remove dead notification_rx field, unused pub use, unused web-sys features
- Clear oneshot WebSocket handlers after open resolves
- Add comment explaining std::sync::Mutex usage in JS callbacks
- Cap activity log at 100 entries to prevent unbounded growth
- Cache credentialEntries instead of recomputing on each render
- Warn on corrupt localStorage instead of silently resetting
@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 21, 2026

Logo
Checkmarx One – Scan Summary & Details6baa85fa-b469-4a80-93ff-719b00ef2f07


New Issues (1) Checkmarx found the following issues in this Pull Request
# Severity Issue Source File / Package Checkmarx Insight
1 HIGH CVE-2026-33671 Npm-picomatch-2.3.1
detailsRecommended version: 2.3.2
Description: `picomatch` is vulnerable to Regular Expression Denial of Service (ReDoS) when processing crafted extglob patterns. Certain patterns using extglob ...
Attack Vector: NETWORK
Attack Complexity: LOW
Vulnerable Package

abergs added 3 commits April 8, 2026 10:48
Split WasmRemoteClient.connect(token, session) into individual methods
(connect, pairWithHandshake, pairWithPsk, loadCachedConnection) that map
1:1 to RemoteClient. PSK vs rendezvous branching now lives in the JS
RemoteAccessClient class instead of duplicating orchestration logic in Rust.
Extract connection listing and clearing from WasmRemoteClient methods
into free #[wasm_bindgen] functions in storage.rs. They only need an
identity name, not a connected client. Also extract #withFreshConnection
helper in JS to deduplicate the connect/cleanup pattern.
Replace bun references with npm in build.sh and README, remove bun.lock.
@abergs abergs marked this pull request as ready for review April 8, 2026 12:03
@abergs abergs merged commit d8a3fa1 into main Apr 9, 2026
12 of 13 checks passed
@abergs abergs deleted the js-example branch April 9, 2026 09:05
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.

1 participant