Skip to content

Commit

Permalink
Release 3.2.2 - reverting breaking changes and marking 3.2.1/3.2.0 as…
Browse files Browse the repository at this point in the history
… [BROKEN] (nfl#199)

* Release 3.2.2 - reverting breaking changes and marking 3.2.1/3.2.0 as [BROKEN]

* Changing to 3.2.2 to help users who might be targeting in package.json as `~3.2.x`
  • Loading branch information
cwelch5 authored Nov 7, 2016
1 parent de5a4cf commit fef27eb
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 10 deletions.
16 changes: 12 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
**Table of Contents** *generated with [DocToc](https://github.com/thlorenz/doctoc)*

- [3.2.1](#321)
- [3.2.0](#320)
- [3.2.2](#322)
- [3.2.1 [BROKEN]](#321-broken)
- [3.2.0 [BROKEN]](#320-broken)
- [3.1.0](#310)
- [3.0.2](#302)
- [3.0.1](#301)
Expand All @@ -24,13 +25,20 @@
- [1.0.0](#100)

<!-- END doctoc generated TOC please keep comment here to allow auto update -->
## 3.2.1
## 3.2.2

Bugfixes:

- 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.
- Reverted `canUseDOM` setter in `Helmet.js`, as this was a breaking change for some users.

## 3.2.1 [BROKEN]

Bugfixes:

- Removing "engines" field in package.json.

## 3.2.0
## 3.2.0 [BROKEN]

Features:

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "react-helmet",
"description": "A document head manager for React",
"version": "3.2.1",
"version": "3.2.2",
"main": "./lib/Helmet.js",
"author": "NFL <engineers@nfl.com>",
"contributors": [
Expand Down
2 changes: 1 addition & 1 deletion src/Helmet.js
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ const Helmet = (Component) => {
return mappedState;
}

static setCanUseDOM = canUseDOM => {
static set canUseDOM(canUseDOM) {
Component.canUseDOM = canUseDOM;
}

Expand Down
8 changes: 4 additions & 4 deletions src/test/HelmetTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -1332,7 +1332,7 @@ describe("Helmet", () => {
].join("");

before(() => {
Helmet.setCanUseDOM(false);
Helmet.canUseDOM = false;
});

it("will html encode title", () => {
Expand Down Expand Up @@ -1865,7 +1865,7 @@ describe("Helmet", () => {
.that.equals(`<script ${HELMET_ATTRIBUTE}="true" src="foo.js" async></script>`);
});
after(() => {
Helmet.setCanUseDOM(true);
Helmet.canUseDOM = true;
});
});

Expand All @@ -1892,9 +1892,9 @@ describe("Helmet", () => {
);

expect(Helmet.peek().title).to.be.equal("Fancy title");
Helmet.setCanUseDOM(false);
Helmet.canUseDOM = false;
expect(Helmet.peek().title).to.be.equal("Fancy title");
Helmet.setCanUseDOM(true);
Helmet.canUseDOM = true;
});

it("will html encode string", () => {
Expand Down

0 comments on commit fef27eb

Please sign in to comment.