Moving this out of the readme so that I can publish the module without the todo list being immortalized. ### Todo - [x] transpiling - [x] linting - [x] ci - [x] documentation - [x] publish - [x] auto-publish from CI - [ ] full test coverage - [ ] parse `RateLimit-Policy` headers - [x] maybe expose `parseCombinedRateLimitHeader` in a way that allows it to be included without pulling in the entire library? - [x] make `parseCombinedRateLimitHeader` operate in a single pass instead of 3 - [x] handle responses with more than one set of ratelimit headers * Probably two APIs: one that just returns a single RateLimit object, and one that returns an array of RateLimit objects. - more examples * [x] node.js [http.get](https://nodejs.org/api/http.html#httpgeturl-options-callback) * [x] [axios](https://www.npmjs.com/package/axios) * [x] [node-fetch](https://www.npmjs.com/package/node-fetch) * [x] Deno `fetch` * [ ] React Native `fetch` * [ ] browser `fetch` * [ ] browser `XMLHttpRequest` * possibly [request](https://www.npmjs.com/package/request) or [some of it's other alternatives](https://github.com/request/request/issues/3143) - [ ] test in [Deno](https://deno.com/) - [ ] test browsers - [ ] test in [React Native](https://reactnative.dev/) - [x] add support for [more headers formats](https://github.com/ietf-wg-httpapi/ratelimit-headers/issues/25) - [x] Use a proper [structured fields parser](https://datatracker.ietf.org/doc/rfc8941/), such as one of these https://www.npmjs.com/search?q=rfc8941
Moving this out of the readme so that I can publish the module without the todo list being immortalized.
Todo
RateLimit-PolicyheadersparseCombinedRateLimitHeaderin a way that allows it to be included without pulling in the entire library?parseCombinedRateLimitHeaderoperate in a single pass instead of 3fetchfetchfetchXMLHttpRequest