rsnext/test/development/acceptance-app
Balázs Orbán c16e28715f
feat: show version staleness in error overlay (#44234)Co-authored-by: Sukka <isukkaw@gmail.com> Co-authored-by: Steven <steven@ceriously.com> Co-authored-by: Hannes Bornö <hannes.borno@vercel.com> Co-authored-by: Hannes Bornö <borno.hannes@gmail.com> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
Supersedes #37750 as the overlay has been refactored and moved into the
Next.js package itself.

If it detects an older major version, it will show "outdated". Older
minor shows "out of date". Old canary will show "out of date", with a
different message. Matching latest canary or latest will show "up to
date". It will show nothing if we could not detect the versions due to
some error.

<details>
<summary>States: Fresh, stale, outdated</summary>

Fresh:

![image](https://user-images.githubusercontent.com/18369201/208972067-8f2bd8d5-bb92-440a-a3aa-0685b18b4871.png)


Stale:

![image](https://user-images.githubusercontent.com/18369201/208971789-baec0b90-718a-4cdc-bb15-ed23ce5efcbc.png)


Outdated:

![image](https://user-images.githubusercontent.com/18369201/208972153-923ab865-e0f7-405d-9411-45ad1f545d0e.png)

</details>

Fixes NEXT-316

---------

Co-authored-by: Sukka <isukkaw@gmail.com>
Co-authored-by: Steven <steven@ceriously.com>
Co-authored-by: Hannes Bornö <hannes.borno@vercel.com>
Co-authored-by: Hannes Bornö <borno.hannes@gmail.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-02-17 16:18:28 +01:00
..
__snapshots__ Add editor links to module import traces (#45257) 2023-02-04 00:41:01 +00:00
fixtures Improve client-only imported in external package error (#45484) 2023-02-07 19:56:03 +00:00
component-stack.test.ts Show component stack in error overlay on hydration error (#45089) 2023-01-24 11:12:29 +01:00
editor-links.test.ts Add editor links to module import traces (#45257) 2023-02-04 00:41:01 +00:00
error-recovery.test.ts Move error recovery test to new file (#45407) 2023-01-30 09:00:08 -08:00
helpers.ts Add editor links to RSC build error (#45179) 2023-01-24 15:13:37 -08:00
hydration-error.test.ts Enable more hydration error overlay tests (#45404) 2023-01-30 18:50:54 +00:00
invalid-imports.test.ts Improve server-only imported in external package error (#45749) 2023-02-15 01:54:41 +00:00
ReactRefresh.test.ts Refactor more tests to createNextDescribe (#44104) 2022-12-19 10:20:01 +01:00
ReactRefreshLogBox-builtins.test.ts test(snapshot): allow snapshot test not invalidate with --turbo (#43545) 2023-01-13 12:02:44 -08:00
ReactRefreshLogBox-scss.test.ts Update some flakey acceptance tests (#44984) 2023-01-17 13:14:43 -08:00
ReactRefreshLogBox.test.ts Use details tag in collapsed call stacks (#45907) 2023-02-14 16:31:59 -08:00
ReactRefreshLogBoxMisc.test.ts Update some flakey acceptance tests (#44984) 2023-01-17 13:14:43 -08:00
ReactRefreshModule.test.ts Update some flakey acceptance tests (#44984) 2023-01-17 13:14:43 -08:00
ReactRefreshRegression.test.ts Update flakey polyfills and acceptance tests (#45313) 2023-01-26 10:25:47 -08:00
ReactRefreshRequire.test.ts Update precompiled react to next channel (#41708) 2022-10-24 00:31:52 -07:00
rsc-build-errors.test.ts Improve server-only imported in external package error (#45749) 2023-02-15 01:54:41 +00:00
server-components.test.ts Fix capitalization in formatted server errors (#44798) 2023-01-12 08:15:28 -08:00
unsupported-app-features.test.ts Error when exporting AMP config in app dir (#45228) 2023-02-02 23:37:05 +00:00
version-staleness.test.ts feat: show version staleness in error overlay (#44234)Co-authored-by: Sukka <isukkaw@gmail.com> Co-authored-by: Steven <steven@ceriously.com> Co-authored-by: Hannes Bornö <hannes.borno@vercel.com> Co-authored-by: Hannes Bornö <borno.hannes@gmail.com> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> 2023-02-17 16:18:28 +01:00