Commit graph

24 commits

Author SHA1 Message Date
Suneet Tipirneni 543d61737e
feat: add support for using keyword on discord.js Client and WebSocketManager (#10063)
* feat: add support for `using` keyword on client

* fix: use async dispose

* feat: add support for web socket manager disposing

* fix: use interface for client

---------

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2024-02-13 17:48:56 +00:00
iCrawl aad82f088b
build: fix the messy dependency graph 2023-11-09 00:13:01 +01:00
iCrawl e72b552ae2
chore: remaining deps and lighthouse removal 2023-11-08 18:20:16 +01:00
Noel e96a8a977f
build: pnpm (#9806) 2023-08-27 20:24:03 +02:00
iCrawl 1e3aed0d97
chore: config overhaul 2023-08-22 01:33:47 +02:00
iCrawl 48cab844d4
build: switch to bundler moduleResolution 2023-05-01 13:14:13 +02:00
iCrawl 852fae557e
chore: deps 2023-03-23 14:28:58 +01:00
Jeroen Claassens 229ad077ff
fix(rest): remove const enums in favour of regular enums (#9243)
* fix(rest): remove `const enum`s in favour of regular enums

The motivation is that `const enum` produces ambient const enums when
compiling which in turn causes issues with TypeScript 5.x when `verbatimModuleSyntax`
is enabled.

Furthermore, the generally accepted best practice is to avoid `const enum`s
when writing libraries. Can back this up with statements from TS maintainers
if needed, I know they made them, I just can't be bothered to find the GitHub
links lmao. @vladfrangu will probably be able to find those links much easier
than me as it was also the motivation to remove `const enum`'s from discord-api-types

* refactor(rest): restore `const enum` for internal enum

---------

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-03-19 14:35:27 +00:00
Jeroen Claassens 2e8e95031c
build: resolve issue with esbuild-plugin-version-injector not working (#9246)
The issue was two-fold.
First of all, tsup starts using swc when `emitDecoratorMetadata` and `@swc/core` is installed.
`@swc/core` is installed transiently, which still causes the problem.
Okay, sure, so we move the `emitDecoratorMetadata` option to just
`packages/builders/tsconfig.json` seeing as the other packages don't use decorators anyway.
But that still leaves solving the issue for builders. @vladfrangu ended
up finding out that there was a bug in how esbuild handles plugins causing
the esbuild-plugin-version-injector plugin to not get loaded. This is solved
in v1.1.0 where the content is also replaced using the `onEnd` hook, if it
wasn't replaced by `onLoad` yet.
2023-03-19 14:28:06 +00:00
Noel 3b0197bd8e
build: refactor build system (#8324) 2022-07-20 16:36:42 +02:00
iCrawl 358c3f4a46
chore: upgrade deps 2022-06-19 13:19:24 +02:00
DD e2f5a4a494
chore: enable noUncheckedIndexAccess (#7931) 2022-05-18 19:56:42 +02:00
Suneet Tipirneni f1d4bd68ec
chore: allow typescript to typecheck .d.ts files (#7222) 2022-01-09 15:14:29 +01:00
Antonio Román 4293b74253
chore: bump Node.js to 16.9.0 (#7035) 2022-01-07 21:03:00 +01:00
Noel 16390efe6e
chore: monorepo setup (#7175) 2022-01-07 17:18:25 +01:00
Indian Ocean Roleplay b6484ac117
ci: validate typings (#6913) 2021-11-01 15:07:27 +01:00
iCrawl aa532946c9
chore: repo cleanup 2021-10-28 02:01:19 +02:00
Amish Shah 63a8df1c1f
chore(Types): include @discordjs/voice typings (#5941)
Co-authored-by: Noel <buechler.noel@outlook.com>
2021-06-29 18:44:45 +01:00
Amish Shah 7b2e12b102
feat(Voice): implement support for @discordjs/voice (#5402) 2021-06-09 14:21:19 +01:00
SpaceEEC 828640ca26
ci(Testing): add TypeScript test job (#4002)
* ci(Testing): add TypeScript job

* chore: add eol before eof
2020-04-04 14:11:59 +02:00
Crawl c065156a88
chore: consistency/prettier (#3852)
* chore: consistency/prettier

* chore: rebase

* chore: rebase

* chore: include typings

* fix: include typings file in prettier lint-staged
2020-02-29 14:35:57 +01:00
Crawl 98a552107e
tooling(typings): new linter for typings (#3827) 2020-02-24 17:56:44 +01:00
zajrik 7864653df7 Add missing EOF newlines 2018-08-13 20:54:36 -05:00
zajrik 1ff56eb09d Merge typings into master 2018-08-13 20:51:41 -05:00