Commit Graph
100 Commits
Author SHA1 Message Date
Julien Fontanet 4cd7025be4 chore(package): update all dependencies 2017-01-09 17:30:52 +01:00
Julien Fontanet 015ce2690d chore(package): simplify scripts 2017-01-09 15:12:04 +01:00
Julien Fontanet 3e7f552a63 chore(package): use husky instead of ghooks 2017-01-09 15:05:36 +01:00
Julien Fontanet c7e6e72ce8 fix(events watching): stop if not connected
Fixes vatesfr/xo-web#1799
2016-12-07 23:18:05 +01:00
Julien Fontanet 27e0621ad8 0.9.6 2016-11-23 09:46:33 +01:00
Julien Fontanet 1987a8c68a chore(events): rely on event.from timeout instead of inject
Should be enough.
2016-11-23 09:42:11 +01:00
Julien Fontanet 1642798aa6 0.9.5 2016-11-02 14:04:15 +01:00
Julien Fontanet 36b589c2db chore(package): various updates 2016-10-28 11:44:11 +02:00
Julien Fontanet 9b9f0e5607 fix(package): fix various URLs 2016-10-14 11:57:37 +02:00
Julien Fontanet 590f6cb7b3 chore(package): update all dependencies 2016-10-14 11:53:39 +02:00
Julien Fontanet 2c35ee11b3 fix(Xapi#_init): fix promisify() usage 2016-10-11 17:22:43 +02:00
Julien Fontanet b7f34b9da6 0.9.4 2016-08-18 09:39:28 +02:00
Julien Fontanet f82a6efda1 feat(Xapi#_watchEvents): keep-alive, inject 1 event per minute (#45)
See vatesfr/xo-web#1384
2016-08-18 09:37:31 +02:00
Julien Fontanet 556ca71c3a 0.9.3 2016-08-16 19:02:24 +02:00
Julien Fontanet 42be2d5031 fix(Xapi#_watchEvent): timeouts are in ms 2016-08-16 19:01:49 +02:00
Julien Fontanet 876e22b092 0.9.2 2016-08-16 18:09:47 +02:00
Julien Fontanet f9f9c16cb0 feat(Xapi#_watchEvents): timeout request after 10mins (#44) 2016-08-16 18:07:44 +02:00
Julien Fontanet ab6b1e2c32 chore(Xapi#_transportCall): simplify and improve code
It may even fixes some issues.
2016-08-15 16:36:18 +02:00
Julien Fontanet 8851a661c0 0.9.1 2016-08-05 10:49:08 +02:00
Julien Fontanet 2d327961da fix(objects): use $$ to avoid conflict with reserverd keys 2016-08-05 10:42:33 +02:00
Julien Fontanet 155f2fc36c fix(Xapi#_sessionCall): must pCatch when there is a predicate 2016-05-17 10:40:59 +02:00
Julien Fontanet c3dc136de4 0.9.0 2016-05-11 17:44:45 +02:00
Julien Fontanet 4cbc5c4e2f fix(memory leak): due to Bluebird#cancellable()
To be fair, it may be due to an incorrect usage of
Bluebird#cancellable().

Bluebird has been completely removed at the same occasion.
2016-05-11 17:42:01 +02:00
Julien Fontanet 68820aaf59 fix(cli): add babel-polyfill dep 2016-05-11 17:40:56 +02:00
Julien Fontanet cd65bc7683 chore: simplify _watchEvents() and _watchEventsLegacy() implementation
I finally understood ES6 Temporal Dead Zone!
2016-05-11 15:23:57 +02:00
Julien Fontanet 6e0956f09f feat(memory-test): split into inject-events 2016-05-11 11:30:49 +02:00
Julien Fontanet 1191f0ba93 feat(events): it's possible not to watch them 2016-05-10 15:35:43 +02:00
Julien Fontanet 6534ffea26 perf(objects): memoize () => this._pool 2016-05-10 14:55:19 +02:00
Julien Fontanet f9173c41d1 chore(package): remove unnecessary babel-runtime 2016-05-10 10:12:24 +02:00
Julien Fontanet a2faedcacb fix(debounce): it can be changed at runtime 2016-05-09 18:40:27 +02:00
Julien Fontanet cb56b3b9d0 chore: rewrite some code using invoke pattern 2016-05-09 18:11:14 +02:00
Julien Fontanet a61b50548c feat: memory test 2016-05-09 18:00:09 +02:00
Julien Fontanet 75ad588e0b fix(package): clarify, source-map-support & trace are prod deps 2016-05-09 14:07:55 +02:00
Julien Fontanet 6564edcc32 chore(package): update all dependencies (except Bluebird) 2016-05-04 15:54:04 +02:00
Julien Fontanet 35e8dcc3be 0.8.0 2016-04-26 08:46:22 +02:00
Julien Fontanet d1600fd058 fix: handle UUID changes (fix #5). (#7) 2016-04-26 08:46:04 +02:00
Julien Fontanet 1416fb0c71 Xapi#call(): only *.get_*() methods in readonly mode. 2016-04-19 16:32:18 +01:00
Julien Fontanet 2975db247d Do not attempt to fix JSON is parsing is successful. 2016-04-19 13:29:51 +01:00
Julien Fontanet 03eaa652ce Optional debounce for events. 2016-04-14 17:55:41 +02:00
Julien Fontanet eac29993d3 0.7.4 2016-03-22 09:37:55 +01:00
Julien Fontanet af2a9225b8 Fix invalid \t in JSON. 2016-03-09 17:41:55 +01:00
Julien Fontanet a24de7fe3f Fix type case in README. 2016-02-29 18:02:30 +01:00
Julien Fontanet 16a9f44d4d Xapi#getObject(): behave nicely when a XAPI object is passed. 2016-01-28 10:08:26 +01:00
Julien Fontanet 6fcc148105 0.7.3 2016-01-05 16:09:19 +01:00
Julien Fontanet 3485cb4ec4 Guard against null/undefined error.res. 2016-01-05 16:09:06 +01:00
Julien Fontanet b2a51bd658 0.7.2 2015-12-18 11:29:08 +01:00
Julien Fontanet e5ab1dc154 Fix opaque ref detection in arrays. 2015-12-18 11:28:58 +01:00
Julien Fontanet 6274969635 0.7.1 2015-12-18 11:23:29 +01:00
Julien Fontanet 069c430346 Fix opaque ref detection. 2015-12-18 11:23:24 +01:00
Julien Fontanet cbcc4dd21d 0.7.0 2015-12-17 16:33:55 +01:00
Julien Fontanet b4cdf4d277 Minor optimizations. 2015-12-16 14:19:30 +01:00
Julien Fontanet 716d7bfcf6 Optimize opaque refs detection. 2015-12-16 14:15:37 +01:00
Julien Fontanet b45a169a2f Read only mode can be altered after initial construction. 2015-12-16 13:58:33 +01:00
Julien Fontanet 720b9ef999 0.6.9 2015-12-03 12:40:31 +01:00
Julien Fontanet 9b9e4dddfc Gracefully fails if error.res does not exists. 2015-12-03 12:39:59 +01:00
Julien Fontanet 7434e0352f 0.6.8 2015-12-02 17:37:28 +01:00
Julien Fontanet 26d61af902 Fall back to legacy events on server failure (work around #2). 2015-12-02 17:36:29 +01:00
Julien Fontanet 5bd12c5f9e Fix XML-RPC error display. 2015-12-02 17:31:13 +01:00
Julien Fontanet e07fae4290 Revert to Babel 5 for now. 2015-12-02 17:30:42 +01:00
Julien Fontanet e304395179 Work around ESLint bug. 2015-11-11 15:58:15 +01:00
Julien Fontanet 6b83130853 Various updates. 2015-11-11 15:52:12 +01:00
Julien Fontanet 9565718699 Update deps. 2015-11-11 15:52:06 +01:00
Julien Fontanet ac11885379 0.6.7 2015-10-23 16:53:53 +02:00
Julien Fontanet 277669a13c Fix events watching XenServer < 6.0. 2015-10-23 16:53:42 +02:00
Julien Fontanet fcbc476462 Fix coding style. 2015-10-23 16:53:05 +02:00
Julien Fontanet 4944b415c7 0.6.6 2015-10-23 16:03:02 +02:00
Julien Fontanet 5da7312d2d Correctly publish .mocha.js 2015-10-23 16:02:42 +02:00
Julien Fontanet 954d19fe50 Fix objects collection in read-only mode. 2015-10-23 15:33:22 +02:00
Julien Fontanet addd86f5d2 Better stack traces in CLI. 2015-10-23 15:33:02 +02:00
Julien Fontanet 1b90223210 0.6.5 2015-10-23 14:54:02 +02:00
Julien Fontanet 95989ff63b Add find() and findAll() in CLI. 2015-10-23 14:51:25 +02:00
Julien Fontanet 799f758dce Document constructor options. 2015-10-20 15:46:50 +02:00
Julien Fontanet e075f1c08b 0.6.4 2015-10-06 14:35:33 +02:00
Julien Fontanet 7e0aa719b4 Use Collection.unset() instead of remove() to avoid exceptions. 2015-10-02 14:05:26 +02:00
Julien Fontanet 4ee352fdb2 Always use instances of Error for errors. 2015-09-14 16:45:17 +02:00
Julien Fontanet 96ea3ded4a Better stacktraces in CLI. 2015-09-14 16:02:09 +02:00
Julien Fontanet 8bbc6e9ff5 Initial read only mode (fix #3). 2015-09-14 16:01:46 +02:00
Julien Fontanet af7029812c 0.6.3 2015-09-11 15:32:16 +02:00
Julien Fontanet c517b59138 Enable testing on Node 4. 2015-09-10 15:22:09 +02:00
Julien Fontanet 5485e8a322 Test on iojs 3 and use containers on Travis. 2015-09-07 16:23:33 +02:00
Julien Fontanet 2540ac34b3 Be verbose on XML-RPC errors. 2015-08-28 08:51:38 +02:00
Julien Fontanet 76e5d41a34 Upgrade deps. 2015-08-28 08:51:15 +02:00
Julien Fontanet 2c32a4e912 0.6.2 2015-08-10 15:52:55 +02:00
Julien Fontanet c66f7235b6 Fix master change. 2015-08-10 15:51:45 +02:00
Julien Fontanet 5444381f7d 0.6.1 2015-06-30 17:20:31 +02:00
Julien Fontanet dc44679031 Optimize and clean _watchEvents() & _watchEventsLegacy(). 2015-06-30 14:24:43 +02:00
Julien Fontanet 2cbd17b745 Better traces. 2015-06-30 11:07:33 +02:00
Julien Fontanet 9ef13696d8 0.6.0 2015-06-23 10:39:55 +02:00
Julien Fontanet c3f635fd12 Ask JSON encoded values to XenApi.
The XML is therefore much faster to parse (3-4 ×).
2015-06-23 10:39:04 +02:00
Julien Fontanet e3d1380435 0.5.7 2015-06-23 10:38:41 +02:00
Julien Fontanet f83737b538 Make objects immutable. 2015-06-23 09:17:42 +02:00
Julien Fontanet bb1ea4e4d0 Optimization for empty arrays. 2015-06-23 09:13:43 +02:00
Julien Fontanet 9cb4de2ea8 Inline an only-used-once function. 2015-06-22 23:33:52 +02:00
Julien Fontanet 048cbf60ec Added tested Xen Server versions in README. 2015-06-22 16:23:38 +02:00
Julien Fontanet 36f40b4188 Support Xen Server < 6. 2015-06-22 16:19:32 +02:00
Julien Fontanet a3bba92063 Remove duplicate source-map-support. 2015-06-19 15:53:23 +02:00
Julien Fontanet ebcc6c9341 Remove unused lodash.{find,findkey,size}. 2015-06-19 15:51:22 +02:00
Julien Fontanet 95f765055e Fix invalid session handling. 2015-06-19 15:15:23 +02:00
Julien Fontanet 49aa5ffccc Password can be supplied on the command line. 2015-06-19 15:13:21 +02:00
Julien Fontanet d09d3fa80b 0.5.6 2015-06-18 13:40:18 +02:00