Janicklas Ralph
fd1c56e66a
next/script fix duplicate scripts ( #28428 )
...
* Fix #27747
* Fix lint error
* Add data attribute to script component
* Fix #28036
* Fix tests
* Fix tests
Co-authored-by: JJ Kasper <jj@jjsweb.site>
2021-08-24 11:07:38 -05:00
Janicklas Ralph
26255a685d
Add data attribute to script component ( #28310 )
...
Add data attribute `data-nscript` to the script component
2021-08-20 20:48:48 +00:00
Janicklas Ralph
43393d53be
Fix next/script
unhandled promise rejection ( #27903 )
...
## Bug
- [x] fixes #27747
- [x] Integration tests added
2021-08-10 17:41:26 +00:00
Janicklas Ralph
dda23f5d9b
Fix inline scripts being duplicated when used with next/script
component ( #27218 )
...
Fixes inline scripts being duplicated when used with `next/script` component
## Bug
- [x] fixes #26860
- [x] Integration tests added
## Documentation / Examples
Updated docs to indicate that `id` is needed for inline scripts
2021-07-16 18:58:34 +00:00
Janicklas Ralph
3b388c346c
Fix Script beforeInteractive on navigation ( #26995 )
...
## Bug
- [x] fixes #26342
- [x] Integration tests added
- [x] Errors have helpful link attached, see `contributing.md`
## Documentation / Examples
- [x] Make sure the linting passes
2021-07-15 22:51:01 +00:00
Steven
f1e6bc9e6b
Rename next/script
interface Props to ScriptProps ( #26990 )
...
This will ensure `next/script` follows the same naming convention as `next/image`. For example:
```js
import Image, { ImageProps } from 'next/image'
import Script, { ScriptProps } from 'next/script'
```
Fixes #26290
2021-07-07 16:35:50 +00:00
Tim Neutkens
136b754396
Move code shared between server/client to "shared" folder ( #26734 )
2021-06-30 11:43:31 +02:00
JJ Kasper
76f0b3585f
Update to latest TypeScript version and de-dupe versions ( #26285 )
...
* Update to latest TypeScript version and de-dupe versions
* Update version test
2021-06-17 17:43:25 -05:00
Janicklas Ralph
b05719f928
Remove experimental tag from Script component ( #25435 )
...
* Remove experimental tag from Script component
* update size tests
* Update size
* Update size limit
* Update basic output sizes
Co-authored-by: Tim Neutkens <tim@timneutkens.nl>
Co-authored-by: Tim Neutkens <timneutkens@me.com>
2021-06-03 13:56:50 +02:00