Releases: probil/vue-socket.io-extended
Releases · probil/vue-socket.io-extended
v4.0.5
v4.0.4
v4.0.3
v4.0.2
Docs
Chores
- update dependency
vue
tov2.6.11
- update dependency
vue-class-component
tov7.2.3
- update dependency
eslint
tov7
- update dependency
rollup
tov2.9.1
- update dependency
jest
tov26.0.1
- update dependency
babel
to v7.9.6 - update dependency
@vue/test-utils
to v1.0.2
v4.0.1
v4.0.0
Features
- Reactive properties
this.$socket.connected
andthis.$socket.disconnected
support (Closes #17) Docs - ECMAScript / TypeScript
@Socket()
decorator support (Closes #357) Docs
Bug fixes
Breaking changes
socket.io-client
instance moved fromthis.$socket
tothis.socket.client
. Please check usages before upgrading
- this.$socket.emit('anything');
+ this.$socket.client.emit('anything');
- Dynamic socket event listeners API change (no more relies on Proxy API)
- this.$options.sockets.event_name = (payload) => {
- console.log(payload)
- });
+ this.$socket.$subscribe('event_name', (payload) => {
+ console.log(payload)
+ });
- If you are using library in CommonJS environment you might need to change the usage:
- const VueSocketIOExt = require('vue-socket.io-extended');
+ const VueSocketIOExt = require('vue-socket.io-extended').default;
const io = require('socket.io-client');
const socket = io('http://socketserver.com:1923');
Vue.use(VueSocketIOExt, socket);
Other changes
- IE 11 fully supported now
- No more security vulnerabilities in the dev dependencies
- Bundle now properly transpiled to ESM
- Stop polyfilling dead browsers (e.g. IE 10)
- Twitter feed example now lives in the repo (more examples soon)
v3.2.2
Bug Fixes
- deps: update dependency camelcase to v5.2.0 (89ea893)
- deps: update dependency camelcase to v5.3.0 (cefb582)
- deps: update dependency camelcase to v5.3.1 (f6dc7a4)
- mixin: fix issue #400, unable to unsubscribe from dynamic listener (d2ccf99) thanks to @jonakirke94
Chores
- Rebuild with latest dependencies
v3.2.1
v3.2.0
v3.1.0
Features
You can now access default plugin options if you need it (e.g. re-use default eventToActionTransformer
function):
import VueSocketIOExt from 'vue-socket.io-extended';
VueSocketIOExt.defaults // -> { actionPrefix: '...', mutationPrefix: '...', ... }