Compare commits

...

7 Commits

Author SHA1 Message Date
Vlad Frangu
0830fe8dbc chore(ws): release @discordjs/ws@1.2.3 2025-06-16 15:24:19 +03:00
Vlad Frangu
30ab200c06 chore: bump rest 2025-06-16 15:23:39 +03:00
Jiralite
dac50b345b build: Update Undici to 6.21.3 (#10907)
build: update Undici to 6.21.3
2025-05-20 11:52:41 +01:00
Jiralite
4ccc3df19f build: update zlib-sync to 0.1.10 2025-05-20 11:40:41 +01:00
Vlad Frangu
da8f08785f chore: tie the flow 2025-04-26 00:56:33 +03:00
Vlad Frangu
68282eeac4 chore: lock file 2025-04-26 00:54:44 +03:00
Vlad Frangu
cc5fbd8cc3 chore(ws): release @discordjs/ws@1.2.2 2025-04-26 00:53:36 +03:00
4 changed files with 136 additions and 49 deletions

View File

@@ -35,7 +35,8 @@ jobs:
tag: ${{ github.ref_name }}
- name: Publish package
if: ${{ steps.extract-tag.outputs.package == 'ws' }}
run: |
pnpm --filter=${{ steps.extract-tag.outputs.subpackage == 'true' && '@discordjs/' || '' }}${{ steps.extract-tag.outputs.package }} publish --provenance --no-git-checks
pnpm --filter=${{ steps.extract-tag.outputs.subpackage == 'true' && '@discordjs/' || '' }}${{ steps.extract-tag.outputs.package }} publish --provenance --no-git-checks --tag v1-lts
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}

View File

@@ -14,6 +14,88 @@ All notable changes to this project will be documented in this file.
- **WebSocketShard:** Explicit time out network error handling (#10375) ([a5437a4](https://github.com/discordjs/discord.js/commit/a5437a41f31bf47e9a6f8dc4452086c614d71d1c))
# [@discordjs/ws@1.2.0](https://github.com/discordjs/discord.js/compare/@discordjs/ws@1.1.1...@discordjs/ws@1.2.0) - (2025-01-01)
## Bug Fixes
- **SimpleIdentifyThrottler:** Don't sleep negative amounts ([a589c6d](https://github.com/discordjs/discord.js/commit/a589c6d49265d24cf202e8f68c6b2ad4fafd398c))
- Retry for EAI_AGAIN I/O error (#10383) ([5b8a08e](https://github.com/discordjs/discord.js/commit/5b8a08ebb66276320a5095630ecee403783afec0))
- Consistent debug log spacing (#10349) ([c6710e5](https://github.com/discordjs/discord.js/commit/c6710e56cc634ecb2b922d777fe715c49fa91baa))
## Features
- **WebSocketShard:** Explicit time out network error handling (#10375) ([a5437a4](https://github.com/discordjs/discord.js/commit/a5437a41f31bf47e9a6f8dc4452086c614d71d1c))
# [@discordjs/ws@1.1.1](https://github.com/discordjs/discord.js/compare/@discordjs/ws@1.1.0...@discordjs/ws@1.1.1) - (2024-06-02)
## Bug Fixes
- Deno compat (#10271) ([616208b](https://github.com/discordjs/discord.js/commit/616208ba7766ac66a8969ffd2cb7b341fdc2c67b))
- Anchor link for events ([0efd1be](https://github.com/discordjs/discord.js/commit/0efd1bea46fa2fc8bcd3dcfd0ac5cd608a0a7df0))
- Minify mainlib docs json (#9963) ([4b88306](https://github.com/discordjs/discord.js/commit/4b88306dcb2b16b840ec61e9e33047af3a31c45d))
## Documentation
- Remove duplicate word in comment (#10244) ([96169ad](https://github.com/discordjs/discord.js/commit/96169add6d2db37706629c0172692533948a9dca))
- Split docs.api.json into multiple json files ([597340f](https://github.com/discordjs/discord.js/commit/597340f288437c35da8c703d9b621274de60d880))
- Remove utf-8-validate (#10059) ([7e12bee](https://github.com/discordjs/discord.js/commit/7e12bee337af169bb131d34fa29ed090ebd26c71))
## Features
- **ws:** Support for custom worker messaging (#10241) ([728164e](https://github.com/discordjs/discord.js/commit/728164ed868167d43dec7b7e8d11052a37694968))
- Local and preview detection ([79fbda3](https://github.com/discordjs/discord.js/commit/79fbda3aac6d4f0f8bfb193e797d09cbe331d315))
- Add support for `using` keyword on discord.js `Client` and `WebSocketManager` (#10063) ([543d617](https://github.com/discordjs/discord.js/commit/543d61737e0709b9d88029d01156d48cfcaf3bcc))
- Use globally available WebSocket client in runtimes that have it (#10042) ([319ef9a](https://github.com/discordjs/discord.js/commit/319ef9a70b92dbb11726b270ab84e73ca932850f))
## Refactor
- Native zlib support (#10243) ([20258f9](https://github.com/discordjs/discord.js/commit/20258f94bf1a62ec1989ef04d839e2800f6e6d28))
- **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>
- Docs (#10126) ([18cce83](https://github.com/discordjs/discord.js/commit/18cce83d80598c430218775c53441b6b2ecdc776))
- **WebSocketShard:** Payload sending (#10098) ([c878b65](https://github.com/discordjs/discord.js/commit/c878b65ef586cd9b42f765515f87f43cb6165f61))
- Use interfaces for AsyncEventEmitter event maps (#10044) ([adfd9cd](https://github.com/discordjs/discord.js/commit/adfd9cd3b32cfabdcc45ec90f535b2852a3ca4a6))
# [@discordjs/ws@1.2.0](https://github.com/discordjs/discord.js/compare/@discordjs/ws@1.1.1...@discordjs/ws@1.2.0) - (2025-01-01)
## Bug Fixes
- **SimpleIdentifyThrottler:** Don't sleep negative amounts ([a589c6d](https://github.com/discordjs/discord.js/commit/a589c6d49265d24cf202e8f68c6b2ad4fafd398c))
- Retry for EAI_AGAIN I/O error (#10383) ([5b8a08e](https://github.com/discordjs/discord.js/commit/5b8a08ebb66276320a5095630ecee403783afec0))
- Consistent debug log spacing (#10349) ([c6710e5](https://github.com/discordjs/discord.js/commit/c6710e56cc634ecb2b922d777fe715c49fa91baa))
## Features
- **WebSocketShard:** Explicit time out network error handling (#10375) ([a5437a4](https://github.com/discordjs/discord.js/commit/a5437a41f31bf47e9a6f8dc4452086c614d71d1c))
# [@discordjs/ws@1.1.1](https://github.com/discordjs/discord.js/compare/@discordjs/ws@1.1.0...@discordjs/ws@1.1.1) - (2024-06-02)
## Bug Fixes

View File

@@ -1,7 +1,7 @@
{
"$schema": "https://json.schemastore.org/package.json",
"name": "@discordjs/ws",
"version": "1.2.1",
"version": "1.2.3",
"description": "Wrapper around Discord's gateway",
"scripts": {
"test": "vitest run",
@@ -74,12 +74,12 @@
"funding": "https://github.com/discordjs/discord.js?sponsor",
"dependencies": {
"@discordjs/collection": "workspace:^",
"@discordjs/rest": "^2.4.3",
"@discordjs/rest": "^2.5.1",
"@discordjs/util": "workspace:^",
"@sapphire/async-queue": "^1.5.2",
"@types/ws": "^8.5.10",
"@vladfrangu/async_event_emitter": "^2.2.4",
"discord-api-types": "^0.37.119",
"discord-api-types": "^0.38.1",
"tslib": "^2.6.2",
"ws": "^8.17.0"
},
@@ -100,9 +100,9 @@
"tsup": "^8.1.0",
"turbo": "^1.13.3",
"typescript": "^5.4.5",
"undici": "6.21.1",
"undici": "6.21.3",
"vitest": "^1.6.0",
"zlib-sync": "^0.1.9"
"zlib-sync": "^0.1.10"
},
"engines": {
"node": ">=16.11.0"

90
pnpm-lock.yaml generated
View File

@@ -1686,8 +1686,8 @@ importers:
specifier: workspace:^
version: link:../collection
'@discordjs/rest':
specifier: ^2.4.3
version: 2.4.3
specifier: ^2.5.1
version: 2.5.1
'@discordjs/util':
specifier: workspace:^
version: link:../util
@@ -1701,8 +1701,8 @@ importers:
specifier: ^2.2.4
version: 2.2.4
discord-api-types:
specifier: ^0.37.119
version: 0.37.119
specifier: ^0.38.1
version: 0.38.1
tslib:
specifier: ^2.6.2
version: 2.6.2
@@ -1759,14 +1759,14 @@ importers:
specifier: ^5.4.5
version: 5.4.5
undici:
specifier: 6.21.1
version: 6.21.1
specifier: 6.21.3
version: 6.21.3
vitest:
specifier: ^1.6.0
version: 1.6.0(@edge-runtime/vm@3.2.0)(@types/node@18.17.9)(happy-dom@14.12.0)(terser@5.31.0)
zlib-sync:
specifier: ^0.1.9
version: 0.1.9
specifier: ^0.1.10
version: 0.1.10
packages:
@@ -2755,12 +2755,12 @@ packages:
resolution: {integrity: sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==}
engines: {node: '>=12'}
'@definitelytyped/header-parser@0.2.16':
resolution: {integrity: sha512-UFsgPft5bhZn07UNGz/9ck4AhdKgLFEOmi2DNr7gXcGL89zbe3u5oVafKUT8j1HOtSBjT8ZEQsXHKlbq+wwF/Q==}
'@definitelytyped/header-parser@0.2.19':
resolution: {integrity: sha512-zu+RxQpUCgorYUQZoyyrRIn9CljL1CeM4qak3NDeMO1r7tjAkodfpAGnVzx/6JR2OUk0tAgwmZxNMSwd9LVgxw==}
engines: {node: '>=18.18.0'}
'@definitelytyped/typescript-versions@0.1.6':
resolution: {integrity: sha512-gQpXFteIKrOw4ldmBZQfBrD3WobaIG1SwOr/3alXWkcYbkOWa2NRxQbiaYQ2IvYTGaZK26miJw0UOAFiuIs4gA==}
'@definitelytyped/typescript-versions@0.1.8':
resolution: {integrity: sha512-iz6q9aTwWW7CzN2g8jFQfZ955D63LA+wdIAKz4+2pCc/7kokmEHie1/jVWSczqLFOlmH+69bWQxIurryBP/sig==}
engines: {node: '>=18.18.0'}
'@definitelytyped/utils@0.1.8':
@@ -2775,8 +2775,8 @@ packages:
resolution: {integrity: sha512-LiSusze9Tc7qF03sLCujF5iZp7K+vRNEDBZ86FT9aQAv3vxMLihUvKvpsCWiQ2DJq1tVckopKm1rxomgNUc9hg==}
engines: {node: '>=18'}
'@discordjs/rest@2.4.3':
resolution: {integrity: sha512-+SO4RKvWsM+y8uFHgYQrcTl/3+cY02uQOH7/7bKbVZsTfrfpoE62o5p+mmV+s7FVhTX82/kQUGGbu4YlV60RtA==}
'@discordjs/rest@2.5.1':
resolution: {integrity: sha512-Tg9840IneBcbrAjcGaQzHUJWFNq1MMWZjTdjJ0WS/89IffaNKc++iOvffucPxQTF/gviO9+9r8kEPea1X5J2Dw==}
engines: {node: '>=18'}
'@discordjs/util@1.1.1':
@@ -7777,6 +7777,9 @@ packages:
discord-api-types@0.37.119:
resolution: {integrity: sha512-WasbGFXEB+VQWXlo6IpW3oUv73Yuau1Ig4AZF/m13tXcTKnMpc/mHjpztIlz4+BM9FG9BHQkEXiPto3bKduQUg==}
discord-api-types@0.38.1:
resolution: {integrity: sha512-vsjsqjAuxsPhiwbPjTBeGQaDPlizFmSkU0mTzFGMgRxqCDIRBR7iTY74HacpzrDV0QtERHRKQEk1tq7drZUtHg==}
dlv@1.1.3:
resolution: {integrity: sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA==}
@@ -8254,6 +8257,7 @@ packages:
eslint-plugin-i@2.29.1:
resolution: {integrity: sha512-ORizX37MelIWLbMyqI7hi8VJMf7A0CskMmYkB+lkCX3aF4pkGV7kwx5bSEb4qx7Yce2rAf9s34HqDRPjGRZPNQ==}
engines: {node: '>=12'}
deprecated: Please migrate to the brand new `eslint-plugin-import-x` instead
peerDependencies:
eslint: ^7.2.0 || ^8
@@ -10734,10 +10738,6 @@ packages:
resolution: {integrity: sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==}
engines: {node: '>=16 || 14 >=14.17'}
minimatch@9.0.4:
resolution: {integrity: sha512-KqWh+VchfxcMNRAJjj2tnsSJdNbHsVgnkBhTNrW7AjVo6OvLtxw8zfT9oLw1JSohlFzJ8jCoTgaoXvJ+kHt6fw==}
engines: {node: '>=16 || 14 >=14.17'}
minimatch@9.0.5:
resolution: {integrity: sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==}
engines: {node: '>=16 || 14 >=14.17'}
@@ -13304,6 +13304,10 @@ packages:
resolution: {integrity: sha512-q/1rj5D0/zayJB2FraXdaWxbhWiNKDvu8naDT2dl1yTlvJp4BLtOcp2a5BvgGNQpYYJzau7tf1WgKv3b+7mqpQ==}
engines: {node: '>=18.17'}
undici@6.21.3:
resolution: {integrity: sha512-gBLkYIlEnSp8pFbT64yFgGE6UIB9tAkhukC23PmMDCe5Nd+cRqKxSjw5y54MK2AZMgZfJWMaNE4nYUHgi1XEOw==}
engines: {node: '>=18.17'}
unicode-canonical-property-names-ecmascript@2.0.0:
resolution: {integrity: sha512-yY5PpDlfVIU5+y/BSCxAJRBIS1Zc2dDG3Ujq+sR0U+JjUevW2JhocOF+soROYDSaAezOzOKuyyixhD6mBknSmQ==}
engines: {node: '>=4'}
@@ -13928,8 +13932,8 @@ packages:
engines: {node: '>=8.0.0'}
hasBin: true
zlib-sync@0.1.9:
resolution: {integrity: sha512-DinB43xCjVwIBDpaIvQqHbmDsnYnSt6HJ/yiB2MZQGTqgPcwBSZqLkimXwK8BvdjQ/MaZysb5uEenImncqvCqQ==}
zlib-sync@0.1.10:
resolution: {integrity: sha512-t7/pYg5tLBznL1RuhmbAt8rNp5tbhr+TSrJFnMkRtrGIaPJZ6Dc0uR4u3OoQI2d6cGlVI62E3Gy6gwkxyIqr/w==}
zod-validation-error@2.1.0:
resolution: {integrity: sha512-VJh93e2wb4c3tWtGgTa0OF/dTt/zoPCPzXq4V11ZjxmEAFaPi/Zss1xIZdEB5RD8GD00U0/iVXgqkF77RV7pdQ==}
@@ -14954,7 +14958,7 @@ snapshots:
'@babel/helper-split-export-declaration': 7.24.6
'@babel/parser': 7.24.6
'@babel/types': 7.24.6
debug: 4.3.4
debug: 4.4.0
globals: 11.12.0
transitivePeerDependencies:
- supports-color
@@ -15210,13 +15214,13 @@ snapshots:
dependencies:
'@jridgewell/trace-mapping': 0.3.9
'@definitelytyped/header-parser@0.2.16':
'@definitelytyped/header-parser@0.2.19':
dependencies:
'@definitelytyped/typescript-versions': 0.1.6
'@definitelytyped/typescript-versions': 0.1.8
'@definitelytyped/utils': 0.1.8
semver: 7.6.3
'@definitelytyped/typescript-versions@0.1.6': {}
'@definitelytyped/typescript-versions@0.1.8': {}
'@definitelytyped/utils@0.1.8':
dependencies:
@@ -15233,17 +15237,17 @@ snapshots:
'@discordjs/collection@2.1.1': {}
'@discordjs/rest@2.4.3':
'@discordjs/rest@2.5.1':
dependencies:
'@discordjs/collection': 2.1.1
'@discordjs/util': 1.1.1
'@sapphire/async-queue': 1.5.5
'@sapphire/snowflake': 3.5.3
'@vladfrangu/async_event_emitter': 2.4.6
discord-api-types: 0.37.119
discord-api-types: 0.38.1
magic-bytes.js: 1.10.0
tslib: 2.8.1
undici: 6.21.1
undici: 6.21.3
'@discordjs/util@1.1.1': {}
@@ -18719,7 +18723,7 @@ snapshots:
prettier: 3.3.0
prompts: 2.4.2
read-pkg-up: 7.0.1
semver: 7.6.2
semver: 7.5.4
strip-json-comments: 3.1.1
tempy: 3.1.0
tiny-invariant: 1.3.3
@@ -18852,7 +18856,7 @@ snapshots:
prettier-fallback: prettier@3.3.0
pretty-hrtime: 1.0.3
resolve-from: 5.0.0
semver: 7.6.2
semver: 7.5.4
tempy: 3.1.0
tiny-invariant: 1.3.3
ts-dedent: 2.2.0
@@ -18894,7 +18898,7 @@ snapshots:
'@storybook/types': 8.1.5
'@types/detect-port': 1.3.5
'@types/diff': 5.2.1
'@types/node': 18.18.8
'@types/node': 18.19.74
'@types/pretty-hrtime': 1.0.3
'@types/semver': 7.5.8
better-opn: 3.0.2
@@ -19421,7 +19425,7 @@ snapshots:
'@types/conventional-commits-parser@5.0.0':
dependencies:
'@types/node': 20.14.0
'@types/node': 18.19.74
'@types/cookiejar@2.1.5': {}
@@ -19813,7 +19817,7 @@ snapshots:
dependencies:
'@typescript-eslint/typescript-estree': 7.11.0(typescript@5.4.5)
'@typescript-eslint/utils': 7.11.0(eslint@8.57.0)(typescript@5.4.5)
debug: 4.3.5
debug: 4.4.0
eslint: 8.57.0
ts-api-utils: 1.3.0(typescript@5.4.5)
optionalDependencies:
@@ -19871,11 +19875,11 @@ snapshots:
dependencies:
'@typescript-eslint/types': 7.11.0
'@typescript-eslint/visitor-keys': 7.11.0
debug: 4.3.4
debug: 4.4.0
globby: 11.1.0
is-glob: 4.0.3
minimatch: 9.0.4
semver: 7.6.2
minimatch: 9.0.5
semver: 7.6.3
ts-api-utils: 1.3.0(typescript@5.4.5)
optionalDependencies:
typescript: 5.4.5
@@ -22168,6 +22172,8 @@ snapshots:
discord-api-types@0.37.119: {}
discord-api-types@0.38.1: {}
dlv@1.1.3: {}
dmd@6.2.0:
@@ -22217,7 +22223,7 @@ snapshots:
dts-critic@3.3.11(typescript@5.4.5):
dependencies:
'@definitelytyped/header-parser': 0.2.16
'@definitelytyped/header-parser': 0.2.19
command-exists: 1.2.9
rimraf: 3.0.2
semver: 6.3.1
@@ -22227,8 +22233,8 @@ snapshots:
dtslint@4.2.1(typescript@5.4.5):
dependencies:
'@definitelytyped/header-parser': 0.2.16
'@definitelytyped/typescript-versions': 0.1.6
'@definitelytyped/header-parser': 0.2.19
'@definitelytyped/typescript-versions': 0.1.8
'@definitelytyped/utils': 0.1.8
dts-critic: 3.3.11(typescript@5.4.5)
fs-extra: 6.0.1
@@ -26612,10 +26618,6 @@ snapshots:
dependencies:
brace-expansion: 2.0.1
minimatch@9.0.4:
dependencies:
brace-expansion: 2.0.1
minimatch@9.0.5:
dependencies:
brace-expansion: 2.0.1
@@ -29785,6 +29787,8 @@ snapshots:
undici@6.21.1: {}
undici@6.21.3: {}
unicode-canonical-property-names-ecmascript@2.0.0: {}
unicode-match-property-ecmascript@2.0.0:
@@ -30778,7 +30782,7 @@ snapshots:
optionalDependencies:
commander: 9.5.0
zlib-sync@0.1.9:
zlib-sync@0.1.10:
dependencies:
nan: 2.18.0