rsnext/packages/next-server
Jayden Seric 49fea51f34 Fix Head.propTypes (#6020)
This PR fixes the buggy `Head.propTypes` here:

https://github.com/zeit/next.js/blob/v8.0.0-canary.3/packages/next-server/lib/head.js#L107

Currently, `Head.propTypes` allows one child node like this:

```jsx
import Head from 'next/head'

// …

<Head>
  <title>Title</title>
</Head>
```

But more than one child node mistakenly causes a prop type error like this:

```jsx
<Head>
  <title>Title</title>
  <meta name="description" content="Description." />
</Head>
```

```
Warning: Failed prop type: Invalid prop `children` supplied to `Head`.
```
2019-01-10 12:53:43 +01:00
..
lib Fix Head.propTypes (#6020) 2019-01-10 12:53:43 +01:00
server Fix typo in a comment (#5982) 2019-01-02 20:21:57 +01:00
asset.js next-server (#5357) 2018-10-02 00:55:31 +02:00
config.js next-server (#5357) 2018-10-02 00:55:31 +02:00
constants.js Fix linter (#5350) 2018-10-20 17:00:01 +02:00
dynamic.js next-server (#5357) 2018-10-02 00:55:31 +02:00
head.js next-server (#5357) 2018-10-02 00:55:31 +02:00
index.js Use correct server path since main was changed 2018-10-02 23:11:01 +02:00
license.md Zeit -> ZEIT (#5804) 2018-12-03 23:01:23 +01:00
next-config.js Add Typescript types for builds functions (#5791) 2018-12-03 14:18:52 +01:00
package.json v8.0.0-canary.3 2019-01-09 00:09:15 +01:00
taskfile-typescript.js Use Typescript to transpile Next.js core files instead of Babel (#5747) 2018-11-28 15:03:02 +01:00
taskfile.js Convert render.js to typescript (#5869) 2018-12-13 01:00:46 +01:00
tsconfig.json Add tsc type checking (#5826) 2018-12-05 21:45:50 +01:00