Skip to content

Kensidian v1.3.3

Latest

Choose a tag to compare

@github-actions github-actions released this 30 Nov 00:33

Fixed

  • Binary Asset Write IPC Mismatch (fs.rs, tauri.ts): Updated fs_write_asset to accept file_name and data: Vec<u8> matching the frontend writeAsset signature, added component name validation, and extracted prepare_unique_asset_path shared with fs_save_asset.
  • Atomic Note Creation (note.rs): Replaced exists() pre-check + atomic_write in note_create with OS-level OpenOptions::create_new(true) to eliminate TOCTOU race conditions on Windows and Unix.
  • Case-Insensitive Non-ASCII Search Offsets (search.rs): Replaced to_lowercase() offset calculation with regex::escape + (?i) so returned byte ranges always align with the original line string.
  • External Modification Conflict Handling (EditorPane.vue, id.ts, en.ts): Stopped silent disk overwrites on CONFLICT errors during note saving and instead notify the user via a warning toast while preserving unsaved editor state.
  • Folder Creation Conflict Detection (fs.rs): Replaced create_dir_all with create_dir for the target folder in fs_create_folder so existing folders properly return AlreadyExists.
  • Stateless Markdown Rendering (render.ts): Replaced module-level mutable activeVaultPath / activeDataDir globals with per-render RenderEnv passed through markdown-it env.
  • Project Mode Image Preview in Editor (imageWidget.ts, EditorPane.vue): Passed dataDir alongside vaultPath into imagePreviewExtension so embedded images stored in app_data_dir resolve correctly in Edit/Live Preview modes.