vue-socket.io-extended

Socket.io bindings for Vue.js and Vuex (inspired by Vue-Socket.io)

MIT License

Downloads
18.7K
Stars
629
Committers
15

Bot releases are visible (Hide)

vue-socket.io-extended - v3.0.0

Published by probil over 6 years ago

Options support

This release introduces options support - hooray πŸŽ‰ . That means you can tweak the library to better fit your project needs. So now you can:

  • use custom prefix for actions (instead of default socket_), closes #25
  • use custom prefix for mutations (instead of default SOCKET_), closes #25
  • use custom function to convert event to action (instead of default camelcase)
  • use custom function to convert event to mutation (instead of default uppercase)

Read more in configuration section. That's all for now

Upgrade guide

If you are using store - keep reading, if not - stop reading right here because there nothing to update for you πŸ˜„.
Previously it was possible to pass store as third argument to enable vuex integration but now third argument is an options object. So, you need to pass store as part of options to enable it.

In short:

- Vue.use(VueSocketio, io('http://socketserver.com:1923'), store);
+ Vue.use(VueSocketio, io('http://socketserver.com:1923'), { store });
vue-socket.io-extended - v2.0.3

Published by probil over 6 years ago

Bug fixes

  • prevent crash during SSR (as library no more uses window directly)

Other improvements

  • correctly detects is Proxy natively supported by browser (no more issue with polyfill)
  • potentially improves testing experience for mixin as we can mock proxy support now
  • rebuild with [email protected] & [email protected]
vue-socket.io-extended - v2.0.2

Published by probil over 6 years ago

Bug fixes

  • prevent crash when Proxy API is not supported by browser (41490fc)
vue-socket.io-extended - v2.0.1

Published by probil over 6 years ago

Features

  • Observer: unwrap data while passing to mutation/action (37430ed, fixes #47)
  • Compatibility: add String.prototype.starsWith polyfill (1839542, fixes #27)
vue-socket.io-extended - v2.0.0

Published by probil over 6 years ago

Bracking changes

  • force user to provide socket.io-client instance (87738e5), fixes #19
vue-socket.io-extended - v1.2.1

Published by probil over 6 years ago

  • chore: integrate with codecov to gather code coverage reports
  • refactor: separate EvenEmitter class from global EvenEmitter instance
  • tests: cover EventEmitter, Observer and mixin by unit tests
  • fix: correctly convert event name to camelcased vuex action name
vue-socket.io-extended - v1.2.0

Published by probil over 6 years ago

  • feat: move to babel-preset-env instead of babel-preset-es2015 (which is deprecated now)
  • chore: enable CircleCI integration to check PRs before merge
  • chore: setup success build check on CI
  • chore bootstrap eslint to enforce code style based on airbnb configuration
  • chore: bootstrap test environment using jest
  • chore: setup test run on CI
  • refactor: update code based on eslint rules (auto-fix)
  • chore: add script for release generation
  • chore: add script for release note generation
vue-socket.io-extended - v1.1.0

Published by probil over 6 years ago

  • build with rollup instead of webpack
  • add package-lock to git, better npm@5 support
  • move babel config to .babelrc file
  • expose ESM build as well as UMD
vue-socket.io-extended - v1.0.0

Published by probil over 6 years ago

  • initial fork from vue-socket.io
  • update repo and package file
  • publish on npm
Package Rankings
Top 2.02% on Npmjs.org
Top 6.67% on Proxy.golang.org
Badges
Extracted from project README
Stand With Ukraine FOSSA Status
Related Projects