Releases: nathantsoi/vue-native-websocket
Releases · nathantsoi/vue-native-websocket
v3.0.0
Breaking changes
- Vue 2 is no longer supported.
Vue.use(...)is replaced byapp.use(createSocketPlugin(...)).- Automatic Vuex
commit/dispatchhandling was removed. - Dynamic
this.$options.socketslisteners 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, andsendJsonhelpers.- 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
prepackto build before packaging.
Full Changelog: v2.0.15...v3.0.0
v2.0.15
What's Changed
- Bump ini from 1.3.4 to 1.3.7 by @dependabot in #133
- Bump elliptic from 6.4.0 to 6.5.4 by @dependabot in #136
- Bump y18n from 3.2.1 to 3.2.2 by @dependabot in #137
- Bump handlebars from 4.0.10 to 4.7.7 by @dependabot in #139
- Bump hosted-git-info from 2.4.2 to 2.8.9 by @dependabot in #140
- Bump http-proxy from 1.16.2 to 1.18.1 by @dependabot in #121
- Bump is-my-json-valid from 2.16.0 to 2.20.5 by @dependabot in #144
- No default connection string if connectManually by @rigwild in #89
- Prevent reconnect after timeout for previously destroyed socket (with use $disconnect method) by @sergak01 in #153
- Babel 6 to 7, webpack 3 to 5 etc by @nsano-rururu in #158
- Update README.md by @anatoly314 in #114
New Contributors
- @dependabot made their first contribution in #133
- @rigwild made their first contribution in #89
- @sergak01 made their first contribution in #153
- @nsano-rururu made their first contribution in #158
- @anatoly314 made their first contribution in #114
Full Changelog: v2.0.14...v2.0.15
v2.0.14
v2.0.11
v2.0.10
- [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
v2.0.7
Added feature: manual connect/disconnect
see CHANGELOG.md
v2.0.6
v2.0.5
see CHANGELOG.md
v2.0.4
see CHANGELOG.md