Skip to content

Commit a26116d

Browse files
OleksiiZubkoOleksii Zubko
authored and
Oleksii Zubko
committed
Patch release 0.9.2
Update configuration for TypeDoc generation. Add build, test lint, bundles, typedoc commands to the prepare script. Fix some lint issues. Up versions to 0.9.2. Update READMEs Relates-To: OLPEDGE-868, OLPEDGE-929 Signed-off-by: Oleksii Zubko <ext-oleksii.zubko@here.com>
1 parent 5d3ae9b commit a26116d

File tree

15 files changed

+141
-97
lines changed

15 files changed

+141
-97
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
node_modules/
22
dist/
33
doc/
4-
docs/src/
54
.vscode
65
coverage
76
.nyc_output

@here/olp-sdk-authentication/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@here/olp-sdk-authentication",
3-
"version": "0.9.1",
3+
"version": "0.9.2",
44
"description": "Wrapper around the HERE Authentication and Authorization REST API obtaining short-lived access tokens that are used to authenticate requests to HERE services.",
55
"main": "dist/@here/olp-sdk-authentication/index.js",
66
"browser": "dist/@here/olp-sdk-authentication/index.web.js",
@@ -14,7 +14,7 @@
1414
"lint": "tslint -c tslint.json -p tsconfig.json",
1515
"test": "mocha > xunit.xml",
1616
"coverage": "nyc mocha > xunit.xml",
17-
"prepare": "tsc --sourceMap false",
17+
"prepare": "tsc --sourceMap false && npm run bundle",
1818
"bundle": "npm run bundle:dev && npm run bundle:prod",
1919
"bundle:prod": "webpack --env.NODE_ENV=production",
2020
"bundle:dev": "webpack --env.NODE_ENV=development"
@@ -47,7 +47,7 @@
4747
"license": "Apache-2.0",
4848
"dependencies": {
4949
"@types/properties-reader": "0.0.1",
50-
"@here/olp-sdk-fetch": "0.9.1",
50+
"@here/olp-sdk-fetch": "^0.9.0",
5151
"properties-reader": "0.3.1"
5252
},
5353
"devDependencies": {

@here/olp-sdk-dataservice-api/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@here/olp-sdk-dataservice-api",
3-
"version": "0.9.1",
3+
"version": "0.9.2",
44
"description": "Generated from the OpenAPI specification of the HERE Open Location Platform Data API",
55
"main": "dist/@here/olp-sdk-dataservice-api/index.js",
66
"typings": "dist/@here/olp-sdk-dataservice-api/index",
@@ -16,7 +16,7 @@
1616
"lint": "tslint -c tslint.json -p tsconfig.json",
1717
"test": "mocha > xunit.xml",
1818
"coverage": "nyc mocha > xunit.xml",
19-
"prepare": "tsc --sourceMap false",
19+
"prepare": "tsc --sourceMap false && npm run bundle",
2020
"bundle": "npm run bundle:dev && npm run bundle:prod",
2121
"bundle:prod": "webpack --env.NODE_ENV=production",
2222
"bundle:dev": "webpack --env.NODE_ENV=development"

@here/olp-sdk-dataservice-read/lib/CatalogClient.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ export class CatalogClient {
6565
* obtain layers.
6666
*/
6767

68+
// tslint:disable-next-line: deprecation
6869
readonly layers = new Map<string, CatalogLayer>();
6970

7071
/**
@@ -115,6 +116,7 @@ export class CatalogClient {
115116
*/
116117
public async getVolatileOrVersionedLayer(
117118
layerName: string
119+
// tslint:disable-next-line: deprecation
118120
): Promise<CatalogLayer> {
119121
const data = await this.findLayer(layerName);
120122
if (data === null) {
@@ -191,6 +193,7 @@ export class CatalogClient {
191193
* @param layerName The name of the layer to look for.
192194
* @returns Promise with the layer object or with null if the layer is not part of this catalog.
193195
*/
196+
// tslint:disable-next-line: deprecation
194197
private async findLayer(layerName: string): Promise<CatalogLayer | null> {
195198
if (!this.layers.size) {
196199
await this.loadVolatileOrVersionedLayersFromConfig().catch(err =>
@@ -261,6 +264,7 @@ export class CatalogClient {
261264
);
262265

263266
for (const layerConfig of layersConfigurations) {
267+
// tslint:disable-next-line: deprecation
264268
const layer: CatalogLayer | null = this.buildCatalogLayer(
265269
layerConfig,
266270
layerVersions.get(layerConfig.id)
@@ -276,6 +280,7 @@ export class CatalogClient {
276280
private buildCatalogLayer(
277281
config: ConfigApi.Layer,
278282
version?: number
283+
// tslint:disable-next-line: deprecation
279284
): CatalogLayer | null {
280285
// we're interesting only for versioned or volatile layers.
281286
if (
@@ -303,6 +308,7 @@ export class CatalogClient {
303308
}
304309

305310
// add required methods for interface (all required methods means that methods are in both Layer clients)
311+
// tslint:disable-next-line: deprecation
306312
const result: CatalogLayer = {
307313
...config,
308314
apiVersion: 2,

@here/olp-sdk-dataservice-read/lib/VolatileLayerClient.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ import {
2525
} from "@here/olp-sdk-dataservice-api";
2626
import {
2727
AggregatedDownloadResponse,
28-
IndexMap,
29-
ErrorHTTPResponse
28+
ErrorHTTPResponse,
29+
IndexMap
3030
} from "./CatalogClientCommon";
3131
import { ApiName, DataStoreContext } from "./DataStoreContext";
3232
import { DataStoreRequestBuilder } from "./DataStoreRequestBuilder";

@here/olp-sdk-dataservice-read/lib/getEnvLookupUrl.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export function getEnvLookUpUrl(env: EnvironmentName): string {
4444
"(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*";
4545
const tld = `(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))\\.?`;
4646
const port = "(?::\\d{2,5})?";
47-
const path = '(?:[/?#][^\\s"]*)?';
47+
const path = "(?:[/?#][^\\s\"]*)?";
4848
const regex = new RegExp(
4949
`(?:${protocol}|www\\.)(?:localhost|${ip}|${host}${domain}${tld})${port}${path}`
5050
);

@here/olp-sdk-dataservice-read/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@here/olp-sdk-dataservice-read",
3-
"version": "0.9.1",
3+
"version": "0.9.2",
44
"description": "Wrapper around a subset of the HERE Open Location Platform Data REST API related to reading data from OLP catalogs",
55
"main": "dist/@here/olp-sdk-dataservice-read/index.js",
66
"browser": "dist/@here/olp-sdk-dataservice-read/index.web.js",
@@ -14,7 +14,7 @@
1414
"lint": "tslint -c tslint.json -p tsconfig.json",
1515
"test": "mocha > xunit.xml",
1616
"coverage": "nyc mocha > xunit.xml",
17-
"prepare": "tsc --sourceMap false",
17+
"prepare": "tsc --sourceMap false && npm run bundle",
1818
"bundle": "npm run bundle:dev && npm run bundle:prod",
1919
"bundle:prod": "webpack --env.NODE_ENV=production",
2020
"bundle:dev": "webpack --env.NODE_ENV=development"
@@ -47,8 +47,8 @@
4747
},
4848
"license": "Apache-2.0",
4949
"dependencies": {
50-
"@here/olp-sdk-dataservice-api": "0.9.1",
51-
"@here/olp-sdk-fetch": "0.9.1"
50+
"@here/olp-sdk-dataservice-api": "^0.9.0",
51+
"@here/olp-sdk-fetch": "^0.9.0"
5252
},
5353
"devDependencies": {
5454
"@types/chai": "4.2.3",

@here/olp-sdk-fetch/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@here/olp-sdk-fetch",
3-
"version": "0.9.1",
3+
"version": "0.9.2",
44
"description": "Adds a subset of the fetch API for Node.js",
55
"main": "dist/@here/olp-sdk-fetch/index.js",
66
"browser": "dist/@here/olp-sdk-fetch/index.web.js",
@@ -14,7 +14,7 @@
1414
"test": "mocha > xunit.xml",
1515
"coverage": "nyc mocha > xunit.xml",
1616
"copy-tests-resourses": "cp -r test/resources dist/@here/olp-sdk-fetch/test",
17-
"prepare": "tsc --sourceMap false",
17+
"prepare": "tsc --sourceMap false && npm run bundle",
1818
"bundle": "npm run bundle:dev && npm run bundle:prod",
1919
"bundle:prod": "webpack --env.NODE_ENV=production",
2020
"bundle:dev": "webpack --env.NODE_ENV=development"

@here/olp-sdk-fetch/webpack.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ module.exports = env => {
1212
},
1313
entry: "./index.ts",
1414
output: {
15-
filename: `olp-sdk-fetch.${packageInfo.version}${isProd ? '.min' : '.dev'}.js`,
16-
path: path.resolve(__dirname, `./dist/bundle`),
15+
filename: `olp-sdk-fetch${isProd ? '.min' : '.dev'}.js`,
16+
path: path.resolve(__dirname, `dist`),
1717
libraryTarget: "umd",
1818
globalObject: 'this'
1919
},

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
## v0.9.2-beta (28/10/2019)
2+
3+
* Changed prepare process before publishing
4+
5+
* Changed configuration to the TypeDoc
6+
7+
* Fixed tslints
8+
9+
* Align Version and Volatile Layers with DatastoreApi
10+
11+
112
## v0.9.1-beta (17/10/2019)
213

314
**olp-sdk-authentication**

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,9 @@ npm run coverage
8282
To generate documentation for all modules and classes, run :
8383

8484
```sh
85-
npm run docs
85+
npm run typedoc
8686
```
87+
The dist/doc folder will be generated
8788

8889
#### Usage of Bundle functionality
8990

@@ -116,10 +117,10 @@ npm run bundle
116117

117118
Or use from CDN:
118119

119-
https://unpkg.com/browse/@here/olp-sdk-authentication@0.9.1/dist/olp-sdk-authentication.min.js
120-
https://unpkg.com/browse/@here/olp-sdk-dataservice-api@0.9.1/dist/olp-sdk-dataservice-api.min.js
121-
https://unpkg.com/browse/@here/olp-sdk-dataservice-read@0.9.1/dist/olp-sdk-dataservice-read.min.js
122-
https://unpkg.com/browse/@here/olp-sdk-fetch@0.9.1/dist/olp-sdk-fetch.min.js
120+
https://unpkg.com/@here/olp-sdk-authentication@0.9.2/dist/olp-sdk-authentication.min.js
121+
https://unpkg.com/@here/olp-sdk-dataservice-api@0.9.2/dist/olp-sdk-dataservice-api.min.js
122+
https://unpkg.com/@here/olp-sdk-dataservice-read@0.9.2/dist/olp-sdk-dataservice-read.min.js
123+
https://unpkg.com/@here/olp-sdk-fetch@0.9.2/dist/olp-sdk-fetch.min.js
123124

124125

125126
## LICENSE

package.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,28 @@
11
{
22
"name": "@here/olp-sdk-ts",
3-
"version": "0.9.1",
3+
"version": "0.9.2",
44
"description": "HERE OLP SDK for TypeScript",
55
"author": {
66
"name": "HERE Europe B.V.",
77
"url": "https://here.com"
88
},
99
"license": "Apache-2.0",
10-
"private": "true",
10+
"private": true,
1111
"workspaces": [
1212
"@here/*"
1313
],
1414
"scripts": {
1515
"bootstrap": "lerna bootstrap --use-workspaces",
16+
"prepare": "npm run clean-dists && npm run lint && npm run build && npm run test && npm run coverage && npm run bundle && npm run typedoc",
1617
"build": "lerna run build",
1718
"test": "lerna run test",
1819
"coverage": "lerna run coverage",
1920
"lint": "lerna run lint",
2021
"bundle": "lerna run bundle",
22+
"bundle:dev": "lerna run bundle:dev",
2123
"bundle:prod": "lerna run bundle:prod",
22-
"prepublish-bundle": "lerna run prepublish-bundle",
23-
"docs": "npx typedoc --out docs/src"
24+
"typedoc": "npx typedoc --disableOutputCheck --options typedoc.json",
25+
"clean-dists": "rm -rf dist && rm -rf @here/*/dist"
2426
},
2527
"devDependencies": {
2628
"lerna": "3.16.4",
Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
11
#!/bin/bash -xe
22
yarn
33
yarn bootstrap
4-
npm run build
5-
npm run prepublish-bundle
6-
npm run test

typedoc.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
2+
{
3+
"name": "@here/olp-sdk-ts",
4+
"mode": "modules",
5+
"module": "commonjs",
6+
"out": "dist/doc",
7+
"exclude": [
8+
"**/node_modules/**",
9+
"**/test/**/*.ts",
10+
"**/dist/**/*.ts",
11+
"**/scripts/*.ts"
12+
],
13+
"readme": "README.md",
14+
"target": "ES6",
15+
"excludePrivate": "true",
16+
"excludeExternals": "true",
17+
"excludeNotExported": "true",
18+
"external-modulemap": ".*/@here/([\\w\\-_]+)/"
19+
}

0 commit comments

Comments
 (0)