2
0
mirror of https://github.com/tenrok/vue-native-websocket.git synced 2026-06-22 04:50:34 +03:00

Api updates (#7)

* move all instantiation options into the opts hash

* 2.0.0
This commit is contained in:
Nathan
2017-07-07 09:47:01 -07:00
committed by GitHub
parent b62cc5a27c
commit 46e251dcbc
8 changed files with 68 additions and 21 deletions
+25
View File
@@ -0,0 +1,25 @@
# Changelog
This package is [semantic versioned](http://semver.org/)
## 2.0.0
- [api change]: move `store` and `protocol` options from arguments to the opts` hash
e.g. for an instantiation in 1.0.0 like:
```
Vue.use(VueNativeSock, 'ws://localhost:9090', 'my-protocol', store, { format: 'json' })
```
is now, in 2.0.0:
```
Vue.use(VueNativeSock, 'ws://localhost:9090', { protocol: 'my-protocol', store: store, format: 'json' })
```
- [bugfix]: allow json message passing without a namespace
## 1.0.0
First release