Skip to content

Commit 673e2a4

Browse files
committed
Update to use write-changelog package
1 parent a853f80 commit 673e2a4

File tree

5 files changed

+325
-62
lines changed

5 files changed

+325
-62
lines changed

changelog.md

Lines changed: 33 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,43 @@
1-
<a name="1.1.1"></a>
2-
# 1.1.1 (2016-12-12)
1+
## Change Log
32

4-
* Fix isDisplayName to not error on non-AssignmentExpression statements ([10e83bd](https://github.com/wyze/babel-plugin-transform-react-stateless-component-name/commit/10e83bd)), closes [#5](https://github.com/wyze/babel-plugin-transform-react-stateless-component-name/issues/5)
5-
* Reformat changelog ([a9b7a2b](https://github.com/wyze/babel-plugin-transform-react-stateless-component-name/commit/a9b7a2b))
3+
### [v1.1.1](https://github.com/wyze/babel-plugin-transform-react-stateless-component-name/releases/tag/v1.1.1) (2016-12-12)
64

5+
* [[`a9b7a2bb5d`](https://github.com/wyze/babel-plugin-transform-react-stateless-component-name/commit/a9b7a2bb5d)] - Reformat changelog (Neil Kistner)
6+
* [[`10e83bd90c`](https://github.com/wyze/babel-plugin-transform-react-stateless-component-name/commit/10e83bd90c)] - Fix isDisplayName to not error on non-AssignmentExpression statements (Neil Kistner)
77

8+
### [v1.1.0](https://github.com/wyze/babel-plugin-transform-react-stateless-component-name/releases/tag/v1.1.0) (2016-12-11)
89

9-
<a name="1.1.0"></a>
10-
# 1.1.0 (2016-12-11)
10+
* [[`520858f091`](https://github.com/wyze/babel-plugin-transform-react-stateless-component-name/commit/520858f091)] - Add note about setting displayName for snapshot testing (Neil Kistner)
11+
* [[`1199c11de9`](https://github.com/wyze/babel-plugin-transform-react-stateless-component-name/commit/1199c11de9)] - Add fix when displayName is set on default export function declaration (Neil Kistner)
12+
* [[`c7888b2c5b`](https://github.com/wyze/babel-plugin-transform-react-stateless-component-name/commit/c7888b2c5b)] - Meta file updates (Neil Kistner)
13+
* [[`c01093c88e`](https://github.com/wyze/babel-plugin-transform-react-stateless-component-name/commit/c01093c88e)] - Use codecov bash uploader (Neil Kistner)
14+
* [[`282ecfcc2c`](https://github.com/wyze/babel-plugin-transform-react-stateless-component-name/commit/282ecfcc2c)] - Add yarn.lock (Neil Kistner)
15+
* [[`a676b77441`](https://github.com/wyze/babel-plugin-transform-react-stateless-component-name/commit/a676b77441)] - Add Flow (Neil Kistner)
16+
* [[`0975c41618`](https://github.com/wyze/babel-plugin-transform-react-stateless-component-name/commit/0975c41618)] - Add support for FunctionDeclaration as default export (Neil Kistner)
17+
* [[`c0902d2f17`](https://github.com/wyze/babel-plugin-transform-react-stateless-component-name/commit/c0902d2f17)] - Move helper functions out into their own files (Neil Kistner)
18+
* [[`e1bfe3419b`](https://github.com/wyze/babel-plugin-transform-react-stateless-component-name/commit/e1bfe3419b)] - Refactor doesReturnJSX to support recursion for nested returns (Neil Kistner)
19+
* [[`33db84e159`](https://github.com/wyze/babel-plugin-transform-react-stateless-component-name/commit/33db84e159)] - Move tests to be in same order of fixtures (Neil Kistner)
20+
* [[`125131f8b5`](https://github.com/wyze/babel-plugin-transform-react-stateless-component-name/commit/125131f8b5)] - Add more edge cases around if/else in default export (Neil Kistner)
21+
* [[`c1700c00f8`](https://github.com/wyze/babel-plugin-transform-react-stateless-component-name/commit/c1700c00f8)] - Ignore displayName when set on default export (Neil Kistner)
22+
* [[`1f1980de66`](https://github.com/wyze/babel-plugin-transform-react-stateless-component-name/commit/1f1980de66)] - Protect against displayName property being set twice (Neil Kistner)
23+
* [[`cf79b9d3db`](https://github.com/wyze/babel-plugin-transform-react-stateless-component-name/commit/cf79b9d3db)] - Insert expression so it adds the semicolon (Neil Kistner)
24+
* [[`dda83bcbc4`](https://github.com/wyze/babel-plugin-transform-react-stateless-component-name/commit/dda83bcbc4)] - Add displayName property to assigned functional components (Neil Kistner)
25+
* [[`abec2993c3`](https://github.com/wyze/babel-plugin-transform-react-stateless-component-name/commit/abec2993c3)] - Refactor to use babel-types properly and add snapshot tests (Neil Kistner)
1126

12-
* Add displayName property to assigned functional components ([dda83bc](https://github.com/wyze/babel-plugin-transform-react-stateless-component-name/commit/dda83bc)), closes [#1](https://github.com/wyze/babel-plugin-transform-react-stateless-component-name/issues/1)
13-
* Add fix when displayName is set on default export function declaration ([1199c11](https://github.com/wyze/babel-plugin-transform-react-stateless-component-name/commit/1199c11))
14-
* Add Flow ([a676b77](https://github.com/wyze/babel-plugin-transform-react-stateless-component-name/commit/a676b77))
15-
* Add more edge cases around if/else in default export ([125131f](https://github.com/wyze/babel-plugin-transform-react-stateless-component-name/commit/125131f))
16-
* Add note about setting displayName for snapshot testing ([520858f](https://github.com/wyze/babel-plugin-transform-react-stateless-component-name/commit/520858f))
17-
* Add support for FunctionDeclaration as default export ([0975c41](https://github.com/wyze/babel-plugin-transform-react-stateless-component-name/commit/0975c41))
18-
* Add yarn.lock ([282ecfc](https://github.com/wyze/babel-plugin-transform-react-stateless-component-name/commit/282ecfc))
19-
* Ignore displayName when set on default export ([c1700c0](https://github.com/wyze/babel-plugin-transform-react-stateless-component-name/commit/c1700c0))
20-
* Insert expression so it adds the semicolon ([cf79b9d](https://github.com/wyze/babel-plugin-transform-react-stateless-component-name/commit/cf79b9d))
21-
* Meta file updates ([c7888b2](https://github.com/wyze/babel-plugin-transform-react-stateless-component-name/commit/c7888b2))
22-
* Move helper functions out into their own files ([c0902d2](https://github.com/wyze/babel-plugin-transform-react-stateless-component-name/commit/c0902d2))
23-
* Move tests to be in same order of fixtures ([33db84e](https://github.com/wyze/babel-plugin-transform-react-stateless-component-name/commit/33db84e))
24-
* Protect against displayName property being set twice ([1f1980d](https://github.com/wyze/babel-plugin-transform-react-stateless-component-name/commit/1f1980d))
25-
* Refactor doesReturnJSX to support recursion for nested returns ([e1bfe34](https://github.com/wyze/babel-plugin-transform-react-stateless-component-name/commit/e1bfe34))
26-
* Refactor to use babel-types properly and add snapshot tests ([abec299](https://github.com/wyze/babel-plugin-transform-react-stateless-component-name/commit/abec299))
27-
* Use codecov bash uploader ([c01093c](https://github.com/wyze/babel-plugin-transform-react-stateless-component-name/commit/c01093c))
27+
### [v1.0.2](https://github.com/wyze/babel-plugin-transform-react-stateless-component-name/releases/tag/v1.0.2) (2016-11-26)
2828

29+
* [[`be0400fd22`](https://github.com/wyze/babel-plugin-transform-react-stateless-component-name/commit/be0400fd22)] - Update meta files (Neil Kistner)
30+
* [[`fd4382338d`](https://github.com/wyze/babel-plugin-transform-react-stateless-component-name/commit/fd4382338d)] - Upgrade dependencies and test process (Neil Kistner)
31+
* [[`25504b6803`](https://github.com/wyze/babel-plugin-transform-react-stateless-component-name/commit/25504b6803)] - Fix when body.body (block) is undefined (Neil Kistner)
2932

33+
### [v1.0.1](https://github.com/wyze/babel-plugin-transform-react-stateless-component-name/releases/tag/v1.0.1) (2016-07-16)
3034

31-
<a name="1.0.2"></a>
32-
# 1.0.2 (2016-11-26)
35+
* [[`b47575c24e`](https://github.com/wyze/babel-plugin-transform-react-stateless-component-name/commit/b47575c24e)] - Add missing `babel-register` devDependency (Neil Kistner)
36+
* [[`06fea17d4d`](https://github.com/wyze/babel-plugin-transform-react-stateless-component-name/commit/06fea17d4d)] - Don't assume last statement is a ReturnStatement (Neil Kistner)
37+
* [[`a8a8060dee`](https://github.com/wyze/babel-plugin-transform-react-stateless-component-name/commit/a8a8060dee)] - Meta updates (Neil Kistner)
38+
* [[`5da0958c8f`](https://github.com/wyze/babel-plugin-transform-react-stateless-component-name/commit/5da0958c8f)] - Upgrade dependencies and updates to pass new lint rules (Neil Kistner)
3339

34-
* Fix when body.body (block) is undefined ([25504b6](https://github.com/wyze/babel-plugin-transform-react-stateless-component-name/commit/25504b6)), closes [#4](https://github.com/wyze/babel-plugin-transform-react-stateless-component-name/issues/4)
35-
* Update meta files ([be0400f](https://github.com/wyze/babel-plugin-transform-react-stateless-component-name/commit/be0400f))
36-
* Upgrade dependencies and test process ([fd43823](https://github.com/wyze/babel-plugin-transform-react-stateless-component-name/commit/fd43823))
40+
### [v1.0.0](https://github.com/wyze/babel-plugin-transform-react-stateless-component-name/releases/tag/v1.0.0) (2016-07-16)
3741

38-
39-
40-
<a name="1.0.1"></a>
41-
# 1.0.1 (2016-07-17)
42-
43-
* Add missing `babel-register` devDependency ([b47575c](https://github.com/wyze/babel-plugin-transform-react-stateless-component-name/commit/b47575c))
44-
* Don't assume last statement is a ReturnStatement ([06fea17](https://github.com/wyze/babel-plugin-transform-react-stateless-component-name/commit/06fea17)), closes [#3](https://github.com/wyze/babel-plugin-transform-react-stateless-component-name/issues/3)
45-
* Meta updates ([a8a8060](https://github.com/wyze/babel-plugin-transform-react-stateless-component-name/commit/a8a8060))
46-
* Upgrade dependencies and updates to pass new lint rules ([5da0958](https://github.com/wyze/babel-plugin-transform-react-stateless-component-name/commit/5da0958))
47-
48-
49-
50-
<a name="1.0.0"></a>
51-
# 1.0.0 (2015-11-14)
52-
53-
* Add Codecov badge to readme ([a9c5b6f](https://github.com/wyze/babel-plugin-transform-react-stateless-component-name/commit/a9c5b6f))
54-
* Initial commit ([36e9d99](https://github.com/wyze/babel-plugin-transform-react-stateless-component-name/commit/36e9d99))
42+
* [[`a9c5b6fedc`](https://github.com/wyze/babel-plugin-transform-react-stateless-component-name/commit/a9c5b6fedc)] - Add Codecov badge to readme (Neil Kistner)
43+
* [[`36e9d99a9d`](https://github.com/wyze/babel-plugin-transform-react-stateless-component-name/commit/36e9d99a9d)] - Initial commit (Neil Kistner)

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
"test": "NODE_ENV=test nyc npm run test:only",
2121
"test:cover": "nyc report -r text-lcov > codecov.lcov",
2222
"test:only": "ava",
23-
"test:watch": "npm run test:only -- --watch"
23+
"test:watch": "npm run test:only -- --watch",
24+
"version": "write-changelog"
2425
},
2526
"main": "lib/index",
2627
"files": [
@@ -87,6 +88,7 @@
8788
"eslint-plugin-wyze": "^2.0.0",
8889
"flow-bin": "^0.36.0",
8990
"nyc": "^10.0.0",
90-
"rimraf": "^2.5.4"
91+
"rimraf": "^2.5.4",
92+
"write-changelog": "^1.1.0"
9193
}
9294
}

readme.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,16 @@ require('babel-core').transform('code', {
7878
})
7979
```
8080

81+
## Change Log
82+
83+
> [Full Change Log](changelog.md)
84+
85+
### [v1.1.1](https://github.com/wyze/babel-plugin-transform-react-stateless-component-name/releases/tag/v1.1.1) (2017-11-07)
86+
87+
* [[`a853f804b1`](https://github.com/wyze/babel-plugin-transform-react-stateless-component-name/commit/a853f804b1)] - Remove all istanbul ignores (#10) (Thomas Grainger)
88+
* [[`e875edd575`](https://github.com/wyze/babel-plugin-transform-react-stateless-component-name/commit/e875edd575)] - Avoid crash on block-arrow components with hoc wrapper (#9) (Thomas Grainger)
89+
* [[`e98586fe5a`](https://github.com/wyze/babel-plugin-transform-react-stateless-component-name/commit/e98586fe5a)] - Ignore JSX Expression blocks (#7) (Daniel J)
90+
8191
## License
8292

8393
Copyright © 2015-2016 [Neil Kistner](//github.com/wyze)

test/__snapshots__/index.js.snap

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -160,39 +160,39 @@ Hello.displayName = \'Hello\';"
160160
`;
161161
162162
exports[`ignores jsx expression blocks 1`] = `
163-
"'use strict';
163+
"\'use strict\';
164164
165-
Object.defineProperty(exports, "__esModule", {
165+
Object.defineProperty(exports, \"__esModule\", {
166166
value: true
167167
});
168168
169-
var _react = require('react');
169+
var _react = require(\'react\');
170170
171171
var _react2 = _interopRequireDefault(_react);
172172
173173
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
174174
175175
var HelloWorld = function HelloWorld() {
176176
var content = _react2.default.createElement(
177-
'div',
177+
\'div\',
178178
null,
179179
[1, 2, 3].map(function (n) {
180180
return _react2.default.createElement(
181-
'h1',
181+
\'h1\',
182182
null,
183183
n
184184
);
185185
})
186186
);
187187
188188
return _react2.default.createElement(
189-
'div',
189+
\'div\',
190190
null,
191191
content
192192
);
193193
};
194194
195-
HelloWorld.displayName = 'HelloWorld';
195+
HelloWorld.displayName = \'HelloWorld\';
196196
exports.default = HelloWorld;"
197197
`;
198198

0 commit comments

Comments
 (0)