From 38fca744cd6bc8aff039001e6a53911ff2425cc7 Mon Sep 17 00:00:00 2001 From: Alexander Kucera Date: Fri, 5 Sep 2025 18:01:16 +0200 Subject: [PATCH] Improves plugin path resolution and versioning Fixes dynamic path detection for plugin resources Updates version to 1.0.1 across manifest files Adds version compatibility mapping Resolves issues with hardcoded directory paths Ensures more robust plugin directory detection and resource loading --- CHANGELOG.md | 8 ++++++++ manifest.json | 2 +- package.json | 2 +- versions.json | 3 ++- 4 files changed, 12 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6ac98fe..9f8abcf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,14 @@ 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.0.1] + +### Fixed +- **Dynamic Path Resolution**: Fixed font caching, template loading, and temp directory paths to use dynamic plugin directory resolution instead of hardcoded "obsidian-typst-pdf-export" paths +- **Plugin Directory Detection**: Updated PdfToImageConverter to dynamically detect plugin directory name from manifest +- **Template Manager Paths**: Fixed template directory path resolution to work with renamed plugin folder +- **Documentation**: Updated README.md to reflect correct folder name "typst-pdf-export" in all installation instructions + ## [1.0.0] ### Added diff --git a/manifest.json b/manifest.json index 3dd7384..cdfcde0 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "typst-pdf-export", "name": "Typst PDF Export", - "version": "1.0.0", + "version": "1.0.1", "minAppVersion": "1.9.12", "description": "Exports a note or collection of notes to a pretty Typst PDF.", "author": "Alexander Kucera", diff --git a/package.json b/package.json index bdf541f..9877660 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "obsidian-typst-pdf-export", - "version": "1.0.0", + "version": "1.0.1", "description": "Exports a note or collection of notes to a pretty Typst PDF.", "main": "main.js", "scripts": { diff --git a/versions.json b/versions.json index 0a874dd..f6716ca 100644 --- a/versions.json +++ b/versions.json @@ -1,3 +1,4 @@ { - "1.0.0": "1.9.12" + "1.0.0": "1.9.12", + "1.0.1": "1.9.12" }