Skip to content

Releases: nathantsoi/vue-native-websocket

v3.0.0

15 Jun 13:37

Choose a tag to compare

Breaking changes

  • Vue 2 is no longer supported.
  • Vue.use(...) is replaced by app.use(createSocketPlugin(...)).
  • Automatic Vuex commit / dispatch handling was removed.
  • Dynamic this.$options.sockets listeners were removed.

Added

  • Vue 3 plugin API via createSocketPlugin(...).
  • Composition API support via useSocket().
  • TypeScript source and generated declaration files.
  • Reactive socket state: status, socket, lastMessage, lastJsonMessage, error, reconnectAttempt.
  • connect, disconnect, send, and sendJson helpers.
  • Store-agnostic event hooks for Pinia, Vuex, or custom stores.
  • Reconnect hooks and retry configuration.
  • Vite + Vue 3 example app using wss://echo.websocket.org.
  • GitHub Actions CI.

Changed

  • Replaced webpack, Babel, Karma, and Travis with Vite, TypeScript, Vitest, ESLint flat config, and GitHub Actions.
  • Package now publishes ESM, CJS, UMD, and TypeScript declaration outputs.
  • Publish flow now uses prepack to build before packaging.

Full Changelog: v2.0.15...v3.0.0

v2.0.15

23 Aug 13:36

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v2.0.14...v2.0.15

v2.0.14

27 Jan 15:07

Choose a tag to compare

[bugfix]: Fix feature custom mutation name. tnx @sharkykh

v2.0.11

13 Sep 08:02

Choose a tag to compare

  • [bugfix]: Fix feature custom mutation name. tnx @sharkykh

v2.0.10

12 Sep 13:48
0f995df

Choose a tag to compare

  • [bugfix]: check Proxy for old browsers. tnx @mikhailian
  • [feature]: Handle skip scheme ws url. tnx @denzow
  • [feature]: Support for custom mutation name. thx @OmgImAlexis

v2.0.8

29 Aug 15:54
b7f3a45

Choose a tag to compare

Merge pull request #65 from weglov/feature/fix-reconnection

Fix reconnection ws instance

v2.0.7

18 Apr 08:03
34ab4c2

Choose a tag to compare

Added feature: manual connect/disconnect
see CHANGELOG.md

v2.0.6

19 Mar 17:59

Choose a tag to compare

v2.0.5

18 Nov 20:13

Choose a tag to compare

v2.0.4

13 Nov 17:17

Choose a tag to compare