mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
chore: bump Node.js to 16.9.0 (#7035)
This commit is contained in:
2
.github/ISSUE_TEMPLATE/bug_report.yml
vendored
2
.github/ISSUE_TEMPLATE/bug_report.yml
vendored
@@ -61,7 +61,7 @@ body:
|
|||||||
description: |
|
description: |
|
||||||
Which version of Node.js are you using? Run `node --version` in your project directory and paste the output.
|
Which version of Node.js are you using? Run `node --version` in your project directory and paste the output.
|
||||||
If you are using TypeScript, please include its version (`npm list typescript`) as well.
|
If you are using TypeScript, please include its version (`npm list typescript`) as well.
|
||||||
placeholder: Node.js version 16.6+ is required for version 13.0.0+
|
placeholder: Node.js version 16.9+ is required for version 14.0.0+
|
||||||
validations:
|
validations:
|
||||||
required: true
|
required: true
|
||||||
- type: input
|
- type: input
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ discord.js is a powerful [Node.js](https://nodejs.org) module that allows you to
|
|||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
**Node.js 16.6.0 or newer is required.**
|
**Node.js 16.9.0 or newer is required.**
|
||||||
|
|
||||||
```sh-session
|
```sh-session
|
||||||
npm install discord.js
|
npm install discord.js
|
||||||
|
|||||||
@@ -49,7 +49,7 @@
|
|||||||
"turbo": "^1.0.24-canary.2"
|
"turbo": "^1.0.24-canary.2"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=16.6.0"
|
"node": ">=16.9.0"
|
||||||
},
|
},
|
||||||
"workspaces": [
|
"workspaces": [
|
||||||
"packages/*"
|
"packages/*"
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
**Node.js 16.6.0 or newer is required.**
|
**Node.js 16.9.0 or newer is required.**
|
||||||
|
|
||||||
```sh-session
|
```sh-session
|
||||||
npm install @discordjs/builders
|
npm install @discordjs/builders
|
||||||
|
|||||||
@@ -80,7 +80,7 @@
|
|||||||
"typescript": "^4.5.4"
|
"typescript": "^4.5.4"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=16.0.0"
|
"node": ">=16.9.0"
|
||||||
},
|
},
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"access": "public"
|
"access": "public"
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
**Node.js 16.0.0 or newer is required.**
|
**Node.js 16.9.0 or newer is required.**
|
||||||
|
|
||||||
```sh-session
|
```sh-session
|
||||||
npm install @discordjs/collection
|
npm install @discordjs/collection
|
||||||
|
|||||||
@@ -67,7 +67,7 @@
|
|||||||
"typescript": "^4.5.4"
|
"typescript": "^4.5.4"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=16.0.0"
|
"node": ">=16.9.0"
|
||||||
},
|
},
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"access": "public"
|
"access": "public"
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ discord.js is a powerful [Node.js](https://nodejs.org) module that allows you to
|
|||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
**Node.js 16.6.0 or newer is required.**
|
**Node.js 16.9.0 or newer is required.**
|
||||||
|
|
||||||
```sh-session
|
```sh-session
|
||||||
npm install discord.js
|
npm install discord.js
|
||||||
|
|||||||
@@ -77,6 +77,6 @@
|
|||||||
"typescript": "^4.5.4"
|
"typescript": "^4.5.4"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=16.6.0"
|
"node": ">=16.9.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,7 +7,6 @@ const fetch = require('node-fetch');
|
|||||||
const { Colors, Endpoints } = require('./Constants');
|
const { Colors, Endpoints } = require('./Constants');
|
||||||
const Options = require('./Options');
|
const Options = require('./Options');
|
||||||
const { Error: DiscordError, RangeError, TypeError } = require('../errors');
|
const { Error: DiscordError, RangeError, TypeError } = require('../errors');
|
||||||
const has = (o, k) => Object.prototype.hasOwnProperty.call(o, k);
|
|
||||||
const isObject = d => typeof d === 'object' && d !== null;
|
const isObject = d => typeof d === 'object' && d !== null;
|
||||||
|
|
||||||
let deprecationEmittedForRemoveMentions = false;
|
let deprecationEmittedForRemoveMentions = false;
|
||||||
@@ -335,7 +334,7 @@ class Util extends null {
|
|||||||
static mergeDefault(def, given) {
|
static mergeDefault(def, given) {
|
||||||
if (!given) return def;
|
if (!given) return def;
|
||||||
for (const key in def) {
|
for (const key in def) {
|
||||||
if (!has(given, key) || given[key] === undefined) {
|
if (!Object.hasOwn(given, key) || given[key] === undefined) {
|
||||||
given[key] = def[key];
|
given[key] = def[key];
|
||||||
} else if (given[key] === Object(given[key])) {
|
} else if (given[key] === Object(given[key])) {
|
||||||
given[key] = Util.mergeDefault(def[key], given[key]);
|
given[key] = Util.mergeDefault(def[key], given[key]);
|
||||||
|
|||||||
@@ -79,7 +79,7 @@
|
|||||||
"typescript": "^4.5.4"
|
"typescript": "^4.5.4"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=16.0.0"
|
"node": ">=16.9.0"
|
||||||
},
|
},
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"access": "public"
|
"access": "public"
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ An implementation of the Discord Voice API for Node.js, written in TypeScript.
|
|||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
**Node.js 16.0.0 or newer is required.**
|
**Node.js 16.9.0 or newer is required.**
|
||||||
|
|
||||||
```sh-session
|
```sh-session
|
||||||
npm install @discordjs/voice
|
npm install @discordjs/voice
|
||||||
|
|||||||
@@ -80,7 +80,7 @@
|
|||||||
"typescript": "^4.4.4"
|
"typescript": "^4.4.4"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=16.0.0"
|
"node": ">=16.9.0"
|
||||||
},
|
},
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"access": "public"
|
"access": "public"
|
||||||
|
|||||||
@@ -37,7 +37,7 @@
|
|||||||
"emitDecoratorMetadata": true,
|
"emitDecoratorMetadata": true,
|
||||||
"experimentalDecorators": true,
|
"experimentalDecorators": true,
|
||||||
"lib": ["ESNext"],
|
"lib": ["ESNext"],
|
||||||
"target": "ES2020",
|
"target": "ES2021",
|
||||||
"useDefineForClassFields": true,
|
"useDefineForClassFields": true,
|
||||||
|
|
||||||
// Completeness
|
// Completeness
|
||||||
|
|||||||
Reference in New Issue
Block a user