UNPKG

11.9 kBMarkdownView Raw
1<a name="6.1.0"></a>
2
3# [6.1.0](https://github.com/nfl/react-helmet/compare/6.0.0...6.1.0) (2020-06-08)
4
5### Features
6
7- Re-add Helmet as a default export [(#547)](https://github.com/nfl/react-helmet/pull/547)
8 - Note: You may now choose `import Helmet` or `import {Helmet}`
9- Updates react-fast-compare to get support for Preact [(#559)](https://github.com/nfl/react-helmet/pull/559)
10
11<a name="6.0.0"></a>
12
13# [6.0.0](https://github.com/nfl/react-helmet/compare/5.2.0...6.0.0) (2020-04-09)
14
15### Features
16
17- Bundle with Rollup instead of Webpack - As a result, the default export was removed and Helmet must now be imported as a named component - `import {Helmet} from "react-helmet"` [(#395)](https://github.com/nfl/react-helmet/pull/395)
18- Replace deepEqual with isEqual [(#402)](https://github.com/nfl/react-helmet/pull/402)
19
20<a name="6.0.0-beta.2"></a>
21
22# [6.0.0-beta.2](https://github.com/nfl/react-helmet/compare/6.0.0-beta...6.0.0-beta.2) (2020-01-27)
23
24<a name="6.0.0-beta"></a>
25
26# [6.0.0-beta](https://github.com/nfl/react-helmet/compare/5.2.0...6.0.0-beta) (2018-12-07)
27
28<a name="5.2.0"></a>
29
30# [5.2.0](https://github.com/nfl/react-helmet/compare/5.1.3...5.2.0) (2017-08-29)
31
32### Features
33
34- Adds support for synchronously updated tags
35 ([#297](https://github.com/nfl/react-helmet/pull/297))
36 ([6a3d3bf](https://github.com/nfl/react-helmet/commit/6a3d3bf)), closes [#291](https://github.com/nfl/react-helmet/issues/291)
37
38### Bug Fixes
39
40- Remove unexpected comma in server-rendered title ([#289](https://github.com/nfl/react-helmet/pull/289)) ([66b8212](https://github.com/nfl/react-helmet/commit/66b8212)), closes [#286](https://github.com/nfl/react-helmet/issues/286)
41- Replace requestIdleCallback with requestAnimationFrame for a more consistent DOM write cycle. ([#307](https://github.com/nfl/react-helmet/issues/307)) ([a2323ad](https://github.com/nfl/react-helmet/commit/a2323ad))
42
43<a name="5.1.3"></a>
44
45## [5.1.3](https://github.com/nfl/react-helmet/compare/5.0.3...5.1.3) (2017-05-18)
46
47### Bug Fixes
48
49- Add support for renderable Arrays of strings ([#275](https://github.com/nfl/react-helmet/issues/275)) ([aad5457](https://github.com/nfl/react-helmet/commit/aad5457)), closes [#272](https://github.com/nfl/react-helmet/issues/272)
50
51<a name="5.0.3"></a>
52
53## [5.0.3](https://github.com/nfl/react-helmet/compare/5.0.2...5.0.3) (2017-04-10)
54
55### Bug Fixes
56
57- React.propTypes -> PropTypes ([#265](https://github.com/nfl/react-helmet/issues/265)) ([68ece0c](https://github.com/nfl/react-helmet/commit/68ece0c))
58
59<a name="5.0.2"></a>
60
61## [5.0.2](https://github.com/nfl/react-helmet/compare/5.0.1...5.0.2) (2017-03-28)
62
63### Bug Fixes
64
65- prevent clearing existing title ([#259](https://github.com/nfl/react-helmet/issues/259)) ([549b603](https://github.com/nfl/react-helmet/commit/549b603))
66
67<a name="5.0.1"></a>
68
69## [5.0.1](https://github.com/nfl/react-helmet/compare/5.0.0...5.0.1) (2017-03-24)
70
71### Bug Fixes
72
73- handle falsy children values ([#256](https://github.com/nfl/react-helmet/issues/256)) ([4a60765](https://github.com/nfl/react-helmet/commit/4a60765))
74
75<a name="5.0.0"></a>
76
77# [5.0.0](https://github.com/nfl/react-helmet/compare/4.0.0...5.0.0) (2017-03-21)
78
79### Features
80
81- New Simplified API (fully backward-compatible) - Helmet now takes plain HTML tags for the majority of the API with just a few remaining props for Helmet - retaining `titleTemplate`, `defaultTitle`, `onChangeClientState`, and one new - `encodeSpecialCharacters` - refer to README for details. Directly passing Helmet props will be deprecated in the future. [(#246)](https://github.com/nfl/react-helmet/pull/246)
82- `requestIdleCallback` utilized to consolidate DOM changes and makes these non-blocking for things like animations. Fixes first client-side render not matching server-side render. Maintains one DOM change between route changes on the client-side as well. [(#248)](https://github.com/nfl/react-helmet/pull/248)
83- On server-side, `Helmet.renderStatic()` aliased to `Helmet.rewind()` for more clarity. `rewind` will be deprecated in the future.
84- Yarn support
85
86# 4.0.0
87
88### Features
89
90- Replacing PlainComponent with stateless functional component `NullComponent`, with a hard requirement to use React 15 or higher.
91
92# 3.3.2
93
94### Bugfixes
95
96- Removed stateless functional component `NullComponent` because of it's incompatibility with React 14 and reverted back to PlainComponent.
97
98# 3.3.1 [BROKEN]
99
100### Bugfixes
101
102- README updates - npm badge and helmet image
103- Bump react-side-effect to 1.1.0
104- Removing PlainComponent, replaced with NullComponent defined within Helmet.js
105- Refactored code - cut lines of code and used `reduce` to simplify functions
106- Replaced PlainComponent with NullComponent (now within Helmet.js)
107
108# 3.3.0
109
110### Features
111
112- `itemprop` available in meta tags
113- New API - `titleAttributes` to add attributes to the title tag
114- `class` support for html tag
115
116# 3.2.3
117
118### Bugfixes
119
120- applied previous fix (undefined value for primary attribute key) to base tag
121- fix htmlAttributes fallback value when calling rewind() on blank Helmet
122- Removed unneeded dependencies - shallowequal, warning
123- babel configuration moved into .babelrc
124- eslint configuration moved into .eslintrc
125
126# 3.2.2
127
128### Bugfixes
129
130- Removed breaking changes `jsnext:main` and `module` from package.json. `es` version required special babel configuration for end users and needs to be re-thought for major release.
131- Reverted `canUseDOM` setter in `Helmet.js`, as this was a breaking change for some users.
132- [fix] runtime error when providing undefined value for primary attribute key (applies to meta, link, script, noscript, style)
133
134# 3.2.1 [BROKEN]
135
136### Bugfixes
137
138- Removing "engines" field in package.json.
139
140# 3.2.0 [BROKEN]
141
142### Features
143
144- `<noscript>` support
145
146### Bugfixes
147
148- Prevent stripping dollar signs from title when titleTemplate is present
149- Offering jsnext:main build
150- Removed Gulp Dependency
151- Bump Dependencies
152- IE8 Support
153
154# 3.1.0
155
156### Features
157
158- Add support for `<style>` elements.
159
160# 3.0.2
161
162### Bugfixes
163
164- Avoids rendering "undefined" if it's passed in as a value of an attribute, but instead renders just the attribute name.
165- When htmlAttributes gets cleared, or is blank, the helmet attribute on the html tag, used for tracking, is cleaned up.
166- Upgrading devDependency of React to 15.
167
168# 3.0.1
169
170### Bugfixes
171
172- The htmlAttributes feature will no longer remove existing attributes on the HTML tag
173
174# 3.0.0
175
176### Features
177
178- innerHTML for scripts. Originally added to support the use of JSON-LD (https://developers.google.com/schemas/formats/json-ld?hl=en), but this can be used for any inline scripts you would like in your document head.
179- New htmlAttributes prop which allows users to add attributes to their html tag.
180- New defaultTitle prop which allows users to have a fallback title in the scenario where a Helmet wants to define a titleTemplate for it's nested routes, but not for itself (for example, at the root component level). See README for use cases.
181
182### Bugfixes
183
184- Removed all polyfills from Helmet. Due to reported conflicts, to remove bloat, and to encourage users to polyfill at the application level. Please double-check that you weren't relying solely on Helmet for polyfilling certain features.
185
186# 2.3.1
187
188### Bugfixes
189
190- Fallback values for rewind on the server threw a `tags.map` error in Node. Changing the tag default values to `[]` fixes it.
191
192# 2.3.0
193
194### Bugfixes
195
196- FOUC fix - existing tags that persist between route changes, will not be removed and re-added to the DOM. They will remain unchanged. This will avoid, in particular, stylesheets being removed and re-added causing an unstyled flash when the new Helmet is rendered.
197- onChangeClientState enhanced to also return the html tags that were added and removed.
198- provide fallback object for rewind() result - If no Helmets are rendered, rewind() will still return head.base, head.title, etc.
199- Tag attributes ordering does not matter. It no longer looks at the first valid attribute to identify the tag. All attributes of the tag will be searched for names that can be found in HelmetConstants.js. When rel="canonical" is included, it will take priority over href.
200- Bump dependencies
201
202# 2.2.0
203
204### Features
205
206- New prop `onChangeClientState` to set a callback function that is called in the event the DOM is changed by Helmet. When set on a Helmet, it will apply to all subsequent Helmet instances downstream (similar to titleTemplate).
207
208### Bugfixes
209
210- Fix for double encoding when returning state to the server as React components.
211- dist -> lib
212- Added CLA url to CONTRIBUTING.
213- Added .babelrc to .npmignore (fix for now, as the settings were not compatible with Babel 6)
214- Bump dependencies (except Babel 6 as a dev dependency - coming soon)
215
216# 2.1.1
217
218### Bugfixes
219
220- Remove npm he dependency
221- HTML entitiy encode only special characters instead of all characters that have HTML entity equivalents
222
223# 2.1.0
224
225### Features
226
227- All head attributes (title / base / meta / link / script) returned with `.toComponent()` and `.toString()` methods to use in any scenario when calling rewind on the server.
228- Helmet using React 14 for unit testing.
229
230### Bugfixes
231
232- Bump dependencies
233
234# 2.0.0
235
236### Features
237
238- Base tag support.
239- Script tag support.
240- All head attributes (title / base / meta / link / script) returned as React components on the server with toString() support
241- Removed ability to nest children in Helmet.
242- Decorated component from react-side-effect, now wrapped by Helmet in order to enforce deep equal check on shouldComponentUpdate. This will limit unnecessary DOM changes and rendering.
243
244### Bugfixes
245
246- Bump dependencies
247
248# 1.1.5
249
250### Bugfixes
251
252- Adding webpack under devDependencies, as it's no longer automatically installed as a peer dependency
253- Bump dependencies
254
255# 1.1.4
256
257### Bugfixes
258
259- Bumping to react-side-effect 1.0.2
260- Updating peer dependences for react 0.14.0-rc1
261- Bump dependencies
262
263# 1.1.3
264
265### Bugfixes
266
267- Externalize react-side-effect
268- shouldComponentUpdate compares props with deep equal
269- handleClientStateChange compares DOM changes with deep equal to prevent unnecessary DOM changes
270- Warning users to not nest children in their Helmet components. We found that when Helmet contains children, those children are part of the props that are compared in shouldComponentUpdate. And this causes unnecessary renders as the props are always different, even with the same Helmet title/meta/link props.
271- Adding react-helmet-example to README
272- Bumping to react-side-effect 1.0.1
273- Bump dependencies.
274
275# 1.1.2
276
277### Bugfixes
278
279- Use named exports in HelmetConstants
280- Allow all React 0.14 betas in peer dependencies
281- Bump dependencies.
282- Fixed invariant check in CreateSideEffect
283
284# 1.1.1
285
286### Bugfixes
287
288- Externalizing of React helpers - exenv, invariant, shallowequal
289- Using ES6 collections to manage tags
290- Bumping peer dependency for use in React 0.14.0-beta.
291- Title encoded when being rendered on the server
292- Import a smaller subset of core-js modules instead of the whole shim.
293
294# 1.1.0
295
296### Features
297
298- titleTemplate attribute to help format `document.title`
299
300### Bugfixes
301
302- Bump dependencies.
303- Title will never be overwritten with blank title. Lifts constraint where every component with Helmet needed to define a title.
304- Re-organization of unit tests.
305
306# 1.0.1
307
308### Bugfixes
309
310- Bump dependencies
311- rewind() saves title/meta/link values before disposing
312- Typo in README - use Helmet.rewind()
313- "he" package added to dependencies
314- Added Travis CI integration
315- npm requirement removed - removed reference in README (System Requirements) and in package.json (engines)
316
317# 1.0.0
318
319### Features
320
321- Initial release