chore: bump Node.js to 16.9.0 (#7035)

This commit is contained in:
Antonio Román
2022-01-07 21:03:00 +01:00
committed by GitHub
parent c8bfb24589
commit 4293b74253
14 changed files with 14 additions and 15 deletions

View File

@@ -61,7 +61,7 @@ body:
description: |
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.
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:
required: true
- type: input

View File

@@ -24,7 +24,7 @@ discord.js is a powerful [Node.js](https://nodejs.org) module that allows you to
## Installation
**Node.js 16.6.0 or newer is required.**
**Node.js 16.9.0 or newer is required.**
```sh-session
npm install discord.js

View File

@@ -49,7 +49,7 @@
"turbo": "^1.0.24-canary.2"
},
"engines": {
"node": ">=16.6.0"
"node": ">=16.9.0"
},
"workspaces": [
"packages/*"

View File

@@ -15,7 +15,7 @@
## Installation
**Node.js 16.6.0 or newer is required.**
**Node.js 16.9.0 or newer is required.**
```sh-session
npm install @discordjs/builders

View File

@@ -80,7 +80,7 @@
"typescript": "^4.5.4"
},
"engines": {
"node": ">=16.0.0"
"node": ">=16.9.0"
},
"publishConfig": {
"access": "public"

View File

@@ -18,7 +18,7 @@
## Installation
**Node.js 16.0.0 or newer is required.**
**Node.js 16.9.0 or newer is required.**
```sh-session
npm install @discordjs/collection

View File

@@ -67,7 +67,7 @@
"typescript": "^4.5.4"
},
"engines": {
"node": ">=16.0.0"
"node": ">=16.9.0"
},
"publishConfig": {
"access": "public"

View File

@@ -24,7 +24,7 @@ discord.js is a powerful [Node.js](https://nodejs.org) module that allows you to
## Installation
**Node.js 16.6.0 or newer is required.**
**Node.js 16.9.0 or newer is required.**
```sh-session
npm install discord.js

View File

@@ -77,6 +77,6 @@
"typescript": "^4.5.4"
},
"engines": {
"node": ">=16.6.0"
"node": ">=16.9.0"
}
}

View File

@@ -7,7 +7,6 @@ const fetch = require('node-fetch');
const { Colors, Endpoints } = require('./Constants');
const Options = require('./Options');
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;
let deprecationEmittedForRemoveMentions = false;
@@ -335,7 +334,7 @@ class Util extends null {
static mergeDefault(def, given) {
if (!given) return 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];
} else if (given[key] === Object(given[key])) {
given[key] = Util.mergeDefault(def[key], given[key]);

View File

@@ -79,7 +79,7 @@
"typescript": "^4.5.4"
},
"engines": {
"node": ">=16.0.0"
"node": ">=16.9.0"
},
"publishConfig": {
"access": "public"

View File

@@ -29,7 +29,7 @@ An implementation of the Discord Voice API for Node.js, written in TypeScript.
## Installation
**Node.js 16.0.0 or newer is required.**
**Node.js 16.9.0 or newer is required.**
```sh-session
npm install @discordjs/voice

View File

@@ -80,7 +80,7 @@
"typescript": "^4.4.4"
},
"engines": {
"node": ">=16.0.0"
"node": ">=16.9.0"
},
"publishConfig": {
"access": "public"

View File

@@ -37,7 +37,7 @@
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"lib": ["ESNext"],
"target": "ES2020",
"target": "ES2021",
"useDefineForClassFields": true,
// Completeness