Skip to content

Commit 93ba734

Browse files
committed
Merge remote-tracking branch 'origin/development', v0.4.1
2 parents 1c122ff + e54b1fc commit 93ba734

File tree

4 files changed

+8
-12
lines changed

4 files changed

+8
-12
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ JavaScript client for the openEO API.
44

55
[![Build Status](https://travis-ci.org/Open-EO/openeo-js-client.svg?branch=master)](https://travis-ci.org/Open-EO/openeo-js-client)
66

7-
The version of this client is **0.4.0** and supports **openEO API version 0.4.x**. Legacy versions are available as releases.
7+
The version of this client is **0.4.1** and supports **openEO API version 0.4.x**. Legacy versions are available as releases.
88

99
## Usage
1010

@@ -79,7 +79,7 @@ try {
7979
}
8080
```
8181

82-
More information can be found in the [**JS client documentation**](https://open-eo.github.io/openeo-js-client/0.4.0/).
82+
More information can be found in the [**JS client documentation**](https://open-eo.github.io/openeo-js-client/0.4.1/).
8383

8484
## Roadmap
8585

openeo.js

+4-8
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,9 @@ class OpenEO {
5757
}
5858
} catch(error) {
5959
/** @todo We should replace the fallback in a 1.0 or so. */
60-
if (error.response && [403,404,405,501].includes(error.response.status)) {
61-
console.warn("DEPRECATED: Can't read well-known document, connecting directly to the specified URL as fallback mechanism.");
62-
}
63-
else {
64-
throw error;
65-
}
60+
console.warn("DEPRECATED: Can't read well-known document, connecting directly to the specified URL as fallback mechanism.", error);
6661
}
62+
6763

6864
return await OpenEO.connectDirect(url, authType, authOptions);
6965
}
@@ -116,7 +112,7 @@ class OpenEO {
116112
* @returns {string} Version number (according to SemVer).
117113
*/
118114
static clientVersion() {
119-
return "0.4.0";
115+
return "0.4.1";
120116
}
121117

122118
}
@@ -1279,7 +1275,7 @@ class File extends BaseEntity {
12791275
if (typeof statusCallback === 'function') {
12801276
options.onUploadProgress = (progressEvent) => {
12811277
let percentCompleted = Math.round( (progressEvent.loaded * 100) / progressEvent.total );
1282-
statusCallback(percentCompleted);
1278+
statusCallback(percentCompleted, this);
12831279
};
12841280
}
12851281

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@openeo/js-client",
3-
"version": "0.4.0",
3+
"version": "0.4.1",
44
"author": "openEO Consortium",
55
"contributors": [
66
{

tests/earthengine.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ describe('With earth-engine-driver', () => {
465465
// Start job
466466
await expect(job.startJob()).resolves.toBeTruthy();
467467
var jobdetails = await job.describeJob();
468-
expect(jobdetails.status).toBe('queued');
468+
expect(['queued', 'running']).toContain(jobdetails.status);
469469

470470
await waitForExpect(async () => {
471471
var jobdetails = await job.describeJob();

0 commit comments

Comments
 (0)