rsnext/test/integration
Tim Neutkens 9890e06907
Dedupe only items with unique key (#5800)
Fixes #3705
Fixes #4656

- No longer automatically dedupe certain tags. Only the ones we know are *never* going to be duplicate like charSet, title etc.
- Fix `key=""` behavior, making sure that if a unique key is provided tags are deduped based on that.

For example:

```jsx
<meta property='fb:pages' content='one'>
<meta property='fb:pages' content='two'>
```

Would currently cause

```jsx
<meta property='fb:pages' content='two'>
```

### After this change:

```jsx
<meta property='fb:pages' content='one'>
<meta property='fb:pages' content='two'>
```

Then if you use next/head multiple times / want to be able to override:

```jsx
<meta property='fb:pages' content='one' key="not-unique-key">
<meta property='fb:pages' content='two' key="not-unique-key">
```

Would cause:

```jsx
<meta property='fb:pages' content='two'>
```

As `key` gets deduped correctly after this PR, similar to how React itself works.
2018-12-03 17:28:42 +01:00
..
app-aspath Fix linter (#5350) 2018-10-20 17:00:01 +02:00
app-document Add crossOrigin via props to _document Head and NextScript (#5646) 2018-11-13 21:36:09 +01:00
babel Fix linter (#5350) 2018-10-20 17:00:01 +02:00
basic Dedupe only items with unique key (#5800) 2018-12-03 17:28:42 +01:00
config Temporarily disable sass test 2018-11-29 19:23:00 +01:00
custom-server use native http instead of micro (#5706) 2018-11-19 16:36:18 +01:00
dist-dir Fix linter (#5350) 2018-10-20 17:00:01 +02:00
export fix: update correct path to use when exporting 404 page (#5470) 2018-11-03 01:19:41 +01:00
filesystempublicroutes use native http instead of micro (#5706) 2018-11-19 16:36:18 +01:00
lambdas Add node_modules bundling under the --lambdas flag for next build (#5690) 2018-11-17 11:15:33 -08:00
ondemand Fix linter (#5350) 2018-10-20 17:00:01 +02:00
page-extensions Fix linter (#5350) 2018-10-20 17:00:01 +02:00
production Handle 404 thrown from send (#5779) 2018-11-30 17:09:23 +01:00
production-config Fix linter (#5350) 2018-10-20 17:00:01 +02:00
size-limit Use Typescript to transpile Next.js core files instead of Babel (#5747) 2018-11-28 15:03:02 +01:00
with-router Fix linter (#5350) 2018-10-20 17:00:01 +02:00