chore(release): 0.15.0 🎉 (#112)

* chore(release): 0.15.0 🎉

* fix(Scripts): `await` in `versions` script, log any errors from deno one

* chore(Changelog): update changelog
This commit is contained in:
Vlad Frangu
2021-04-11 23:29:03 +03:00
committed by GitHub
parent 9420c3e0af
commit 75f902b0f5
5 changed files with 30 additions and 7 deletions

View File

@@ -1,3 +1,14 @@
# [0.15.0](https://github.com/discordjs/discord-api-types/compare/0.14.0...0.15.0) (2021-04-11)
### Bug Fixes
- **APIApplicationCommand:** default_permission ([#111](https://github.com/discordjs/discord-api-types/issues/111)) ([9420c3e](https://github.com/discordjs/discord-api-types/commit/9420c3e0af7b2486f0e49bb680ed98e0d9f5c625))
- **Scripts:** `await` in `versions` script, log any errors from deno one ([9113eb1](https://github.com/discordjs/discord-api-types/commit/9113eb133c4627445e2bcd4583c243dde74a20ee))
### BREAKING CHANGES
- **APIApplicationCommand:** This renames the `default_permissions` property to `default_permission`, the correct spelling.
# [0.14.0](https://github.com/discordjs/discord-api-types/compare/0.13.3...0.14.0) (2021-04-11)
### Bug Fixes

4
package-lock.json generated
View File

@@ -1,11 +1,11 @@
{
"name": "discord-api-types",
"version": "0.14.0",
"version": "0.15.0",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"version": "0.14.0",
"version": "0.15.0",
"license": "MIT",
"devDependencies": {
"@commitlint/cli": "^12.1.1",

View File

@@ -1,6 +1,6 @@
{
"name": "discord-api-types",
"version": "0.14.0",
"version": "0.15.0",
"description": "Discord API typings that are kept up to date for use in bot library creation.",
"main": "./shortcuts/v8.js",
"module": "./shortcuts/v8.mjs",

View File

@@ -69,7 +69,7 @@ async function adaptFolderToDeno(folderName, node = baseDirectory, deno = denoPa
}
}
await Promise.all(
const folderResults = await Promise.allSettled(
[
'gateway/', //
'payloads/',
@@ -81,6 +81,18 @@ await Promise.all(
].map((item) => adaptFolderToDeno(item)),
);
await Promise.all(
['LICENSE', 'README.md', 'globals.ts'].map((item) => copyFile(new URL(item, baseDirectory), new URL(item, denoPath))),
for (const result of folderResults) {
if (result.status === 'rejected') console.error(result.reason);
}
const copyResults = await Promise.allSettled(
[
'LICENSE', //
'README.md',
'globals.ts',
].map((item) => copyFile(new URL(item, baseDirectory), new URL(item, denoPath))),
);
for (const result of copyResults) {
if (result.status === 'rejected') console.error(result.reason);
}

View File

@@ -6,7 +6,7 @@ const execAsync = promisify(exec);
const fileToESMWrapperCall = (path, version) =>
execAsync(`npx gen-esm-wrapper ./${path}/${version}.js ./${path}/${version}.mjs`);
Promise.allSettled(
await Promise.allSettled(
[
'v6', //
'v8',