mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2026-06-19 07:36:59 +00:00
chore: prepare v2.3.11
This commit is contained in:
+1
-1
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "nginx-ui-app-next",
|
||||
"type": "module",
|
||||
"version": "2.3.10",
|
||||
"version": "2.3.11",
|
||||
"packageManager": "pnpm@11.1.1",
|
||||
"scripts": {
|
||||
"dev": "vite --host",
|
||||
|
||||
@@ -1 +1 @@
|
||||
{"version":"2.3.10","build_id":1,"total_build":521}
|
||||
{"version":"2.3.11","build_id":1,"total_build":522}
|
||||
Binary file not shown.
Binary file not shown.
@@ -422,6 +422,11 @@
|
||||
"https://nginx.org/en/docs/ngx_core_module.html#error_log"
|
||||
]
|
||||
},
|
||||
"error_log_tag": {
|
||||
"links": [
|
||||
"https://nginx.org/en/docs/http/ngx_http_core_module.html#error_log_tag"
|
||||
]
|
||||
},
|
||||
"error_page": {
|
||||
"links": [
|
||||
"https://nginx.org/en/docs/http/ngx_http_core_module.html#error_page"
|
||||
@@ -1235,6 +1240,7 @@
|
||||
},
|
||||
"js_access": {
|
||||
"links": [
|
||||
"https://nginx.org/en/docs/http/ngx_http_js_module.html#js_access",
|
||||
"https://nginx.org/en/docs/stream/ngx_stream_js_module.html#js_access"
|
||||
]
|
||||
},
|
||||
|
||||
+17
-3
@@ -3,8 +3,21 @@
|
||||
# Version validation regex pattern
|
||||
VALID_VERSION_REGEX='^v?[0-9]+\.[0-9]+\.[0-9]+(-[a-zA-Z0-9\.]+)?$'
|
||||
|
||||
# Prompt for version input
|
||||
while true; do
|
||||
# Resolve version: non-interactive `bump <version>` mode or interactive prompt
|
||||
if [[ "$1" == "bump" ]]; then
|
||||
VERSION="$2"
|
||||
if [[ -z "$VERSION" ]]; then
|
||||
echo "Error: missing version argument. Usage: ./version.sh bump <version>"
|
||||
exit 1
|
||||
fi
|
||||
if [[ ! "${VERSION#v}" =~ $VALID_VERSION_REGEX ]]; then
|
||||
echo "Error: Invalid version format. Please use semantic versioning (e.g. 2.0.0, v2.0.1-beta.1)"
|
||||
exit 1
|
||||
fi
|
||||
echo "Bumping to version: ${VERSION}"
|
||||
else
|
||||
# Prompt for version input
|
||||
while true; do
|
||||
read -p "Enter version number: " VERSION
|
||||
|
||||
# Remove 'v' prefix for validation
|
||||
@@ -28,7 +41,8 @@ while true; do
|
||||
else
|
||||
echo "Error: Invalid version format. Please use semantic versioning (e.g. 2.0.0, v2.0.1-beta.1)"
|
||||
fi
|
||||
done
|
||||
done
|
||||
fi
|
||||
|
||||
# Cross-platform compatible sed command
|
||||
if [[ "$OSTYPE" == "darwin"* ]]; then
|
||||
|
||||
Reference in New Issue
Block a user