Skip to content

Release notes

Every version of the package, newest first. These notes come from the GitHub releases, and are updated each time the site is built. Install any version from NuGet.

v2.1.0-rc2Prerelease

· View on GitHub · NuGet

Highlights

The second release candidate of 2.1.0: it moves the Umbraco 19 build to Umbraco 19.0.0-rc2, and adds four new tag helpers and options, more control over our-self-host, and fixes for our-svg. 2.1.0 follows once Umbraco 19 is stable.

📖 The documentation has moved to a new site: https://umbraco-community.github.io/Our-Umbraco-TagHelpers/, with a page for every tag helper. The README is now a short overview that links to it.

New since 2.1.0-rc1:

  • <our-hreflang>: outputs the hreflang alternate links for each language version of the page, with an x-default you can point at any culture.
  • <our-bytes>: shows a number of bytes, or a media item’s file size, as a readable size such as 1.1 MB.
  • our-text-if: fills an empty element with a value, or leaves the element out when the value is empty.
  • our-img fallback-img: an image to show when no media was picked, or when a local src file doesn’t exist.
  • our-svg scope-styles: scopes an SVG’s <style> to that SVG, so classes such as .st0 from two SVGs don’t restyle each other.
  • our-svg unique-ids: gives each inlined SVG its own ids, so gradients, clip paths and filters aren’t shared between SVGs on a page.
  • our-fallback outputs Rich Text and Markdown properties as HTML.
  • our-self-host has a maximum file size, a download timeout, an AllowedHosts list, and no longer breaks the page when a download fails (see Behaviour changes).
  • our-svg copies the other attributes on the tag (aria-*, role, id, data-*, width…) onto the inlined <svg>.
  • our-svg clears cached media SVGs on every server of a load-balanced site when media is saved.

Supported versions

Umbraco .NET Target framework
16 .NET 9 net9.0
17 (LTS), 18 .NET 10 net10.0
19 (RC2) .NET 11 net11.0

Changes for code that uses the package’s classes directly

  • InlineSvgTagHelperNotifications no longer handles MediaSavedNotification (Handle(MediaSavedNotification) is removed). It clears cached SVGs on MediaCacheRefresherNotification instead, which Umbraco raises on every server of a load-balanced site. The package registers the handler itself, so this only matters if your code called it directly.

The constructor changes to EditLinkTagHelper, ImgTagHelper and ActiveClassTagHelper are listed in the 2.1.0-rc1 notes.

Behaviour changes

our-self-host. None of these breaks a page; at worst a file is served from its original URL instead of locally:

  1. Files over 1 MB aren’t self hosted. Files already downloaded are used as before. A new download over the limit keeps the original URL and logs a warning. Change it with OurSelfHost:MaxFileSizeKilobytes.
  2. A download error no longer breaks the page. Every failure keeps the original URL, logs a warning, and is retried every 5 minutes. Before, a network error or timeout threw while the page rendered, until the site restarted.
  3. A folder that leads outside RootFolder is refused (for example folder="../vendor"). The tag keeps the original URL and logs a warning. Change OurSelfHost:RootFolder instead.
  4. Downloads slower than 30 seconds keep the original URL; before, they could take up to 100 seconds. Change it with OurSelfHost:DownloadTimeoutSeconds.
  5. When AllowedHosts is set, redirects to other hosts aren’t followed. It’s a new setting, so this only affects sites that add it.

Upgrading

Update the package; nothing else is needed. The new settings (OurSelfHost:MaxFileSizeKilobytes, DownloadTimeoutSeconds and AllowedHosts, OurSVG:ScopeStyles and UniqueIds) are optional and are in the appsettings schema. See Configuration.

What’s Changed

Breaking Changes 🛠

Exciting New Features 🎉

Bug Fixes 🐛

Documentation 📖

Other Changes

Full Changelog: https://github.com/umbraco-community/Our-Umbraco-TagHelpers/compare/v2.1.0-rc1...v2.1.0-rc2

v2.1.0-rc1Prerelease

· View on GitHub · NuGet

Highlights

One package for Umbraco 16, 17, 18 and 19.

This is a release candidate because the Umbraco 19 build depends on Umbraco 19.0.0-rc1; 2.1.0 follows once Umbraco 19 is stable.

Also in this release:

  • our-img keeps root-relative paths in file URLs.
  • our-img file URLs (src="/image.jpg" with a width and height) are signed with Umbraco’s HMAC when the site has an imaging key, which Umbraco 17+ generates on install. Before, those images returned 400 once the site had restarted.
  • our-svg no longer throws when there is nothing to render.
  • our-svg sanitises SVGs more strictly before inlining them: besides <script>, it removes event handler attributes (onload, onclick…), <foreignObject>, <iframe>/<embed>/<object>, script links (javascript:, data:text/html) and animations that change them. SVGs without any of those are output exactly as before.
  • our-fallback HTML-encodes plain-text values (such as a Textstring), as @Model.Value() does in Razor.
  • our-svg with caching on keeps each tag’s own class and ensure-viewbox. Before, every tag using the same cached file got the first tag’s (#58).
  • our-edit-link checks content section access through the user’s allowed sections, which works on every supported Umbraco version.
  • our-active-class marks the current page and its ancestors on sites with culture domains (#97).
  • our-img keeps its style attribute when ApplyAspectRatio is off, the default (#107).
  • our-svg cache="false" turns caching off even when it’s on globally in appsettings (#57).
  • our-controller accepts the controller name with its Controller suffix, e.g. ContactFormController (#93).
  • The package no longer depends on the old ASP.NET Core 2.x packages (Microsoft.AspNetCore.Mvc.ViewFeatures, Microsoft.AspNetCore.Razor) or Microsoft.AspNetCore.DataProtection.Abstractions, which pulled a vulnerable Microsoft.AspNetCore.WebUtilities into sites. It now depends only on Umbraco and Stubble.Core.

Supported versions

Umbraco .NET Target framework
16 .NET 9 net9.0
17 (LTS), 18 .NET 10 net10.0
19 (RC) .NET 11 net11.0

Changes for code that creates tag helpers itself

Using the tag helpers in Razor views is unchanged: Razor creates them through dependency injection. These only matter if you create or subclass a tag helper class in your own code:

  • EditLinkTagHelper: the constructor also takes IUserService, and the tag helper now runs asynchronously (ProcessAsync).
  • ImgTagHelper: the constructor takes IImageUrlGenerator instead of IMediaService.
  • ActiveClassTagHelper: the constructor takes IPublishedUrlProvider instead of IDocumentUrlService.

Behaviour changes

  • our-svg: a javascript: link in an SVG was rewritten to a harmless syntax:error: value; it’s now removed. Event handlers and the other content listed above are removed from SVGs that contain them.
  • our-fallback: markup stored in a plain-text property is now shown as text instead of being rendered as HTML.

Deprecated

  • ClaimsIdentityExtensions.IsAllowedToSeeEditLink and ClaimsIdentityExtensions.HasAccessToContentSection are obsolete. Umbraco 18 removed the claim they read, so they now load the user on each call; they keep working on every supported Umbraco version. Instead, get the user with IUserService and check that its AllowedSections contains content. They will be removed in a future major version.

Upgrading

If you resolve the tag helpers from dependency injection (or only use them in views), update the package; nothing else is needed. If you create or subclass EditLinkTagHelper, ImgTagHelper or ActiveClassTagHelper yourself, update the constructor calls as above.

What’s Changed

Breaking Changes 🛠

Bug Fixes 🐛

Other Changes

Full Changelog: https://github.com/umbraco-community/Our-Umbraco-TagHelpers/compare/v2.0.0...v2.1.0-rc1

v2.0.0

· View on GitHub · NuGet

What’s Changed

Other Changes

New Contributors

Full Changelog: https://github.com/umbraco-community/Our-Umbraco-TagHelpers/compare/v1.2.0...v2.0.0

v1.2.0

· View on GitHub · NuGet

What’s Changed

Exciting New Features 🎉

New Contributors

Full Changelog: https://github.com/umbraco-community/Our-Umbraco-TagHelpers/compare/v1.1.0...v1.2.0

v1.1.0

· View on GitHub · NuGet

What’s Changed

Exciting New Features 🎉

Other Changes

New Contributors

Full Changelog: https://github.com/umbraco-community/Our-Umbraco-TagHelpers/compare/v1.0.0...v1.1.0

v1.0.0

· View on GitHub · NuGet

What’s Changed

Exciting New Features 🎉

Other Changes

New Contributors

Full Changelog: https://github.com/umbraco-community/Our-Umbraco-TagHelpers/compare/v0.8.0...v1.0.0

v0.8.0

· View on GitHub · NuGet

What’s Changed

Exciting New Features 🎉

Other Changes

New Contributors

Full Changelog: https://github.com/umbraco-community/Our-Umbraco-TagHelpers/compare/v0.7.0...v0.8.0

v0.7.0

· View on GitHub · NuGet

What’s Changed

Other Changes

Full Changelog: https://github.com/umbraco-community/Our-Umbraco-TagHelpers/compare/v0.6.0...v0.7.0

v0.6.0

· View on GitHub · NuGet

What’s Changed

Other Changes

New Contributors

Full Changelog: https://github.com/umbraco-community/Our-Umbraco-TagHelpers/compare/v0.5.1...v0.6.0

v0.5.1

· View on GitHub · NuGet

What’s Changed

Other Changes

Full Changelog: https://github.com/umbraco-community/Our-Umbraco-TagHelpers/compare/v0.5.0...v0.5.1

v0.5.0

· View on GitHub · NuGet

What’s Changed

Exciting New Features 🎉

Other Changes

New Contributors

Full Changelog: https://github.com/umbraco-community/Our-Umbraco-TagHelpers/compare/v0.4.0...v0.5.0

v0.4.0

· View on GitHub · NuGet

What’s Changed

Other Changes

New Contributors

Full Changelog: https://github.com/umbraco-community/Our-Umbraco-TagHelpers/compare/v0.3.0...v0.4.0

v0.3.0

· View on GitHub · NuGet

What’s Changed

Exciting New Features 🎉

Full Changelog: https://github.com/umbraco-community/Our-Umbraco-TagHelpers/compare/v0.2.0...v0.3.0

v0.2.0

· View on GitHub · NuGet

This adds the <our-fallback> TagHelper from the Hacktoberfest MOB programming session on Discord with the Umbraco community and also adds <our-version> as a way to display the version of your site or a given assembly in the site.

What’s Changed

Exciting New Features 🎉

Full Changelog: https://github.com/umbraco-community/Our-Umbraco-TagHelpers/compare/v0.1.0...v0.2.0

v0.1.0

· View on GitHub · NuGet

AKA the first release 🎉

This is the first release of the Umbraco Community Package for Umbraco CMS specific TagHelpers.

The first release comes with the following TagHelpers

  • <our-dictionary>
  • our-if
  • <our-macro>
  • BeginUmbracoForm Replacement
  • <our-lang-switcher>
  • <our-svg>

What’s Changed

Exciting New Features 🎉

Other Changes

New Contributors

Full Changelog: https://github.com/umbraco-community/Our-Umbraco-TagHelpers/commits/v0.1.0