-
Notifications
You must be signed in to change notification settings - Fork 58
DX-1209: inline fix-it hints on SDK ErrorInfo throw sites #2233
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
umair-ably
wants to merge
18
commits into
main
Choose a base branch
from
DX-1209/error-hints
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+811
−275
Open
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
099f6aa
DX-1205: throw on legacy v1 ably/promises and ably/callbacks imports
umair-ably 1ff768b
DX-1205: split legacy import-shim throws into message + hint
umair-ably ee7cfd6
DX-1209: inline fix-it hints on SDK ErrorInfo throw sites
umair-ably 75c7dc7
DX-1209: tighten hint language, forecast server walls, add CLI tips
umair-ably d4062f8
DX-1209: add scripts/hint-coverage.ts + wire into lint CI
umair-ably 89ec75a
DX-1209: address Lint + Bundle CI failures
umair-ably 79f0756
DX-1209: fix push plugin bugs surfaced by PR #2233 review
umair-ably b289067
DX-1209: extend ErrorInfo with values-object constructor overload
umair-ably 25b1569
DX-1209: migrate hint-bearing throw sites to single-call form
umair-ably 488e1fa
DX-1209: tighten hint and message content per PR #2233 review
umair-ably f903ebb
DX-1209: style polish across hint text
umair-ably 9b70058
DX-1209: rewrite hint-coverage as a TypeScript AST walker
umair-ably b5e9963
DX-1209: tighten error-hints test + document bundle threshold bump
umair-ably 270e7e2
DX-1209: trim message/hint redundancy per D1 audit
umair-ably 6e49005
DX-1209: forward inner hint when wrapping decode failures
umair-ably aa43931
DX-1209: broaden device-token hint to cover unsubscribe path
umair-ably 22170a7
DX-1209: drop hint-coverage script and hint-pinning tests
umair-ably 5f896cd
DX-1209: second message/hint redundancy pass
umair-ably 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| /** | ||
| * @deprecated `'ably/callbacks'` was the v1 callback API entry point and has been removed in ably-js v2. | ||
| * v2 is promise-only — import from `'ably'` directly and switch to `await` / `.then()`. | ||
| * | ||
| * Importing this subpath throws at module load with the migration link. | ||
| * | ||
| * @see https://github.com/ably/ably-js/blob/main/docs/migration-guides/v2/lib.md | ||
| */ | ||
| declare const ablyCallbacksV1EntryPointRemoved: never; | ||
| export = ablyCallbacksV1EntryPointRemoved; |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| 'use strict'; | ||
|
|
||
| const err = new Error("'ably/callbacks' was the v1 callback API entry point and is no longer available."); | ||
| err.hint = | ||
| "ably-js v2 is promise-only — import from 'ably' directly and switch to await / .then(). See https://github.com/ably/ably-js/blob/main/docs/migration-guides/v2/lib.md"; | ||
| throw err; |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| /** | ||
| * @deprecated `'ably/promises'` was the v1 entry point and is no longer available in ably-js v2. | ||
| * v2 is promise-only — import from `'ably'` directly. | ||
| * | ||
| * Importing this subpath throws at module load with the migration link. | ||
| * | ||
| * @see https://github.com/ably/ably-js/blob/main/docs/migration-guides/v2/lib.md | ||
| */ | ||
| declare const ablyPromisesV1EntryPointRemoved: never; | ||
| export = ablyPromisesV1EntryPointRemoved; |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| 'use strict'; | ||
|
|
||
| const err = new Error("'ably/promises' was the v1 entry point and is no longer available."); | ||
| err.hint = | ||
| "ably-js v2 is promise-only — import from 'ably' directly. See https://github.com/ably/ably-js/blob/main/docs/migration-guides/v2/lib.md"; | ||
| throw err; |
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
Oops, something went wrong.
Oops, something went wrong.
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.