Skip to content

Releases: birdofpreyru/react-helmet

v3.1.0

02 Mar 09:44

Choose a tag to compare

  • [#15] Fix: the MetaTags component now renders OpenGraph meta tags using property attribute (as per specs) instead of name (as it used to).
  • Update of dependencies.

Sponsor

v3.0.6

02 Feb 21:36

Choose a tag to compare

  • Support of <base> tags with only target attribute. — Thanks to @vegerot for PR #13.
  • Update of dependencies.

Sponsor

v3.0.5

11 Dec 22:12

Choose a tag to compare

Sponsor

v3.0.4

09 Sep 09:48

Choose a tag to compare

  • [#9] Hotfix of a regression in the previous release.

Sponsor

v3.0.3

07 Sep 22:21

Choose a tag to compare

  • [#7] Fix: Unmounting a <Helmet> instance did not update DOM, unless another <Helmet> instance was mounted or re-rendered.
  • Update of dependencies.

Sponsor

v3.0.2

05 May 09:35

Choose a tag to compare

  • New: MetaTags component — a helper for easier rendering of page title, description, and meta-data (Open Graph, Twitter (X) Cards) for search engines, and social graphs (i.e. previews of linked pages in social networks, messengers, etc.).

  • Update of dependencies.


Sponsor

v3.0.1

07 Apr 16:08

Choose a tag to compare

  • Update of dependencies.

Sponsor

v3.0.0

07 Apr 09:32

Choose a tag to compare

Beware

Entire library codebase, and its build setup have been heavily refactored for this release. While the aim was to keep API and behavior of the library unchanged (with exception of a few points listed below), and the refactored library passes the original unit tests, assume some nuances may have been overlooked, be vigilant, report any issues.

Breaking Changes

  • Removed HelmetData class, and the possibility to use <Helmet> components without context. You must use <Helmet> components within a sub-tree of <HelmetProvider>, there is no excuse to do it differently, and the legacy implementation of that possibility led to (a) over-complicated code, (b) some nuanced differences in the actual library behavior when the same <Helmet> component was used within or without <HelmetProvider> context; thus, it just was not a good library design to have it.

  • Removed canUseDOM field of HelmetProvider export. It was not necessary; from this version if the library detects DOM in the environment, it will operate on its <head>, and if context is provided to <HelmetProvider>, it will be populated with methods necessary for server-side rendering (or other purposes you may need it for). Both may have work simultaneously, no real need to switch between them exclusively.

  • Requires all attributes of managed head elements to be valid JSX props. The legacy implementation required to use HTML attribute names (accesskey, charset, class, contenteditable, contextmenu, http-equiv, itemprop, tabindex) instead of the corresponding JSX props (accessKey, charSet, className, contentEditable, contextMenu, httpEquiv, itemProp, tabIndex). If you use TypeScript, correctly configured, it should highlight all these wrong attribute names as errors, making it easy to replace them. Otherwise, for now, the runtime actually supports both old (attribute names) and new (JSX props) for these correctly, and it prints warning messages to console about the need to replace them. The plan is to drop support of old attribute names in future releases.

Sponsor

v2.0.4

22 Feb 17:55

Choose a tag to compare

  • Initial release.