ckohen
cdaa0a36f5
refactor(rest): switch api to fetch-like and provide strategies ( #9416 )
...
BREAKING CHANGE: NodeJS v18+ is required when using node due to the use of global `fetch`
BREAKING CHANGE: The raw method of REST now returns a web compatible `Respone` object.
BREAKING CHANGE: The `parseResponse` utility method has been updated to operate on a web compatible `Response` object.
BREAKING CHANGE: Many underlying internals have changed, some of which were exported.
BREAKING CHANGE: `DefaultRestOptions` used to contain a default `agent`, which is now set to `null` instead.
2023-05-06 21:09:19 +02:00
iCrawl
48cab844d4
build: switch to bundler moduleResolution
2023-05-01 13:14:13 +02:00
ckohen
db8df104c5
fix(handlers): create burst handler for interaction callbacks ( #8996 )
...
* fix(handlers): create burst handler for interaction callbacks
* docs: use remarks instead of info block
Co-Authored-By: Almeida <almeidx@pm.me >
* refactor: move code duplication to shared handler
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
* Update packages/rest/src/lib/handlers/BurstHandler.ts
---------
Co-authored-by: Almeida <almeidx@pm.me >
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com >
Co-authored-by: Aura Román <kyradiscord@gmail.com >
2023-03-30 17:22:04 +00:00
Lioness100
1ba1f238f0
docs: fix typos ( #9127 )
...
* docs: fix typos
* indicies -> indices
* rename file
---------
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-02-17 20:07:38 +00:00
Aura Román
8376e2dbcd
refactor: update makeURLSearchParams to accept readonly non-Records ( #8868 )
2022-11-28 09:20:27 +01:00
A. Román
3c231ae81a
feat: add AbortSignal support ( #8672 )
...
* feat: add `AbortSignal` support
* fix: move the expect earlier
* fix: pass signal
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-09-25 18:44:03 +00:00
iCrawl
3b7ba4062e
chore: fix leftover eslint exceptions
2022-09-01 21:26:09 +02:00
Suneet Tipirneni
edadb9fe5d
refactor: use eslint-config-neon for packages. ( #8579 )
...
Co-authored-by: Noel <buechler.noel@outlook.com >
2022-09-01 20:50:16 +02:00
iCrawl
8d8e6c03de
feat: use vitest instead of jest for more speed
2022-06-05 01:07:10 +02:00
iCrawl
6b8ef20cb3
style: cleanup tests and tsup configs
2022-06-04 15:21:57 +02:00
Khafra
e92b17d855
fix(REST): remove dom types ( #7922 )
2022-05-14 18:39:12 +02:00
Khafra
d1504f2ae1
fix: ok statusCode can be 200..299 ( #7919 )
2022-05-14 18:38:05 +02:00
Khafra
d1ec8c37ff
feat(rest): use undici ( #7747 )
...
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com >
Co-authored-by: ckohen <chaikohen@gmail.com >
2022-05-12 22:49:15 +02:00
iCrawl
bcf7f1cfad
chore: deps
2022-04-17 11:27:36 +02:00
A. Román
8eaec114a9
feat: add makeURLSearchParams utility function ( #7744 )
2022-04-12 17:14:30 +02:00
Suneet Tipirneni
72577c4bfd
feat: add API v10 support ( #7477 )
...
* feat: add API v10 support
* refactor: update deps
* chore: rebase fixes
2022-03-15 21:37:07 +01:00
Vlad Frangu
b9ff7b0573
fix(RequestHandler): only reset tokens for authenticated 401s ( #7508 )
2022-03-06 20:43:12 +01:00
Khafra
868e2f3230
rest: prefer arrayBuffer over buffer ( #7318 )
2022-02-16 08:34:54 +01:00
Suneet Tipirneni
0af9bc841f
fix(ci): ci error ( #7454 )
...
Co-authored-by: Almeida <almeidx@pm.me >
2022-02-13 13:37:41 +01:00
Tobias Peltzer
538e9cef45
fix: use png as extension for defaultAvatarURL ( #7414 )
2022-02-07 11:50:09 +01:00
ckohen
733ac82d5d
fix(rest): sublimit all requests on unhandled routes ( #7366 )
2022-02-05 14:30:55 +01:00
Suneet Tipirneni
1a6c5ab145
chore: use performance.now for time-based unit tests ( #7354 )
2022-01-27 10:05:14 +01:00
ckohen
67250382f9
refactor(files): remove redundant file property names ( #7340 )
2022-01-25 15:35:04 +01:00
Suneet Tipirneni
0951309b32
chore(cdn): default to animated images ( #7265 )
...
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
Co-authored-by: Almeida <almeidx@pm.me >
2022-01-17 13:14:03 +01:00
Noel
16938da355
chore: improve linting ( #7244 )
2022-01-11 12:30:08 +01:00
ckohen
86ab526d49
refactor(files): file data can be much more than buffer ( #7238 )
2022-01-11 12:29:48 +01:00
ckohen
c969cbf652
refactor(rest): rename attachment to file ( #7199 )
2022-01-08 00:49:34 +01:00
Noel
16390efe6e
chore: monorepo setup ( #7175 )
2022-01-07 17:18:25 +01:00