You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by sp...@apache.org on 2020/07/24 12:19:11 UTC
[tinkerpop] branch master updated (f478d8f -> 32b37ac)
This is an automated email from the ASF dual-hosted git repository.
spmallette pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/tinkerpop.git.
from f478d8f Merge branch '3.4-dev'
new 7894317 Update client.js
new 25cb5e9 Update changelog CTR
new 32b37ac Merge branch '3.4-dev'
The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
CHANGELOG.asciidoc | 1 +
.../src/main/javascript/gremlin-javascript/lib/driver/client.js | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
[tinkerpop] 01/03: Update client.js
Posted by sp...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
spmallette pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tinkerpop.git
commit 7894317148b37932b9d91dc0a5e597dac47b4662
Author: Gustavo Cavalieri Fernandes <gu...@gmail.com>
AuthorDate: Thu Jul 23 12:17:39 2020 -0300
Update client.js
Following the docs present in [here](https://github.com/apache/tinkerpop/blob/master/gremlin-javascript/src/main/javascript/gremlin-javascript/README.md), getting started with Gremlin throws the following error:
```bash
/home/node/node_modules/gremlin/lib/driver/client.js:49
if (this._options.processor === 'session') {
TypeError: Cannot read property 'processor' of undefined
at new Client (/home/node/node_modules/gremlin/lib/driver/client.js:49:23)
at new DriverRemoteConnection (/home/node/node_modules/gremlin/lib/driver/driver-remote-connection.js:53:20)
```
So, I suggest that we can pass a default empty object to the client constructor, what do you think?
---
.../src/main/javascript/gremlin-javascript/lib/driver/client.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gremlin-javascript/src/main/javascript/gremlin-javascript/lib/driver/client.js b/gremlin-javascript/src/main/javascript/gremlin-javascript/lib/driver/client.js
index 519ccb4..eaa9db1 100644
--- a/gremlin-javascript/src/main/javascript/gremlin-javascript/lib/driver/client.js
+++ b/gremlin-javascript/src/main/javascript/gremlin-javascript/lib/driver/client.js
@@ -44,7 +44,7 @@ class Client {
* @param {String} [options.session] The sessionId of Client in session mode. Defaults to null means session-less Client.
* @constructor
*/
- constructor(url, options) {
+ constructor(url, options = {}) {
this._options = options;
if (this._options.processor === 'session') {
// compatibility with old 'session' processor setting
[tinkerpop] 03/03: Merge branch '3.4-dev'
Posted by sp...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
spmallette pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tinkerpop.git
commit 32b37ac4e58fa8916553510ede4214144029ba42
Merge: f478d8f 25cb5e9
Author: Stephen Mallette <sp...@genoprime.com>
AuthorDate: Fri Jul 24 07:15:10 2020 -0400
Merge branch '3.4-dev'
CHANGELOG.asciidoc | 1 +
.../src/main/javascript/gremlin-javascript/lib/driver/client.js | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
[tinkerpop] 02/03: Update changelog CTR
Posted by sp...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
spmallette pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tinkerpop.git
commit 25cb5e9a2e51670d185b9b6c42a40e04e62f2327
Author: Stephen Mallette <sp...@genoprime.com>
AuthorDate: Fri Jul 24 07:14:52 2020 -0400
Update changelog CTR
---
CHANGELOG.asciidoc | 1 +
1 file changed, 1 insertion(+)
diff --git a/CHANGELOG.asciidoc b/CHANGELOG.asciidoc
index 78e0704..1051d68 100644
--- a/CHANGELOG.asciidoc
+++ b/CHANGELOG.asciidoc
@@ -26,6 +26,7 @@ image::https://raw.githubusercontent.com/apache/tinkerpop/master/docs/static/ima
* Fixed bug in `has(T,Traversal)` where results were not being returned.
* Fixed bug in `select(Traversal)` where side-effects were getting lost if accessed from the child traversal.
* Fixed authorization bug when using `WsAndHttpChannelizerHandler` with keep-alive enabled.
+* Fixed bug in option-less construction of `DriverRemoteConnection` in Javascript.
* Bumped Jackson to 2.9.10.5.
* Improved sampling distribution for global scope `sample()` operations.