Vlad Frangu
5f7d335290
feat: fetch gateway information without requiring rest in ws ( #10651 )
...
* feat: overridable initial gateway URL
* chore: discussion changes
* chore: requested change
* chore: other changes
* Update packages/ws/src/ws/WebSocketManager.ts
* style: run ESLint
---------
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2025-01-13 10:23:41 +00:00
Almeida
e2e71b4d09
build: bump dependencies ( #10457 )
...
* build: bump `@vladfrangu/async_event_emitter`
* chore: bump again + fixes
* build: bump types/node and some dev deps
* build: bump discord-api-types again
* style: remove unused eslint-ignore comment
* build: sync dependencies and update templates
* build: bump turbo
* build: vercel + vitest
* build: bump undici
---------
Co-authored-by: Vlad Frangu <me@vladfrangu.dev >
2024-08-22 17:33:35 +02:00
DD
a6de2707fc
refactor(WebSocketShard): error event handling ( #10436 )
...
* refactor(WebSocketShard): error event handling
* chore: blehhhh :pppp
---------
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2024-08-15 16:10:25 +00:00
DD
de94eaf351
feat(WebsocketManager): retroactive token setting ( #10418 )
...
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2024-07-31 11:46:39 +00:00
DD
bf6761a44a
refactor(ws): event layout ( #10376 )
...
* refactor(ws): event layout
BREAKING CHANGE: All events now emit shard id as its own param
* fix: worker event forwarding
---------
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2024-07-24 18:40:34 +00:00
DD
be04acd534
fix: retry for EAI_AGAIN I/O error ( #10383 )
2024-07-11 12:53:49 +00:00
DD
093ac924ae
feat(WebSocketShard): explicit time out network error handling ( #10375 )
...
* feat(WebSocketShard): explicit time out network error handling
* refactor: use constant
2024-07-02 20:25:22 +00:00
Danial Raza
94cc02a258
refactor: native zlib support ( #10316 )
...
Revert "revert: refactor: native zlib support (#10314 )"
This reverts commit 4ea73bb64e .
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2024-06-02 22:51:26 +00:00
Jiralite
4ea73bb64e
revert: refactor: native zlib support ( #10314 )
...
Revert "refactor: native zlib support (#10243 )"
This reverts commit 20258f94bf .
2024-06-02 19:53:31 +00:00
DD
20258f94bf
refactor: native zlib support ( #10243 )
...
* refactor: remove zlib-sync
* fix: bad length check
* refactor: support both options
BREAKING CHANGE: renamed compression related options
* chore: fix doc comment
* chore: update debug messages
* chore: better wording
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
* chore: suggested changes
* chore: better naming
* refactor: lazy node:zlib import and lib detection
* chore: zlib capitalization
* fix: use proper var
* refactor: better inflate check
Co-authored-by: Aura <kyradiscord@gmail.com >
* chore: debug label
Co-authored-by: Superchupu <53496941+SuperchupuDev@users.noreply.github.com >
---------
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
Co-authored-by: Aura <kyradiscord@gmail.com >
Co-authored-by: Superchupu <53496941+SuperchupuDev@users.noreply.github.com >
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2024-05-11 15:32:05 +00:00
DD
c878b65ef5
refactor(WebSocketShard): payload sending ( #10098 )
...
* refactor(WebSocketShard): payload sending
* fix: adjust ratelimit state onopen
* fix: use >=
* chore: spelling
Co-authored-by: space <spaceeec@yahoo.com >
---------
Co-authored-by: space <spaceeec@yahoo.com >
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2024-02-05 18:42:33 +00:00
DD
02dfaf1aa2
refactor: abstract identify throttling and correct max_concurrency handling ( #9375 )
...
* refactor: properly support max_concurrency ratelimit keys
* fix: properly block for same key
* chore: export session state
* chore: throttler no longer requires manager
* refactor: abstract throttlers
* chore: proper member order
* chore: remove leftover debug log
* chore: use @link tag in doc comment
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
* chore: suggested changes
* fix(WebSocketShard): cancel identify if the shard closed in the meantime
* refactor(throttlers): support abort signals
* fix: memory leak
* chore: remove leftover
---------
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com >
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-04-14 20:26:37 +00:00
DD
5c5a5832b9
refactor(WebSocketManager): passing in strategy ( #9122 )
...
* refactor(WebSocketManager): passing in strategy
* chore: update tests
* chore: requested nits
---------
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-02-19 18:57:31 +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
Synbulat Biishev
8b70f497a1
docs: fix version export ( #9049 )
...
* docs: fix version export
* types: assert `[VI]{{inject}}[/VI]` as string
* types: typo
* Revert "types: typo"
This reverts commit ba983f02be .
* types: typo
I hate my local repo. It can't install deps with `--immutable` and a have weird error on `yarn test`, but the CI passes
2023-01-19 15:56:57 +00:00
DD
05a1cbfe54
fix: ws typo ( #9056 )
...
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-01-13 00:56:43 +00:00
DD
828a13b526
feat(ws): custom workers ( #9004 )
...
* feat(ws): custom workers
* chore: typo
* refactor(WebSocketShard): expose shard id
* chore: remove outdated readme comment
* chore: nits
* chore: remove unnecessary mutation
* feat: fancier resolution
* chore: remove unnecessary exports
* chore: apply suggestions
* refactor: use range errors
Co-authored-by: Aura Román <kyradiscord@gmail.com >
2023-01-10 17:31:56 +00:00
Suneet Tipirneni
273ba45e27
chore: use satisfies where applicable ( #8884 )
...
* chore: use satisfies where applicable
* chore: remove unneeded eslint ignores
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-12-16 02:12:38 +00:00
DD
8f552a0e17
refactor(WebSocketShard): identify throttling ( #8888 )
...
* refactor(WebSocketShard): identify throttling
* chore: add worker handling
* refactor: worker handling
* chore: update tests
* chore: use satisfies where applicable
* chore: add informative comment
* chore: apply suggestions
* refactor(SimpleContextFetchingStrategy): support multiple managers
2022-12-02 13:04:09 +00:00
DD
40b504a208
fix(WebSocketShard): send ratelimit handling ( #8887 )
...
* fix(WebSocketShard): send ratelimit handling
* chore: remove unnecessary else
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-12-01 10:58:00 +00:00
Jeroen Claassens
d923d0ab96
build: switch to esbuild-plugin-version-injector for injecting version strings ( #8723 )
2022-10-08 02:54:45 +02:00
Parbez
7af3c3b6f1
fix: ws package.json path ( #8720 )
2022-10-07 19:42:04 +02:00
Suneet Tipirneni
b2ec865765
feat: add @discordjs/util ( #8591 )
...
* feat: add @discordjs/util
* fix: builders test
* refactor: make rest use lazy for ESM import
* chore: make requested changes
* Apply suggestions from code review
Co-authored-by: Parbez <imranbarbhuiya.fsd@gmail.com >
Co-authored-by: A. Román <kyradiscord@gmail.com >
* chore: make requested changes and add tests
* chore: regen lockfile
* test: add type tests
* chore: push missing files
* chore: make requested changes
* chore: update CI stuff
* chore: fix lockfile
* chore: make requested changes
Co-authored-by: Parbez <imranbarbhuiya.fsd@gmail.com >
Co-authored-by: A. Román <kyradiscord@gmail.com >
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-10-02 18:00:31 +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
Suneet Tipirneni
0f83402985
refactor(website): adjust typography ( #8503 )
2022-08-17 10:17:09 +02:00
Suneet Tipirneni
7116647947
feat(website): render tsdoc examples ( #8494 )
2022-08-16 16:33:49 +02:00
iCrawl
193b252672
docs: fence examples in codeblocks
2022-08-14 19:25:25 +02:00
DD
748d7271c4
feat: @discordjs/ws ( #8260 )
...
Co-authored-by: Parbez <imranbarbhuiya.fsd@gmail.com >
2022-07-22 19:13:47 +02:00