Skip to content

Commit 3f4a3d4

Browse files
authored
refactor!: bump minimum node version to v20 (#192)
BREAKING CHANGE: The minimum supported Node.js version is now v20.
1 parent 88b802f commit 3f4a3d4

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
# @discordjs/opus [![Build](https://github.com/discordjs/opus/workflows/Build/badge.svg)](https://github.com/discordjs/opus/actions?query=workflow%3ABuild) [![Prebuild](https://github.com/discordjs/opus/workflows/Prebuild/badge.svg)](https://github.com/discordjs/opus/actions?query=workflow%3APrebuild)
22

3-
> Native bindings to libopus v1.3
3+
> Native bindings to libopus v1.5
44
55
## Usage
66

77
```js
8-
const { OpusEncoder } = require('@discordjs/opus');
8+
import { OpusEncoder } from '@discordjs/opus';
99

1010
// Create the encoder.
1111
// Specify 48kHz sampling rate and 2 channel size.
12-
const encoder = new OpusEncoder(48000, 2);
12+
const encoder = new OpusEncoder(48_000, 2);
1313

1414
// Encode and decode.
1515
const encoded = encoder.encode(buffer);
@@ -18,7 +18,7 @@ const decoded = encoder.decode(encoded);
1818

1919
## Platform support
2020

21-
⚠ Node.js 18.0.0 or newer is required.
21+
⚠ Node.js v20 or newer is required.
2222

2323
- Linux x64 & ia32
2424
- Linux arm (RPi 1 & 2)

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"eslint-plugin-vue": "npm:@favware/skip-dependency@latest"
4848
},
4949
"engines": {
50-
"node": ">=18.0.0"
50+
"node": ">=20"
5151
},
5252
"binary": {
5353
"module_name": "opus",

0 commit comments

Comments
 (0)