Skip to content

Commit

Permalink
Updating versions and CHANGELOG.
Browse files Browse the repository at this point in the history
Adding CHANGELOG for the 1.4.0 release and
updating versions for the packages.

Small fixes in getTile function and DataRequest

Resolves: OLPEDGE-1796

Signed-off-by: Oleksii Zubko <[email protected]>
  • Loading branch information
OleksiiZubko authored and Oleksii Zubko committed Apr 30, 2020
1 parent 4c9d841 commit 40278d7
Show file tree
Hide file tree
Showing 9 changed files with 76 additions and 50 deletions.
4 changes: 2 additions & 2 deletions @here/olp-sdk-authentication/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@here/olp-sdk-authentication",
"version": "1.3.0",
"version": "1.4.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",
Expand Down Expand Up @@ -50,7 +50,7 @@
"license": "Apache-2.0",
"dependencies": {
"@types/properties-reader": "^0.0.1",
"@here/olp-sdk-fetch": "^1.3.0",
"@here/olp-sdk-fetch": "1.4.0",
"properties-reader": "^0.3.1"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion @here/olp-sdk-dataservice-api/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@here/olp-sdk-dataservice-api",
"version": "1.3.0",
"version": "1.4.0",
"description": "Generated from the OpenAPI specification of the HERE Open Location Platform Data API",
"main": "index.js",
"typings": "index",
Expand Down
4 changes: 2 additions & 2 deletions @here/olp-sdk-dataservice-read/lib/client/DataRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export class DataRequest {
}

/**
* @deprecated This method will be removed by 10.2020. Please use [[getTie]] function
* @deprecated This method will be removed by 10.2020. Please use [[getTile]] function
* if you need to get data by QuadKey.
* Or you can use [getPartitions] method for getting datahandle by QuadKey
*
Expand All @@ -86,7 +86,7 @@ export class DataRequest {
}

/**
* @deprecated This method will be removed by 10.2020. Please use [[getTie]] function
* @deprecated This method will be removed by 10.2020. Please use [[getTile]] function
* if you need to get data by QuadKey.
* Or you can use [getPartitions] method for getting datahandle by QuadKey
*
Expand Down
3 changes: 2 additions & 1 deletion @here/olp-sdk-dataservice-read/lib/utils/getTile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,10 @@ export async function getTile(
partitionId
]);

const blobType = layerType === "versioned" ? "blob" : "volatile-blob";
const queryClient = new QueryClient(settings);
const blobRequestBuilder = await RequestFactory.create(
"blob",
blobType,
"v1",
settings,
catalogHrn,
Expand Down
6 changes: 3 additions & 3 deletions @here/olp-sdk-dataservice-read/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@here/olp-sdk-dataservice-read",
"version": "1.3.1",
"version": "1.4.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",
Expand Down Expand Up @@ -49,8 +49,8 @@
},
"license": "Apache-2.0",
"dependencies": {
"@here/olp-sdk-dataservice-api": "1.3.0",
"@here/olp-sdk-fetch": "1.3.0"
"@here/olp-sdk-dataservice-api": "1.4.0",
"@here/olp-sdk-fetch": "1.4.0"
},
"devDependencies": {
"@types/chai": "^4.2.7",
Expand Down
2 changes: 1 addition & 1 deletion @here/olp-sdk-fetch/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@here/olp-sdk-fetch",
"version": "1.3.0",
"version": "1.4.0",
"description": "Adds a subset of the fetch API for Node.js",
"main": "index.js",
"browser": "index.web.js",
Expand Down
25 changes: 25 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,28 @@
## v1.4.0 (30/04/2020)

**olp-sdk-authentication**

- Updated `olp-sdk-fetch` to version 1.4.0.

**olp-sdk-dataservice-api**

- Deprecated the `commitOffsets` function from `stream-api.ts`. It will be removed by 09.2020. Use the `doCommitOffsets` function instead.

**olp-sdk-fetch**

- Updated dependencies.

**olp-sdk-dataservice-read**

- Added the `LRUCache` class.
- Replaced `Map` with `LRUCache` in `KeyValueCache`. The default LRU cache capacity is 2 MB.
- Added metadata caching to the `getPartitions` and `getData` methods in `VersionedLayerClient` and `VolatileLayerClient`.
- Added the `getSize`, `setCapacity`, and `getCapacity` methods to `KeyValueCache`. You can use these methods to perform the following actions with the LRU cache instance: retrieve the current size, set a new size, and retrieve the total capacity.
- Deprecated the `getQuadKey` and `withQuadKey` methods in `DataRequest`. Both methods will be removed by 10.2020. Use the `getTile` function instead.
- Added the `getTile` helper function for retrieving binary data of a versioned or volatile layer using a tile key. This function will optimize the metadata caching by requesting a quadtree with depth 4. This way, all the following requests within the same quadtree will benefit from the already cached metadata.
- Added the `withFetchOption` and `getFetchOption` methods to `DataRequest` and `PartitionsRequest`. You can use these methods to define how and from where to retrieve data and metadata. Possible options are `OnlineIfNotFound`, and `OnlineOnly`.
- Updated `olp-sdk-fetch` to version 1.4.0.

## v1.3.1 (11/03/2020)

**olp-sdk-dataservice-read**
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@here/olp-sdk-ts",
"version": "1.3.0",
"version": "1.4.0",
"description": "HERE OLP SDK for TypeScript",
"author": {
"name": "HERE Europe B.V.",
Expand Down
78 changes: 39 additions & 39 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,18 @@
"@babel/highlight" "^7.8.3"

"@babel/core@^7.7.5":
version "7.9.0"
resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.9.0.tgz#ac977b538b77e132ff706f3b8a4dbad09c03c56e"
integrity sha512-kWc7L0fw1xwvI0zi8OKVBuxRVefwGOrKSQMvrQ3dW+bIIavBY3/NpXmpjMy7bQnLgwgzWQZ8TlM57YHpHNHz4w==
version "7.9.6"
resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.9.6.tgz#d9aa1f580abf3b2286ef40b6904d390904c63376"
integrity sha512-nD3deLvbsApbHAHttzIssYqgb883yU/d9roe4RZymBCDaZryMJDbptVpEpeQuRh4BJ+SYI8le9YGxKvFEvl1Wg==
dependencies:
"@babel/code-frame" "^7.8.3"
"@babel/generator" "^7.9.0"
"@babel/generator" "^7.9.6"
"@babel/helper-module-transforms" "^7.9.0"
"@babel/helpers" "^7.9.0"
"@babel/parser" "^7.9.0"
"@babel/helpers" "^7.9.6"
"@babel/parser" "^7.9.6"
"@babel/template" "^7.8.6"
"@babel/traverse" "^7.9.0"
"@babel/types" "^7.9.0"
"@babel/traverse" "^7.9.6"
"@babel/types" "^7.9.6"
convert-source-map "^1.7.0"
debug "^4.1.0"
gensync "^1.0.0-beta.1"
Expand All @@ -31,12 +31,12 @@
semver "^5.4.1"
source-map "^0.5.0"

"@babel/generator@^7.9.0", "@babel/generator@^7.9.5":
version "7.9.5"
resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.9.5.tgz#27f0917741acc41e6eaaced6d68f96c3fa9afaf9"
integrity sha512-GbNIxVB3ZJe3tLeDm1HSn2AhuD/mVcyLDpgtLXa5tplmWrJdF/elxB56XNqCuD6szyNkDi6wuoKXln3QeBmCHQ==
"@babel/generator@^7.9.6":
version "7.9.6"
resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.9.6.tgz#5408c82ac5de98cda0d77d8124e99fa1f2170a43"
integrity sha512-+htwWKJbH2bL72HRluF8zumBxzuX0ZZUFl3JLNyoUjM/Ho8wnVpPXM6aUz8cfKDqQ/h7zHqKt4xzJteUosckqQ==
dependencies:
"@babel/types" "^7.9.5"
"@babel/types" "^7.9.6"
jsesc "^2.5.1"
lodash "^4.17.13"
source-map "^0.5.0"
Expand Down Expand Up @@ -92,14 +92,14 @@
"@babel/types" "^7.8.3"

"@babel/helper-replace-supers@^7.8.6":
version "7.8.6"
resolved "https://registry.yarnpkg.com/@babel/helper-replace-supers/-/helper-replace-supers-7.8.6.tgz#5ada744fd5ad73203bf1d67459a27dcba67effc8"
integrity sha512-PeMArdA4Sv/Wf4zXwBKPqVj7n9UF/xg6slNRtZW84FM7JpE1CbG8B612FyM4cxrf4fMAMGO0kR7voy1ForHHFA==
version "7.9.6"
resolved "https://registry.yarnpkg.com/@babel/helper-replace-supers/-/helper-replace-supers-7.9.6.tgz#03149d7e6a5586ab6764996cd31d6981a17e1444"
integrity sha512-qX+chbxkbArLyCImk3bWV+jB5gTNU/rsze+JlcF6Nf8tVTigPJSI1o1oBow/9Resa1yehUO9lIipsmu9oG4RzA==
dependencies:
"@babel/helper-member-expression-to-functions" "^7.8.3"
"@babel/helper-optimise-call-expression" "^7.8.3"
"@babel/traverse" "^7.8.6"
"@babel/types" "^7.8.6"
"@babel/traverse" "^7.9.6"
"@babel/types" "^7.9.6"

"@babel/helper-simple-access@^7.8.3":
version "7.8.3"
Expand All @@ -121,14 +121,14 @@
resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.9.5.tgz#90977a8e6fbf6b431a7dc31752eee233bf052d80"
integrity sha512-/8arLKUFq882w4tWGj9JYzRpAlZgiWUJ+dtteNTDqrRBz9Iguck9Rn3ykuBDoUwh2TO4tSAJlrxDUOXWklJe4g==

"@babel/helpers@^7.9.0":
version "7.9.2"
resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.9.2.tgz#b42a81a811f1e7313b88cba8adc66b3d9ae6c09f"
integrity sha512-JwLvzlXVPjO8eU9c/wF9/zOIN7X6h8DYf7mG4CiFRZRvZNKEF5dQ3H3V+ASkHoIB3mWhatgl5ONhyqHRI6MppA==
"@babel/helpers@^7.9.6":
version "7.9.6"
resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.9.6.tgz#092c774743471d0bb6c7de3ad465ab3d3486d580"
integrity sha512-tI4bUbldloLcHWoRUMAj4g1bF313M/o6fBKhIsb3QnGVPwRm9JsNf/gqMkQ7zjqReABiffPV6RWj7hEglID5Iw==
dependencies:
"@babel/template" "^7.8.3"
"@babel/traverse" "^7.9.0"
"@babel/types" "^7.9.0"
"@babel/traverse" "^7.9.6"
"@babel/types" "^7.9.6"

"@babel/highlight@^7.8.3":
version "7.9.0"
Expand All @@ -139,10 +139,10 @@
chalk "^2.0.0"
js-tokens "^4.0.0"

"@babel/parser@^7.7.5", "@babel/parser@^7.8.6", "@babel/parser@^7.9.0":
version "7.9.4"
resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.9.4.tgz#68a35e6b0319bbc014465be43828300113f2f2e8"
integrity sha512-bC49otXX6N0/VYhgOMh4gnP26E9xnDZK3TmbNpxYzzz9BQLBosQwfyOe9/cXUU3txYhTzLCbcqd5c8y/OmCjHA==
"@babel/parser@^7.7.5", "@babel/parser@^7.8.6", "@babel/parser@^7.9.6":
version "7.9.6"
resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.9.6.tgz#3b1bbb30dabe600cd72db58720998376ff653bc7"
integrity sha512-AoeIEJn8vt+d/6+PXDRPaksYhnlbMIiejioBZvvMQsOjW/JYK6k/0dKnvvP3EhK5GfMBWDPtrxRtegWdAcdq9Q==

"@babel/template@^7.7.4", "@babel/template@^7.8.3", "@babel/template@^7.8.6":
version "7.8.6"
Expand All @@ -153,25 +153,25 @@
"@babel/parser" "^7.8.6"
"@babel/types" "^7.8.6"

"@babel/traverse@^7.7.4", "@babel/traverse@^7.8.6", "@babel/traverse@^7.9.0":
version "7.9.5"
resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.9.5.tgz#6e7c56b44e2ac7011a948c21e283ddd9d9db97a2"
integrity sha512-c4gH3jsvSuGUezlP6rzSJ6jf8fYjLj3hsMZRx/nX0h+fmHN0w+ekubRrHPqnMec0meycA2nwCsJ7dC8IPem2FQ==
"@babel/traverse@^7.7.4", "@babel/traverse@^7.9.6":
version "7.9.6"
resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.9.6.tgz#5540d7577697bf619cc57b92aa0f1c231a94f442"
integrity sha512-b3rAHSjbxy6VEAvlxM8OV/0X4XrG72zoxme6q1MOoe2vd0bEc+TwayhuC1+Dfgqh1QEG+pj7atQqvUprHIccsg==
dependencies:
"@babel/code-frame" "^7.8.3"
"@babel/generator" "^7.9.5"
"@babel/generator" "^7.9.6"
"@babel/helper-function-name" "^7.9.5"
"@babel/helper-split-export-declaration" "^7.8.3"
"@babel/parser" "^7.9.0"
"@babel/types" "^7.9.5"
"@babel/parser" "^7.9.6"
"@babel/types" "^7.9.6"
debug "^4.1.0"
globals "^11.1.0"
lodash "^4.17.13"

"@babel/types@^7.8.3", "@babel/types@^7.8.6", "@babel/types@^7.9.0", "@babel/types@^7.9.5":
version "7.9.5"
resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.9.5.tgz#89231f82915a8a566a703b3b20133f73da6b9444"
integrity sha512-XjnvNqenk818r5zMaba+sLQjnbda31UfUURv3ei0qPQw4u+j2jMyJ5b11y8ZHYTRSI3NnInQkkkRT4fLqqPdHg==
"@babel/types@^7.8.3", "@babel/types@^7.8.6", "@babel/types@^7.9.0", "@babel/types@^7.9.5", "@babel/types@^7.9.6":
version "7.9.6"
resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.9.6.tgz#2c5502b427251e9de1bd2dff95add646d95cc9f7"
integrity sha512-qxXzvBO//jO9ZnoasKF1uJzHd2+M6Q2ZPIVfnFps8JJvXy0ZBbwbNOmE6SGIY5XOY6d1Bo5lb9d9RJ8nv3WSeA==
dependencies:
"@babel/helper-validator-identifier" "^7.9.5"
lodash "^4.17.13"
Expand Down

0 comments on commit 40278d7

Please sign in to comment.