node-web-audio-api 1.0.0-beta.0 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## v1.0.0 (11/01/2024)
4
+
5
+ - Align version with upsteam crate
6
+ - Refactor CI
7
+
3
8
  ## v0.21.5 (23/12/2024)
4
9
 
5
10
  - Fix: Use module import for `AudioWorklet#addModule`
@@ -85,7 +85,7 @@ const resolveModule = async (moduleUrl) => {
85
85
  try {
86
86
  // try resolve according to process.cwd()
87
87
  absPathname = require.resolve(moduleUrl, { paths: [process.cwd()] });
88
- } catch (err) {
88
+ } catch {
89
89
  throw new DOMException(`Failed to execute 'addModule' on 'AudioWorklet': Cannot resolve module ${moduleUrl}`, 'AbortError');
90
90
  }
91
91
  }
@@ -101,7 +101,7 @@ function isIterable(obj) {
101
101
  function isConstructor(f) {
102
102
  try {
103
103
  Reflect.construct(String, [], f);
104
- } catch (e) {
104
+ } catch {
105
105
  return false;
106
106
  }
107
107
  return true;
@@ -1,4 +1,3 @@
1
- /* eslint-disable no-unused-vars */
2
1
  const conversions = require('webidl-conversions');
3
2
  const {
4
3
  toSanitizedSequence,
@@ -23,8 +22,6 @@ const {
23
22
  ErrorEvent,
24
23
  } = require('./Events.js');
25
24
 
26
- /* eslint-enable no-unused-vars */
27
-
28
25
  const AudioNode = require('./AudioNode.js');
29
26
  const AudioParamMap = require('./AudioParamMap.js');
30
27
  const IMPLEMENTATION_MAX_NUMBER_OF_CHANNELS = 32;
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-web-audio-api",
3
- "version": "1.0.0-beta.0",
3
+ "version": "1.0.0",
4
4
  "author": "Benjamin Matuszewski",
5
5
  "description": "Web Audio API implementation for Node.js",
6
6
  "exports": {
@@ -41,7 +41,7 @@
41
41
  "build:only": "cargo build --release && node ./.scripts/move-artifact.mjs --release",
42
42
  "check": "cargo fmt && cargo clippy",
43
43
  "generate": "node generator/index.mjs && cargo fmt",
44
- "lint": "npx eslint index.cjs index.mjs && npx eslint js/*.js && npx eslint examples/*.mjs",
44
+ "lint": "npx eslint index.cjs index.mjs && npx eslint js/*.js && npx eslint examples/*.js",
45
45
  "preversion": "npm install && npm run generate",
46
46
  "postversion": "cargo bump $npm_package_version && git commit -am \"v$npm_package_version\" && node .scripts/check-changelog.mjs",
47
47
  "test": "mocha tests/*.spec.mjs",
@@ -51,23 +51,20 @@
51
51
  "wpt:only": "node ./.scripts/wpt-harness.mjs"
52
52
  },
53
53
  "devDependencies": {
54
- "@ircam/eslint-config": "^1.3.0",
55
- "@ircam/sc-gettime": "^1.0.0",
56
- "@ircam/sc-scheduling": "^0.1.7",
57
- "@ircam/sc-utils": "^1.3.3",
54
+ "@ircam/eslint-config": "^2.0.0",
55
+ "@ircam/sc-scheduling": "^1.0.0",
56
+ "@ircam/sc-utils": "^1.9.0",
58
57
  "@sindresorhus/slugify": "^2.1.1",
59
- "camelcase": "^7.0.1",
60
- "chai": "^4.3.7",
58
+ "camelcase": "^8.0.0",
59
+ "chai": "^5.1.2",
61
60
  "chalk": "^5.3.0",
62
61
  "cli-table": "^0.3.11",
63
- "commander": "^11.1.0",
62
+ "commander": "^13.0.0",
64
63
  "dotenv": "^16.0.3",
65
- "eslint": "^8.57.0",
64
+ "eslint": "^9.18.0",
66
65
  "js-beautify": "^1.15.1",
67
- "mocha": "^10.2.0",
68
- "node-ssh": "^13.0.0",
69
- "octokit": "^2.0.11",
70
- "ping": "^0.4.2",
66
+ "mocha": "^11.0.1",
67
+ "octokit": "^4.1.0",
71
68
  "template-literal": "^1.0.4",
72
69
  "webidl2": "^24.2.0",
73
70
  "wpt-runner": "^5.0.0"
package/.eslintrc DELETED
@@ -1,3 +0,0 @@
1
- {
2
- "extends": "@ircam"
3
- }
package/Cross.toml DELETED
@@ -1,17 +0,0 @@
1
- [target.aarch64-unknown-linux-gnu]
2
- pre-build = [
3
- "dpkg --add-architecture $CROSS_DEB_ARCH",
4
- "apt-get update && apt-get --assume-yes install libasound2-dev:$CROSS_DEB_ARCH libjack-jackd2-dev:$CROSS_DEB_ARCH"
5
- ]
6
-
7
- [target.armv7-unknown-linux-gnueabihf]
8
- pre-build = [
9
- "dpkg --add-architecture $CROSS_DEB_ARCH",
10
- "apt-get update && apt-get --assume-yes install libasound2-dev:$CROSS_DEB_ARCH libjack-jackd2-dev:$CROSS_DEB_ARCH"
11
- ]
12
-
13
- [target.x86_64-unknown-linux-gnu]
14
- pre-build = [
15
- "dpkg --add-architecture $CROSS_DEB_ARCH",
16
- "apt-get update && apt-get --assume-yes install libasound2-dev:$CROSS_DEB_ARCH libjack-jackd2-dev:$CROSS_DEB_ARCH"
17
- ]
package/all-checks.sh DELETED
@@ -1,18 +0,0 @@
1
- #!/bin/bash
2
-
3
-
4
- echo "-----------------------------------------------"
5
- echo "> cargo fmt -- --check --color always"
6
- echo "-----------------------------------------------"
7
- cargo fmt -- --check --color always
8
-
9
- echo "-----------------------------------------------"
10
- echo "> cargo clippy --all-targets -- -D warnings"
11
- echo "-----------------------------------------------"
12
- cargo clippy --all-targets -- -D warnings
13
-
14
- echo "-----------------------------------------------"
15
- echo "> Run js tests"
16
- echo "-----------------------------------------------"
17
- npm run test
18
-
package/run-wpt.sh DELETED
@@ -1,5 +0,0 @@
1
- #!/bin/bash
2
- echo $1
3
- echo ~~~~~~~~~~~~~~~~~
4
- node ./.scripts/wpt-harness.mjs --filter "$1" 2>&1 | grep -A 3 RESULTS
5
- echo