0.1.4
Release Notes for Obsidian Friday Plugin Update
We are excited to announce a new release of the Obsidian Friday plugin with significant improvements and fixes based on community feedback. Here's what's new:
Enhancements & Fixes
-
Improved CSS Selectors
- Updated all CSS selectors to be unique and specific to the plugin to avoid potential conflicts.
Examples:.my-modal
and.my-iframe
have been renamed to more distinctive identifiers.
- Updated all CSS selectors to be unique and specific to the plugin to avoid potential conflicts.
-
Simplified Funding URL
- Removed the
"fundingUrl": "https://github.com/sunwei"
line as it is not applicable for the plugin.
- Removed the
-
Optimized Layout Initialization
- Simplified layout initialization code to:
This ensures the callback runs even if the layout is already ready.
this.app.workspace.onLayoutReady(() => this.initLeaf());
- Simplified layout initialization code to:
-
Followed Plugin Guidelines
- Removed the
onunload
code that detaches custom leaves (FRIDAY_SERVER_VIEW_TYPE
) to align with Obsidian’s plugin guidelines.
- Removed the
-
Consistent UI Naming
- Updated UI elements to use sentence case for better readability:
.setName('Netlify token')
.setPlaceholder('Enter your Netlify token')
Note: "Netlify" retains its brand capitalization.
- Updated UI elements to use sentence case for better readability:
-
Improved JSON Handling
- Replaced
JSON.parse(response.text)
withresponse.json()
for a more modern and cleaner approach to handling JSON responses.
- Replaced
-
Custom User Credentials
- Removed hardcoded email defaults (
user_${Math.floor(Math.random() * 1000000)}@mdfriday.com
).- Users can now define their own email and password during the configuration process.
- Removed hardcoded email defaults (
-
Better File Processing
- Replaced manual file-reading logic with the
processFrontMatter
function provided by the Obsidian API for better performance and maintainability.
- Replaced manual file-reading logic with the
Acknowledgments
Thank you to all the users who provided valuable feedback. These changes are aimed at making the Friday plugin more robust, user-friendly, and compliant with Obsidian's best practices.
For questions or support, please feel free to reach out via our GitHub page.