feat(signals): recognise HTTP errors by brand, not by instanceof
A plugin published as its own package cannot import HttpError without depending on core's version, and under CalVer no dependency range survives next month's beta. A Symbol.for brand crosses copies, so a plugin throws a 429 core renders, while importing nothing but types. Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
This commit is contained in:
4 files changed
+107
-5
No files matched your search
@@ -56,7 +56,12 @@ export {
|
||||
NotModified,
|
||||
ValidationError,
|
||||
TransportMismatchError,
|
||||
HTTP_ERROR,
|
||||
VALIDATION_ERROR,
|
||||
isHttpError,
|
||||
isValidationError,
|
||||
} from './signals';
|
||||
export type { HttpErrorLike } from './signals';
|
||||
|
||||
// Bus & flow
|
||||
export { Bus } from './bus';
|
||||
|
||||
Reference in new issue
Block a user