diff --git a/@here/olp-sdk-authentication/package.json b/@here/olp-sdk-authentication/package.json index 0818394f..9dbfb05a 100644 --- a/@here/olp-sdk-authentication/package.json +++ b/@here/olp-sdk-authentication/package.json @@ -1,6 +1,6 @@ { "name": "@here/olp-sdk-authentication", - "version": "1.9.0", + "version": "1.10.0", "description": "Wrapper around the HERE Authentication and Authorization REST API obtaining short-lived access tokens that are used to authenticate requests to HERE services.", "main": "index.js", "browser": "index.web.js", @@ -49,7 +49,7 @@ }, "license": "Apache-2.0", "dependencies": { - "@here/olp-sdk-core": "^1.4.0", + "@here/olp-sdk-core": "^1.5.0", "@here/olp-sdk-fetch": "^1.9.0", "properties-reader": "^0.3.1" }, diff --git a/@here/olp-sdk-authentication/test/OAuth.test.ts b/@here/olp-sdk-authentication/test/OAuth.test.ts index c81c3b39..86c93956 100644 --- a/@here/olp-sdk-authentication/test/OAuth.test.ts +++ b/@here/olp-sdk-authentication/test/OAuth.test.ts @@ -94,7 +94,7 @@ describe("oauth-request-offline", function() { const options: RequestInit & any = fetchMock.calls()[0][1]; expect(options.headers.get("Authorization")).to.be.equal( - `OAuth oauth_consumer_key="mocked-key",oauth_nonce="mocked-nonce",oauth_signature_method="HMAC-SHA256",oauth_timestamp="1550777140",oauth_version="1.0",oauth_signature="QbfSZff9wtPYD4B0EHWNhDIdWgAa5%2BLtImIAPVR69fc%3D"` + `OAuth oauth_consumer_key="mocked-key",oauth_nonce="mocked-nonce",oauth_signature_method="HMAC-SHA256",oauth_timestamp="1550777140",oauth_version="1.0",oauth_signature="f4Em2nCgW%2FXyIduZsrMkPO09Br5NXRVlhx2NaSlpb14%3D"` ); }); diff --git a/@here/olp-sdk-core/lib.version.ts b/@here/olp-sdk-core/lib.version.ts index faf1b72a..b2833951 100644 --- a/@here/olp-sdk-core/lib.version.ts +++ b/@here/olp-sdk-core/lib.version.ts @@ -17,4 +17,4 @@ * License-Filename: LICENSE */ -export const LIB_VERSION = "1.9.0"; +export const LIB_VERSION = "1.10.0"; diff --git a/@here/olp-sdk-core/package.json b/@here/olp-sdk-core/package.json index 7e297913..ec3a1dac 100644 --- a/@here/olp-sdk-core/package.json +++ b/@here/olp-sdk-core/package.json @@ -1,6 +1,6 @@ { "name": "@here/olp-sdk-core", - "version": "1.4.0", + "version": "1.5.0", "description": "Core features of the HERE Data Platform", "main": "index.js", "browser": "index.web.js", @@ -50,7 +50,7 @@ "license": "Apache-2.0", "dependencies": { "@here/olp-sdk-fetch": "^1.9.0", - "@here/olp-sdk-dataservice-api": "^1.9.0" + "@here/olp-sdk-dataservice-api": "^1.10.0" }, "devDependencies": { "@types/chai": "^4.2.7", diff --git a/@here/olp-sdk-dataservice-api/package.json b/@here/olp-sdk-dataservice-api/package.json index 24453271..c099d2ca 100644 --- a/@here/olp-sdk-dataservice-api/package.json +++ b/@here/olp-sdk-dataservice-api/package.json @@ -1,6 +1,6 @@ { "name": "@here/olp-sdk-dataservice-api", - "version": "1.9.1", + "version": "1.10.0", "description": "Generated from the OpenAPI specification of the HERE Open Location Platform Data API", "main": "index.js", "typings": "index", diff --git a/@here/olp-sdk-dataservice-read/package.json b/@here/olp-sdk-dataservice-read/package.json index e20a190e..91c20160 100644 --- a/@here/olp-sdk-dataservice-read/package.json +++ b/@here/olp-sdk-dataservice-read/package.json @@ -1,6 +1,6 @@ { "name": "@here/olp-sdk-dataservice-read", - "version": "1.9.0", + "version": "1.10.0", "description": "Wrapper around a subset of the HERE Open Location Platform Data REST API related to reading data from OLP catalogs", "main": "index.js", "browser": "index.web.js", @@ -49,8 +49,8 @@ }, "license": "Apache-2.0", "dependencies": { - "@here/olp-sdk-core": "^1.4.0", - "@here/olp-sdk-dataservice-api": "^1.9.0", + "@here/olp-sdk-core": "^1.5.0", + "@here/olp-sdk-dataservice-api": "^1.10.0", "@here/olp-sdk-fetch": "^1.9.0" }, "devDependencies": { diff --git a/@here/olp-sdk-dataservice-write/package.json b/@here/olp-sdk-dataservice-write/package.json index a46ad5c2..95a0e2de 100644 --- a/@here/olp-sdk-dataservice-write/package.json +++ b/@here/olp-sdk-dataservice-write/package.json @@ -1,6 +1,6 @@ { "name": "@here/olp-sdk-dataservice-write", - "version": "1.4.0", + "version": "1.5.0", "description": "Wrapper around a subset of the HERE Open Location Platform Data REST API related to writing data to OLP catalogs", "main": "index.js", "browser": "index.web.js", @@ -50,8 +50,8 @@ }, "license": "Apache-2.0", "dependencies": { - "@here/olp-sdk-core": "^1.4.0", - "@here/olp-sdk-dataservice-api": "^1.9.0", + "@here/olp-sdk-core": "^1.5.0", + "@here/olp-sdk-dataservice-api": "^1.10.0", "@here/olp-sdk-fetch": "^1.9.0" }, "devDependencies": { diff --git a/CHANGELOG.md b/CHANGELOG.md index a6dbafd8..8a209fd9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,28 @@ +## v1.10.0 (14/05/2021) + +**olp-sdk-dataservice-write** + +- Added the `MultiPartUploadWrapper` class. You can use it to upload large files in a browser and Node.js to the Blob API v1 and v2 services in chunks. +- Changed `VersionedLayerClient`. Now, to upload large files to versioned layers, use the `MultiPartUploadWrapper` class. +- Added the abstracted `BlobData` class. It is a wrapper of data (`Blob`, `Buffer`, `File`, string, and so on) + that allows to read a specific range of bytes and get data size. + +**olp-sdk-dataservice-api** + +- Fixed the issue with the incorrect `body` parameter in the `ObjectApi.startMultipartUploadByKey` function. + +**olp-sdk-core** + +- Added export for `fs` symbols to the Node.js index file. + +**olp-sdk-authentication** + +- Updated dependencies. + +**olp-sdk-dataservice-read** + +- Updated dependencies. + ## v1.9.1 (24/03/2021) **olp-sdk-dataservice-api** @@ -102,12 +127,12 @@ **olp-sdk-core** -- Removed the `User-Agent` custom header from the requests. This was necessary due to issues sending a custom user-agent in Mozilla browsers. +- Removed the `User-Agent` custom header from the requests. This was necessary due to issues sending a custom user-agent in Mozilla browsers. **olp-sdk-authentication** - Removed the `User-Agent` custom header from the requests. This was necessary due to issues sending a custom user-agent in Mozilla browsers. -- Updated `@here/olp-sdk-fetch` to version 1.6.0. +- Updated `@here/olp-sdk-fetch` to version 1.6.0. **olp-sdk-dataservice-api** @@ -128,7 +153,6 @@ - Updated `@here/olp-sdk-core` to version 1.1.0. - Updated `@here/olp-sdk-fetch` to version 1.6.0. - ## v1.5.1 (19/08/2020) **olp-sdk-core** @@ -147,7 +171,6 @@ - Updated `olp-sdk-core` to version ^1.0.0. - ## v1.5.0 (18/08/2020) **olp-sdk-core** @@ -214,7 +237,6 @@ - Added the `VersionedLayerClient.getBatch()` method. You can use it to retrieve publication details. - Added the `VersionedLayerClient.completeBatch()` method. You can use it to submit a publication, that is a batch, and if necessary, initiate post-processing. - ## v1.4.0 (30/04/2020) **olp-sdk-authentication** @@ -255,6 +277,7 @@ - Updated dependencies. The following bugs are fixed: + - Version "0" was incorrectly handled. It is now fixed. - Additional fields were not passed correctly into the request. It is now fixed. @@ -298,103 +321,99 @@ The following bugs are fixed: **Common** -* Updated the development dependencies. +- Updated the development dependencies. **olp-sdk-dataservice-read** -* Fixed the crash in `VersionedLayerClient` and `VolatileLayerClient` that happened when a non-existing tile was requested. +- Fixed the crash in `VersionedLayerClient` and `VolatileLayerClient` that happened when a non-existing tile was requested. **olp-sdk-authentication** -* Reverted the API break in `AuthCredentials`. - +- Reverted the API break in `AuthCredentials`. ## v1.2.0 (04/02/2020) **Common** -* Updated the development dependencies. +- Updated the development dependencies. **olp-sdk-dataservice-read** -* Added the `IndexLayerClient` class that is used to access index layers on OLP. This class implements the `getPartitions` and `getData` methods. -* Added the `HttpError` class that extends the `Error` class and adds a status code to HTTP errors. -* Improved error propagations in all public methods. Now, these methods reject the promises with the `HttpError` instance or `Error` class when errors occur. +- Added the `IndexLayerClient` class that is used to access index layers on OLP. This class implements the `getPartitions` and `getData` methods. +- Added the `HttpError` class that extends the `Error` class and adds a status code to HTTP errors. +- Improved error propagations in all public methods. Now, these methods reject the promises with the `HttpError` instance or `Error` class when errors occur. **olp-sdk-authentication** -* Added the `HttpError` class that extends the `Error` class and adds a status code to HTTP errors. -* Improved error propagations in all public methods. Now, these methods reject the promises with the `HttpError` instance or `Error` class when errors occur. - -* **Breaking Change** Improved the return type of the `getEarliestVersion` method in `CatalogClient`. It is now the same as the return type of the `getLatestVersion` method. -* **Breaking Change** Public methods now reject the promises with the `HttpError` instance or `Error` class instead of strings when errors occur. +- Added the `HttpError` class that extends the `Error` class and adds a status code to HTTP errors. +- Improved error propagations in all public methods. Now, these methods reject the promises with the `HttpError` instance or `Error` class when errors occur. +- **Breaking Change** Improved the return type of the `getEarliestVersion` method in `CatalogClient`. It is now the same as the return type of the `getLatestVersion` method. +- **Breaking Change** Public methods now reject the promises with the `HttpError` instance or `Error` class instead of strings when errors occur. ## v1.1.0 (11/12/2019) **Common** -* Updated the development dependencies. +- Updated the development dependencies. **olp-sdk-dataservice-read** -* Added the `getPartitionsById` method to `QueryClient`. Now, you can fetch metadata from specific partitions using their IDs. -* Updated the `getPartitions` method in `VersionedLayerClient` and `VolatileLayerClient`. Now, you can fetch metadata from specific partitions of a volatile or versioned layer using partitions IDs. -* Updated documentation for the public API. +- Added the `getPartitionsById` method to `QueryClient`. Now, you can fetch metadata from specific partitions using their IDs. +- Updated the `getPartitions` method in `VersionedLayerClient` and `VolatileLayerClient`. Now, you can fetch metadata from specific partitions of a volatile or versioned layer using partitions IDs. +- Updated documentation for the public API. **olp-sdk-authentication** -* The scope support was added to `UserAuth` through `UserAuthConfig`. You can now access the project bound resources using the `UserAuthConfig` scope field. -* Updated documentation for the public API. - +- The scope support was added to `UserAuth` through `UserAuthConfig`. You can now access the project bound resources using the `UserAuthConfig` scope field. +- Updated documentation for the public API. ## v1.0.0 (02/12/2019) **olp-sdk-dataservice-read** -* Added new class `OlpClientSetting` with `KeyValueCache` instance to be used for context. -* Added the `VersionedLayerClient` class that is used to access versioned layers on OLP. This class implements the `getData` and `getPartitions` methods. -* Added the `VolatileLayerClient` class that is used to access volatile layers on OLP. This class implements the `getPartitions` and `getData` methods. -* Added the `ArtifactClient` class that is used to access the artifact service on OLP. This class implements the `getSchemaDetails` and `getSchema` methods. -* Added the `ConfigClient` class that is used to access the configuration service on OLP. This class implements the `getCatalogs` method. -* Added the `QueryClient` class that is used to access the query service on OLP. This class implements the `fetchQuadTreeIndex` method. -* Added a possibility to abort requests using `AbortSignal`. -* Added a possibility to set an optional billing tag in each request. -* Added `QuadKeyUtils` that has a set of utilities and functions intended for work with quadkeys: convert a quadkey to a Morton code, convert a Morton code to a quadkey, and validate a quadkey. -* Added the `RequestFactory` class that is used for look-up requests. This class implements the static `create` method that returns the built `DatastoreDownloadManager` instance with a correct base URL to service, and the `getBaseUrl` method that caches and returns base URLs to services. -* The `CatalogClient` constructor changed. Users must pass now `OlpClientSettings` by value not by reference anymore. Removed `KeyValueCache` as it is now a part of `OlpClientSettings`. - -* **Breaking Change** The `getLayer` method was removed from `CatalogClient`. Now, to initialize a deprecated `CatalogLayer`, use the `VersionedLayerClient` or `VolatileLayerClient` classes. -* **Breaking Change** The `getTile` method was removed from `CatalogClient`. Now, to get layer data, use `VersionedLayerClient.getData()` or `VolatileLayerClient.getData()`. -* **Breaking Change** The `getAgregatedTile` method was removed from `CatalogClient`. Now, to get partitions metadata and layer data, use `VersionedLayerClient.getPartitions()` and `VersionedLayerClient.getData()` or `VolatileLayerClient.getPartitions()` and `VolatileLayerClient.getData()`. -* **Breaking Change** The `getSchema` and `getSchemaDetails` methods were removed from `CatalogClient`. Now, to get schemas and schema metadata, use the `ArtifactClient` class. -* **Breaking Change** The `HypeDataProvider` class was removed. Now, catalog and layer clients can be initialized without additional classes. -* **Breaking Change** The `DatastoreClient` class was removed. Now, `CatalogClient` can be initialized without additional classes. -* **Breaking Change** Replaced RequestInit with AbortSignal in all public APIs. +- Added new class `OlpClientSetting` with `KeyValueCache` instance to be used for context. +- Added the `VersionedLayerClient` class that is used to access versioned layers on OLP. This class implements the `getData` and `getPartitions` methods. +- Added the `VolatileLayerClient` class that is used to access volatile layers on OLP. This class implements the `getPartitions` and `getData` methods. +- Added the `ArtifactClient` class that is used to access the artifact service on OLP. This class implements the `getSchemaDetails` and `getSchema` methods. +- Added the `ConfigClient` class that is used to access the configuration service on OLP. This class implements the `getCatalogs` method. +- Added the `QueryClient` class that is used to access the query service on OLP. This class implements the `fetchQuadTreeIndex` method. +- Added a possibility to abort requests using `AbortSignal`. +- Added a possibility to set an optional billing tag in each request. +- Added `QuadKeyUtils` that has a set of utilities and functions intended for work with quadkeys: convert a quadkey to a Morton code, convert a Morton code to a quadkey, and validate a quadkey. +- Added the `RequestFactory` class that is used for look-up requests. This class implements the static `create` method that returns the built `DatastoreDownloadManager` instance with a correct base URL to service, and the `getBaseUrl` method that caches and returns base URLs to services. +- The `CatalogClient` constructor changed. Users must pass now `OlpClientSettings` by value not by reference anymore. Removed `KeyValueCache` as it is now a part of `OlpClientSettings`. + +- **Breaking Change** The `getLayer` method was removed from `CatalogClient`. Now, to initialize a deprecated `CatalogLayer`, use the `VersionedLayerClient` or `VolatileLayerClient` classes. +- **Breaking Change** The `getTile` method was removed from `CatalogClient`. Now, to get layer data, use `VersionedLayerClient.getData()` or `VolatileLayerClient.getData()`. +- **Breaking Change** The `getAgregatedTile` method was removed from `CatalogClient`. Now, to get partitions metadata and layer data, use `VersionedLayerClient.getPartitions()` and `VersionedLayerClient.getData()` or `VolatileLayerClient.getPartitions()` and `VolatileLayerClient.getData()`. +- **Breaking Change** The `getSchema` and `getSchemaDetails` methods were removed from `CatalogClient`. Now, to get schemas and schema metadata, use the `ArtifactClient` class. +- **Breaking Change** The `HypeDataProvider` class was removed. Now, catalog and layer clients can be initialized without additional classes. +- **Breaking Change** The `DatastoreClient` class was removed. Now, `CatalogClient` can be initialized without additional classes. +- **Breaking Change** Replaced RequestInit with AbortSignal in all public APIs. **olp-sdk-dataservice-api** -* Fixed issues with requests to the Blob REST APIs. +- Fixed issues with requests to the Blob REST APIs. **olp-sdk-authentication** -* Added a possibility to read credentials from a file using Node.js. - +- Added a possibility to read credentials from a file using Node.js. ## v0.9.2-beta (28/10/2019) -* Changed prepare process before publishing. -* Changed configuration to the TypeDoc. -* Fixed tslints. -* Align Version and Volatile Layers with DatastoreApi. +- Changed prepare process before publishing. +- Changed configuration to the TypeDoc. +- Fixed tslints. +- Align Version and Volatile Layers with DatastoreApi. ## v0.9.1-beta (17/10/2019) **olp-sdk-authentication** -* Fixed build process for web. -* **Breaking Change** UserAuthConfig.tokenRequester is required now. +- Fixed build process for web. +- **Breaking Change** UserAuthConfig.tokenRequester is required now. **olp-sdk-dataservice-read** -* Fixed build process for web. +- Fixed build process for web. diff --git a/package.json b/package.json index d90d4793..d1c5a785 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@here/olp-sdk-ts", - "version": "1.9.1", + "version": "1.10.0", "description": "HERE OLP SDK for TypeScript", "author": { "name": "HERE Europe B.V.",