Skip to content

Commit

Permalink
feat: support node 19
Browse files Browse the repository at this point in the history
  • Loading branch information
iCrawl committed Oct 20, 2022
1 parent 478484d commit 814e500
Show file tree
Hide file tree
Showing 8 changed files with 6,442 additions and 865 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"extends": "aqua/prettier/node"
"extends": ["neon/common", "neon/node", "neon/prettier"]
}
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
fail-fast: false
matrix:
os: [macos-10.15, macos-11, macos-12, ubuntu-20.04, ubuntu-22.04, windows-2019]
node: [18]
node: [18, 19]
steps:
- name: Checkout repository
uses: actions/checkout@v3
Expand All @@ -63,7 +63,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node: [12, 13, 14, 15, 16, 17, 18]
node: [12, 13, 14, 15, 16, 17, 18, 19]
steps:
- name: Setup env with Node v${{ matrix.node }}
run: |
Expand Down Expand Up @@ -111,7 +111,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-20.04, ubuntu-22.04]
node: [18]
node: [18, 19]
steps:
- name: Checkout repository
uses: actions/checkout@v3
Expand All @@ -137,7 +137,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node: [12, 13, 14, 15, 16, 17, 18]
node: [12, 13, 14, 15, 16, 17, 18, 19]
steps:
- name: Setup env with Node v${{ matrix.node }}
run: |
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
fail-fast: false
matrix:
os: [macos-10.15, macos-11, macos-12, ubuntu-20.04, ubuntu-22.04, windows-2019]
node: [18]
node: [18, 19]
steps:
- name: Checkout repository
uses: actions/checkout@v3
Expand Down Expand Up @@ -71,7 +71,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node: [12, 13, 14, 15, 16, 17, 18]
node: [12, 13, 14, 15, 16, 17, 18, 19]
steps:
- name: Setup env with Node v${{ matrix.node }}
run: |
Expand Down Expand Up @@ -133,7 +133,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-20.04, ubuntu-22.04]
node: [18]
node: [18, 19]
steps:
- name: Checkout repository
uses: actions/checkout@v3
Expand Down Expand Up @@ -166,7 +166,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node: [12, 13, 14, 15, 16, 17, 18]
node: [12, 13, 14, 15, 16, 17, 18, 19]
steps:
- name: Setup env with Node v${{ matrix.node }}
run: |
Expand Down
5 changes: 5 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Autogenerated
build/
build-tmp-napi-v3/
deps/
prebuild/
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# @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)

> Native bindings to libopus v1.3
## Usage
Expand All @@ -16,6 +17,7 @@ const decoded = encoder.decode(encoded);
```

## Platform support

⚠ Node.js 12.0.0 or newer is required.

- Linux x64 & ia32
Expand Down
3 changes: 2 additions & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const { resolve } = require('node:path');
const { find } = require('@discordjs/node-pre-gyp');
const { resolve } = require('path');

// eslint-disable-next-line import/no-dynamic-require
module.exports = require(find(resolve(__dirname, '..', 'package.json')));
Loading

0 comments on commit 814e500

Please sign in to comment.