Skip to content

Commit

Permalink
chore(release): bump v3.5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
sheyanjie-qq committed Jun 25, 2024
1 parent 90319f1 commit ddcc8f9
Show file tree
Hide file tree
Showing 3 changed files with 189 additions and 193 deletions.
176 changes: 88 additions & 88 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,89 +1,89 @@
{
"name": "tdengine-datasource",
"version": "3.5.2",
"description": "Grafana datasource plugin for TDengine",
"scripts": {
"build": "webpack -c ./.config/webpack/webpack.config.ts --env development",
"build:prod": "webpack -c ./.config/webpack/webpack.config.ts --env production",
"build:dist": "webpack -c ./.config/webpack/webpack.config.ts --env production && mage",
"build:all": "webpack -c ./.config/webpack/webpack.config.ts --env production && mage && npx --yes @grafana/sign-plugin && scripts/package.sh",
"test": "jest --watch --onlyChanged",
"test:ci": "jest --passWithNoTests --maxWorkers 4",
"typecheck": "tsc --noEmit",
"lint": "eslint --cache --ignore-path ./.gitignore --ext .js,.jsx,.ts,.tsx .",
"lint:fix": "yarn lint --fix",
"e2e": "yarn cypress install && yarn grafana-e2e run",
"e2e:update": "yarn cypress install && yarn grafana-e2e run --update-screenshots",
"server": "docker-compose up --build",
"sign": "npx --yes @grafana/sign-plugin",
"package": "scripts/package.sh"
},
"repository": {
"type": "git",
"url": "git+https://github.com/taosdata/grafanaplugin.git"
},
"author": "https://www.tdengine.com",
"license": "AGPL-3.0",
"bugs": {
"url": "https://github.com/taosdata/grafanaplugin/issues"
},
"homepage": "https://tdengine.com",
"engineStrict": true,
"devDependencies": {
"@babel/core": "^7.16.7",
"@grafana/e2e": "9.2.5",
"@grafana/e2e-selectors": "9.2.5",
"@grafana/eslint-config": "^5.1.0",
"@grafana/tsconfig": "^1.2.0-rc1",
"@swc/core": "^1.2.144",
"@swc/helpers": "^0.4.12",
"@swc/jest": "^0.2.23",
"@testing-library/jest-dom": "^5.16.2",
"@testing-library/react": "^12.1.4",
"@types/glob": "^8.0.0",
"@types/jest": "^29.2.2",
"@types/lodash": "^4.14.188",
"@types/node": "^18.11.9",
"@typescript-eslint/eslint-plugin": "^5.42.1",
"@typescript-eslint/parser": "^5.42.1",
"copy-webpack-plugin": "^11.0.0",
"css-loader": "^6.7.1",
"eslint": "8.26.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-jsdoc": "^39.6.2",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-react": "^7.26.1",
"eslint-plugin-react-hooks": "^4.2.0",
"eslint-webpack-plugin": "^3.1.1",
"fork-ts-checker-webpack-plugin": "^7.2.0",
"glob": "^8.0.3",
"identity-obj-proxy": "3.0.0",
"jest": "^29.3.1",
"jest-environment-jsdom": "^29.3.1",
"prettier": "^2.5.0",
"replace-in-file-webpack-plugin": "^1.0.6",
"sass": "1.56.1",
"sass-loader": "13.2.0",
"style-loader": "3.3.1",
"swc-loader": "^0.2.3",
"ts-node": "^10.5.0",
"tsconfig-paths": "^4.1.0",
"typescript": "^4.4.0",
"webpack": "^5.76.0",
"webpack-cli": "^4.9.2",
"webpack-livereload-plugin": "^3.0.2"
},
"engines": {
"node": ">=16"
},
"resolutions": {
"rxjs": "7.5.6"
},
"dependencies": {
"@grafana/data": "latest",
"@grafana/runtime": "latest",
"@grafana/ui": "latest",
"react": "17.0.2",
"react-dom": "17.0.2"
}
}
"name": "tdengine-datasource",
"version": "3.5.2",
"description": "Grafana datasource plugin for TDengine",
"scripts": {
"build": "webpack -c ./.config/webpack/webpack.config.ts --env development",
"build:prod": "webpack -c ./.config/webpack/webpack.config.ts --env production",
"build:dist": "webpack -c ./.config/webpack/webpack.config.ts --env production && mage",
"build:all": "webpack -c ./.config/webpack/webpack.config.ts --env production && mage && npx --yes @grafana/sign-plugin && scripts/package.sh",
"test": "jest --watch --onlyChanged",
"test:ci": "jest --passWithNoTests --maxWorkers 4",
"typecheck": "tsc --noEmit",
"lint": "eslint --cache --ignore-path ./.gitignore --ext .js,.jsx,.ts,.tsx .",
"lint:fix": "yarn lint --fix",
"e2e": "yarn cypress install && yarn grafana-e2e run",
"e2e:update": "yarn cypress install && yarn grafana-e2e run --update-screenshots",
"server": "docker-compose up --build",
"sign": "npx --yes @grafana/sign-plugin",
"package": "scripts/package.sh"
},
"repository": {
"type": "git",
"url": "git+https://github.com/taosdata/grafanaplugin.git"
},
"author": "https://www.tdengine.com",
"license": "AGPL-3.0",
"bugs": {
"url": "https://github.com/taosdata/grafanaplugin/issues"
},
"homepage": "https://tdengine.com",
"engineStrict": true,
"devDependencies": {
"@babel/core": "^7.16.7",
"@grafana/e2e": "9.2.5",
"@grafana/e2e-selectors": "9.2.5",
"@grafana/eslint-config": "^5.1.0",
"@grafana/tsconfig": "^1.2.0-rc1",
"@swc/core": "^1.2.144",
"@swc/helpers": "^0.4.12",
"@swc/jest": "^0.2.23",
"@testing-library/jest-dom": "^5.16.2",
"@testing-library/react": "^12.1.4",
"@types/glob": "^8.0.0",
"@types/jest": "^29.2.2",
"@types/lodash": "^4.14.188",
"@types/node": "^18.11.9",
"@typescript-eslint/eslint-plugin": "^5.42.1",
"@typescript-eslint/parser": "^5.42.1",
"copy-webpack-plugin": "^11.0.0",
"css-loader": "^6.7.1",
"eslint": "8.26.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-jsdoc": "^39.6.2",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-react": "^7.26.1",
"eslint-plugin-react-hooks": "^4.2.0",
"eslint-webpack-plugin": "^3.1.1",
"fork-ts-checker-webpack-plugin": "^7.2.0",
"glob": "^8.0.3",
"identity-obj-proxy": "3.0.0",
"jest": "^29.3.1",
"jest-environment-jsdom": "^29.3.1",
"prettier": "^2.5.0",
"replace-in-file-webpack-plugin": "^1.0.6",
"sass": "1.56.1",
"sass-loader": "13.2.0",
"style-loader": "3.3.1",
"swc-loader": "^0.2.3",
"ts-node": "^10.5.0",
"tsconfig-paths": "^4.1.0",
"typescript": "^4.4.0",
"webpack": "^5.76.0",
"webpack-cli": "^4.9.2",
"webpack-livereload-plugin": "^3.0.2"
},
"engines": {
"node": ">=16"
},
"resolutions": {
"rxjs": "7.5.6"
},
"dependencies": {
"@grafana/data": "latest",
"@grafana/runtime": "latest",
"@grafana/ui": "latest",
"react": "17.0.2",
"react-dom": "17.0.2"
}
}
16 changes: 6 additions & 10 deletions scripts/release.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,18 @@
import os
import sys
import json
import re
import subprocess
from datetime import datetime

def update_nested_json(obj, key, new_value):
if key in obj:
obj[key] = new_value
for k, v in obj.items():
if isinstance(v, dict):
update_nested_json(v, key, new_value)

def update_json(file, key, new_value):
with open(file, 'r+') as f:
data = json.load(f)
update_nested_json(data, key, new_value)
content = f.read()
pattern = f'"{key}": ".*?"'
replacement = f'"{key}": "{new_value}"'
content = re.sub(pattern, replacement, content)
f.seek(0)
json.dump(data, f, indent=4)
f.write(content)
f.truncate()

newv = sys.argv[1]
Expand Down
Loading

0 comments on commit ddcc8f9

Please sign in to comment.