From 948316e0f225730d5c1320f82aa1b3436006c963 Mon Sep 17 00:00:00 2001 From: Jakub Bednar Date: Thu, 29 Jun 2023 15:01:12 +0200 Subject: [PATCH] chore(release): prepare to release influxdb3-js-0.1.0 --- CHANGELOG.md | 5 +++- Makefile | 35 ++++++++++++++++++++++++++++ examples/package.json | 1 - package.json | 1 + packages/client-browser/package.json | 1 + packages/client/src/impl/version.ts | 2 +- 6 files changed, 42 insertions(+), 3 deletions(-) create mode 100644 Makefile diff --git a/CHANGELOG.md b/CHANGELOG.md index f4e4bb37..1d5a164d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ -## 0.1.0 [unreleased] +## 0.1.0 [2023-06-29] - initial release of new client version +- write using v2 api +- query using FlightSQL +- query using InfluxQl diff --git a/Makefile b/Makefile new file mode 100644 index 00000000..f637e17e --- /dev/null +++ b/Makefile @@ -0,0 +1,35 @@ +# **Releasing a new version** +# Ensure that: +# - You have administrator access to this repo on GitHub +# - You have permissions to publish to the [influxdata](https://www.npmjs.com/org/influxdata) organization on npm +# - You are on `main` and the working tree is clean +# Then run the publish target with VERSION specified: +# ``` +# make publish VERSION=1.8.0 +# ``` +.DEFAULT_GOAL := help + +help: + @echo "Please use \`make ' where is one of" + @echo "" + @echo " publish to publish packages to specified version by VERSION property. make publish VERSION=1.1.0" + @echo "" + +publish: + $(if $(VERSION),,$(error VERSION is not defined. Pass via "make publish VERSION=1.1.0")) + git checkout main + git pull + yarn install --frozen-lockfile + node scripts/change-version.js + yarn run build + yarn run test:unit + @echo "Publishing $(VERSION)..." + git commit -am "chore(release): prepare to release influxdb3-js-$(VERSION)" + npx lerna publish $(VERSION) + @echo "Publish successful" + @echo "" + @echo "Next steps:" + @echo " - publish updated API documentation by: \"yarn apidoc && yarn apidoc:gh-pages\"" + @echo " - add new version to CHANGELOG.md" + @echo " - push changes to repository by : \"git commit -am 'chore(release): prepare to next development iteration [skip CI]' && git push\"" + @echo "" diff --git a/examples/package.json b/examples/package.json index 9123fffd..e8db634f 100644 --- a/examples/package.json +++ b/examples/package.json @@ -1,6 +1,5 @@ { "name": "influxdb3-client-examples", - "version": "0.0.0", "main": "index.js", "license": "MIT", "private": true, diff --git a/package.json b/package.json index dc916460..ebc5698a 100644 --- a/package.json +++ b/package.json @@ -18,6 +18,7 @@ "build": "yarn workspaces run build", "test": "yarn --cwd packages/client build && yarn workspaces run test", "test:ci": "yarn workspaces run test:ci", + "test:unit": "yarn workspaces run test:unit", "coverage": "cd packages/client && yarn build && yarn coverage", "coverage:ci": "cd packages/client && yarn build && yarn coverage:ci", "flight": "node ./scripts/generate-flight" diff --git a/packages/client-browser/package.json b/packages/client-browser/package.json index 5e1fbfb6..aa6694e0 100644 --- a/packages/client-browser/package.json +++ b/packages/client-browser/package.json @@ -5,6 +5,7 @@ "scripts": { "apidoc:extract": "echo \"Nothing to do\"", "test": "echo \"Nothing to do\"", + "test:unit": "echo \"Nothing to do\"", "test:ci": "echo \"Nothing to do\"", "build": "yarn run clean && cpr ../client/dist ./dist", "clean": "rimraf dist" diff --git a/packages/client/src/impl/version.ts b/packages/client/src/impl/version.ts index 0681d2b2..95f8e079 100644 --- a/packages/client/src/impl/version.ts +++ b/packages/client/src/impl/version.ts @@ -1 +1 @@ -export const CLIENT_LIB_VERSION = '0.0.0' +export const CLIENT_LIB_VERSION = '0.1.0'