chore: prepare v2.3.11

This commit is contained in:
0xJacky
2026-05-17 17:31:06 +08:00
parent d87e7785ad
commit 6c86e5a594
6 changed files with 47 additions and 27 deletions
+1 -1
View File
@@ -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
View File
@@ -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.
+6
View File
@@ -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"
]
},
+39 -25
View File
@@ -3,32 +3,46 @@
# 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
read -p "Enter version number: " VERSION
# Remove 'v' prefix for validation
if [[ "${VERSION#v}" =~ $VALID_VERSION_REGEX ]]; then
# Show confirmation prompt with original input
echo "You entered version: ${VERSION}"
read -p "Is this correct? [Y/n] " confirm
case "$confirm" in
[Yy]|[Yy][Ee][Ss]|"")
break
;;
[Nn]|[Nn][Oo])
echo "Restarting version input..."
continue
;;
*)
echo "Invalid input, please answer Y/n"
continue
;;
esac
else
echo "Error: Invalid version format. Please use semantic versioning (e.g. 2.0.0, v2.0.1-beta.1)"
# 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
done
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
if [[ "${VERSION#v}" =~ $VALID_VERSION_REGEX ]]; then
# Show confirmation prompt with original input
echo "You entered version: ${VERSION}"
read -p "Is this correct? [Y/n] " confirm
case "$confirm" in
[Yy]|[Yy][Ee][Ss]|"")
break
;;
[Nn]|[Nn][Oo])
echo "Restarting version input..."
continue
;;
*)
echo "Invalid input, please answer Y/n"
continue
;;
esac
else
echo "Error: Invalid version format. Please use semantic versioning (e.g. 2.0.0, v2.0.1-beta.1)"
fi
done
fi
# Cross-platform compatible sed command
if [[ "$OSTYPE" == "darwin"* ]]; then