Commit Graph

5398 Commits

Author SHA1 Message Date
dependabot[bot]
68c8ab76c9 build(deps-dev): bump turbo from 2.0.9 to 2.0.12 (#3833)
Bumps [turbo](https://github.com/vercel/turbo) from 2.0.9 to 2.0.12.
- [Release notes](https://github.com/vercel/turbo/releases)
- [Changelog](https://github.com/vercel/turbo/blob/main/release.md)
- [Commits](https://github.com/vercel/turbo/compare/v2.0.9...v2.0.12)

---
updated-dependencies:
- dependency-name: turbo
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-07 01:22:05 -05:00
Fleny
ab2930ce34 Add attachments to CreateMessageOptions (#3830) 2024-08-07 01:21:49 -05:00
dependabot[bot]
469d3d27cf build(deps-dev): bump @swc/core in /docker-apps/rest-passthrough (#3829)
Bumps [@swc/core](https://github.com/swc-project/swc) from 1.7.3 to 1.7.6.
- [Release notes](https://github.com/swc-project/swc/releases)
- [Changelog](https://github.com/swc-project/swc/blob/main/CHANGELOG.md)
- [Commits](https://github.com/swc-project/swc/compare/v1.7.3...v1.7.6)

---
updated-dependencies:
- dependency-name: "@swc/core"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-07 01:21:01 -05:00
Fleny
304a61c786 Add the propriety if it has _ to the object (#3828) 2024-08-07 01:20:50 -05:00
dependabot[bot]
14b015870d build(deps-dev): bump @types/ws from 8.5.11 to 8.5.12 (#3818)
Bumps [@types/ws](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/ws) from 8.5.11 to 8.5.12.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/ws)

---
updated-dependencies:
- dependency-name: "@types/ws"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-07 01:17:10 -05:00
Fleny
d6898f2b7b feat(gateway): Use the native WebSocket implementation when available (#3808)
* Use the native WebSocket implementation when available

* merge types.js import in shard

* Apply suggestions from code review

Co-authored-by: Awesome Stickz <awesome@stickz.dev>

* Do not use the WebSocket global on Node

---------

Co-authored-by: Awesome Stickz <awesome@stickz.dev>
2024-08-07 01:16:55 -05:00
dependabot[bot]
8dc6c3f650 build(deps): bump typescript from 5.5.3 to 5.5.4 (#3797)
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 5.5.3 to 5.5.4.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Changelog](https://github.com/microsoft/TypeScript/blob/main/azure-pipelines.release.yml)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v5.5.3...v5.5.4)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-07 01:12:06 -05:00
dependabot[bot]
ce4eb2c28c build(deps-dev): bump c8 from 9.1.0 to 10.1.2 (#3783)
Bumps [c8](https://github.com/bcoe/c8) from 9.1.0 to 10.1.2.
- [Release notes](https://github.com/bcoe/c8/releases)
- [Changelog](https://github.com/bcoe/c8/blob/main/CHANGELOG.md)
- [Commits](https://github.com/bcoe/c8/compare/v9.1.0...v10.1.2)

---
updated-dependencies:
- dependency-name: c8
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-07 01:11:50 -05:00
dependabot[bot]
759b41a59d build(deps-dev): bump typedoc from 0.26.4 to 0.26.5 (#3782)
Bumps [typedoc](https://github.com/TypeStrong/TypeDoc) from 0.26.4 to 0.26.5.
- [Release notes](https://github.com/TypeStrong/TypeDoc/releases)
- [Changelog](https://github.com/TypeStrong/typedoc/blob/master/CHANGELOG.md)
- [Commits](https://github.com/TypeStrong/TypeDoc/compare/v0.26.4...v0.26.5)

---
updated-dependencies:
- dependency-name: typedoc
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Fleny <Fleny113@outlook.com>
2024-08-07 01:11:39 -05:00
Fleny
746f0a99ac fix(discordeno)!: Fix some errors in DiscordenoConfig (#3824)
* Fix typo, remove RecursivePartial from DiscordenoConfig.desiredProperties.properties

* Fix properties typo

---------

Co-authored-by: Awesome Stickz <awesome@stickz.dev>
2024-08-03 10:26:21 +05:30
Fleny
9e1ada64b8 fix(rest): Use a _ check instead of the manual one on the switch (#3825)
* Use a _ check instead of the manual one on the switch

* invert the check, as the current one is wrong

* move the check to before indexing the object

---------

Co-authored-by: Awesome Stickz <awesome@stickz.dev>
2024-08-03 10:17:26 +05:30
Fleny
22a611761b Make token in rest and gateway for createBot optional (#3820) 2024-08-03 10:10:09 +05:30
dependabot[bot]
6ec6041657 build(deps-dev): bump typedoc-plugin-markdown from 4.2.1 to 4.2.3 (#3801)
Bumps [typedoc-plugin-markdown](https://github.com/typedoc2md/typedoc-plugin-markdown/tree/HEAD/packages/typedoc-plugin-markdown) from 4.2.1 to 4.2.3.
- [Release notes](https://github.com/typedoc2md/typedoc-plugin-markdown/releases)
- [Changelog](https://github.com/typedoc2md/typedoc-plugin-markdown/blob/main/packages/typedoc-plugin-markdown/CHANGELOG.md)
- [Commits](https://github.com/typedoc2md/typedoc-plugin-markdown/commits/typedoc-plugin-markdown@4.2.3/packages/typedoc-plugin-markdown)

---
updated-dependencies:
- dependency-name: typedoc-plugin-markdown
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-30 23:40:31 -05:00
dependabot[bot]
01437ebb50 build(deps-dev): bump @swc/core from 1.4.2 to 1.7.3 (#3811)
Bumps [@swc/core](https://github.com/swc-project/swc) from 1.4.2 to 1.7.3.
- [Release notes](https://github.com/swc-project/swc/releases)
- [Changelog](https://github.com/swc-project/swc/blob/main/CHANGELOG.md)
- [Commits](https://github.com/swc-project/swc/compare/v1.4.2...v1.7.3)

---
updated-dependencies:
- dependency-name: "@swc/core"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-30 23:40:19 -05:00
Awesome Stickz
cfafc16e92 docs: remove tutorial section (#3817)
* docs: remove tutorial section

* fix: docusaurus broken links
2024-07-30 23:40:08 -05:00
Fleny
791943a652 fix(rest): ignore snakelized properties in changeToDiscordFormat (#3795)
* fixes #3666

* Update packages/rest/src/manager.ts

Co-authored-by: Awesome Stickz <awesome@stickz.dev>

---------

Co-authored-by: Awesome Stickz <awesome@stickz.dev>
2024-07-30 23:38:15 -05:00
Fleny
e315ee6d95 fix(bot)!: Remove old unprovided params from event params (#3794)
* Remove oldMessage from messageUpdate params

* Remove oldPresence from presenceUpdate as well
2024-07-30 23:36:26 -05:00
Fleny
658acfb906 fix(gateway): Make heartbeat logging clearer (#3793)
* Make heartbeat logging clearer

* Update packages/gateway/src/Shard.ts

Co-authored-by: LTS20050703 <lts20050703@gmail.com>

---------

Co-authored-by: LTS20050703 <lts20050703@gmail.com>
Co-authored-by: Awesome Stickz <awesome@stickz.dev>
2024-07-30 23:36:03 -05:00
Fleny
e32c670ab1 fix(ci): Add env to test:e2e turbo task (#3809)
* Add env to test:e2e turbo task

Turbo in v2 does not pass down the environment variables unless manually specified (by default)

* use the correct env name for the test guild
2024-07-30 21:18:07 +02:00
Fleny
ef4cc80c63 fix(bot,gateway): Fix (some) resharding bugs (#3792)
* Improve logging, keep shard collections separated

* revert to erroring in getSessionInfo. Fill the value in createBot

* removed useless if

* remove same number of shards check

Co-authored-by: Awesome Stickz <awesome@stickz.dev>

* Update manager.ts

* revert shard.events.message assignment for the spread

* use new Collection instead of .clear() + for-of

* Use fixed formula and note in the comment the inaccuracy

* Apply suggestions from code review

Co-authored-by: Awesome Stickz <awesome@stickz.dev>

* Add a remark to shardsFullPercentage to let the user know of the inaccuracy

* Update comment and add a clearInterval

The clearInterval is not strictly needed, however it is better to ensure there is always one and only one internal running at a given point

* revert check for all shards online
It was bugged as gateway.resharding.shards gets populated overtime and not instantly

---------

Co-authored-by: Awesome Stickz <awesome@stickz.dev>
2024-07-30 23:34:32 +05:30
Fleny
e0209cf7f5 Rename game activity type to playing (#3807) 2024-07-30 04:25:53 +05:30
Fleny
faaa8af48a clear offlineSendQueue after resolving all the promises (#3806)
Co-authored-by: Awesome Stickz <awesome@stickz.dev>
2024-07-30 04:15:21 +05:30
dependabot[bot]
b6333207c8 build(deps-dev): bump @swc/core in /docker-apps/rest-passthrough (#3810)
Bumps [@swc/core](https://github.com/swc-project/swc) from 1.7.2 to 1.7.3.
- [Release notes](https://github.com/swc-project/swc/releases)
- [Changelog](https://github.com/swc-project/swc/blob/main/CHANGELOG.md)
- [Commits](https://github.com/swc-project/swc/compare/v1.7.2...v1.7.3)

---
updated-dependencies:
- dependency-name: "@swc/core"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-29 15:01:18 +02:00
dependabot[bot]
a63dfb0b57 build(deps-dev): bump @swc/core in /docker-apps/rest-passthrough (#3802)
Bumps [@swc/core](https://github.com/swc-project/swc) from 1.7.0 to 1.7.2.
- [Release notes](https://github.com/swc-project/swc/releases)
- [Changelog](https://github.com/swc-project/swc/blob/main/CHANGELOG.md)
- [Commits](https://github.com/swc-project/swc/compare/v1.7.0...v1.7.2)

---
updated-dependencies:
- dependency-name: "@swc/core"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Fleny <Fleny113@outlook.com>
2024-07-29 09:27:54 +02:00
dependabot[bot]
a4cc738264 build(deps-dev): bump @favware/cliff-jumper (#3798)
Bumps [@favware/cliff-jumper](https://github.com/favware/cliff-jumper) from 4.0.2 to 4.0.3.
- [Release notes](https://github.com/favware/cliff-jumper/releases)
- [Changelog](https://github.com/favware/cliff-jumper/blob/main/CHANGELOG.md)
- [Commits](https://github.com/favware/cliff-jumper/compare/@favware/cliff-jumper@4.0.2...@favware/cliff-jumper@4.0.3)

---
updated-dependencies:
- dependency-name: "@favware/cliff-jumper"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-29 08:05:18 +02:00
dependabot[bot]
6ac34863e7 build(deps-dev): bump @types/ws from 8.5.10 to 8.5.11 (#3781)
Bumps [@types/ws](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/ws) from 8.5.10 to 8.5.11.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/ws)

---
updated-dependencies:
- dependency-name: "@types/ws"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-23 00:32:23 -05:00
dependabot[bot]
84e145eb65 build(deps-dev): bump @types/node from 20.14.10 to 20.14.11 (#3780)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 20.14.10 to 20.14.11.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-23 00:30:16 -05:00
dependabot[bot]
5a7f32f6c2 build(deps-dev): bump turbo from 2.0.6 to 2.0.9 (#3779)
Bumps [turbo](https://github.com/vercel/turbo) from 2.0.6 to 2.0.9.
- [Release notes](https://github.com/vercel/turbo/releases)
- [Changelog](https://github.com/vercel/turbo/blob/main/release.md)
- [Commits](https://github.com/vercel/turbo/compare/v2.0.6...v2.0.9)

---
updated-dependencies:
- dependency-name: turbo
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-23 00:30:06 -05:00
Fleny
ee11d39744 Add discordeno to the release workflow (#3790) 2024-07-23 00:29:42 -05:00
Fleny
8ad8b5d6e8 Add shebang (#3789) 2024-07-23 00:29:23 -05:00
Fleny
c7b44e5e30 feat(bot): Add desiredProperties to createBot (#3787)
* Add `desiredProperties` to createBot

* remove not used default
2024-07-23 00:29:11 -05:00
Fleny
0819d2be9b feat(bot,types): Type commandOptionsParser, remove any (#3786)
* Type commandOptionsParser, remove any

* fix ts errors
2024-07-23 00:28:36 -05:00
dependabot[bot]
ba23cbebde build(deps): bump @discordeno/rest in /docker-apps/rest-passthrough (#3785)
Bumps [@discordeno/rest](https://github.com/discordeno/discordeno) from 19.0.0-next.991609d to 19.0.0-next.9194740.
- [Release notes](https://github.com/discordeno/discordeno/releases)
- [Commits](https://github.com/discordeno/discordeno/commits)

---
updated-dependencies:
- dependency-name: "@discordeno/rest"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-22 20:09:10 +02:00
dependabot[bot]
8fa2f3e6ef build(deps-dev): bump husky from 9.0.11 to 9.1.1 (#3775)
* build(deps-dev): bump husky from 9.0.11 to 9.1.1

Bumps [husky](https://github.com/typicode/husky) from 9.0.11 to 9.1.1.
- [Release notes](https://github.com/typicode/husky/releases)
- [Commits](https://github.com/typicode/husky/compare/v9.0.11...v9.1.1)

---
updated-dependencies:
- dependency-name: husky
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Run husky to remove deprecated code

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Fleny <fleny113@outlook.com>
Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com>
2024-07-21 11:49:41 -05:00
Fleny
402f1b3049 Add message forward (#3764) 2024-07-21 11:49:07 -05:00
dependabot[bot]
b61cabed05 build(deps-dev): bump chai-as-promised from 7.1.1 to 8.0.0 (#3762)
Bumps [chai-as-promised](https://github.com/chaijs/chai-as-promised) from 7.1.1 to 8.0.0.
- [Release notes](https://github.com/chaijs/chai-as-promised/releases)
- [Commits](https://github.com/chaijs/chai-as-promised/compare/v7.1.1...v8.0.0)

---
updated-dependencies:
- dependency-name: chai-as-promised
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-20 16:56:33 -05:00
dependabot[bot]
7c404ee420 build(deps-dev): bump mocha from 10.5.1 to 10.7.0 (#3778)
Bumps [mocha](https://github.com/mochajs/mocha) from 10.5.1 to 10.7.0.
- [Release notes](https://github.com/mochajs/mocha/releases)
- [Changelog](https://github.com/mochajs/mocha/blob/main/CHANGELOG.md)
- [Commits](https://github.com/mochajs/mocha/compare/v10.5.1...v10.7.0)

---
updated-dependencies:
- dependency-name: mocha
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-20 16:56:21 -05:00
Fleny
2421ae24cf Add application emoji endpoints (#3774) 2024-07-20 16:56:00 -05:00
Fleny
c1fd19c0ee Remove DiscordPartialGuild, use Partial<DiscordGuild> (#3768) 2024-07-20 16:55:45 -05:00
dependabot[bot]
789ee67507 build(deps-dev): bump @swc/core in /docker-apps/rest-passthrough (#3767)
Bumps [@swc/core](https://github.com/swc-project/swc) from 1.6.13 to 1.7.0.
- [Release notes](https://github.com/swc-project/swc/releases)
- [Changelog](https://github.com/swc-project/swc/blob/main/CHANGELOG.md)
- [Commits](https://github.com/swc-project/swc/compare/v1.6.13...v1.7.0)

---
updated-dependencies:
- dependency-name: "@swc/core"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-20 16:54:52 -05:00
Fleny
fb8af2ba54 Use passed in logger instead of the imported one (#3765) 2024-07-20 16:54:38 -05:00
Fleny
31222855d8 fix(docker): prevent snyk null in severity scores for unassigned CVEs (#3746)
* Fix snyk null in severity scores for unassigned CVEs

* Keep node 18
2024-07-20 16:54:11 -05:00
Fleny
4778968aba Update actions versions (#3760)
Especially actions/cache and the artifacts related ones
2024-07-20 16:54:00 -05:00
Fleny
0a5493196d fix(rest): Fix followups from getting stuck in queue (#3761)
* Fix followups from getting stuck in queue

* remove queueIdentifier as it isn't actually needed

* Revert some changes that aren't needed
2024-07-20 16:53:41 -05:00
Fleny
235334381c Add roblox connection (#3757) 2024-07-20 16:53:20 -05:00
Fleny
495c532d9f ci: Add token parameter to codecov action (#3759)
* Add token parameter to codecov action

* add secrets: inherit
2024-07-20 16:53:08 -05:00
dependabot[bot]
64cd9bde33 build(deps-dev): bump typedoc-plugin-markdown from 4.1.2 to 4.2.1 (#3750)
Bumps [typedoc-plugin-markdown](https://github.com/typedoc2md/typedoc-plugin-markdown/tree/HEAD/packages/typedoc-plugin-markdown) from 4.1.2 to 4.2.1.
- [Release notes](https://github.com/typedoc2md/typedoc-plugin-markdown/releases)
- [Changelog](https://github.com/typedoc2md/typedoc-plugin-markdown/blob/main/packages/typedoc-plugin-markdown/CHANGELOG.md)
- [Commits](https://github.com/typedoc2md/typedoc-plugin-markdown/commits/typedoc-plugin-markdown@4.2.1/packages/typedoc-plugin-markdown)

---
updated-dependencies:
- dependency-name: typedoc-plugin-markdown
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-20 16:52:44 -05:00
dependabot[bot]
4142946071 build(deps-dev): bump @biomejs/biome from 1.8.0 to 1.8.3 (#3748)
Bumps [@biomejs/biome](https://github.com/biomejs/biome/tree/HEAD/packages/@biomejs/biome) from 1.8.0 to 1.8.3.
- [Release notes](https://github.com/biomejs/biome/releases)
- [Changelog](https://github.com/biomejs/biome/blob/main/CHANGELOG.md)
- [Commits](https://github.com/biomejs/biome/commits/cli/v1.8.3/packages/@biomejs/biome)

---
updated-dependencies:
- dependency-name: "@biomejs/biome"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-20 16:52:35 -05:00
Fleny
27fc12ec34 feat(cli)!: CLI generated types (#3453)
* Move transformers types to a single file

* Add script to test TS Compiler api capabilities
Remove nested objects where possible

* Use Partial<Role> and DiscordOverwrite instead of objects in AuditLogChange

* Fix typescript errors

* Remove interfaces.json

It is a generated file from the test script, not something that should be commited

* Start work on the test generation script
The TS version got bumped to 5.5.3

* Fix any type, use node16 module resolution

"node" is a deprecated alias for "node10", node16 is the recommended

Add code to check for type errors when getting the types from the interfaces

Fix errors when TS tries to find the files that the root tsconfig.json handles

* remove some useless compile options in TSApiTest

* Add jsdoc parsing
JSDoc tags with the next right after are not supported

* fix small format issue

* Fix ApplicationCommandPermissions todo

* Fix CI error

* Simplify parseDocumentation

* get type directly from the sourceFile

* remove hasUndefinedUnion as it is no longer used

* fix discordeno bin file name

* Update the yarn lockfile

* Merge scripts into one

* Use `@internal` instead of `@private` + `@deprecated`

* work on .d.ts files

* Process interface members once

* Move emit/preEmit diagnostics to a unit test

they can take quite a while, even 3-4 seconds, so running in the CLI every time does not seem ideal

* test: add build:types to test:unit dependencies

This is a test commit, it will provably get reversed. The scope is to see what CI does with this

* add find-up to deno import map

* add typescript to the deno import map

* Add node:assert to deno import map

* check for this.timeout that exists

deno does not have the timeout

* add build:type to deno-unit

* Temp hack to work-around the script deno tests

* Test with bun running the test as well

* fix turbo deps for unit tests

* remove test scripts

* Update CI to use build:type cache

* Apply code review suggestion

Co-authored-by: LTS20050703 <lts20050703@gmail.com>

* Add code to modify the interface member

* use an actual config

The config source is still a dummy object for now

* Search and use discordeno.config.js file

* provide config from cli options

* Handle props in base objects
The dependencies of an object need to be declared/updated manually, it would be painful to fix this in such a way that would be something that Typescript can give us from the compiler API

* add some tests for desired proprieties

* also check for a .mjs config file

* Add support for .ts config files

We use the typescript compiler to emit an in-memory version of the config file, import it and then remove it. It does not do bundling so if the config imports local files it will not work. Also the file is not type-checked as it would slow down the config loading

* remove compiler host, use callback on program.emit

* fix deno ci error

* add node:fs/promises to deno import map

---------

Co-authored-by: LTS20050703 <lts20050703@gmail.com>
2024-07-20 16:52:21 -05:00
dependabot[bot]
c3a004ee40 build(deps): bump braces from 3.0.2 to 3.0.3 in the npm_and_yarn group (#3747)
Bumps the npm_and_yarn group with 1 update: [braces](https://github.com/micromatch/braces).


Updates `braces` from 3.0.2 to 3.0.3
- [Changelog](https://github.com/micromatch/braces/blob/master/CHANGELOG.md)
- [Commits](https://github.com/micromatch/braces/compare/3.0.2...3.0.3)

---
updated-dependencies:
- dependency-name: braces
  dependency-type: indirect
  dependency-group: npm_and_yarn
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Fleny <Fleny113@outlook.com>
2024-07-15 17:43:01 +02:00