Skip to content

Releases: styleguidist/react-styleguidist

v11.0.7

26 May 13:39
9d26371
Compare
Choose a tag to compare

11.0.7 (2020-05-26)

Fix

v11.0.6

06 May 06:57
b4c2845
Compare
Choose a tag to compare

11.0.6 (2020-05-06)

chore

Chore

Docs

Fix

v11.0.5

29 Mar 07:12
2c68067
Compare
Choose a tag to compare

11.0.5 (2020-03-29)

fix

  • Fix broken imports for components with the same name imported from different folders (#1567) (b03c207), closes #1567 #1566

Fix

  • Fix missing FlowType enum values in prop description (#1571) (2c68067), closes #1571

v11.0.4

20 Mar 08:54
3469cbb
Compare
Choose a tag to compare

11.0.4 (2020-03-20)

Fix

v11.0.3

18 Mar 09:23
83fdb94
Compare
Choose a tag to compare

11.0.3 (2020-03-18)

Fix

  • Sections with href were always open in new tab, regardless of the external option (#1564) (83fdb94), closes #1564 #1559

v11.0.2

17 Mar 12:41
f7f06f9
Compare
Choose a tag to compare

11.0.2 (2020-03-17)

Docs

Fix

v11.0.1

11 Mar 08:47
b409045
Compare
Choose a tag to compare

11.0.1 (2020-03-11)

chore

Chore

Fix

v11.0.0

07 Mar 14:38
847f917
Compare
Choose a tag to compare

Breaking changes

TypeScript is supported out of the box

We’ve upgraded react-docgen to 5.0.0, which adds TypeScript support out of the box. The are some limitations, so you may still need react-docgen-typescript — see docs for more details.

(#1500, #1354 by @thecodejack)

Fenced code blocks in Markdown with tags typescript, ts and tsx are rendered as an interactive playground. Use the static modifier to render only the source code.

(#1543 by @mitsuruog)

Prefer default exports over named exports

When your component has both default and named exports, Styleguidist will use the default export. This is a bug fix but may break some style guides.

import React from 'react';
import styled from 'styled-components';

export const C: React.FC = () => {
  ...
}

const StyledC = styled(C)``;

export default StyledC;

(#1504 by @Lazyuki)

Remove initialState/setState/state

Use React’s useState hook instead:

- initialState = { count: 42 };
- <Button onClick={() => setState({ count: state.count + 1 })}>{state.count}</Button>
+ const [count, setCount] = React.useState(42);
+ <Button onClick={() => setCount(count + 1)}>{count}</Button>

(#1501 by @thecodejack)

Drop Node.js 8 support

The minimum supported version on Node.js is 10.

(#1545)

New features

v10.6.2

13 Feb 14:16
89420ca
Compare
Choose a tag to compare

10.6.2 (2020-02-13)

Fix

v10.6.1

21 Jan 07:29
Compare
Choose a tag to compare

10.6.1 (2020-01-21)

Build

Fix