This repository was archived by the owner on Apr 6, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 1k
feat(nuxt): improve error dx for users #4539
Merged
Merged
Changes from 11 commits
Commits
Show all changes
54 commits
Select commit
Hold shift + click to select a range
6545667
feat(nuxt): support creating errors directly from `throwError`
danielroe ab3bca3
fix(nuxt): clear errors _after_ route resolves
danielroe 1481e00
docs: update documentation
danielroe 8b60613
Merge remote-tracking branch 'origin/main' into fix/error-dx
danielroe 4c899c7
style: spacing
danielroe 3b205ca
fix: don't re-create errors
danielroe 5a8bcb6
Update docs/content/2.guide/2.features/7.error-handling.md
danielroe d224281
Update docs/content/3.api/3.utils/throw-error.md
danielroe 727e585
Update docs/content/2.guide/2.features/7.error-handling.md
danielroe 3983e87
Update packages/nuxt/src/app/composables/error.ts
danielroe 75466e6
docs: check error value
danielroe a4af259
Merge remote-tracking branch 'origin/main' into fix/error-dx
danielroe 358f914
Merge remote-tracking branch 'origin/main' into fix/error-dx
danielroe 5f4a112
fix: restore code missed in merge
danielroe aede51c
fix: support `throw createError()` directly
danielroe 8426fd5
Merge branch 'main' into fix/error-dx
danielroe b751402
Merge remote-tracking branch 'origin/main' into fix/error-dx
danielroe ab4c4d5
Merge branch 'main' into fix/error-dx
danielroe 8c7849d
fix: export/auto-import `createError` from composables
danielroe b0b5a91
fix: implement fuller wrapper
danielroe 5a289b9
Merge remote-tracking branch 'origin/main' into fix/error-dx
danielroe 6ffa080
fix: export `createError`
danielroe 912ab0a
Merge branch 'main' into fix/error-dx
danielroe 6b9131b
Merge branch 'main' into fix/error-dx
danielroe 71fbf23
Merge remote-tracking branch 'origin/main' into fix/error-dx
danielroe d846c00
docs: show underlying options for error
danielroe 2124e3f
fix: move checks into `createError`
danielroe 31a6b06
Merge branch 'main' into fix/error-dx
danielroe bbafd5e
fix: use `isError` from `h3` rather than instanceof
danielroe 09fc189
docs: remove createError import
danielroe 1e75c8c
refactor: isNuxtError
danielroe 8e902b7
Merge remote-tracking branch 'origin/main' into fix/error-dx
danielroe 88a42fa
docs: add blank `createError` page
danielroe 18ebba3
fix: use native createError support for strings
danielroe 711f4ec
Merge remote-tracking branch 'origin/main' into fix/error-dx
danielroe a82450a
fix: set default `statusMessage` if one is not provided
danielroe 8bdcee9
chore: upgrade h3
danielroe 1713806
Merge branch 'main' into fix/error-dx
danielroe 5720255
chore: dedupe h3
danielroe 6ce6521
Merge remote-tracking branch 'origin/main' into fix/error-dx
danielroe 3d66ed7
chore: dedupe
danielroe 95852e5
chore: dedupe for real
danielroe aa8086b
Merge remote-tracking branch 'origin/main' into fix/error-dx
danielroe 0dfe1e5
fix: auto import `isNuxtError`
danielroe bfb4a08
Merge branch 'main' into fix/error-dx
pi0 f72cff3
fix: errors are not fatal by default on client-side unless `fatal: true`
danielroe 2cce81a
Merge remote-tracking branch 'origin/main' into fix/error-dx
danielroe 992a0f7
docs: remove stray wor
danielroe 9bba606
refactor: rename `throwError` -> `showError`, deprecating old name
danielroe 5aee7cf
Merge branch 'main' into fix/error-dx
pi0 f61e13c
upgrade h3 and reuse fatal
pi0 b04dda0
only log unhandled errors
pi0 e69bdf8
update ui templates
pi0 444a59c
Merge branch 'main' into fix/error-dx
pi0 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.