-
Function definition for
.socials()
accepts array instead of vector now -
Service
,SocialItem
have been moved tocomponents
-
Function definition for
.image()
has changed:// Old ❌ let content = Content::builder() .image( "https://example.com/image.jpg", Some("https://example.com"), Some(200), // Width Some(100), // Height Some("Alt Text"), ) .build()?; // New (just image) ✅ let content = Content::builder() .image("https://example.com/image.jpg") .build()?; // New (clickable image with custom attributes) ✅ let content = Content::builder() .component( Image::new("https://example.com/image.jpg") .url("https://example.com") .width(200) .height(100) .alt("Alt Text") .build()? ) .build()?;
-
Function definition for
.view_in_browser()
has changed:// Old ❌ let content = Content::builder() .view_in_browser(Some("Read Online".to_string())) .build()?; // New (default text "View in browser") ✅ let content = Content::builder() .view_in_browser() .build()?; // New (custom text) ✅ let content = Content::builder() .component(ViewInBrowser::new("Read Online")) .build()?;
- New social icons:
Service::Mastodon
andService::Rss
- New store badges component
- New QR code component
- New signature component
README.md
- markdown supports ordered/unordered lists
- notice about test mode
- Support for test mode logging
README.md
cleanup (listing of components)Image
component now requires onlysrc
; the other params are optionalcontent.image(...)
param order has changed (2nd param isurl
, notalt
)
ViewInBrowser
component has changed: text is optional
- Introduced
CHANGELOG.md
- Introduced new services as social icons:
Service::Phone
(converts into a link withtel:
prefix)Service::Facebook
Service::YouTube
Service::Instagram
Service::LinkedIn
Service::Slack
Service::Discord
Service::TikTok
Service::Snapchat
Service::Threads
Service::Telegram
- Breaking Changes:
- Renamed
Service::Github
toService::GitHub
- Renamed
- Initial implementation