From 2d3f18adaf94ae50a7c545d80da17c4851544345 Mon Sep 17 00:00:00 2001 From: Tim Deubler Date: Tue, 9 Mar 2021 13:20:23 +0100 Subject: [PATCH] v0.21.0 Signed-off-by: Tim Deubler --- .github/workflows/cicd.yaml | 8 ++++-- .github/workflows/npm-publish.yaml | 46 ++++++++++++++++++++++++++++++ CHANGELOG.md | 21 ++++++++++++++ lerna.json | 2 +- package.json | 2 +- packages/common/CHANGELOG.md | 21 ++++++++++++++ packages/common/package.json | 2 +- packages/core/CHANGELOG.md | 21 ++++++++++++++ packages/core/package.json | 4 +-- packages/display/CHANGELOG.md | 21 ++++++++++++++ packages/display/package.json | 6 ++-- packages/editor/CHANGELOG.md | 21 ++++++++++++++ packages/editor/package.json | 8 +++--- packages/playground/package.json | 10 +++---- packages/tests/package.json | 2 +- packages/utils/package.json | 11 ++++--- 16 files changed, 179 insertions(+), 27 deletions(-) create mode 100644 .github/workflows/npm-publish.yaml diff --git a/.github/workflows/cicd.yaml b/.github/workflows/cicd.yaml index a7712ae14..9505a2f1c 100644 --- a/.github/workflows/cicd.yaml +++ b/.github/workflows/cicd.yaml @@ -38,8 +38,9 @@ jobs: uses: actions/setup-node@v1 with: node-version: ${{ matrix.node-version }} + registry-url: 'https://registry.npmjs.org' env: - NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - name: Install dependencies run: yarn install --network-timeout ${{ env.yarn-network-timeout }} - name: Build release package @@ -51,6 +52,7 @@ jobs: run: | distTag=$(jq -r '.version | match(".*-([^.]*)").captures[0].string' package.json) echo "::set-output name=dist-tag::${distTag:-latest}" + echo '//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}' > ~/.npmrc - name: npm publish if: matrix.os == 'ubuntu-latest' uses: pascalgn/npm-publish-action@1.3.6 @@ -59,8 +61,8 @@ jobs: tag_message: "v%s" commit_pattern: "^Release (\\S+)" workspace: "." - publish_command: "npx lerna" + publish_command: "lerna" publish_args: "publish from-package --no-git-tag-version --yes --dist-tag ${{ steps.get-dist-tag.outputs.dist-tag }}" env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/.github/workflows/npm-publish.yaml b/.github/workflows/npm-publish.yaml new file mode 100644 index 000000000..1291b8464 --- /dev/null +++ b/.github/workflows/npm-publish.yaml @@ -0,0 +1,46 @@ +name: NPM Publish + +on: + workflow_dispatch: + +env: + yarn-network-timeout: 1000000 + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Get yarn cache directory path + id: yarn-cache-dir-path + run: echo "::set-output name=dir::$(yarn cache dir)" + - uses: actions/cache@v2 + id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) + with: + path: ${{ steps.yarn-cache-dir-path.outputs.dir }} + key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} + restore-keys: | + ${{ runner.os }}-yarn- + - name: Setup Node.js + uses: actions/setup-node@v2 + with: + node-version: '12' + registry-url: 'https://registry.npmjs.org' + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + - name: Install dependencies + run: yarn install --network-timeout ${{ env.yarn-network-timeout }} + - name: Build documentation + run: yarn run build-doc + - name: Build release + run: yarn run build-release + - name: Get npm dist-tag + id: get-dist-tag + run: | + distTag=$(jq -r '.version | match(".*-([^.]*)").captures[0].string' package.json) + echo "::set-output name=dist-tag::${distTag:-latest}" + - name: npm publish + if: github.ref == 'refs/heads/master' + run: lerna publish from-package --no-git-tag-version --yes --dist-tag ${{ steps.get-dist-tag.outputs.dist-tag }} + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/CHANGELOG.md b/CHANGELOG.md index e2560f3db..a5182856c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,24 @@ +## 0.21.0 (2021-3-9) +### editor +* added: typescript declarations for the public api interface +* fixed: extruded areas / Buildings can't be translated by user-interaction with the transformer utility in certain layer configurations +* fixed: x,y coordinates are flipped in deprecated "editor.PixelCoordinate" of legacy api interface +### display +* added: typescript declarations for the public api interface +* added: Lines, Circles and Rectangles can now be defined and displayed with dimensions in meters. e.g. style.radius = "1m" +* added: Support to offset Circles and Rects in meters e.g. style.offsetX = "1m" +* added: Lines can now be offset in meters to the left or right. e.g. lineStyle.offset = "1m" +* improved: pointer event triggering now supports a larger position offset for point styles +* fixed: broken event triggering of features that are styled using "zoomRange" values. +* fixed: invoke "styleValueFunctions" with the correct zoomlevel in any case +* fixed: text that uses stroke and alpha is displayed opaque +* fixed: missing pointer-events when the map is zoomed in very close (zoomlevel >22) +### core +* added: typescript declarations for the public api interface +### general +* added: typescript support in the api playground +* added: the playground now supports code completion/suggestions using the api type declarations. + ## 0.20.0 (2021-2-12) ### editor * added: Convert mixed geographical and pixel coordinates of various formats to GEOJSONCoordinates. diff --git a/lerna.json b/lerna.json index 20ffcea0d..408d71c83 100644 --- a/lerna.json +++ b/lerna.json @@ -2,7 +2,7 @@ "packages": [ "packages/*" ], - "version": "0.20.0", + "version": "0.21.0", "npmClient": "yarn", "useWorkspaces": true } diff --git a/package.json b/package.json index 53d3ac784..8d7d11ad6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@here/xyz-maps", - "version": "0.20.0", + "version": "0.21.0", "description": "XYZ Editor is an experimental and work in progress open-source map editor written in TypeScript/JavaScript", "author": { "name": "HERE Europe B.V.", diff --git a/packages/common/CHANGELOG.md b/packages/common/CHANGELOG.md index e2560f3db..a5182856c 100644 --- a/packages/common/CHANGELOG.md +++ b/packages/common/CHANGELOG.md @@ -1,3 +1,24 @@ +## 0.21.0 (2021-3-9) +### editor +* added: typescript declarations for the public api interface +* fixed: extruded areas / Buildings can't be translated by user-interaction with the transformer utility in certain layer configurations +* fixed: x,y coordinates are flipped in deprecated "editor.PixelCoordinate" of legacy api interface +### display +* added: typescript declarations for the public api interface +* added: Lines, Circles and Rectangles can now be defined and displayed with dimensions in meters. e.g. style.radius = "1m" +* added: Support to offset Circles and Rects in meters e.g. style.offsetX = "1m" +* added: Lines can now be offset in meters to the left or right. e.g. lineStyle.offset = "1m" +* improved: pointer event triggering now supports a larger position offset for point styles +* fixed: broken event triggering of features that are styled using "zoomRange" values. +* fixed: invoke "styleValueFunctions" with the correct zoomlevel in any case +* fixed: text that uses stroke and alpha is displayed opaque +* fixed: missing pointer-events when the map is zoomed in very close (zoomlevel >22) +### core +* added: typescript declarations for the public api interface +### general +* added: typescript support in the api playground +* added: the playground now supports code completion/suggestions using the api type declarations. + ## 0.20.0 (2021-2-12) ### editor * added: Convert mixed geographical and pixel coordinates of various formats to GEOJSONCoordinates. diff --git a/packages/common/package.json b/packages/common/package.json index 80aa8c06f..b2cb0a1d9 100644 --- a/packages/common/package.json +++ b/packages/common/package.json @@ -1,6 +1,6 @@ { "name": "@here/xyz-maps-common", - "version": "0.20.0", + "version": "0.21.0", "description": "Commonly used libraries of XYZ Maps.", "author": { "name": "HERE Europe B.V.", diff --git a/packages/core/CHANGELOG.md b/packages/core/CHANGELOG.md index e2560f3db..a5182856c 100644 --- a/packages/core/CHANGELOG.md +++ b/packages/core/CHANGELOG.md @@ -1,3 +1,24 @@ +## 0.21.0 (2021-3-9) +### editor +* added: typescript declarations for the public api interface +* fixed: extruded areas / Buildings can't be translated by user-interaction with the transformer utility in certain layer configurations +* fixed: x,y coordinates are flipped in deprecated "editor.PixelCoordinate" of legacy api interface +### display +* added: typescript declarations for the public api interface +* added: Lines, Circles and Rectangles can now be defined and displayed with dimensions in meters. e.g. style.radius = "1m" +* added: Support to offset Circles and Rects in meters e.g. style.offsetX = "1m" +* added: Lines can now be offset in meters to the left or right. e.g. lineStyle.offset = "1m" +* improved: pointer event triggering now supports a larger position offset for point styles +* fixed: broken event triggering of features that are styled using "zoomRange" values. +* fixed: invoke "styleValueFunctions" with the correct zoomlevel in any case +* fixed: text that uses stroke and alpha is displayed opaque +* fixed: missing pointer-events when the map is zoomed in very close (zoomlevel >22) +### core +* added: typescript declarations for the public api interface +### general +* added: typescript support in the api playground +* added: the playground now supports code completion/suggestions using the api type declarations. + ## 0.20.0 (2021-2-12) ### editor * added: Convert mixed geographical and pixel coordinates of various formats to GEOJSONCoordinates. diff --git a/packages/core/package.json b/packages/core/package.json index c7edb4144..674675c69 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@here/xyz-maps-core", - "version": "0.20.0", + "version": "0.21.0", "description": "Core libs of XYZ Editor.", "author": { "name": "HERE Europe B.V.", @@ -26,7 +26,7 @@ }, "publishConfig": {}, "dependencies": { - "@here/xyz-maps-common": "^0.20.0" + "@here/xyz-maps-common": "^0.21.0" }, "devDependencies": { "@mapbox/vector-tile": "^1.3.1", diff --git a/packages/display/CHANGELOG.md b/packages/display/CHANGELOG.md index e2560f3db..a5182856c 100644 --- a/packages/display/CHANGELOG.md +++ b/packages/display/CHANGELOG.md @@ -1,3 +1,24 @@ +## 0.21.0 (2021-3-9) +### editor +* added: typescript declarations for the public api interface +* fixed: extruded areas / Buildings can't be translated by user-interaction with the transformer utility in certain layer configurations +* fixed: x,y coordinates are flipped in deprecated "editor.PixelCoordinate" of legacy api interface +### display +* added: typescript declarations for the public api interface +* added: Lines, Circles and Rectangles can now be defined and displayed with dimensions in meters. e.g. style.radius = "1m" +* added: Support to offset Circles and Rects in meters e.g. style.offsetX = "1m" +* added: Lines can now be offset in meters to the left or right. e.g. lineStyle.offset = "1m" +* improved: pointer event triggering now supports a larger position offset for point styles +* fixed: broken event triggering of features that are styled using "zoomRange" values. +* fixed: invoke "styleValueFunctions" with the correct zoomlevel in any case +* fixed: text that uses stroke and alpha is displayed opaque +* fixed: missing pointer-events when the map is zoomed in very close (zoomlevel >22) +### core +* added: typescript declarations for the public api interface +### general +* added: typescript support in the api playground +* added: the playground now supports code completion/suggestions using the api type declarations. + ## 0.20.0 (2021-2-12) ### editor * added: Convert mixed geographical and pixel coordinates of various formats to GEOJSONCoordinates. diff --git a/packages/display/package.json b/packages/display/package.json index 4bf54babc..37ba7e584 100644 --- a/packages/display/package.json +++ b/packages/display/package.json @@ -1,6 +1,6 @@ { "name": "@here/xyz-maps-display", - "version": "0.20.0", + "version": "0.21.0", "description": "Map display of XYZ editor.", "author": { "name": "HERE Europe B.V.", @@ -27,8 +27,8 @@ }, "publishConfig": {}, "dependencies": { - "@here/xyz-maps-common": "^0.20.0", - "@here/xyz-maps-core": "^0.20.0" + "@here/xyz-maps-common": "^0.21.0", + "@here/xyz-maps-core": "^0.21.0" }, "devDependencies": { "@rollup/plugin-commonjs": "^12.0.0", diff --git a/packages/editor/CHANGELOG.md b/packages/editor/CHANGELOG.md index e2560f3db..a5182856c 100644 --- a/packages/editor/CHANGELOG.md +++ b/packages/editor/CHANGELOG.md @@ -1,3 +1,24 @@ +## 0.21.0 (2021-3-9) +### editor +* added: typescript declarations for the public api interface +* fixed: extruded areas / Buildings can't be translated by user-interaction with the transformer utility in certain layer configurations +* fixed: x,y coordinates are flipped in deprecated "editor.PixelCoordinate" of legacy api interface +### display +* added: typescript declarations for the public api interface +* added: Lines, Circles and Rectangles can now be defined and displayed with dimensions in meters. e.g. style.radius = "1m" +* added: Support to offset Circles and Rects in meters e.g. style.offsetX = "1m" +* added: Lines can now be offset in meters to the left or right. e.g. lineStyle.offset = "1m" +* improved: pointer event triggering now supports a larger position offset for point styles +* fixed: broken event triggering of features that are styled using "zoomRange" values. +* fixed: invoke "styleValueFunctions" with the correct zoomlevel in any case +* fixed: text that uses stroke and alpha is displayed opaque +* fixed: missing pointer-events when the map is zoomed in very close (zoomlevel >22) +### core +* added: typescript declarations for the public api interface +### general +* added: typescript support in the api playground +* added: the playground now supports code completion/suggestions using the api type declarations. + ## 0.20.0 (2021-2-12) ### editor * added: Convert mixed geographical and pixel coordinates of various formats to GEOJSONCoordinates. diff --git a/packages/editor/package.json b/packages/editor/package.json index cd946f557..f95f7552a 100644 --- a/packages/editor/package.json +++ b/packages/editor/package.json @@ -1,6 +1,6 @@ { "name": "@here/xyz-maps-editor", - "version": "0.20.0", + "version": "0.21.0", "description": "XYZ editor.", "author": { "name": "HERE Europe B.V.", @@ -27,9 +27,9 @@ "build-dts": "npx buildDts -p ." }, "dependencies": { - "@here/xyz-maps-common": "^0.20.0", - "@here/xyz-maps-core": "^0.20.0", - "@here/xyz-maps-display": "^0.20.0" + "@here/xyz-maps-common": "^0.21.0", + "@here/xyz-maps-core": "^0.21.0", + "@here/xyz-maps-display": "^0.21.0" }, "devDependencies": { "@rollup/plugin-typescript": "^2.1.0", diff --git a/packages/playground/package.json b/packages/playground/package.json index 94d8316ff..77348f3ad 100644 --- a/packages/playground/package.json +++ b/packages/playground/package.json @@ -1,6 +1,6 @@ { "name": "@here/xyz-maps-playground", - "version": "0.20.0", + "version": "0.21.0", "description": "Playground for XYZ editor.", "author": { "name": "HERE Europe B.V.", @@ -19,10 +19,10 @@ "dev": "rollup -c -w" }, "dependencies": { - "@here/xyz-maps-common": "^0.20.0", - "@here/xyz-maps-core": "^0.20.0", - "@here/xyz-maps-display": "^0.20.0", - "@here/xyz-maps-editor": "^0.20.0", + "@here/xyz-maps-common": "^0.21.0", + "@here/xyz-maps-core": "^0.21.0", + "@here/xyz-maps-display": "^0.21.0", + "@here/xyz-maps-editor": "^0.21.0", "@monaco-editor/react": "^4.0.7", "monaco-editor": "^0.21.3", "react": "^17.0.1", diff --git a/packages/tests/package.json b/packages/tests/package.json index 3c9997d41..07e5d37dd 100644 --- a/packages/tests/package.json +++ b/packages/tests/package.json @@ -1,6 +1,6 @@ { "name": "@here/xyz-maps-test", - "version": "0.20.0", + "version": "0.21.0", "description": "Tests for XYZ editor.", "author": { "name": "HERE Europe B.V.", diff --git a/packages/utils/package.json b/packages/utils/package.json index 4bb7740df..53c572dca 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -1,6 +1,6 @@ { "name": "@here/xyz-maps-utils", - "version": "0.20.0", + "version": "0.21.0", "description": "Development utilities used to build XYZ Maps modules", "author": { "name": "HERE Europe B.V.", @@ -13,14 +13,13 @@ "directory": "packages/utils" }, "private": true, - "scripts": { - }, + "scripts": {}, "devDependencies": { "@microsoft/api-extractor": "^7.13.1", - "typescript": "^3.9.6", + "cross-spawn": "^7.0.3", "ts-morph": "^9.1.0", - "yargs": "^16.2.0", - "cross-spawn": "^7.0.3" + "typescript": "^3.9.6", + "yargs": "^16.2.0" }, "bin": { "buildDts": "./lib/buildDts/cli.js"