Skip to content

Commit 825bd54

Browse files
authored
Merge pull request #83 from VariableThe/release/v0.5.7
release: v0.5.7 — auto-update overhaul and on-demand update checks
2 parents f45bae6 + 69a3e28 commit 825bd54

10 files changed

Lines changed: 35 additions & 8 deletions

File tree

AUDIT_LOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,18 @@
22

33
This log tracks all significant changes, updates, and versions in the PaperCache project.
44

5+
## 2026-06-29 (v0.5.7 Release: Auto-Update Overhaul, On-Demand Update Checks, and Build Fixes)
6+
**Change:** chore(release): bump version to 0.5.7; feat(updater): overhaul auto-update flow with real-time UI feedback ("Checking…"), toast notification with "Restart Now" button, and manifest configuration; fix(api): update `onEvent` listener helper to forward payloads to callbacks fixing TS2345 strict build error
7+
8+
**Details/Why:**
9+
1. **Version Bump**: Bumped application version to 0.5.7 across `package.json`, `package-lock.json`, `Cargo.toml`, `Cargo.lock`, `tauri.conf.json`, `Settings.tsx`, and `setupTests.ts`, and added release note `notes/New Features in v0.5.7.md`.
10+
2. **Auto-Update & On-Demand Checks**: Overhauled Tauri updater mechanism to emit status events and prompt user for controlled restart when updates are ready. Added "Check for Updates" visual feedback in Settings.
11+
3. **Build Fix**: Fixed TS2345 error where `onEvent` discarded payload parameters, ensuring strict `tsc -b` compilation succeeds cleanly.
12+
13+
**Files changed:** `package.json`, `package-lock.json`, `src-tauri/Cargo.toml`, `src-tauri/Cargo.lock`, `src-tauri/tauri.conf.json`, `src/Settings.tsx`, `src/setupTests.ts`, `notes/New Features in v0.5.7.md`, `CHANGELOG.md`, `AUDIT_LOG.md`.
14+
15+
---
16+
517
## 2026-06-29 (Security & Repo Hygiene Audit Fixes)
618
**Change:** chore(ci): pin action references in `release.yml` to SHA digests; chore(repo): untrack build binary `PaperCache_aarch64.app.tar.gz` and update `.gitignore`; fix(rust): replace `#[allow(dead_code)]` with `#[cfg(not(target_os = "macos"))]` on debounce constants
719

@@ -11,6 +23,8 @@ This log tracks all significant changes, updates, and versions in the PaperCache
1123
3. **Rust Config Gating**: Gated `FOCUS_LOSS_DEBOUNCE_MS` in `src-tauri/src/lib.rs` with `#[cfg(not(target_os = "macos"))]` so it is cleanly excluded on macOS where it is not used, eliminating dead-code warnings without blanket suppressions.
1224

1325
**Files changed:** `.github/workflows/release.yml`, `.gitignore`, `src-tauri/src/lib.rs`, `CHANGELOG.md`, `AUDIT_LOG.md`.
26+
27+
---
1428
## 2026-06-29 (Code Quality Refactor & Test Suite)
1529
**Change:** refactor(shortcuts): extract helper to deduplicate global shortcut trigger logic; fix(timers): manage completion timeout lifecycle in store; test(editor): add comprehensive unit test suite for `VariableScope`
1630

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [v0.5.7] - 2026-06-29
11+
1012
### Added
1113
- **Contextual Auto-Update UI**: When checking for updates in Settings, visual feedback is now displayed ("Checking…"). When an update is downloaded and ready, a persistent toast notification appears with a prominent "Restart Now" button so users can restart when convenient rather than experiencing unexpected application restarts.
1214

notes/New Features in v0.5.7.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# New Features in v0.5.7
2+
3+
Welcome to PaperCache v0.5.7!
4+
5+
Here are the new features and improvements implemented in this release:
6+
- **On-Demand Update Checks**: You can now manually check for updates directly from the Settings panel. Clicking "Check for Updates" provides immediate real-time feedback ("Checking…") while inquiring with GitHub releases.
7+
- **Contextual Auto-Update & Restart**: Auto-updates have been completely overhauled with granular status tracking. When a new update finishes downloading in the background, a persistent toast notification appears featuring a prominent **"Restart Now"** button. You can now choose exactly when to restart and apply updates rather than experiencing unexpected application disruptions.
8+
- **Robust CI & Release Manifests**: Fixed release workflow configuration so updater manifests (`latest.json`) are reliably generated on every release asset upload.
9+
- **Code Quality & Build Hardening**: Resolved TypeScript strict build type checking across event listeners and improved countdown timer memory cleanup.
10+
11+
*(If you have read this note, feel free to delete it)*

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "papercache",
33
"private": true,
4-
"version": "0.5.6",
4+
"version": "0.5.7",
55
"type": "module",
66
"scripts": {
77
"dev": "vite",

src-tauri/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src-tauri/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "papercache"
3-
version = "0.5.6"
3+
version = "0.5.7"
44
description = "A PaperCache Tauri App"
55
authors = ["Aditya Sharma"]
66
edition = "2021"

src-tauri/tauri.conf.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "https://schema.tauri.app/2.0.0/tauri.schema.json",
33
"productName": "PaperCache",
4-
"version": "0.5.6",
4+
"version": "0.5.7",
55
"identifier": "com.variablethe.papercache",
66
"build": {
77
"beforeDevCommand": "npm run dev",

src/Settings.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ export default function Settings({ onClose }: { onClose?: () => void }) {
8282
return () => disposeUpdateStatus()
8383
}, [])
8484

85-
const [appVersion, setAppVersion] = useState('0.5.6')
85+
const [appVersion, setAppVersion] = useState('0.5.7')
8686
useEffect(() => {
8787
getVersion()
8888
.then((ver) => setAppVersion(ver))

src/setupTests.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { vi, afterEach } from 'vitest'
33
import type { ElectronAPI } from './types'
44

55
vi.mock('@tauri-apps/api/app', () => ({
6-
getVersion: vi.fn().mockResolvedValue('0.5.6'),
6+
getVersion: vi.fn().mockResolvedValue('0.5.7'),
77
}))
88

99
// Mock matchMedia which is not present in jsdom but might be needed by some components

0 commit comments

Comments
 (0)