Macros 2.6.2
A polish-and-hardening release: a notable cold-start bug fix, food-table refinements, and a broad pass to meet Obsidian's community plugin scorecard (security, dependencies, CSS, and deprecated APIs).
Fixes
- Charts now render on startup. When Obsidian reopened on a note containing a
macrospcormacroscalcchart, the chart could appear blank until you switched notes and back. Charts now draw reliably on a cold start (they render as soon as the view becomes visible). - Centered the "Food" column header so it lines up with the other column headers again.
Food table
- Removed the inline "−" remove-item button from food cells. Remove a food using the right-click context menu on desktop, or press-and-hold on mobile. Dropping the button frees up horizontal space so food names display with less truncation.
- Improved food-name display and tightened the left spacing in the name column.
Interface text
- Standardized English UI text to sentence case for consistency with Obsidian's interface conventions.
Security & reliability
- Removed the
crypto-jsdependency. FatSecret request signing (HMAC-SHA1) now uses the browser's built-in Web Crypto API, clearing the associated security advisories. - Removed dynamic remote script loading from the barcode scanner; the scanning library is bundled with the plugin instead.
Under the hood
- Raised
minAppVersionto 1.5.7 and removed thebuiltin-modulesbuild dependency. - CSS cleanup: eliminated
!importantoverrides, switched scrollbar styling to fully-supported equivalents, replaced:has()selectors with class toggles, and removed duplicate declarations. - Replaced the deprecated
setWarning()API with the equivalent styling, preserving the red destructive-button look. - Release artifacts (
main.js,manifest.json,styles.css) are now published with build provenance attestations.
Notes
Aside from the chart fix and the food-table layout changes, your existing macro tables, templates, charts, and food searches continue to work exactly as before. The only behavior change is how you remove a food from a table (right-click / press-and-hold instead of the inline button).