Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
225 commits
Select commit Hold shift + click to select a range
64fc34c
Refactor network wrappers (#243)
Sep 29, 2017
f57b182
merge from 5.x
scottinet Nov 10, 2017
71b29f8
Harmonize values returned by memory storage functions
scottinet Nov 10, 2017
fb62939
Merge pull request #257 from kuzzleio/merge_from_5.x
scottinet Nov 10, 2017
1aa77c6
set exposed properties as described in the specs
scottinet Nov 21, 2017
9f99e6f
remove the "headers" property
scottinet Nov 21, 2017
214d0a3
Merge pull request #258 from kuzzleio/harmonize_ms_retval
scottinet Nov 21, 2017
25ffe27
change kuzzle.offlineQueue to read-only
scottinet Nov 23, 2017
21eaf6d
update license file
scottinet Nov 23, 2017
026ba02
simplify room subscription workflow
scottinet Nov 28, 2017
0b5b194
fix #53
scottinet Nov 28, 2017
99cb0d3
remove unused unsubscribe option
scottinet Nov 28, 2017
7ce6b32
unsetJwt should not trigger any event
scottinet Nov 29, 2017
ad5e54f
Fix exposed object properties (#259)
scottinet Nov 29, 2017
9d2396a
Merge remote-tracking branch 'origin/6.x' into remove_room_renew
scottinet Nov 29, 2017
64d47ec
Merge remote-tracking branch 'origin/remove_room_renew' into fix_toke…
scottinet Nov 29, 2017
26dae5d
fix disconnection state value
scottinet Dec 4, 2017
e55b85c
Remove room renew (#260)
scottinet Dec 4, 2017
7c5a1fe
Merge branch '6.x' into fix_tokenexpired_event
Dec 4, 2017
45159ff
Merge pull request #261 from kuzzleio/fix_tokenexpired_event
benoitvidis Dec 4, 2017
b2c92aa
add the addOnceListener event emitter method
scottinet Dec 5, 2017
90651f6
return result in case of partial errors for mupdate/mcreate/mdelete m…
Dec 5, 2017
aa110f5
add `stopTime` as optional argument for `getStatistics()`
Dec 6, 2017
fd98e63
fix event emitter
scottinet Dec 7, 2017
709ae8f
updated built version
scottinet Dec 7, 2017
a83a70e
remove auto-connection option
scottinet Dec 7, 2017
1eb210f
kuzzle.connect should not return anything
scottinet Dec 7, 2017
6388a95
kuzzle.connect should not return anything (unit tests update)
scottinet Dec 7, 2017
c7fe999
bugfixes
scottinet Dec 11, 2017
9765434
bugfixes
scottinet Dec 11, 2017
4307a72
Merge remote-tracking branch 'origin/custom_EventEmitter' into remove…
scottinet Dec 11, 2017
df4193e
fix unit tests
Dec 11, 2017
8f84d43
Merge pull request #263 from kuzzleio/handle-partial-errors
scottinet Dec 18, 2017
7f56496
Merge pull request #264 from kuzzleio/getStats-with-stop-time
scottinet Dec 18, 2017
bb2395e
Merge remote-tracking branch 'origin/6.x' into custom_EventEmitter
scottinet Dec 18, 2017
5d420c8
Merge remote-tracking branch 'origin/custom_EventEmitter' into remove…
scottinet Dec 18, 2017
60814dd
Merge pull request #265 from kuzzleio/custom_EventEmitter
scottinet Dec 18, 2017
28a9beb
Merge pull request #266 from kuzzleio/remove_autoConnect
scottinet Dec 18, 2017
e88f328
SearchResult API clean up (#267)
scottinet Dec 19, 2017
c17cfd9
use volatiles instead of request ids to track notifications from our …
scottinet Jan 23, 2018
8145add
Merge pull request #269 from kuzzleio/subscribeToSelf_with_volatiles_v6
jenow Feb 14, 2018
6239024
#5
Nov 14, 2017
1ac5b6c
#5
Nov 14, 2017
e284025
#5: implement HTTP Wrapper methods
Nov 14, 2017
2763efc
fix jsdoc comments
Nov 15, 2017
83ed467
#5: finalize HTTP methods:
Nov 15, 2017
54ebee1
throw exceptions for not implemented subscribe/unsubscribe methods
Nov 15, 2017
1bcd5f6
report changes from https://github.com/kuzzleio/sdk-javascript/pull/259
Dec 4, 2017
ebc7e98
wip
Feb 21, 2018
090fe1d
cleanup network state mode
Feb 21, 2018
4df9197
HTTP support: add unit tests
Feb 23, 2018
7456676
cleanup dependencies
Feb 23, 2018
a715b8c
clean... (deleteIndex method should be added in another PR instead of…
Feb 23, 2018
1a0c2b2
rename test file
Feb 26, 2018
dae40a2
HTTP network: add unit tests for constructor
Feb 26, 2018
e085819
fix eslint
Feb 26, 2018
5f61301
Merge branch 'master' into 6.x
Feb 28, 2018
c37064d
volatile data can also be null
scottinet Mar 2, 2018
95e0535
packages upgrade
benoitvidis Mar 5, 2018
85d45db
fix test stack
benoitvidis Mar 5, 2018
52c50fb
webpack 4 actually
benoitvidis Mar 5, 2018
89d54dd
upgrade babel preset
benoitvidis Mar 5, 2018
9901821
uws does not need peer dependencies
benoitvidis Mar 6, 2018
712207b
query as promise
benoitvidis Mar 6, 2018
6ab9de8
auth.checkToken
jenow Mar 7, 2018
340c9be
auth.createMyCredentials
jenow Mar 7, 2018
6cf0806
auth.credentialsExist
jenow Mar 7, 2018
cf3806e
wip
jenow Mar 7, 2018
1ed2ea0
Merge remote-tracking branch 'origin/feature/query-as-promise' into #…
jenow Mar 7, 2018
5a6eceb
auth.getCurrentUser
jenow Mar 8, 2018
bfb53b8
auth.getCurrentUser
jenow Mar 8, 2018
45972b3
auth.getMyCredentials
jenow Mar 8, 2018
08c2394
auth.getMyCredentials
jenow Mar 8, 2018
0613d3e
auth.getMyRights
jenow Mar 8, 2018
89ed57b
auth.getStrategies
jenow Mar 8, 2018
7728ce0
auth.login
jenow Mar 8, 2018
aa9ae69
auth.logout
jenow Mar 8, 2018
69bef75
auth.updateMyCredentials
jenow Mar 8, 2018
2a2502e
Merge pull request #287 from kuzzleio/feature/webpack3
scottinet Mar 9, 2018
0cc760c
Merge remote-tracking branch 'origin/6.x' into 5-http-protocol
scottinet Mar 9, 2018
ddac4a1
add mock-require dependency back (merge mishap)
scottinet Mar 9, 2018
7c54ee4
Merge pull request #271 from kuzzleio/5-http-protocol
scottinet Mar 9, 2018
308b316
Merge remote-tracking branch 'origin/6.x' into volatile_can_be_null
scottinet Mar 9, 2018
95e692b
Merge pull request #286 from kuzzleio/volatile_can_be_null
benoitvidis Mar 9, 2018
a860b80
auth.updateSelf
jenow Mar 12, 2018
8384c7b
auth.validateMyCredentials
jenow Mar 12, 2018
a715daf
fixed some tests
jenow Mar 13, 2018
ccfe892
Merge remote-tracking branch 'origin/6.x' into #102-auth-ctrl
jenow Mar 13, 2018
89aee45
merge 6.x
jenow Mar 13, 2018
b518923
fix lint errors
jenow Mar 13, 2018
f031fd9
emit loginAttempt even if no jwt is given (login as anonymous)
jenow Mar 16, 2018
e420236
explicit arguments for auth.login
jenow Mar 16, 2018
29972a9
login triggers loginAttempt
jenow Mar 16, 2018
2eae7d7
fix lint errorrs
jenow Mar 16, 2018
4f24bd9
Merge pull request #288 from kuzzleio/#102-auth-ctrl
jenow Mar 16, 2018
1e5b4c7
SDK Refactor : match API structure (#290)
Jun 5, 2018
fc4e896
caretaking
scottinet Jun 29, 2018
e6458ef
fix http send
Aschen Jul 3, 2018
dc8c7ea
fix tests
Aschen Jul 4, 2018
751a74e
fix http send (#295)
Aschen Jul 4, 2018
6527fad
Revert "fix http send (#295)"
Aschen Jul 4, 2018
a46edec
Merge pull request #296 from kuzzleio/revert-295-fix-http-send
Aschen Jul 4, 2018
dc3e992
Merge branch 'fix-http-send' into 6.x
Aschen Jul 4, 2018
b880c82
Allow passing a custom network object to Kuzzle SDK constructor (#294)
Jul 4, 2018
256703f
update npm dependencies (#297)
Jul 10, 2018
b56ed5e
[6.x] collection.create can be used with a mapping (#301)
scottinet Jul 25, 2018
2d99c40
kuzzle.query returns the full response object from Kuzzle backend (#305)
Aug 14, 2018
ba27a31
fix #292: do not send unsafe headers in browser mode (#306)
Aug 22, 2018
f3a7a0e
KZL 174 - Update README for SDK V6 (#308)
Aschen Sep 12, 2018
1c1e274
Release 6.0.0-beta-1 (#311)
scottinet Sep 13, 2018
53159bb
Merge remote-tracking branch 'origin/6-beta' into 6-dev
scottinet Sep 13, 2018
7d54a8f
Rename deleteSpecification to deleteSpecifications
Aschen Sep 13, 2018
c821092
Merge pull request #312 from kuzzleio/fix-delete-specification-naming
jenow Sep 17, 2018
75f3e63
remove unused properties (#313)
benoitvidis Sep 19, 2018
447fb6f
fix jwt in query (#315)
jenow Sep 25, 2018
362a326
Release 6.0.0-beta-2 (#316)
jenow Sep 26, 2018
8f63642
Merge branch '6-beta' into 6-dev
scottinet Sep 26, 2018
76a39d9
document:delete to return the id of the deleted document (#317)
benoitvidis Sep 27, 2018
6c7d805
KZL-547 - Update validateSpecifications signature to take index and c…
Aschen Oct 8, 2018
01ff73a
Fix return value for index#list and index#mDelete (#320)
Aschen Oct 10, 2018
428cace
deleteByQuery - return value (#322)
benoitvidis Oct 11, 2018
4b22e50
SearchResult - pseudo-private vars and aggregations
benoitvidis Oct 18, 2018
1e54073
Merge pull request #323 from kuzzleio/SearchResult-pseudo-private
jenow Oct 22, 2018
c605fff
Fix realtime publish return
Aschen Oct 25, 2018
9f15f7f
Remove realtime deprecated methods
Aschen Oct 26, 2018
812116e
Don't add null or undefined argument to http queryArgs
Aschen Oct 29, 2018
391bc8c
Merge pull request #328 from kuzzleio/fix-realtime-publish-return
etrousset Oct 30, 2018
4757ab8
merge ok
Aschen Oct 30, 2018
3406058
Merge branch '6-dev' into fix-null-id-in-arguments
etrousset Oct 30, 2018
1fbe6ef
Merge pull request #330 from kuzzleio/fix-null-id-in-arguments
etrousset Oct 30, 2018
ad75f82
Merge branch '6-dev' into remove-deprecated-method
Aschen Oct 30, 2018
94eb653
Merge pull request #329 from kuzzleio/remove-deprecated-method
jenow Oct 30, 2018
8cd9f2c
realtime: fix bug (#332)
etrousset Oct 31, 2018
35fd37c
realtime: bug fix (#333)
etrousset Oct 31, 2018
5b9469b
Release 6.0.0-beta-3
Aschen Nov 2, 2018
d9b850a
[babel] upgrade configuration to babel 7
scottinet Nov 7, 2018
0afdfd5
[babel] move dependency to dev
scottinet Nov 7, 2018
2b0cb6a
[babel] upgrade configuration to babel 7
scottinet Nov 7, 2018
6a416bf
[babel] move dependency to dev
scottinet Nov 7, 2018
c74dff7
Change incoherent method returns (#331)
Aschen Nov 7, 2018
720c0a4
fix searchResult next (#327)
benoitvidis Nov 8, 2018
2386fa8
SearchResult - fix scroll next policy (#335)
benoitvidis Nov 8, 2018
f2f285b
Harmonize SDK (#326)
Aschen Nov 14, 2018
9bb5429
[bugfix] 'ms:sort' needs its options in the request's body
scottinet Nov 16, 2018
fd74a41
Merge pull request #337 from kuzzleio/fix-ms-sort
Njuelle Nov 16, 2018
6aee011
[bugfix] fix undefined "volatile.sdkInstanceId" in sent queries (#338)
scottinet Nov 17, 2018
eeebd6b
Functional tests (#336)
benoitvidis Nov 19, 2018
8428770
Move offline queue from protocol to kuzzle (#340)
benoitvidis Dec 12, 2018
206d140
Expose protocols classes (#341)
Aschen Dec 13, 2018
34c0909
Merge remote-tracking branch 'origin/6-dev' into 6-beta
scottinet Dec 19, 2018
d14ae29
Autobuild after npm install (#344)
scottinet Dec 19, 2018
8716be7
Fix 343 unhandled rejection on connect (#345)
Aschen Dec 19, 2018
27fa579
Put document:create optional args in last position (#348)
Aschen Dec 21, 2018
7390dfb
[build] update webpack build config to fix raw web usage (#349)
Njuelle Dec 26, 2018
9ee6f71
Release 6.0.0-beta-4 (#351)
Aschen Dec 27, 2018
6d0104c
Have host param mandatory for protocols (#350)
Aschen Dec 27, 2018
a1169cd
fix conflicts
Njuelle Jan 4, 2019
df42fa2
[npm] Add prepulish script (#352)
Njuelle Jan 4, 2019
9ca0529
Add method to use custom controllers in the SDK (#353)
Aschen Jan 7, 2019
db802ae
Merge branch '6-beta' into 6-dev
etrousset Jan 7, 2019
e35eb66
6.0.0 beta 5 proposal (#354)
Aschen Jan 7, 2019
8519d8c
[babel] replace the deprecated preset
scottinet Jan 8, 2019
f50a18a
[compat] remove Symbol usages (incompatible with react native)
scottinet Jan 8, 2019
8654581
[webpack] fix broken babel loader configuration
scottinet Jan 8, 2019
e4b1d61
[babel] isolate babel configuration to its own config file
scottinet Jan 8, 2019
4864624
[doc] update the cjs/import examples
scottinet Jan 8, 2019
93ded12
[babel] specific target configurations
scottinet Jan 9, 2019
075b341
[babel] specific target configurations
scottinet Jan 9, 2019
74fc7ab
[webpack] make distinct packages for both node/react and browsers
scottinet Jan 9, 2019
5623c42
[deps] remove unused dependency
scottinet Jan 9, 2019
bf947a4
[react] fix packaging
scottinet Jan 9, 2019
534b003
wtf
scottinet Jan 9, 2019
f22adb7
fix webpack build when installed as a dependency
scottinet Jan 9, 2019
cc1d366
Update webpack.config.js
xbill82 Jan 10, 2019
23bec1f
[webpack] fix bad json format
scottinet Jan 10, 2019
e130e2a
Merge pull request #355 from kuzzleio/react-native-compat
xbill82 Jan 10, 2019
343ed3e
fix npm install link
Aschen Jan 15, 2019
7f91d5b
Merge branch '6-dev' of github.com:kuzzleio/sdk-javascript into 6-dev
Aschen Jan 15, 2019
a0f419e
Fixed call to checkToken after reconnection (#359)
xbill82 Jan 15, 2019
ca1a8a1
Fix 343 unhandled rejection on connect (#345)
Aschen Dec 19, 2018
fb9c20c
Put document:create optional args in last position (#348)
Aschen Dec 21, 2018
cdef983
[build] update webpack build config to fix raw web usage (#349)
Njuelle Dec 26, 2018
cb57a3c
Have host param mandatory for protocols (#350)
Aschen Dec 27, 2018
2de9750
Add method to use custom controllers in the SDK (#353)
Aschen Jan 7, 2019
23e0739
fix npm install link
Aschen Jan 15, 2019
a37b867
[babel] replace the deprecated preset
scottinet Jan 8, 2019
9648f3d
[compat] remove Symbol usages (incompatible with react native)
scottinet Jan 8, 2019
df88a7f
[webpack] fix broken babel loader configuration
scottinet Jan 8, 2019
d68b0cf
[babel] isolate babel configuration to its own config file
scottinet Jan 8, 2019
6192fe6
[doc] update the cjs/import examples
scottinet Jan 8, 2019
dfe7559
[babel] specific target configurations
scottinet Jan 9, 2019
fe54dc2
[babel] specific target configurations
scottinet Jan 9, 2019
77fd9d4
[webpack] make distinct packages for both node/react and browsers
scottinet Jan 9, 2019
e862ae9
[deps] remove unused dependency
scottinet Jan 9, 2019
c7815fb
[react] fix packaging
scottinet Jan 9, 2019
43e9e7f
wtf
scottinet Jan 9, 2019
23b1912
fix webpack build when installed as a dependency
scottinet Jan 9, 2019
8d2aac5
Update webpack.config.js
xbill82 Jan 10, 2019
0991439
[webpack] fix bad json format
scottinet Jan 10, 2019
2229e25
Fixed call to checkToken after reconnection (#359)
xbill82 Jan 15, 2019
8c8b8ac
Merge branch '6-dev' of github.com:kuzzleio/sdk-javascript into 6-dev
scottinet Jan 17, 2019
e8aa279
Release 6.0.0-beta-6
scottinet Jan 17, 2019
1615698
Merge pull request #363 from kuzzleio/6.0.0-beta-6-proposal
scottinet Jan 17, 2019
d1f54e2
[ci] update npm api key
scottinet Jan 17, 2019
34d2804
[WebSocket] allow passing HTTP headers to the constructor (#364)
scottinet Jan 24, 2019
70904a5
Allow async offlineQueueLoader functions (#365)
scottinet Jan 28, 2019
e21b115
[es7] remove async/await (#368)
scottinet Feb 6, 2019
6115d24
[dependencies] minor update
scottinet Feb 14, 2019
6397ca7
don't send jwt when doing the login action (#372)
jenow Feb 14, 2019
d9c2832
Properly handle tokenExpired events (#374)
scottinet Feb 14, 2019
1e1376d
Addlistener after connect (#369)
Aschen Feb 18, 2019
aa88cf7
[KZL-996] Save Kuzzle API routes in a json file (#370)
alexandrebouthinon Feb 18, 2019
5898461
WebSocket: fix error object on connection error (#373)
scottinet Feb 19, 2019
08a8aff
KZL 1001 - Add KuzzleError (#375)
Aschen Feb 19, 2019
3ae94d5
[ci] Fix deploy on npm for beta version
alexandrebouthinon Feb 19, 2019
ff8fbdc
Merge branch '6-beta' into 6-dev
alexandrebouthinon Feb 19, 2019
915d6f9
Release 6.0.0-beta-6
scottinet Jan 17, 2019
e3e87ff
Release 6.0.0-beta-7
alexandrebouthinon Feb 19, 2019
14af725
Merge branch '6-beta' into 6-dev
alexandrebouthinon Feb 19, 2019
e1629cc
[fix] Fix deploy
alexandrebouthinon Feb 19, 2019
802916f
Merge branch '6-beta' into 6-dev
alexandrebouthinon Feb 20, 2019
bb68156
[ci] Add empty .npmignore to push dist on npmjs (#376)
alexandrebouthinon Feb 20, 2019
f368979
Merge branch 'master' into 6.0.0-proposal
alexandrebouthinon Feb 21, 2019
c532349
[readme] Improve README
alexandrebouthinon Feb 21, 2019
5acdeb7
Apply suggestions from code review
Aschen Feb 22, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .babelrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
module.exports = {
presets: [
[
'@babel/env',
{
targets: {
browsers: ['> 1%']
}
}
]
],
plugins: [
['@babel/plugin-transform-for-of', {'assumeArray': true}]
]
};
29 changes: 29 additions & 0 deletions .ci/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
version: '2'

services:
kuzzle:
image: kuzzleio/kuzzle
ports:
- "7512:7512"
cap_add:
- SYS_PTRACE
depends_on:
- redis
- elasticsearch
container_name: kuzzle
environment:
- kuzzle_services__db__client__host=http://elasticsearch:9200
- kuzzle_services__internalCache__node__host=redis
- kuzzle_services__memoryStorage__node__host=redis
- NODE_ENV=production

redis:
image: redis:3.2

elasticsearch:
image: kuzzleio/elasticsearch:5.4.1
ulimits:
nofile: 65536
environment:
- cluster.name=kuzzle
- "ES_JAVA_OPTS=-Xms256m -Xmx256m"
12 changes: 12 additions & 0 deletions .ci/start_kuzzle.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/usr/bin/env bash
set -e
# Download and launch custom Kuzzle stack

docker-compose -f .ci/docker-compose.yml up -d

printf 'Waiting for Kuzzle stack to be up and running'

until $(curl --output /dev/null --silent --head --fail http://localhost:7512); do
printf '.'
sleep 5
done
5 changes: 5 additions & 0 deletions .ci/stop_kuzzle.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env bash
set -e
# Download and launch custom Kuzzle stack

docker-compose -f .ci/docker-compose.yml stop
5 changes: 1 addition & 4 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,8 @@
"vars-on-top": 2,
"yoda": [2, "never"]
},
"env": {
"browser": true
},
"parserOptions": {
"ecmaVersion": 5
"ecmaVersion": 2017
},
"extends": "eslint:recommended"
}
9 changes: 7 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,13 @@
# Node
*.log
node_modules/
.nyc_output/
examples/node_modules/
.nyc_output

# Other
.DS_STORE
*#
*~

# Compiled files
coverage/

3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "features/features"]
path = features/features
url = https://github.com/kuzzleio/sdk-features.git
146 changes: 103 additions & 43 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,43 +1,103 @@
sudo: false
language: node_js
node_js:
- 6
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-4.9
- g++-4.9
script:
- npm run build && npm test && cat ./coverage/lcov.info | ./node_modules/.bin/codecov
- chmod 755 ${TRAVIS_BUILD_DIR}/deploy.sh && sh -c "${TRAVIS_BUILD_DIR}/deploy.sh"
before_install:
- export CC="gcc-4.9" CXX="g++-4.9"
install:
- npm install
env:
global:
secure: ATb4QFGG6sPkfquAoye6BeN7u4uQ4abP8qatVK8XG3Qof+pECZwRkFPVoopO1Gb/4bQSPfapc1aGPzGuKi409v633vpDnpcgM7cHX9CPT+YQYcTePMFtq/m+5YY3WIYWM1zCFmJ+bBwQO/MtsubfGfA9EmSAAxtnJV+1JDD3Y6+NQRkQN7K+gxQozec0u1W0Oe1sJXLSKlW3JPL8iRtKcLvmIDysKtBK6X/Wg1qP2Me4reb449a0yGej3QvZDbDYJbdlh7vuFLjXJAz3yExfED8QAm8wf0p9F8emILHnkLxjumTTnGUUqDJLLu8WgkahFiyFo4jMtryhNQ0+p6WhXmEbpNIO+yMGSZPsCGbnpkhWJ1aMAT6ZhgpHf4jDZQd4ZJi02+n9tOpe+Lm2Jk2LXY8SwMk3xGtqm5sk03weTc019TUGj/NLoHNjO/vfNz3xOImD5Gck3bXWNxdrX3bjiyVsr/u77enoWu9drPCEl3JOTIwVP3mTF8R3axSFOQ8M4SI1orCMChkGMB5qExl+Gfx+MHa/jL7QKO1SFRgl1O3DbhsyFE6xiabYzwLcdbI50ypy6VJjmDd5RxK7BkDa8RumlHT1uY1FK9yRXu4XFrrw9FjF2s+xjWbliRZqXRReXk0W1Hz4zj5au3Y9YH5a/UPtB72TY+AUUWHTUPQl3SU=
deploy:
provider: npm
skip_cleanup: true
email: [email protected]
api_key:
secure: HhVL7t3f2AmIN89caY9OWpUxmqYxVbr6EvdSxO7+BQOEBE1sYoxBoU9LyrKCmZS1cb4lU2GOJd3UIyB8c8VYeFpMbywwk7ZPYPsraQPDFV6Wym7l+KmV5QWhad/1yeou/FM4IDYjYb2Ais6gwD5e/0Ow4o7nIZshMuELnxDVKVTuJsViwsMMNSEvmVYvMKoWpZm5eG0emYnzWezSKB5hK1ayczpYvE0pLmySu/b7WwJ9/2pPnM70cCvIK/gFKv0aNOzX7Or5c8hdA87M7BowfnRSgsyTyi0wQN0Oj2lSsxEcAYrP+WlegX6kX8O8o9974obqDR2S5tiiPniyqT8jgwPmuiiMvn82umUks4cb355QEPHlrO9aNNXbz9VyASjJ/tyCtTDd0J3gASiEImALc4h4YfM5u8WxpNVUwsfnRdpNUM4gWy5yHVRyPxsFajYCbcz4rYgpKdDO5ZWlZ3DOJuR4aO0QLsr/pL7e+w01kO6BK+4eG7jMS8Hb3ortg2pfqnLqIinWARIHoL4cQ4aG90Y4h0ne3MvmCgNbQKQR1VkzRg1CUKdYN5IJ2Ivf/ZJ8qL6+O2N0BNRQT64PBmECNgcf+IIkdR7LcwachFfFcX43ZvxT588e0usRnU1wfB3cQaGTWPzMw2tXXuikObbthK9Xkr0w7gDV3feejuYpmDc=
on:
repo: kuzzleio/sdk-javascript
branch: master
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/8e145155fbaaf37cffea
on_success: change
on_failure: always
on_start: never
email: false
slack:
secure: m0BEda/eXxYkil0zDZ1uNpK13kiNbb5/80I5OqDBz6X7/WH3uhWIV6q38lI929tQKz04eHAfVDaRSoPk1XwZBnb70MgcRmSG/m4/moR7BCnx7D9hHFqhNf0EfdzwEg44dCCVtD2vUvChtYV+jK74sNd4yqeq86YXi33qS7SYLS6kYnRloX0D7sQXDy14FWU2a5+hsrPX8yBoWuPjBergvK6W1dZAG+SfDywaqsrUDs+q64yEHiYV9VlvVZ/oKXZiDnVcB2hi0uulIZ8+iZaMJFEU30uCQiK6w3HG587yx3sVJmprr64ZYHKaFJD2ZAG1td6wJ1ccJsU/ruGkj4+0CeoZUYYBYXYQ4qhQl8F2QT0m+8dWqPwzYpxEoqyvGS9ioZG/YI18V2CE1pEyc72JzEv6c3AgDbtwrLH5s3ViNts7kulk3wwCzuAww+DapSV9ggezo+Bs7OGRpXwh/saeKWUCLqTkLQTjuq2dFVdo85HsC2RrLcSsZLMTOuV/A//FNBDJBlNnuneGP84zGkWGPEja0FFXvm2TS95gh1hd2PMe+QxjygOAvIMLmDmfdlWSLayUeWbqp20EdF7TUHV0dvBucga8s3UvFhIMnnGLS9vcNEIRtVornXznwdYSLbYD0mLXNtitneXTnSAxilThKtGDPOWQFkYkyoFV9FEwKO8=
on_success: never
on_failure: always
on_start: never
jobs:
include:
- stage: Tests
sudo: false
language: node_js
node_js: 8

env:
# Codecov token
secure: ATb4QFGG6sPkfquAoye6BeN7u4uQ4abP8qatVK8XG3Qof+pECZwRkFPVoopO1Gb/4bQSPfapc1aGPzGuKi409v633vpDnpcgM7cHX9CPT+YQYcTePMFtq/m+5YY3WIYWM1zCFmJ+bBwQO/MtsubfGfA9EmSAAxtnJV+1JDD3Y6+NQRkQN7K+gxQozec0u1W0Oe1sJXLSKlW3JPL8iRtKcLvmIDysKtBK6X/Wg1qP2Me4reb449a0yGej3QvZDbDYJbdlh7vuFLjXJAz3yExfED8QAm8wf0p9F8emILHnkLxjumTTnGUUqDJLLu8WgkahFiyFo4jMtryhNQ0+p6WhXmEbpNIO+yMGSZPsCGbnpkhWJ1aMAT6ZhgpHf4jDZQd4ZJi02+n9tOpe+Lm2Jk2LXY8SwMk3xGtqm5sk03weTc019TUGj/NLoHNjO/vfNz3xOImD5Gck3bXWNxdrX3bjiyVsr/u77enoWu9drPCEl3JOTIwVP3mTF8R3axSFOQ8M4SI1orCMChkGMB5qExl+Gfx+MHa/jL7QKO1SFRgl1O3DbhsyFE6xiabYzwLcdbI50ypy6VJjmDd5RxK7BkDa8RumlHT1uY1FK9yRXu4XFrrw9FjF2s+xjWbliRZqXRReXk0W1Hz4zj5au3Y9YH5a/UPtB72TY+AUUWHTUPQl3SU=

addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-4.9
- g++-4.9

before_install:
- export CC="gcc-4.9" CXX="g++-4.9"
- sudo sysctl -w vm.max_map_count=262144
- "./.ci/start_kuzzle.sh"

install:
- npm install

script:
- npm run build
- npm test

after_success:
- cat ./coverage/lcov.info | ./node_modules/.bin/codecov

- stage: "Deploy Stable release on NPM"
if: type != pull_request && branch = master
sudo: false
language: node_js
node_js: 8

addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-4.9
- g++-4.9

before_install:
- export CC="gcc-4.9" CXX="g++-4.9"

install:
- npm install

script:
- npm run build

deploy:
provider: npm
skip_cleanup: true
email: [email protected]
api_key:
secure: ktfR6QVV59uCVLTfb60JSjPxzxg+UYe63pIGxU9awh1wJW89SQqQdeshHas3ojwrNoMOVybx/L6owtD8uIB4Xlau6pd7StBAA1VQ3vLa6RxU5SUr9VOz3RhZutRnYXH28Ziz/ynr6zVnwGxTzFsxBAdQ9CVS3ErBzliTgMVI+52YRNB3mBDiccSKVNGmp2APiWiaEidrmaOFkCwWQKsAxFTbBoCsDYGGAq8a8b1i2nE+BL4JWB1D2x55xzFaciDIQONXnY9YPAAbzCHBTKAne5iD6XwFj7Zg/42fHTn16LBSG+Sw+7aWyV11U6SJYKAjm/5GZEUrbvX/mwNQ7VYcvMStiP1nnt/L/s/Y7d0K3mwdsV8U8RCctElOeqLsDqoBzQYAxHTqRqJzyFNMcbcMhZgsHH5LgQDoJdKFwzP2ysYoazgm/jnr9atvlqucjWU8madRS34S8wD0zGjYf8VXH3WMUvL5mFwtb58FRCZKO3G7QJlGE8bdZ8CfJa/1tFnYY9SA0018GaXbh0RqQw0RskbmXEKTlnDBxaRd/ZjfaOjF4JcMGGZ8hsCRjxuDFY5Ki0kKDAlDV1W40fkkqPVm8k9H8Elwt0UFZvvAdjG4c+gV0zdAKHQ7P6uKvXiDlsKRHulE3Ztpo6jqGN69s7aLm6DKNVsaE4cNmmUOv3ODrM4=
on:
repo: kuzzleio/sdk-javascript
all_branches: true
condition: $TRAVIS_BRANCH = master

- stage: "Deploy Beta release on NPM"
if: type != pull_request && branch =~ ^[0-9]+-beta$
sudo: false
language: node_js
node_js: 8

addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-4.9
- g++-4.9

before_install:
- export CC="gcc-4.9" CXX="g++-4.9"

install:
- npm install

script:
- npm run build

deploy:
- provider: npm
skip_cleanup: true
email: [email protected]
tag: beta
api_key:
secure: ktfR6QVV59uCVLTfb60JSjPxzxg+UYe63pIGxU9awh1wJW89SQqQdeshHas3ojwrNoMOVybx/L6owtD8uIB4Xlau6pd7StBAA1VQ3vLa6RxU5SUr9VOz3RhZutRnYXH28Ziz/ynr6zVnwGxTzFsxBAdQ9CVS3ErBzliTgMVI+52YRNB3mBDiccSKVNGmp2APiWiaEidrmaOFkCwWQKsAxFTbBoCsDYGGAq8a8b1i2nE+BL4JWB1D2x55xzFaciDIQONXnY9YPAAbzCHBTKAne5iD6XwFj7Zg/42fHTn16LBSG+Sw+7aWyV11U6SJYKAjm/5GZEUrbvX/mwNQ7VYcvMStiP1nnt/L/s/Y7d0K3mwdsV8U8RCctElOeqLsDqoBzQYAxHTqRqJzyFNMcbcMhZgsHH5LgQDoJdKFwzP2ysYoazgm/jnr9atvlqucjWU8madRS34S8wD0zGjYf8VXH3WMUvL5mFwtb58FRCZKO3G7QJlGE8bdZ8CfJa/1tFnYY9SA0018GaXbh0RqQw0RskbmXEKTlnDBxaRd/ZjfaOjF4JcMGGZ8hsCRjxuDFY5Ki0kKDAlDV1W40fkkqPVm8k9H8Elwt0UFZvvAdjG4c+gV0zdAKHQ7P6uKvXiDlsKRHulE3Ztpo6jqGN69s7aLm6DKNVsaE4cNmmUOv3ODrM4=
on:
repo: kuzzleio/sdk-javascript
all_branches: true
condition: $TRAVIS_BRANCH =~ ^[0-9]+-beta$

2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@

#### Bug fixes

- [ [#226](https://github.com/kuzzleio/sdk-javascript/pull/226) ] Network error handling ([stafyniaksacha](https://github.com/stafyniaksacha))
- [ [#226](https://github.com/kuzzleio/sdk-javascript/pull/226) ] Protocol error handling ([stafyniaksacha](https://github.com/stafyniaksacha))
- [ [#222](https://github.com/kuzzleio/sdk-javascript/pull/222) ] NetworkError payload should be an Error object ([scottinet](https://github.com/scottinet))
- [ [#214](https://github.com/kuzzleio/sdk-javascript/pull/214) ] createIndex should only return response.result ([ballinette](https://github.com/ballinette))

Expand Down
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@

END OF TERMS AND CONDITIONS

Copyright 2015 Kaliop SAS
Copyright 2015-2017 Kuzzle

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
Loading