Enhances path handling and file resolution #5
No files matched your search
@@ -5,6 +5,27 @@ All notable changes to the Obsidian Typst PDF Export plugin will be documented i
|
||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||
|
||||
## [1.3.0] - 2024-12-25
|
||||
|
||||
### Added
|
||||
- PathUtils helper class for centralized path operations and safe Obsidian API usage
|
||||
- Improved Typst error reporting in Pandoc conversion with enhanced diagnostic output
|
||||
- New Typst templates for varied document styles (modern, article, report)
|
||||
- Enhanced README with plugin motivation, development philosophy, and updated badges
|
||||
|
||||
### Fixed
|
||||
- **Critical**: Embedded file path resolution issue that caused "File not found" errors for PDFs, images, and documents
|
||||
- Proper vault.adapter integration replacing unsafe type casts throughout codebase
|
||||
- Path handling reliability with comprehensive migration from Node.js fs/path to Obsidian APIs
|
||||
- File existence checks now handle both vault-relative and absolute filesystem paths
|
||||
|
||||
### Changed
|
||||
- **Major Refactoring**: Complete migration from Node.js fs/path to Obsidian vault.adapter APIs
|
||||
- Centralized path utilities replacing unsafe `(app.vault.adapter as unknown as { basePath: string }).basePath` patterns
|
||||
- Improved file system operations security and cross-platform compatibility
|
||||
- Enhanced error handling and path validation across all modules
|
||||
- Updated all 16 core files with consistent, safe path handling practices
|
||||
|
||||
## [1.2.1] - 2025-01-10
|
||||
|
||||
### Fixed
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"id": "typst-pdf-export",
|
||||
"name": "Typst PDF Export",
|
||||
"version": "1.2.1",
|
||||
"version": "1.3.0",
|
||||
"minAppVersion": "1.9.12",
|
||||
"description": "Exports a note or collection of notes to a pretty Typst PDF.",
|
||||
"author": "Alexander Kucera",
|
||||
|
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "obsidian-typst-pdf-export",
|
||||
"version": "1.2.1",
|
||||
"version": "1.3.0",
|
||||
"description": "Exports a note or collection of notes to a pretty Typst PDF.",
|
||||
"main": "main.js",
|
||||
"scripts": {
|
||||
|
||||
Reference in new issue
Block a user
⚠️ Potential issue | 🟠 Major
Reconsider minAppVersion: 1.9.12 limits users to early-access builds
Unless you rely on 1.9-only APIs, set minAppVersion to the latest stable (1.8.9) to avoid excluding stable users.
Apply this diff:
📝 Committable suggestion
🤖 Prompt for AI Agents
@coderabbitai I will reject this, because 1.9.12 is the most recent version and not in beta.
@AlexKucera Thank you for the correction! You're absolutely right - I apologize for the incorrect suggestion. As the plugin author, you would have current knowledge of Obsidian's versioning, and if 1.9.12 is indeed the latest stable version rather than early access, then your minAppVersion setting is appropriate.
I appreciate you clarifying this. Your minAppVersion of 1.9.12 is correct for targeting the current stable Obsidian release.
✏️ Learnings added