Skip to content

Releases: probil/vue-socket.io-extended

v4.0.5

29 Sep 21:59
6d4fe36
Compare
Choose a tag to compare

4.0.5 (2020-09-29)

Bug Fixes

  • deps: update dependency @types/socket.io-client to v1.4.34 (6d4fe36)

v4.0.4

25 Jul 14:30
d5b450f
Compare
Choose a tag to compare

4.0.4 (2020-07-25)

Bug Fixes

  • deps: update vue-class-component to v7.2.5 (d5b450f)

v4.0.3

18 May 18:22
554d3b9
Compare
Choose a tag to compare

4.0.3 (2020-05-18)

Bug Fixes

  • deps: update dependency @types/socket.io-client to v1.4.33 (abb53db)

Other changes

  • chore: init semantic release of the package

v4.0.2

11 May 13:47
Compare
Choose a tag to compare

Docs

  • add instructions for quasar framework (#452)
  • fix typo (#439)

Chores

  • update dependency vue to v2.6.11
  • update dependency vue-class-component to v7.2.3
  • update dependency eslint to v7
  • update dependency rollup to v2.9.1
  • update dependency jest to v26.0.1
  • update dependency babel to v7.9.6
  • update dependency @vue/test-utils to v1.0.2

v4.0.1

20 Oct 09:37
Compare
Choose a tag to compare

Fixes

  • Fix Vue plugin export in UMD build (#419, thanks @mila76 for finding)

v4.0.0

18 Aug 13:05
Compare
Choose a tag to compare

Features

  • Reactive properties this.$socket.connected and this.$socket.disconnected support (Closes #17) Docs
  • ECMAScript / TypeScript @Socket() decorator support (Closes #357) Docs

Bug fixes

  • Proper unsubscribing from dynamic listeners and non-dynamic listeners #408 #407 #400

Breaking changes

  • socket.io-client instance moved from this.$socket to this.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

11 Jul 15:29
Compare
Choose a tag to compare

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

22 Jan 20:57
Compare
Choose a tag to compare

Bug Fixes

  • Syntax error in IE11 (closes #253 and #238), thanks to @barrymckay397

Chores

  • Rebuild with latest deps
  • Moved to babel.config.js

v3.2.0

02 Dec 11:32
Compare
Choose a tag to compare

Bug Fixes

  • core: correct option merging strategy for sockets prop (30b728b), closes #189
  • build: fix error "Error: Farm is ended, no more calls can be done to it" (2b4e5a8)

Features

v3.1.0

24 Jul 23:49
Compare
Choose a tag to compare

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: '...', ... }
  • options: make default options read-only (2d9c23e)
  • options: move default options to separate file and export it (2ddbfad)
  • options: move export to plugin field (instead of named export) (7f4960b)