mirror of
https://github.com/stoatchat/javascript-client-sdk.git
synced 2026-07-20 01:23:33 -04:00
[PR #112] [MERGED] BREAKING: remove polyfilles, CJS build, and update dev dependencies #114
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/stoatchat/javascript-client-sdk/pull/112
Author: @williamhorning
Created: 3/14/2025
Status: ✅ Merged
Merged: 3/23/2025
Merged by: @insertish
Base:
main← Head:break-node-prior-to-22📝 Commits (6)
5397269BREAKING CHANGE: remove isomorphic-ws, long, eventemitter300dff72BREAKING CHANGE: remove CJS build623f9c1chore: update prettier and eslint6e8330fchore: fix lint and formatting errorsfed74bcchore: update solid primatives897df03fix: this logic was wrong, match original pr📊 Changes
39 files changed (+1482 additions, -2346 deletions)
View changed files
➖
.eslintrc.json(+0 -49)➕
eslint.config.js(+23 -0)➖
package-esm.json(+0 -3)📝
package.json(+19 -30)📝
pnpm-lock.yaml(+1165 -1960)📝
src/Client.ts(+54 -57)📝
src/classes/Channel.ts(+47 -44)📝
src/classes/ChannelWebhook.ts(+5 -4)📝
src/classes/Emoji.ts(+1 -1)📝
src/classes/File.ts(+1 -1)📝
src/classes/MFA.ts(+2 -2)📝
src/classes/Message.ts(+14 -12)📝
src/classes/MessageEmbed.ts(+5 -5)📝
src/classes/PublicInvite.ts(+1 -1)📝
src/classes/Server.ts(+44 -44)📝
src/classes/ServerBan.ts(+1 -1)📝
src/classes/ServerMember.ts(+2 -2)📝
src/classes/SystemMessage.ts(+6 -6)📝
src/classes/User.ts(+11 -11)📝
src/collections/AccountCollection.ts(+1 -1)...and 19 more files
📄 Description
isomorphic-wsandws. node 22+ (current LTS) support WebSocket out of the box so there's no need to keep shipping these polyfillsprettierandeslintto their latest versionsthis, along with https://github.com/insertish/oapi/pull/3/ should reduce what revolt.js depends on without breaking any usecases
this does break support for node <22, but we shouldn't support anything less than the latest LTS
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.