From fccd58255035da8f1755809dcb29c4b4736443a4 Mon Sep 17 00:00:00 2001 From: Gordon Smith Date: Tue, 13 Aug 2024 18:29:31 +0100 Subject: [PATCH] fix: Release Please fails to publish (#246) chore: release trunk (#243) docs: Update main README.md with Version 3.x.x info (#245) fix: Clean up publish action (#244) Only perform lint on CI (drop lint-skypack) Add publish support to release-please feat: Bump Versions (#241) Signed-off-by: Gordon Smith --- .github/workflows/release-please.yml | 77 +++++++++++++++++++++++++- .github/workflows/test-and-publish.yml | 27 +-------- .release-please-manifest.json | 14 ++--- README.md | 34 +++++++++++- package-lock.json | 73 +++++++++--------------- package.json | 9 ++- packages/base91/package.json | 8 ++- packages/duckdb/package.json | 10 ++-- packages/duckdb/test/duckdb.ts | 1 + packages/expat/package.json | 8 ++- packages/graphviz-cli/package.json | 8 ++- packages/graphviz/package.json | 8 ++- packages/graphviz/test/graphviz.ts | 2 +- packages/wasm/README.md | 2 +- packages/wasm/package.json | 18 +++--- packages/wasm/test/graphviz.ts | 2 +- packages/zstd/package.json | 8 ++- release-please-config.json | 4 +- vcpkg-overlays/graphviz/portfile.cmake | 2 +- vcpkg-overlays/graphviz/vcpkg.json | 2 +- 20 files changed, 197 insertions(+), 120 deletions(-) diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index 48b03037..5922f0a2 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -12,11 +12,84 @@ name: release-please jobs: release-please: - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 steps: - - uses: googleapis/release-please-action@v4 + - name: Initialize Release Please + id: release + uses: googleapis/release-please-action@v4 with: target-branch: ${{ github.ref_name }} token: ${{ secrets.RELEASE_PLEASE_TOKEN }} config-file: release-please-config.json manifest-file: .release-please-manifest.json + + - name: Checkout Sources + if: ${{ steps.release.outputs.release_created }} + uses: actions/checkout@v4 + + - name: Install NodeJS + if: ${{ steps.release.outputs.release_created }} + uses: actions/setup-node@v4 + with: + node-version: 20 + registry-url: "https://registry.npmjs.org" + scope: "@hpcc-js" + + - name: Install OS Dependencies + if: ${{ steps.release.outputs.release_created }} + run: | + sudo apt-get update + sudo apt-get install -y build-essential + sudo apt-get install -y git cmake ninja-build wget zip + sudo apt-get install -y gcc-multilib g++-multilib pkg-config autoconf bison libtool flex + sudo apt-get install -y python3 python3-pip + sudo apt-get install -y chromium + + - name: Export GitHub Actions cache environment variables + uses: actions/github-script@v7 + with: + script: | + core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || ''); + core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || ''); + + - name: Install Dependencies + if: ${{ steps.release.outputs.release_created }} + run: | + npm ci + npm run install-build-deps + + - name: Build + if: ${{ steps.release.outputs.release_created }} + run: | + npm run build + + - name: Test + if: ${{ steps.release.outputs.release_created }} + env: + CI: true + run: | + npm run test + + - name: Calculate Coverage + if: ${{ steps.release.outputs.release_created }} + run: | + npm run coverage + npm run coverage-report + + - name: Update Coveralls + if: ${{ steps.release.outputs.release_created }} + uses: coverallsapp/github-action@v2 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + + - name: Publish + if: ${{ steps.release.outputs.release_created }} + env: + NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} + run: | + npm publish + + - name: Purge jsdelivr + if: ${{ steps.release.outputs.release_created }} + run: | + npm run purge-jsdelivr diff --git a/.github/workflows/test-and-publish.yml b/.github/workflows/test-and-publish.yml index f64c30d0..27765f8f 100644 --- a/.github/workflows/test-and-publish.yml +++ b/.github/workflows/test-and-publish.yml @@ -1,4 +1,4 @@ -name: test-and-publish +name: Test PR env: VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite" @@ -63,30 +63,7 @@ jobs: npm run test - name: Calculate Coverage + if: ${{ matrix.node == 20 }} run: | npm run coverage npm run coverage-report - - - name: Update Coveralls - uses: coverallsapp/github-action@v2 - with: - github-token: ${{ secrets.GITHUB_TOKEN }} - - - name: Publish - if: github.ref_type == 'tag' - env: - NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} - run: | - npm publish ${{ contains(github.ref, 'next') && '--tag next' || '' }} - - - name: Purge jsdelivr - if: github.ref_type == 'tag' - run: | - npm run purge-jsdelivr - - - name: Create Release - if: github.ref_type == 'tag' - uses: "marvinpinto/action-automatic-releases@latest" - with: - repo_token: "${{ secrets.GITHUB_TOKEN }}" - prerelease: ${{ contains(github.ref, '-next.') }} diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 2f676566..1cfc0158 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,10 +1,10 @@ { ".": "3.0.0", - "packages/base91": "1.1.0", - "packages/duckdb": "1.1.0", - "packages/expat": "1.1.0", - "packages/graphviz": "1.1.0", - "packages/graphviz-cli": "1.1.0", - "packages/wasm": "3.1.0", - "packages/zstd": "1.1.0" + "packages/base91": "1.0.2", + "packages/duckdb": "1.0.1", + "packages/expat": "1.0.1", + "packages/graphviz": "1.0.3", + "packages/graphviz-cli": "1.0.4", + "packages/zstd": "1.0.2", + "packages/wasm": "2.18.3" } \ No newline at end of file diff --git a/README.md b/README.md index b72bd6c0..0840e263 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# @hpcc-js/wasm - Version 2 +# @hpcc-js/wasm - Version 3 ![Tests](https://github.com/hpcc-systems/hpcc-js-wasm/workflows/Test%20PR/badge.svg) [![Coverage Status](https://coveralls.io/repos/github/GordonSmith/hpcc-js-wasm/badge.svg?branch=BUMP_VERSIONS)](https://coveralls.io/github/GordonSmith/hpcc-js-wasm?branch=BUMP_VERSIONS) @@ -9,7 +9,7 @@ This repository contains a collection of useful c++ libraries compiled to WASM f - [base91](https://base91.sourceforge.net/) - v0.6.0 - [duckdb](https://github.com/duckdb/duckdb) - v0.9.2 - [expat](https://libexpat.github.io/) - v2.6.2 -- [graphviz](https://www.graphviz.org/) - v12.0.0 +- [graphviz](https://www.graphviz.org/) - v12.1.0 - [zstd](https://github.com/facebook/zstd) - v1.5.6 - ...more to follow... @@ -25,10 +25,23 @@ Built with: * [Graphviz](https://hpcc-systems.github.io/hpcc-js-wasm/graphviz/classes/Graphviz.html) * [Zstd](https://hpcc-systems.github.io/hpcc-js-wasm/zstd/classes/Zstd.html) +## Version 3 Changes + +Converted this repository to a monorepo with the following packages: +- @hpcc-js/wasm-base91 +- @hpcc-js/wasm-duckdb +- @hpcc-js/wasm-expat +- @hpcc-js/wasm-graphviz +- @hpcc-js/wasm-graphviz-cli +- @hpcc-js/wasm-zstd +- @hpcc-js/wasm (meta package for backward compatibility) + ## Quick Start ```ts -import { Base91, Graphviz, Zstd } from "@hpcc-js/wasm"; +import { Base91 } from "@hpcc-js/wasm-base91"; +import { Graphviz } from "@hpcc-js/wasm-graphviz"; +import { Zstd } from "@hpcc-js/wasm-zstd"; // Graphviz --- async function dot2svg() { @@ -98,3 +111,18 @@ Notes: * wasmFolder is no longer needed * All wasm libraries have the same asynchronous load pattern - `const instance = await .load();` + +v3.x.x +```ts +import { Graphviz } from "@hpcc-js/wasm-graphviz"; + +const dot = "digraph G { Hello -> World }"; + +Graphviz.load().then(graphviz => { + const svg = graphviz.dot(dot); + const div = document.getElementById("placeholder"); + div.innerHTML = svg; + + console.log(graphviz.version()); +}); +``` diff --git a/package-lock.json b/package-lock.json index fc60dab6..bdd17851 100644 --- a/package-lock.json +++ b/package-lock.json @@ -43,7 +43,7 @@ "run-script-os": "1.1.6", "tslib": "2.6.3", "typedoc": "0.26.5", - "typedoc-plugin-markdown": "4.2.3", + "typedoc-plugin-markdown": "4.2.4", "typescript": "5.5.4", "typescript-eslint": "8.1.0", "vitepress": "1.3.2" @@ -761,9 +761,9 @@ } }, "node_modules/@duckdb/duckdb-wasm": { - "version": "1.28.1-dev106.0", - "resolved": "https://registry.npmjs.org/@duckdb/duckdb-wasm/-/duckdb-wasm-1.28.1-dev106.0.tgz", - "integrity": "sha512-HcA9q/Yq1t8nAIg2rl8DmOTjKy1tAHSdBGHlCcWAm5StsfAjcm+f0STBEH3hmWPk0qEtOJF30OR+GfeyUOP+hA==", + "version": "1.28.1-dev99.0", + "resolved": "https://registry.npmjs.org/@duckdb/duckdb-wasm/-/duckdb-wasm-1.28.1-dev99.0.tgz", + "integrity": "sha512-EgIRjUFAos4oT4QeFLK6g7IDPWFWu8dP/mj2/b0pyiN5dDL+xxKW2KyLbeAs26L6Y6yeYy0O4OJSezFOqTbOmg==", "dev": true, "license": "MIT", "dependencies": { @@ -4660,9 +4660,9 @@ "license": "MIT" }, "node_modules/axios": { - "version": "1.7.3", - "resolved": "https://registry.npmjs.org/axios/-/axios-1.7.3.tgz", - "integrity": "sha512-Ar7ND9pU99eJ9GpoGQKhKf58GpUOgnzuaB7ueNQ5BMi0p+LZ5oaEnfF999fAArcTIBwXTCHAmGcHOZJaWPq9Nw==", + "version": "1.7.4", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.7.4.tgz", + "integrity": "sha512-DukmaFRnY6AzAALSH4J2M3k6PkaC+MfaAGdEERRWcC9q3/TWQwLpHR8ZRLKTdQ3aBDL64EdluRDjJqKw+BPZEw==", "dev": true, "license": "MIT", "dependencies": { @@ -15408,9 +15408,9 @@ "license": "MIT" }, "node_modules/search-insights": { - "version": "2.16.2", - "resolved": "https://registry.npmjs.org/search-insights/-/search-insights-2.16.2.tgz", - "integrity": "sha512-+KrS5rnYlyWgzoCNJGsNPw7Vv+47Y7Ze7KZ+/9Xls+5BUugEbU2yv1n9JsQOqv+MLKYfg3bxI5K6tYJxXZY8FA==", + "version": "2.16.3", + "resolved": "https://registry.npmjs.org/search-insights/-/search-insights-2.16.3.tgz", + "integrity": "sha512-hSHy/s4Zk2xibhj9XTCACB+1PqS+CaJxepGNBhKc/OsHRpqvHAUAm5+uZ6kJJbGXn0pb3XqekHjg6JAqPExzqg==", "dev": true, "license": "MIT", "peer": true @@ -17065,9 +17065,9 @@ } }, "node_modules/typedoc-plugin-markdown": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/typedoc-plugin-markdown/-/typedoc-plugin-markdown-4.2.3.tgz", - "integrity": "sha512-esucQj79SFYOv0f5XVha7QWdLUH5C5HRlDf7Z8CXzHedmVPn7jox6Gt7FdoBXN8AFxyHpa3Lbuxu65Dobwt+4Q==", + "version": "4.2.4", + "resolved": "https://registry.npmjs.org/typedoc-plugin-markdown/-/typedoc-plugin-markdown-4.2.4.tgz", + "integrity": "sha512-9jdYqF5Sx1qxvSo7wV1mUHA2XYn3Y1DJ/ttCWW1V4lHdzDAwIA/EB9U92Ryx3GOSD73X1u8eTu8fBjoCmkURTQ==", "dev": true, "license": "MIT", "engines": { @@ -18087,7 +18087,7 @@ }, "packages/base91": { "name": "@hpcc-js/wasm-base91", - "version": "1.1.0", + "version": "1.0.2", "license": "Apache-2.0", "devDependencies": { "@hpcc-js/esbuild-plugins": "1.0.7" @@ -18095,16 +18095,16 @@ }, "packages/duckdb": { "name": "@hpcc-js/wasm-duckdb", - "version": "1.1.0", + "version": "1.0.1", "license": "Apache-2.0", "devDependencies": { - "@duckdb/duckdb-wasm": "1.28.1-dev106.0", + "@duckdb/duckdb-wasm": "1.28.1-dev99.0", "@hpcc-js/esbuild-plugins": "1.0.7" } }, "packages/expat": { "name": "@hpcc-js/wasm-expat", - "version": "1.1.0", + "version": "1.0.1", "license": "Apache-2.0", "devDependencies": { "@hpcc-js/esbuild-plugins": "1.0.7" @@ -18112,7 +18112,7 @@ }, "packages/graphviz": { "name": "@hpcc-js/wasm-graphviz", - "version": "1.1.0", + "version": "1.0.3", "license": "Apache-2.0", "devDependencies": { "@hpcc-js/esbuild-plugins": "1.0.7" @@ -18120,10 +18120,10 @@ }, "packages/graphviz-cli": { "name": "@hpcc-js/wasm-graphviz-cli", - "version": "1.1.0", + "version": "1.0.4", "license": "Apache-2.0", "dependencies": { - "@hpcc-js/wasm-graphviz": "1.1.0", + "@hpcc-js/wasm-graphviz": "1.0.3", "yargs": "17.7.2" }, "bin": { @@ -18133,18 +18133,9 @@ "@hpcc-js/esbuild-plugins": "1.0.7" } }, - "packages/graphviz-cli/node_modules/@hpcc-js/wasm-graphviz": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/@hpcc-js/wasm-graphviz/-/wasm-graphviz-1.0.2.tgz", - "integrity": "sha512-+eIL6lM/OWeNkuKCd7udq3+58C3oiD/nWMGFfnubw/+tgGTt5rtwXSGfFcsmCuzLYc0+YFAfXHqx0vVX/uI5oA==", - "license": "Apache-2.0", - "dependencies": { - "yargs": "17.7.2" - } - }, "packages/wasm": { "name": "@hpcc-js/wasm", - "version": "3.1.0", + "version": "2.18.3", "license": "Apache-2.0", "dependencies": { "yargs": "17.7.2" @@ -18154,27 +18145,17 @@ }, "devDependencies": { "@hpcc-js/esbuild-plugins": "1.0.7", - "@hpcc-js/wasm-base91": "1.1.0", - "@hpcc-js/wasm-duckdb": "1.1.0", - "@hpcc-js/wasm-expat": "1.1.0", - "@hpcc-js/wasm-graphviz": "1.1.0", - "@hpcc-js/wasm-zstd": "1.1.0", + "@hpcc-js/wasm-base91": "1.0.2", + "@hpcc-js/wasm-duckdb": "1.0.1", + "@hpcc-js/wasm-expat": "1.0.1", + "@hpcc-js/wasm-graphviz": "1.0.3", + "@hpcc-js/wasm-zstd": "1.0.2", "esbuild-plugin-umd-wrapper": "3.0.0" } }, - "packages/wasm/node_modules/@hpcc-js/wasm-graphviz": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/@hpcc-js/wasm-graphviz/-/wasm-graphviz-1.0.2.tgz", - "integrity": "sha512-+eIL6lM/OWeNkuKCd7udq3+58C3oiD/nWMGFfnubw/+tgGTt5rtwXSGfFcsmCuzLYc0+YFAfXHqx0vVX/uI5oA==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "yargs": "17.7.2" - } - }, "packages/zstd": { "name": "@hpcc-js/wasm-zstd", - "version": "1.1.0", + "version": "1.0.2", "license": "Apache-2.0", "devDependencies": { "@hpcc-js/esbuild-plugins": "1.0.7" diff --git a/package.json b/package.json index 3cc89ded..0413e708 100644 --- a/package.json +++ b/package.json @@ -57,6 +57,7 @@ "git-push": "git push --follow-tags upstream trunk", "serve-docs": "vitepress serve docs", "serve": "ws", + "lint-skypack": "lerna run lint-skypack", "lint": "lerna run lint", "lint-fix": "npm run lint -- --fix", "test-node": "lerna run test-node", @@ -66,8 +67,10 @@ "tag": "run-s standard-version git-push", "tag-next": "run-s standard-version-next git-push", "purge-jsdelivr": "node ./utils/purge-jsdelivr.js", - "update": "npx -y npm-check-updates -u -t minor", - "update-major": "npx -y npm-check-updates -u" + "update-root": "npx -y npm-check-updates -u -t minor", + "update": "npm run update-root && lerna run update", + "update-major-root": "npx -y npm-check-updates -u", + "update-major": "npm run update-major-root && lerna run update-major" }, "dependencies": {}, "devDependencies": { @@ -102,7 +105,7 @@ "run-script-os": "1.1.6", "tslib": "2.6.3", "typedoc": "0.26.5", - "typedoc-plugin-markdown": "4.2.3", + "typedoc-plugin-markdown": "4.2.4", "typescript": "5.5.4", "typescript-eslint": "8.1.0", "vitepress": "1.3.2" diff --git a/packages/base91/package.json b/packages/base91/package.json index c87f40b7..d569398c 100644 --- a/packages/base91/package.json +++ b/packages/base91/package.json @@ -1,6 +1,6 @@ { "name": "@hpcc-js/wasm-base91", - "version": "1.1.0", + "version": "1.0.2", "description": "hpcc-js - WASM Base91", "type": "module", "exports": { @@ -27,11 +27,13 @@ "build": "run-p build-types build-ts", "lint-skypack": "npx -y @skypack/package-check", "lint-eslint": "eslint src/**/*.ts", - "lint": "run-p lint-eslint lint-skypack", + "lint": "run-p lint-eslint", "test-chrome": "karma start --single-run --browsers ChromiumHeadless karma.conf.cjs", "test-firefox": "karma start --single-run --browsers Firefox karma.conf.cjs", "test-node": "nyc mocha ./dist-test/index.node.js --reporter spec", - "test": "run-s test-chrome test-node" + "test": "run-s test-chrome test-node", + "update": "npx -y npm-check-updates -u -t minor", + "update-major": "npx -y npm-check-updates -u" }, "dependencies": {}, "devDependencies": { diff --git a/packages/duckdb/package.json b/packages/duckdb/package.json index 0fa44f44..add6319d 100644 --- a/packages/duckdb/package.json +++ b/packages/duckdb/package.json @@ -1,6 +1,6 @@ { "name": "@hpcc-js/wasm-duckdb", - "version": "1.1.0", + "version": "1.0.1", "description": "hpcc-js - WASM DuckDB", "type": "module", "exports": { @@ -31,14 +31,16 @@ "build": "npm-run-all --serial pack-duckdb --parallel build-types build-ts", "lint-skypack": "npx -y @skypack/package-check", "lint-eslint": "eslint src/**/*.ts", - "lint": "run-p lint-eslint lint-skypack", + "lint": "run-p lint-eslint", "test-chrome": "karma start --single-run --browsers ChromiumHeadless karma.conf.cjs", "test-firefox": "karma start --single-run --browsers Firefox karma.conf.cjs", - "test": "run-s test-chrome" + "test": "run-s test-chrome", + "update": "npx -y npm-check-updates -u -t minor", + "update-major": "npx -y npm-check-updates -u" }, "dependencies": {}, "devDependencies": { - "@duckdb/duckdb-wasm": "1.28.1-dev106.0", + "@duckdb/duckdb-wasm": "1.28.1-dev99.0", "@hpcc-js/esbuild-plugins": "1.0.7" }, "keywords": [ diff --git a/packages/duckdb/test/duckdb.ts b/packages/duckdb/test/duckdb.ts index 68bf8c38..be76b2b8 100644 --- a/packages/duckdb/test/duckdb.ts +++ b/packages/duckdb/test/duckdb.ts @@ -2,6 +2,7 @@ import { expect } from "chai"; import { DuckDB } from "@hpcc-js/wasm-duckdb"; describe("duckdb", function () { + this.timeout(5000); it("version", async function () { const duckdb = await DuckDB.load(); const v = duckdb.version(); diff --git a/packages/expat/package.json b/packages/expat/package.json index 65367d54..940bc0c4 100644 --- a/packages/expat/package.json +++ b/packages/expat/package.json @@ -1,6 +1,6 @@ { "name": "@hpcc-js/wasm-expat", - "version": "1.1.0", + "version": "1.0.1", "description": "hpcc-js - WASM expat", "type": "module", "exports": { @@ -27,11 +27,13 @@ "build": "run-p build-types build-ts", "lint-skypack": "npx -y @skypack/package-check", "lint-eslint": "eslint src/**/*.ts", - "lint": "run-p lint-eslint lint-skypack", + "lint": "run-p lint-eslint", "test-chrome": "karma start --single-run --browsers ChromiumHeadless karma.conf.cjs", "test-firefox": "karma start --single-run --browsers Firefox karma.conf.cjs", "test-node": "mocha ./dist-test/index.node.js --reporter spec", - "test": "run-s test-chrome test-node" + "test": "run-s test-chrome test-node", + "update": "npx -y npm-check-updates -u -t minor", + "update-major": "npx -y npm-check-updates -u" }, "devDependencies": { "@hpcc-js/esbuild-plugins": "1.0.7" diff --git a/packages/graphviz-cli/package.json b/packages/graphviz-cli/package.json index 8d85b46c..1557cdb4 100644 --- a/packages/graphviz-cli/package.json +++ b/packages/graphviz-cli/package.json @@ -1,6 +1,6 @@ { "name": "@hpcc-js/wasm-graphviz-cli", - "version": "1.1.0", + "version": "1.0.4", "description": "hpcc-js - WASM Graphviz Cli", "type": "module", "bin": { @@ -30,10 +30,12 @@ "build": "run-p build-types build-ts", "lint-skypack": "npx -y @skypack/package-check", "lint-eslint": "eslint src/**/*.ts", - "lint": "run-p lint-eslint lint-skypack" + "lint": "run-p lint-eslint", + "update": "npx -y npm-check-updates -u -t minor", + "update-major": "npx -y npm-check-updates -u" }, "dependencies": { - "@hpcc-js/wasm-graphviz": "1.1.0", + "@hpcc-js/wasm-graphviz": "1.0.3", "yargs": "17.7.2" }, "devDependencies": { diff --git a/packages/graphviz/package.json b/packages/graphviz/package.json index d43dc5eb..e0e7390b 100644 --- a/packages/graphviz/package.json +++ b/packages/graphviz/package.json @@ -1,6 +1,6 @@ { "name": "@hpcc-js/wasm-graphviz", - "version": "1.1.0", + "version": "1.0.3", "description": "hpcc-js - WASM Graphviz", "type": "module", "exports": { @@ -27,11 +27,13 @@ "build": "run-p build-types build-ts", "lint-skypack": "npx -y @skypack/package-check", "lint-eslint": "eslint src/**/*.ts", - "lint": "run-p lint-eslint lint-skypack", + "lint": "run-p lint-eslint", "test-chrome": "karma start --single-run --browsers ChromiumHeadless karma.conf.cjs", "test-firefox": "karma start --single-run --browsers Firefox karma.conf.cjs", "test-node": "mocha ./dist-test/index.node.js --reporter spec", - "test": "run-s test-chrome test-node" + "test": "run-s test-chrome test-node", + "update": "npx -y npm-check-updates -u -t minor", + "update-major": "npx -y npm-check-updates -u" }, "dependencies": {}, "devDependencies": { diff --git a/packages/graphviz/test/graphviz.ts b/packages/graphviz/test/graphviz.ts index 35cad9ce..b51bc19c 100644 --- a/packages/graphviz/test/graphviz.ts +++ b/packages/graphviz/test/graphviz.ts @@ -33,7 +33,7 @@ describe("graphviz", function () { let graphviz = await Graphviz.load(); let v = graphviz.version(); expect(v).to.be.a.string; - expect(v).to.equal("12.0.0"); + expect(v).to.equal("12.1.0"); console.log("graphviz version: " + v); Graphviz.unload(); diff --git a/packages/wasm/README.md b/packages/wasm/README.md index 9df4a13e..25a80154 100644 --- a/packages/wasm/README.md +++ b/packages/wasm/README.md @@ -1,6 +1,6 @@ # @hpcc-js/wasm -_This folder contains a rebundling the following WebAssembly libraries for backward compatability:_ +_This folder contains a rebundling the following WebAssembly libraries for backward compatability with v2.x.x:_ * [@hpcc-js/wasm-base91](../base91/README.md) * [@hpcc-js/wasm-duckdb](../duckdb/README.md) diff --git a/packages/wasm/package.json b/packages/wasm/package.json index 6c920609..ebeb8d47 100644 --- a/packages/wasm/package.json +++ b/packages/wasm/package.json @@ -1,6 +1,6 @@ { "name": "@hpcc-js/wasm", - "version": "3.1.0", + "version": "2.18.3", "description": "hpcc-js - WASM Libraries", "type": "module", "exports": { @@ -66,22 +66,24 @@ "build": "run-p build-types build-ts", "lint-skypack": "npx -y @skypack/package-check", "lint-eslint": "eslint src/**/*.ts", - "lint": "run-p lint-eslint lint-skypack", + "lint": "run-p lint-eslint", "test-chrome": "karma start --single-run --browsers ChromiumHeadless karma.conf.cjs", "test-firefox": "karma start --single-run --browsers Firefox karma.conf.cjs", "test-node": "mocha ./dist-test/index.node.js --reporter spec", - "test": "run-s test-chrome test-node" + "test": "run-s test-chrome test-node", + "update": "npx -y npm-check-updates -u -t minor", + "update-major": "npx -y npm-check-updates -u" }, "dependencies": { "yargs": "17.7.2" }, "devDependencies": { "@hpcc-js/esbuild-plugins": "1.0.7", - "@hpcc-js/wasm-base91": "1.1.0", - "@hpcc-js/wasm-duckdb": "1.1.0", - "@hpcc-js/wasm-expat": "1.1.0", - "@hpcc-js/wasm-graphviz": "1.1.0", - "@hpcc-js/wasm-zstd": "1.1.0", + "@hpcc-js/wasm-base91": "1.0.2", + "@hpcc-js/wasm-duckdb": "1.0.1", + "@hpcc-js/wasm-expat": "1.0.1", + "@hpcc-js/wasm-graphviz": "1.0.3", + "@hpcc-js/wasm-zstd": "1.0.2", "esbuild-plugin-umd-wrapper": "3.0.0" }, "keywords": [ diff --git a/packages/wasm/test/graphviz.ts b/packages/wasm/test/graphviz.ts index 35cad9ce..b51bc19c 100644 --- a/packages/wasm/test/graphviz.ts +++ b/packages/wasm/test/graphviz.ts @@ -33,7 +33,7 @@ describe("graphviz", function () { let graphviz = await Graphviz.load(); let v = graphviz.version(); expect(v).to.be.a.string; - expect(v).to.equal("12.0.0"); + expect(v).to.equal("12.1.0"); console.log("graphviz version: " + v); Graphviz.unload(); diff --git a/packages/zstd/package.json b/packages/zstd/package.json index 305eb4cb..5f131ab1 100644 --- a/packages/zstd/package.json +++ b/packages/zstd/package.json @@ -1,6 +1,6 @@ { "name": "@hpcc-js/wasm-zstd", - "version": "1.1.0", + "version": "1.0.2", "description": "hpcc-js - WASM zstd", "type": "module", "exports": { @@ -27,11 +27,13 @@ "build": "run-p build-types build-ts", "lint-skypack": "npx -y @skypack/package-check", "lint-eslint": "eslint src/**/*.ts", - "lint": "run-p lint-eslint lint-skypack", + "lint": "run-p lint-eslint", "test-chrome": "karma start --single-run --browsers ChromiumHeadless karma.conf.cjs", "test-firefox": "karma start --single-run --browsers Firefox karma.conf.cjs", "test-node": "mocha ./dist-test/index.node.js --reporter spec", - "test": "run-s test-chrome test-node" + "test": "run-s test-chrome test-node", + "update": "npx -y npm-check-updates -u -t minor", + "update-major": "npx -y npm-check-updates -u" }, "dependencies": {}, "devDependencies": { diff --git a/release-please-config.json b/release-please-config.json index c995355b..4ce7b881 100644 --- a/release-please-config.json +++ b/release-please-config.json @@ -8,8 +8,8 @@ "packages/expat": {}, "packages/graphviz": {}, "packages/graphviz-cli": {}, - "packages/wasm": {}, - "packages/zstd": {} + "packages/zstd": {}, + "packages/wasm": {} }, "plugins": [ { diff --git a/vcpkg-overlays/graphviz/portfile.cmake b/vcpkg-overlays/graphviz/portfile.cmake index 2a2de77e..4d2a1180 100644 --- a/vcpkg-overlays/graphviz/portfile.cmake +++ b/vcpkg-overlays/graphviz/portfile.cmake @@ -3,7 +3,7 @@ vcpkg_from_gitlab( OUT_SOURCE_PATH SOURCE_PATH REPO graphviz/graphviz REF "${VERSION}" - SHA512 2b19fa78b9b121140546e679a6d8892b54ca4fe13a8b51a3b3fd9dd90dc910891931e5e8194a5c9324cbb112007416dc841063d84c90eb5e678da16adc8eeff9 + SHA512 cd99efeb4516b34f32b3c4432bf022dd412919b502edcc54541f112e5330bd14fe3fdecc819fc482cd57a8e1b2ee93d85793531fadf2f3b4422c317a0b3b049d HEAD_REF main ) diff --git a/vcpkg-overlays/graphviz/vcpkg.json b/vcpkg-overlays/graphviz/vcpkg.json index 57c588f0..c9fe5b6f 100644 --- a/vcpkg-overlays/graphviz/vcpkg.json +++ b/vcpkg-overlays/graphviz/vcpkg.json @@ -1,6 +1,6 @@ { "name": "graphviz", - "version-semver": "12.0.0", + "version-semver": "12.1.0", "port-version": 0, "homepage": "https://graphviz.org/", "description": "Graphviz is open source graph visualization software. Graph visualization is a way of representing structural information as diagrams of abstract graphs and networks. It has important applications in networking, bioinformatics, software engineering, database and web design, machine learning, and in visual interfaces for other technical domains.",