Comparing version 2.7.0 to 2.8.0
# CHANGELOG | ||
## 2.8.0 | ||
#### New Functionality | ||
- [#621](https://github.com/marklogic/node-client-api/issues/621)- Data Movement in Node.js API - Ingesting Documents using writeAll api. | ||
#### Improvements and Bug Fixes | ||
- [#270](https://github.com/marklogic/node-client-api/issues/270) - Calling methods on resources with arg list throws error | ||
- [#601](https://github.com/marklogic/node-client-api/issues/601) - Regenerate Optic expression functions | ||
## 2.7.0 | ||
@@ -9,5 +19,4 @@ #### New Functionality | ||
- [#567](https://github.com/marklogic/node-client-api/issues/567) - Dynamic interface to Data Service endpoints | ||
- [#569](https://github.com/marklogic/node-client-api/issues/569) - Optic enhancements in 10.0-7 | ||
- [#569](https://github.com/marklogic/node-client-api/issues/569) - Optic enhancements in 10.0-7 - Server release 10.0-7 or above required | ||
#### Improvements and Bug Fixes | ||
@@ -14,0 +23,0 @@ - [#485](https://github.com/marklogic/node-client-api/issues/485) - Throw error when complexValues is set with a chunked stream |
@@ -108,2 +108,15 @@ /* | ||
}}); | ||
case 'PlanSampleByOption': return Object.keys(arg).every(key => { | ||
const value = arg[key]; | ||
switch(key) { | ||
case 'limit': | ||
if (typeof value === 'number' || value instanceof Number || typeof value === 'string' || value instanceof String) { | ||
return true; | ||
} | ||
throw new Error( | ||
`${argLabel(funcName, paramName, argPos)} limit must be a number or string for ${typeLabel(paramTypes)} options` | ||
); | ||
default: | ||
return false; | ||
}}); | ||
case 'PlanSearchOption': return Object.keys(arg).every(key => { | ||
@@ -129,2 +142,26 @@ const value = arg[key]; | ||
}}); | ||
case 'PlanSparqlOption': return Object.keys(arg).every(key => { | ||
const value = arg[key]; | ||
switch(key) { | ||
case 'dedup': | ||
switch(value) { | ||
case 'on': | ||
case 'off': | ||
return true; | ||
default: | ||
throw new Error( | ||
`${argLabel(funcName, paramName, argPos)} values for dedup can only be "on" or "off" for ${typeLabel(paramTypes)} options` | ||
); | ||
} | ||
break; | ||
case 'base': | ||
if (typeof value === 'string' || value instanceof String) { | ||
return true; | ||
} | ||
throw new Error( | ||
`${argLabel(funcName, paramName, argPos)} base must be a URI string for ${typeLabel(paramTypes)} options` | ||
); | ||
default: | ||
return false; | ||
}}); | ||
case 'PlanTripleOption': return Object.keys(arg).every(key => { | ||
@@ -131,0 +168,0 @@ const value = arg[key]; |
@@ -104,3 +104,4 @@ /* | ||
/** | ||
* Invokes the get() function in the resource service. | ||
* Invokes the get() function in the resource service. The arguments | ||
* must be passed as a single object with a property for each parameter. | ||
* @method resources#get | ||
@@ -151,3 +152,4 @@ * @since 1.0 | ||
/** | ||
* Invokes the post() function in the resource service. | ||
* Invokes the post() function in the resource service. The arguments | ||
* must be passed as a single object with a property for each parameter. | ||
* @method resources#post | ||
@@ -170,3 +172,4 @@ * @since 1.0 | ||
/** | ||
* Invokes the put() function in the resource service. | ||
* Invokes the put() function in the resource service. The arguments | ||
* must be passed as a single object with a property for each parameter. | ||
* @method resources#put | ||
@@ -294,3 +297,4 @@ * @since 1.0 | ||
/** | ||
* Invokes the delete() function in the resource service. | ||
* Invokes the delete() function in the resource service. The arguments | ||
* must be passed as a single object with a property for each parameter. | ||
* @method resources#remove | ||
@@ -297,0 +301,0 @@ * @since 1.0 |
@@ -47,9 +47,2 @@ /* | ||
} | ||
class CtsPoint extends Item { | ||
constructor(ns, fn, args) { | ||
super(ns, fn, args); | ||
} | ||
} | ||
class Node extends Item { | ||
@@ -76,9 +69,2 @@ | ||
} | ||
class CtsLinestring extends Item { | ||
constructor(ns, fn, args) { | ||
super(ns, fn, args); | ||
} | ||
} | ||
class XsAnySimpleType extends Item { | ||
@@ -105,9 +91,2 @@ | ||
} | ||
class CtsBox extends Item { | ||
constructor(ns, fn, args) { | ||
super(ns, fn, args); | ||
} | ||
} | ||
class CtsRegion extends Item { | ||
@@ -347,2 +326,9 @@ | ||
} | ||
class CtsPoint extends CtsRegion { | ||
constructor(ns, fn, args) { | ||
super(ns, fn, args); | ||
} | ||
} | ||
class CtsPolygon extends CtsRegion { | ||
@@ -369,2 +355,16 @@ | ||
} | ||
class CtsLinestring extends CtsRegion { | ||
constructor(ns, fn, args) { | ||
super(ns, fn, args); | ||
} | ||
} | ||
class CtsBox extends CtsRegion { | ||
constructor(ns, fn, args) { | ||
super(ns, fn, args); | ||
} | ||
} | ||
class XsTime extends XsAnyAtomicType { | ||
@@ -371,0 +371,0 @@ |
@@ -6,3 +6,3 @@ { | ||
"homepage": "http://github.com/marklogic/node-client-api", | ||
"version": "2.7.0", | ||
"version": "2.8.0", | ||
"license": "Apache-2.0", | ||
@@ -9,0 +9,0 @@ "main": "./lib/marklogic.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
2391527
85
35062