Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Enhance /rest README #7757

Merged
merged 6 commits into from
Apr 12, 2022
Merged

docs: Enhance /rest README #7757

merged 6 commits into from
Apr 12, 2022

Conversation

Jiralite
Copy link
Member

@Jiralite Jiralite commented Apr 7, 2022

Please describe the changes this PR makes and why it should be merged:
Enhances rest's README akin to the other packages. As a note, the main documentation has been linked instead of stable as it is not yet released.

Status and versioning classification:

  • This PR only includes non-code changes, like changes to documentation, README, etc.

packages/rest/README.md Outdated Show resolved Hide resolved
Co-authored-by: Almeida <almeidx@pm.me>
@Syjalo
Copy link
Contributor

Syjalo commented Apr 7, 2022

Isn't it better to use CommonJS?

@kyranet
Copy link
Member

kyranet commented Apr 7, 2022

No, it's not. We simply support CommonJS because it's legacy, and both CJS and ESM can load it, while only ESM can (conveniently) load ESM.

ESM is superior in many ways, and personally, if you can use it, you should use it.

@almeidx
Copy link
Member

almeidx commented Apr 7, 2022

If this is going with ESM syntax why not make use of top-level await

@iCrawl iCrawl added this to the rest v1 milestone Apr 12, 2022
@iCrawl iCrawl merged commit a1329bd into discordjs:main Apr 12, 2022
@Jiralite Jiralite deleted the docs/rest-intro branch April 12, 2022 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

9 participants