Skip to content

Commit abde10d

Browse files
authored
Merge pull request #403 from marklogic/develop
Merge develop with 2.0.0-rc
2 parents 1dd61bf + 8da905c commit abde10d

File tree

7 files changed

+21
-44
lines changed

7 files changed

+21
-44
lines changed

KERBEROS.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Kerberos Authentication
22

3-
In addition to basic, digest, and certificate authentication, the Node.js Client API supports [Kerberos authentication](https://docs.marklogic.com/guide/security/external-auth) for MarkLogic servers that have been so configured.
3+
In addition to basic, digest, and certificate authentication, the Node.js Client API supports [Kerberos authentication](https://docs.marklogic.com/guide/security/external-auth) on MarkLogic servers.
44

55
The Node.js Client API uses the [kerberos](https://www.npmjs.com/package/kerberos) module to support Kerberos authentication and requires (on Linux):
66

@@ -11,6 +11,6 @@ The Node.js Client API uses the [kerberos](https://www.npmjs.com/package/kerbero
1111

1212
Windows requires additional libraries. See the [kerberos documentation](https://www.npmjs.com/package/kerberos) for details.
1313

14-
The [kerberos](https://www.npmjs.com/package/kerberos) module is listed as an optional dependency in the Node Client API package.json. To skip installing optional modules during [npm install](https://docs.npmjs.com/cli/install), use the --no-optional flag:
14+
The [kerberos](https://www.npmjs.com/package/kerberos) module is listed as an optional dependency in the Node.js Client API package.json. To skip installing optional modules during [npm install](https://docs.npmjs.com/cli/install), use the --no-optional flag:
1515

1616
npm install --no-optional

README.md

Lines changed: 12 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -13,23 +13,6 @@ from Node.js applications.
1313
* Extending the built-in services or evaluating or invoking your own JavaScript or XQuery on the server
1414
* Basic, digest, certificate, and Kerberos authentication
1515

16-
## Status
17-
18-
Release 2.0.1 of the MarkLogic Node.js Client API, tested to work with MarkLogic
19-
versions 8.0-6.3 and 9.0-1. To use the new features available in release 2.0.1,
20-
you will need to run MarkLogic version 9.
21-
22-
## New Features in Release 2.0.1
23-
24-
- Certificate authentication
25-
- Kerberos authentication
26-
- Geospatial region search
27-
- Double precision values for geospatial queries
28-
- Temporal operations, including protect and wipe
29-
- Metadata values
30-
- Specifying a minimum distance for near queries
31-
- Bug fixes and documentation enhancements
32-
3316
## Getting Started
3417

3518
You can install the marklogic package as a dependency for your Node.js project
@@ -67,21 +50,14 @@ db.createCollection(
6750
});
6851
```
6952

70-
Other calls can create additional documents for the same collection.
71-
7253
### Resources
7354

74-
Here are some online resources that walk you through working with MarkLogic
75-
using the Node.js Client API:
76-
77-
* [MarkLogic Node.js Client API](http://developer.marklogic.com/features/node-client-api)
78-
* [Introduction to the Node.js Client API - Getting Started](http://docs.marklogic.com/guide/node-dev/intro#id_68052)
79-
80-
The instructions describe:
81-
82-
* installing the MarkLogic database and setting up an admin user
83-
* installing the Node.js Client API using npm
84-
* working through some initial examples to get familiar with the API
55+
* [Node.js Client API Documentation](https://docs.marklogic.com/jsdoc/index.html)
56+
* [Feature Overview of the Node.js Client API](http://developer.marklogic.com/features/node-client-api)
57+
* [The Node.js Client API in 5 Minutes](https://developer.marklogic.com/learn/node-in-5-minutes)
58+
* [Node.js Application Developer's Guide](http://docs.marklogic.com/guide/node-dev)
59+
* [MarkLogic Training for the Node.js Client API](http://www.marklogic.com/training-courses/developing-marklogic-applications-i-node-js/)
60+
* [MarkLogic On-Demand Courses for Node.js](https://mlu.marklogic.com/ondemand/index.xqy?q=Series%3A%22Node.js%22)
8561

8662
### Code Examples
8763

@@ -90,15 +66,16 @@ in the online resources. To run the examples, follow the instructions here:
9066

9167
examples/1readme.txt
9268

93-
### Generating Documentation
69+
### Generating Documentation Locally
9470

95-
After installing the project dependencies (including the gulp build system),
96-
you can build the reference documentation locally from the root directory of the
97-
marklogic package:
71+
After installing the project dependencies (including the [gulp](http://gulpjs.com/)
72+
build system), you can build the reference documentation locally from the root
73+
directory of the marklogic package:
9874

9975
gulp doc
10076

101-
The documentation is generated in a doc subdirectory.
77+
The documentation is generated in a doc subdirectory. The documentation can also be
78+
accessed online [here](https://docs.marklogic.com/jsdoc/index.html).
10279

10380
### Running Tests
10481

lib/patch-builder.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ var qb = require('./query-builder.js');
2222

2323
/**
2424
* A helper for building the definition of a document patch. The helper is
25-
* created by the {@link module:marklogic.patchBuilder} function.
25+
* created by the {@link marklogic.patchBuilder} function.
2626
* @namespace patchBuilder
2727
*/
2828

lib/query-builder.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ function addIndex(query, index, isContainer) {
7272

7373
/**
7474
* A helper for building the definition of a document query. The helper is
75-
* created by the {@link module:marklogic.queryBuilder} function.
75+
* created by the {@link marklogic.queryBuilder} function.
7676
* @namespace queryBuilder
7777
*/
7878

@@ -3871,7 +3871,7 @@ util.inherits(TrueQueryDef, QueryDef);
38713871
* and the number of documents in the slice. (A slice is also sometimes
38723872
* called a page of search results.)
38733873
* By default, the slice uses array slice mode, but you can switch
3874-
* to legacy slice mode with {@link module:marklogic.setSliceMode}. Legacy
3874+
* to legacy slice mode with {@link marklogic.setSliceMode}. Legacy
38753875
* slice mode is deprecated and will be removed in the next major release.
38763876
* @method
38773877
* @since 1.0

lib/values-builder.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ var qb = require('./query-builder.js').builder;
4040
/**
4141
* A helper for building the definition of a values query, which projects
4242
* tuples (aka rows) of values out of documents. The helper is created by
43-
* the {@link module:marklogic.valuesBuilder} function. You must call
43+
* the {@link marklogic.valuesBuilder} function. You must call
4444
* the {@link valuesBuilder#fromIndexes} function to supply the required
4545
* clause of the values query before calling the
4646
* {@link valuesBuilder.BuiltQuery#where},

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"name": "marklogic",
44
"description": "The official MarkLogic Node.js client API.",
55
"homepage": "http://github.com/marklogic/node-client-api",
6-
"version": "2.0.0-ea4",
6+
"version": "2.0.1",
77
"license": "Apache-2.0",
88
"main": "./lib/marklogic.js",
99
"keywords": [

test-complete/nodejs-documents-transaction-timelimit.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ describe('Document transaction test', function() {
5252
*/
5353
var tid = 0;
5454
it('should commit the write document', function(done) {
55-
db.transactions.open({transactionName: "nodeTransaction", timeLimit: 1})
55+
db.transactions.open({transactionName: "nodeTransaction", timeLimit: 2})
5656
.result(function(response) {
5757
tid = response.txid;
5858
return db.documents.write({
@@ -70,7 +70,7 @@ it('should commit the write document', function(done) {
7070
.then(function(response) {
7171
//console.log(JSON.stringify(response, null, 2));
7272
response['transaction-status']['transaction-name'].should.equal('nodeTransaction');
73-
response['transaction-status']['time-limit'].should.equal('1');
73+
response['transaction-status']['time-limit'].should.equal('2');
7474
done();
7575
}, done);
7676
/*.catch(function(error) {

0 commit comments

Comments
 (0)