Skip to content

Commit c310497

Browse files
authored
Merge pull request #153 from TerminalStudio/feat/wasm-web-compat-socket-import
fix(web): make SSHSocket conditional import wasm-compatible
2 parents c369227 + c37417d commit c310497

3 files changed

Lines changed: 8 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## [2.17.0] - yyyy-mm-dd
2+
- Improved Web/WASM compatibility by updating `SSHSocket` conditional imports so web runtimes consistently use the web socket shim and avoid incorrect native socket selection [#88]. Thanks [@vicajilau].
3+
14
## [2.16.0] - 2026-03-24
25
- **BREAKING**: Changed `SSHChannelController.sendEnv()` from `void` to `Future<bool>` to properly await environment variable setup responses and avoid race conditions with PTY requests [#102]. Thanks [@itzhoujun] and [@vicajilau].
36
- Clarified shell stdio wiring for CLI-only usage and guarded `example/shell.dart` against missing local terminal handles (for example GUI-launched Windows `.exe`) [#121]. Thanks [@bradmartin333] and [@vicajilau].
@@ -196,12 +199,14 @@
196199
[#141]: https://github.com/TerminalStudio/dartssh2/pull/141
197200
[#140]: https://github.com/TerminalStudio/dartssh2/pull/140
198201
[#145]: https://github.com/TerminalStudio/dartssh2/pull/145
202+
[#153]: https://github.com/TerminalStudio/dartssh2/pull/153
199203
[#102]: https://github.com/TerminalStudio/dartssh2/issues/102
200204
[#99]: https://github.com/TerminalStudio/dartssh2/issues/99
201205
[#109]: https://github.com/TerminalStudio/dartssh2/issues/109
202206
[#121]: https://github.com/TerminalStudio/dartssh2/issues/121
203207
[#124]: https://github.com/TerminalStudio/dartssh2/issues/124
204208
[#95]: https://github.com/TerminalStudio/dartssh2/issues/95
209+
[#88]: https://github.com/TerminalStudio/dartssh2/issues/88
205210
[#139]: https://github.com/TerminalStudio/dartssh2/pull/139
206211
[#132]: https://github.com/TerminalStudio/dartssh2/pull/132
207212
[#133]: https://github.com/TerminalStudio/dartssh2/pull/133

lib/src/socket/ssh_socket.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import 'dart:async';
22
import 'dart:typed_data';
33

4-
import 'package:dartssh2/src/socket/ssh_socket_io.dart'
5-
if (dart.library.js) 'package:dartssh2/src/socket/ssh_socket_js.dart';
4+
import 'package:dartssh2/src/socket/ssh_socket_js.dart'
5+
if (dart.library.io) 'package:dartssh2/src/socket/ssh_socket_io.dart';
66

77
abstract class SSHSocket {
88
/// Connects using the platform native socket transport.

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: dartssh2
2-
version: 2.16.0
2+
version: 2.17.0
33
description: SSH and SFTP client written in pure Dart, aiming to be feature-rich as well as easy to use.
44
homepage: https://github.com/TerminalStudio/dartssh2
55

0 commit comments

Comments
 (0)