Comments (3)
@cspotcode hello! Thanks for the question, and sorry for the delay.
At the moment, no, but polyfills should Just Work, if that's an option. Do you have a specific need to avoid polyfills right now? I'm curious to know, because it wouldn't be too hard to add this capability to the library if it could be a common use case.
from gretchen.
Not a specific need; just a general desire to avoid modifying the global environment to avoid possible incompatibilities with other libraries.
If I require any modifications to the global environment, this means that any libraries I publish will also impose this global mutation on their consumers. It's possible that consumers will use another library that breaks when it encounters this global mutation. I don't have any specific examples, so it's possible that this is extremely rare. But when writing libraries, I try not to make that assumption, since I don't know who will be using the library.
I can send a PR to implement this, if you want.
from gretchen.
Hello again @cspotcode 👋 heck of a year it's been lol, sorry I never got back to you on this.
I hear you on the globals. Since you posted this, gretchen was refactored into a state that might make this easier. However, it still relies on other globals like Request
.
If you've got ideas on how we could implement this we'd love a PR!
from gretchen.
Related Issues (11)
- test AbortController support HOT 1
- Unmapped responses? HOT 3
- Remove unecessary response cloning
- add browser support docs HOT 1
- Retry on json fail HOT 4
- Strongly typed request body? HOT 2
- Path to cjs build is incorrect (v1.4.0) HOT 1
- Headers should be normalized before merging
- consider alternate handling of empty response bodies
- Retry does not work when using request body HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gretchen.