rsnext/packages/next/client
Nathan Hammond c962f2d6a4
Adopt script rejection pattern for link onerror. (#42645)
The HTML `<link>` element's `onerror` function receives an Event-shaped object. The rejection here expects an `Error` shaped object. This PR 1:1 adopts the same pattern for `<link>` `onerror` that `script` `onerror` uses.

Attached you'll see an image that demonstrates that it _can_ end up in this state from turbo.build's Sentry logs:
<img width="919" alt="Screen Shot 2022-11-09 at 2 43 11 AM" src="https://user-images.githubusercontent.com/20542/200648928-12b85642-c9b5-4d7e-b4fe-2b2d420a6669.png">
2022-11-09 19:58:20 +00:00
..
compat next/compat/router (#42502) 2022-11-07 18:16:28 +00:00
components Add lazy initialize of router cache nodes (#42629) 2022-11-08 16:32:06 +01:00
dev Aggregate updates using addStatusHandler and Promise.resolve instead of setTimeout (#42350) 2022-11-07 21:06:18 +00:00
legacy Replace global with globalThis (#42627) 2022-11-08 14:45:30 +01:00
portal refactor(portal): remove useRef from portal component (#39792) 2022-08-21 09:39:43 +00:00
add-base-path.ts Extract router utils to common functions (#37313) 2022-05-30 20:19:37 +02:00
add-locale.ts Extract router utils to common functions (#37313) 2022-05-30 20:19:37 +02:00
app-bootstrap.js Load beforeInteractive scripts properly without blocking hydration (#41164) 2022-10-09 15:08:51 +00:00
app-index.tsx Optimize bundle size for appDir (#42252) 2022-10-31 17:50:35 +00:00
app-next-dev.js Load beforeInteractive scripts properly without blocking hydration (#41164) 2022-10-09 15:08:51 +00:00
app-next.js Merge app internal chunk into main chunk for layouts (#41902) 2022-10-27 16:50:46 -07:00
detect-domain-locale.ts Extract router utils to common functions (#37313) 2022-05-30 20:19:37 +02:00
get-domain-locale.ts Extract router utils to common functions (#37313) 2022-05-30 20:19:37 +02:00
has-base-path.ts Extract router utils to common functions (#37313) 2022-05-30 20:19:37 +02:00
head-manager.ts Migrate head side effects to hooks (#37526) 2022-06-08 11:26:57 +00:00
image.tsx Replace global with globalThis (#42627) 2022-11-08 14:45:30 +01:00
index.tsx Change usePathname to return string | null (#42380) 2022-11-03 13:34:50 -07:00
link.tsx Hybrid App Hooks Support (#41767) 2022-10-31 20:13:27 -07:00
next-dev.js Add hard navigation guard and fix middleware rewrite cases (#37815) 2022-06-20 11:31:19 +00:00
next.js Split up & tweak next/client initialization (#33838) 2022-03-07 17:09:55 +00:00
normalize-locale-path.ts Extract router utils to common functions (#37313) 2022-05-30 20:19:37 +02:00
normalize-trailing-slash.ts Extract router utils to common functions (#37313) 2022-05-30 20:19:37 +02:00
page-loader.ts feat(next): Support has match and locale option on middleware config (#39257) 2022-08-31 11:23:30 -05:00
performance-relayer-app.ts Optimize bundle size for appDir (#42252) 2022-10-31 17:50:35 +00:00
performance-relayer.ts add attribution to web vitals (#39368) 2022-10-04 00:17:30 +00:00
remove-base-path.ts Extract router utils to common functions (#37313) 2022-05-30 20:19:37 +02:00
remove-locale.ts Extract router utils to common functions (#37313) 2022-05-30 20:19:37 +02:00
request-idle-callback.ts upgrade to typescript 4.4.3 (#29112) 2021-09-16 18:06:57 +02:00
route-announcer.tsx next/compat/router (#42502) 2022-11-07 18:16:28 +00:00
route-loader.ts Adopt script rejection pattern for link onerror. (#42645) 2022-11-09 19:58:20 +00:00
router.ts next/compat/router (#42502) 2022-11-07 18:16:28 +00:00
script.tsx Bundle ssr client layer excepts react externals (#41606) 2022-10-22 16:33:51 -07:00
trusted-types.ts Route Loader Trusted Types Violation Fix (#34730) 2022-05-03 23:22:08 +00:00
use-intersection.tsx refactor(use-intersection): remove useRef usage (#39791) 2022-08-21 10:10:09 +00:00
with-router.tsx Upgrade typescript to 4.8.2 (#39979) 2022-08-29 16:56:02 +00:00