Skip to content

Commit c2a3e74

Browse files
committed
Merge remote-tracking branch 'origin/5.x' into 3-data-validation
2 parents 3fb6dd3 + aa473dc commit c2a3e74

File tree

15 files changed

+740
-254
lines changed

15 files changed

+740
-254
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ deploy:
2424
skip_cleanup: true
2525
email: support@kuzzle.io
2626
api_key:
27-
secure: fyAUrBhmctUri2wPCcdufPME6EyFLpC4OS4wMAmUc7iNNSUl2C9On0HMkmz1JKD/+fMhlFCvQcpD6O8hNThneSqrv/PANAyz9YXblv35W9v1XbYrzm5IWQ4D30+Zg350SK6Wqn4Wr6jZkRXQKhBo8GQ5aLsDdhr7RgRBpw8p6GwDuda41K9cAOh8vbX2u6guOfeJW+jfwfXgwZUl/DEor8XkIJYcVwOF0989FT0urYf28afnxVgaj5XuIyNQMLC0R0KAsbYO0EPDy1O7a34SFUoNVBXPqP+5wYocML6mKNOFtLfvTAfIeErQc6Is3roJvZqMkcu8zzRH+OdbQfa+3+sUTPbxBAaNvcITO/z36QnYh/Swbnfxn0dD5ue2bAXseVpa55fWw0DPOQkcQ3VJ9hHQfMWTn+4EH6lqYEynSJ0KGbHqzm3Qm15fCj0s+vjvs4axGcYEpZlJaTu9o3oHYJTTDfbkk4b7nbKGQ/vDsYFTRL2yRprYlCQ8YoUnDMOB3YHxmRs7Jgxb9lbg8iD5ZMtP1+QIhUMJTI16ruxs88bRvCaTkfdTOGv0qVhgA9a00+G1XMLxCzpvI8wKgo7+GKRPUyvR2bRCQS6mHtbp6beCqPxgzyfGzg8XU09disST7spqH3E8ohWwVfgkjoBlS9+y62iaiwXRsTVXyeGJpac=
27+
secure: pGn0KMYzJGeZBR39VettlAwelab2sXFQqFi8GuTWUGXBcQDehTBUS5hI8kfJNnKGpqnUNmgZz5pRrpZseSmZA/NenrZIH9ojm6cljpdGzZNYKHRGr1kIWuBpPgQyt5Zvv3mAyW6eHrX6Y5fPRv4RFBbpQPC5L29lEdBU6r4fo0QofT0hNVEnNUrBOw4+qs/qTGlvA5mDN078+GBW1s4KmdCYT7duK7R3W/q1MZK3bkNUk068tyyaeMM3KPSOVfNbrI0mzYFD/z9Wkxv+Z6ZXlKvYSl/I6XRfS/tjgSVE1Uo5f8O5oE5s0zSkTGSNNuDBcmFpnxFVZulbg2aek1rdqGSKwoATSiQQFv5ZDR40UlP+XGNOamZaHSVZusResHAWme6TzRDZVJO1QnJ33KvqnhhVGqcT5eT5c+TDqST0cEg6eh531LcnKjreb+E+9AVSTIgU1WSfzX82BsceMYU8LA+FH3PJ51Itc4fsBgt+mMLxf/LRSF75HN7fD9bEk+FyrX65vqhcC8Ax4Nc7hwGP5EoIE1r+/1RWpYaS3Mk5/ooUcpnkzI3FFVmYKoANuI/NuJe5W+cvobwKcHDQrK43ON5CGaa/yDOu12eSDY1pikVdJxvMhKhwtbdiUcWF5L+hRITxKT60sjE4BMEWBaXTquAH4NR1g+UiX3fVEKRbIwU=
2828
on:
2929
repo: kuzzleio/sdk-javascript
3030
branch: master

README.md

Lines changed: 8 additions & 83 deletions
Original file line numberDiff line numberDiff line change
@@ -4,29 +4,29 @@
44
Official Kuzzle Javascript SDK
55
======
66

7-
This SDK version is compatible with Kuzzle 1.0.0-RC9.5 and higher
8-
97
## About Kuzzle
108

11-
For UI and linked objects developers, Kuzzle is an open-source solution that handles all the data management (CRUD, real-time storage, search, high-level features, etc).
9+
A backend software, self-hostable and ready to use to power modern apps.
1210

1311
You can access the Kuzzle repository on [Github](https://github.com/kuzzleio/kuzzle)
1412

13+
* [Basic usage](#basic-usage)
1514
* [SDK Documentation](#sdk-documentation)
15+
* [Report an issue](#report-an-issue)
1616
* [Protocols used](#protocols-used)
1717
* [Installation](#installation)
1818
* [NodeJS](#nodejs)
19-
* [Basic usage](#basic-usage-node)
2019
* [Javascript](#javascript)
21-
* [Basic usage](#basic-usage-js)
2220
* [Building manually](#building-manually)
23-
* [Migrating from SDK v1.x](#migrating-from-sdk-v1.x)
24-
* [Note](#note)
2521
* [License](#license)
2622

23+
## Basic usage
24+
25+
Follow [Kuzzle Guide](http://docs.kuzzle.io/guide/getting-started/#sdk-play-time)
26+
2727
## SDK Documentation
2828

29-
The complete SDK documentation is available [here](http://docs.kuzzle.io/sdk-reference/?javascript#kuzzle)
29+
The complete SDK documentation is available [here](http://docs.kuzzle.io/sdk-reference/)
3030

3131
## Report an issue
3232

@@ -59,47 +59,6 @@ This SDK can be used either in NodeJS or in a browser.
5959
npm install kuzzle-sdk --save
6060
```
6161

62-
#### <a name="basic-usage-node"></a> Basic usage
63-
64-
```javascript
65-
var
66-
Kuzzle = require('kuzzle-sdk'),
67-
kuzzle = new Kuzzle('serverName');
68-
69-
var myDoc = {
70-
name: 'Rick Astley',
71-
birthDate: '1966/02/06',
72-
mainActivity: 'Singer',
73-
website: 'http://www.rickastley.co.uk',
74-
comment: 'Never gonna give you up, never gonna let you down'
75-
};
76-
77-
kuzzle
78-
.dataCollectionFactory('music', 'people')
79-
.createDocument(myDoc, function(error, response) {
80-
if (error) {
81-
// handle error...
82-
}
83-
/*
84-
'response' is a KuzzleDocument object
85-
*/
86-
});
87-
88-
// In NodeJS version, you can also use Promise by suffixing functions with "Promise"
89-
kuzzle
90-
.dataCollectionFactory('music', 'people')
91-
.createDocumentPromise(myDoc)
92-
.then(response => {
93-
/*
94-
'response' is a KuzzleDocument object
95-
*/
96-
})
97-
.catch(error => {
98-
// handle error here
99-
});
100-
});
101-
```
102-
10362
### Javascript
10463

10564
Clone this github repository and run ``npm run build``. A ``dist`` directory will be created, containing a browser version of this SDK.
@@ -116,40 +75,6 @@ If you want to support older browser versions, you may load `socket.io` before K
11675
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/socket.io/1.6.0/socket.io.min.js"></script>
11776
```
11877

119-
#### <a name="basic-usage-js"></a> Basic usage
120-
121-
```javascript
122-
var
123-
kuzzle = new Kuzzle('serverName');
124-
125-
var myDoc = {
126-
name: 'Rick Astley',
127-
birthDate: '1966/02/06',
128-
mainActivity: 'Singer',
129-
website: 'http://www.rickastley.co.uk',
130-
comment: 'Never gonna give you up, never gonna let you down'
131-
};
132-
133-
kuzzle
134-
.dataCollectionFactory('music', 'people')
135-
.createDocument(myDoc, function(error, response) {
136-
if (error) {
137-
// handle error...
138-
}
139-
/*
140-
'response' is a KuzzleDocument object
141-
*/
142-
});
143-
```
144-
145-
## Migrating from SDK v1.x
146-
147-
* Kuzzle constructor has been changed. Instead of an URL, you have to provide a resolvable server name, or an IP address. If you need to specify a port different than the provided default value, you can do so using the `port` option.
148-
149-
## Note
150-
151-
* bufferutil and utf-8-validate have been moved to peerDependencies
152-
15378
## License
15479

15580
[Apache 2](LICENSE.md)

dist/kuzzle.js

Lines changed: 4 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/kuzzle.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "kuzzle-sdk",
3-
"version": "4.0.1",
3+
"version": "5.0.2",
44
"description": "Official Javascript SDK for Kuzzle",
55
"author": "The Kuzzle Team <support@kuzzle.io>",
66
"repository": {

0 commit comments

Comments
 (0)