From 70b96e44fd725055e28c59acd35030e90076314e Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 2 Aug 2026 00:20:28 +0000 Subject: [PATCH] Fix minAppVersion: declared 1.0.0, but uses a 1.1.0 API ButtonComponent.setIcon()/setTooltip() (history manager's delete button, added in the 0.9.71 history-management feature) were both introduced in Obsidian 1.1.0 -- manifest.json's minAppVersion still said 1.0.0, which the obsidianmd/no-unsupported-api linter flagged. Only usage in the codebase; no other API exceeds 1.0.0. 0.9.8 hasn't been released yet, so its versions.json entry is amended in place rather than bumping to a new plugin version. Co-Authored-By: Claude Sonnet 5 Claude-Session: https://claude.ai/code/session_011AnUmNKkH1y4ZAEPKF1WwQ --- CHANGELOG.md | 1 + manifest.json | 2 +- versions.json | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8dadffc..bc74350 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). ### Fixed - Date Picker: picking a date via the calendar grid or a quick-select button (Today/Tomorrow/Next week/...) always inserted `12:00` as the time, regardless of what was actually selected. The modal was reformatting the selection down to a bare date string and re-parsing it through the NLP engine to build the preview/output, which discarded the actual time and let chrono-node's "no time specified" default (noon) leak through. Quick-select buttons had a related issue: they carried the real current wall-clock time instead of a clean date. - Dutch: `next`/`last` were missing the neuter grammatical forms ("volgend"/"vorig", no final "-e") needed before neuter nouns like "jaar" and the newly-added "kwartaal" — only the common-gender forms ("volgende"/"vorige", used correctly before "week"/"maand") were recognized, so phrases like "volgend jaar" didn't parse as a relative expression. +- `manifest.json` declared `minAppVersion: "1.0.0"`, but the history manager's delete button (`ButtonComponent.setIcon()`/`.setTooltip()`) uses Obsidian APIs introduced in 1.1.0 — on Obsidian 1.0.x those calls would have thrown. Bumped `minAppVersion` to `1.1.0` to match what's actually used. ### Changed - Date Picker no longer deals with time at all — it's a date picker. Previously, picking a date always carried *some* time value (the real current wall-clock time), with no way to control or clear it. Rather than adding a settings menu to make that time optional, the modal now always produces a plain date, even if the manual input field is used to type a phrase that includes a time (e.g. "today at 3pm"). The default format changed from `YYYY-MM-DD HH:mm` to `YYYY-MM-DD` accordingly. For dates that do need a specific time, use the "Insert the current date and time" command or type a full expression into the autosuggest instead. diff --git a/manifest.json b/manifest.json index 06dfe69..3c299c4 100644 --- a/manifest.json +++ b/manifest.json @@ -2,7 +2,7 @@ "id": "nldates-revived", "name": "Natural Language Dates (Revived)", "version": "0.9.8", - "minAppVersion": "1.0.0", + "minAppVersion": "1.1.0", "description": "Auto-complete dates and times naturally (@today, @dans 20 min). Now with multilingual support and hybrid links.", "author": "Amato21 (Original by argenos)", "authorUrl": "https://github.com/Amato21", diff --git a/versions.json b/versions.json index 771136b..f050fd5 100644 --- a/versions.json +++ b/versions.json @@ -5,5 +5,5 @@ "0.9.6": "1.0.0", "0.9.7": "1.0.0", "0.9.71": "1.0.0", - "0.9.8": "1.0.0" + "0.9.8": "1.1.0" } \ No newline at end of file