Skip to content

Use Symbol for request properties#1

Open
marcinjahn wants to merge 1 commit intoylcnfrht:mainfrom
marcinjahn:use-symbols
Open

Use Symbol for request properties#1
marcinjahn wants to merge 1 commit intoylcnfrht:mainfrom
marcinjahn:use-symbols

Conversation

@marcinjahn
Copy link
Copy Markdown

@marcinjahn marcinjahn commented Nov 8, 2025

Adding properties to the "global" Request object is prone to conflicts. Symbols should be used to make sure no other library overwriters these values.

This is a breaking change really, but I'm not sure if we need to worry about that. The docs do not recommend in any way to access the abortSignal or abortController on the request object, so it's kinda internal thing.

Adding properties to the "global" Request object is prone to conflicts.
Symbols should be used to make sure no other library overwriters these 
values.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant