-
Function definition for
.socials()accepts array instead of vector now -
Service,SocialItemhave 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::MastodonandService::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.mdcleanup (listing of components)Imagecomponent now requires onlysrc; the other params are optionalcontent.image(...)param order has changed (2nd param isurl, notalt)
ViewInBrowsercomponent has changed: text is optional
- Introduced
CHANGELOG.md - Introduced new services as social icons:
Service::Phone(converts into a link withtel:prefix)Service::FacebookService::YouTubeService::InstagramService::LinkedInService::SlackService::DiscordService::TikTokService::SnapchatService::ThreadsService::Telegram
- Breaking Changes:
- Renamed
Service::GithubtoService::GitHub
- Renamed
- Initial implementation