Skip to content

Releases: probil/vue-socket.io-extended

v3.0.0

26 May 14:18
Compare
Choose a tag to compare

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 });

v2.0.3

16 May 15:42
Compare
Choose a tag to compare

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]

v2.0.2

02 May 10:46
Compare
Choose a tag to compare

Bug fixes

  • prevent crash when Proxy API is not supported by browser (41490fc)

v2.0.1

24 Apr 10:26
Compare
Choose a tag to compare

Features

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

v2.0.0

05 Apr 21:45
Compare
Choose a tag to compare

Bracking changes

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

v1.2.1

02 Apr 18:19
Compare
Choose a tag to compare
  • 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

v1.2.0

31 Mar 20:18
Compare
Choose a tag to compare
  • 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

v1.1.0

30 Mar 11:17
Compare
Choose a tag to compare
  • 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

v1.0.0

29 Mar 20:40
Compare
Choose a tag to compare
  • initial fork from vue-socket.io
  • update repo and package file
  • publish on npm