Releases: probil/vue-socket.io-extended
Releases · probil/vue-socket.io-extended
v3.0.0
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
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
v2.0.1
v2.0.0
v1.2.1
v1.2.0
- feat: move to
babel-preset-env
instead ofbabel-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