feat: update version to 1.4.0 and integrate APP_VERSION in components

This commit is contained in:
shuaiplus
2026-03-20 05:03:04 +08:00
parent cbf1e86881
commit fba2aa9746
6 changed files with 14 additions and 5 deletions
+2 -2
View File
@@ -1,12 +1,12 @@
{ {
"name": "nodewarden", "name": "nodewarden",
"version": "1.3.0", "version": "1.4.0",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "nodewarden", "name": "nodewarden",
"version": "1.3.0", "version": "1.4.0",
"license": "LGPL-3.0", "license": "LGPL-3.0",
"dependencies": { "dependencies": {
"@noble/hashes": "^2.0.1", "@noble/hashes": "^2.0.1",
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "nodewarden", "name": "nodewarden",
"version": "1.3.0", "version": "1.4.0",
"description": "Minimal Bitwarden-compatible server running on Cloudflare Workers", "description": "Minimal Bitwarden-compatible server running on Cloudflare Workers",
"author": "shuaiplus", "author": "shuaiplus",
"license": "LGPL-3.0", "license": "LGPL-3.0",
+1
View File
@@ -0,0 +1 @@
export const APP_VERSION = '1.4.0';
+2 -2
View File
@@ -1,5 +1,6 @@
import { zipSync, unzipSync } from 'fflate'; import { zipSync, unzipSync } from 'fflate';
import type { Env } from '../types'; import type { Env } from '../types';
import { APP_VERSION } from '../../shared/app-version';
import { import {
getAttachmentObjectKey, getAttachmentObjectKey,
getBlobStorageKind, getBlobStorageKind,
@@ -8,7 +9,6 @@ import {
type SqlRow = Record<string, string | number | null>; type SqlRow = Record<string, string | number | null>;
const BACKUP_FORMAT_VERSION = 1; const BACKUP_FORMAT_VERSION = 1;
const BACKUP_APP_VERSION = '1.3.0';
// Worker-side backup export must stay well below Cloudflare CPU limits. // Worker-side backup export must stay well below Cloudflare CPU limits.
// Prefer store-only ZIP entries over heavier compression to keep exports reliable. // Prefer store-only ZIP entries over heavier compression to keep exports reliable.
const BACKUP_TEXT_COMPRESSION_LEVEL = 0; const BACKUP_TEXT_COMPRESSION_LEVEL = 0;
@@ -294,7 +294,7 @@ export async function buildBackupArchive(
const manifestBase = { const manifestBase = {
formatVersion: BACKUP_FORMAT_VERSION, formatVersion: BACKUP_FORMAT_VERSION,
exportedAt: date.toISOString(), exportedAt: date.toISOString(),
appVersion: BACKUP_APP_VERSION, appVersion: APP_VERSION,
storageKind: getBlobStorageKind(env), storageKind: getBlobStorageKind(env),
tableCounts: { tableCounts: {
config: configRows.length, config: configRows.length,
@@ -1,4 +1,5 @@
import type { ComponentChildren } from 'preact'; import type { ComponentChildren } from 'preact';
import { APP_VERSION } from '@shared/app-version';
interface StandalonePageFrameProps { interface StandalonePageFrameProps {
title: string; title: string;
@@ -24,6 +25,8 @@ export default function StandalonePageFrame(props: StandalonePageFrameProps) {
<a href="https://github.com/shuaiplus/NodeWarden" target="_blank" rel="noreferrer">NodeWarden Repository</a> <a href="https://github.com/shuaiplus/NodeWarden" target="_blank" rel="noreferrer">NodeWarden Repository</a>
<span> | </span> <span> | </span>
<a href="https://github.com/shuaiplus" target="_blank" rel="noreferrer">Author: @shuaiplus</a> <a href="https://github.com/shuaiplus" target="_blank" rel="noreferrer">Author: @shuaiplus</a>
<span> | </span>
<span className="standalone-version">v{APP_VERSION}</span>
</div> </div>
</div> </div>
); );
+5
View File
@@ -206,6 +206,11 @@ body,
text-decoration: underline; text-decoration: underline;
} }
.standalone-version {
font-weight: 700;
color: #1d4ed8;
}
.muted { .muted {
margin: 0 0 16px 0; margin: 0 0 16px 0;
text-align: center; text-align: center;