node-web-audio-api 1.0.1 → 1.0.2

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,131 +1,135 @@
1
1
  # CHANGELOG
2
2
 
3
- ## v1.0.1 (17/01/2025)
3
+ ## v1.0.2 - 2025-03-01
4
+
5
+ - Fix error handling when setting buffer in ABSN and Convolver
6
+
7
+ ## v1.0.1 - 2025-01-17
4
8
 
5
9
  - Update upstream crate to [v1.2.0](https://github.com/orottier/web-audio-api-rs/blob/main/CHANGELOG.md#version-120-2025-01-16)
6
10
 
7
- ## v1.0.0 (11/01/2025)
11
+ ## v1.0.0 - 2025-01-11
8
12
 
9
13
  - Align version with upstream crate
10
14
  - Refactor CI
11
15
 
12
- ## v0.21.5 (23/12/2024)
16
+ ## v0.21.5 - 2024-12-23
13
17
 
14
18
  - Fix: Use module import for `AudioWorklet#addModule`
15
19
  - Feat: Resolve `AudioWorkletNode` when installed in `node_modules`
16
20
  - Ensure support of `AudioWorkletNode` that use Web Assembly
17
21
 
18
- ## v0.21.4 (16/12/2024)
22
+ ## v0.21.4 - 2024-12-16
19
23
 
20
24
  - Update upstream crate to [v1.1.0](https://github.com/orottier/web-audio-api-rs/blob/main/CHANGELOG.md#version-110-2024-12-11)
21
25
 
22
- ## v0.21.3 (06/10/2024)
26
+ ## v0.21.3 - 2024-10-06
23
27
 
24
28
  - Fix typescript export
25
29
 
26
- ## v0.21.2 (20/09/2024)
30
+ ## v0.21.2 - 2024-09-20
27
31
 
28
32
  - Update upstream crate to [v1.0.1](https://github.com/orottier/web-audio-api-rs/blob/main/CHANGELOG.md#version-101-2024-09-18)
29
33
  - Fix: Make sure `AudioBuffer` returned by `OfflineContext` is valid
30
34
  - Fix: Allow contexts to be properly garbage collected
31
35
 
32
- ## v0.21.1 (10/06/2024)
36
+ ## v0.21.1 - 2024-06-10
33
37
 
34
38
  - Feat: Buffer pool for AudioWorketProcessor
35
39
  - Fix: Propagate `addModule` errors to main thread
36
40
  - Fix: Memory leak due to `onended` events
37
41
 
38
- ## v0.21.0 (17/05/2024)
42
+ ## v0.21.0 - 2024-05-17
39
43
 
40
44
  - Feat: Implement AudioWorkletNode
41
45
 
42
- ## v0.20.0 (29/04/2024)
46
+ ## v0.20.0 - 2024-04-29
43
47
 
44
48
  - Update upstream crate to [v0.44.0](https://github.com/orottier/web-audio-api-rs/blob/main/CHANGELOG.md#version-0440-2024-04-22)
45
49
  - Implement ScriptProcessorNode
46
50
  - Fix memory leak introduced in v0.19.0
47
51
  - Improve events compliance
48
52
 
49
- ## v0.19.0 (17/04/2024)
53
+ ## v0.19.0 - 2024-04-17
50
54
 
51
55
  - Update upstream crate to [1.0.0-rc.5](https://github.com/orottier/web-audio-api-rs/blob/main/CHANGELOG.md#version-0430--100-rc5-2024-04-15)
52
56
  - Provide JS facades with proper inheritance chain for all exposed interfaces
53
57
  - Implement all AudioNode connect / disconnect alternatives
54
58
  - Improve compliance and error handling
55
59
 
56
- ## v0.18.0 (13/03/2024)
60
+ ## v0.18.0 - 2024-03-13
57
61
 
58
62
  - Fix `MediaStreamAudioSourceNode`
59
63
 
60
- ## v0.17.0 (08/03/2024)
64
+ ## v0.17.0 - 2024-03-08
61
65
 
62
66
  - Update upstream crate to [1.0.0-rc.2](https://github.com/orottier/web-audio-api-rs/blob/main/CHANGELOG.md#version-100-rc2-2024-03-07)
63
67
  - Improve compliance and error handling
64
68
 
65
- ## v0.16.0 (09/02/2024)
69
+ ## v0.16.0 - 2024-02-09
66
70
 
67
71
  - Update upstream create to [v0.42.0](https://github.com/orottier/web-audio-api-rs/blob/main/CHANGELOG.md#version-0420-2024-02-05)
68
72
  - Improve Error handling
69
73
  - Add channelCount to media constraints
70
74
 
71
- ## v0.15.0 (16/01/2024)
75
+ ## v0.15.0 - 2024-01-16
72
76
 
73
77
  - Update upstream create to [v0.41.1](https://github.com/orottier/web-audio-api-rs/blob/main/CHANGELOG.md#version-0411-2024-01-11)
74
78
  - Better error handling
75
79
  - Implement online AudioContext and AudioScheduledSourceNode events
76
80
  - Test against wpt
77
81
 
78
- ## v0.14.0 (06/12/2023)
82
+ ## v0.14.0 - 2023-12-06
79
83
 
80
84
  - Update upstream create to [v0.38.0](https://github.com/orottier/web-audio-api-rs/blob/main/CHANGELOG.md#version-0380-2023-12-03)
81
85
  - Implement AudioListener
82
86
 
83
- ## v0.13.0 (08/11/2023)
87
+ ## v0.13.0 - 2023-11-08
84
88
 
85
89
  - Update upstream crate to [v0.36.1](https://github.com/orottier/web-audio-api-rs/blob/main/CHANGELOG.md#version-0361-2023-11-08)
86
90
  - Ship build for linux arm64
87
91
  - Typescript support
88
92
 
89
- ## v0.12.0 (04/09/2023)
93
+ ## v0.12.0 - 2023-09-04
90
94
 
91
95
  - Update upstream crate to [v0.33](https://github.com/orottier/web-audio-api-rs/blob/main/CHANGELOG.md#version-0330-2023-07-27)
92
96
 
93
- ## v0.11.0 (21/07/2023)
97
+ ## v0.11.0 - 2023-07-21
94
98
 
95
99
  - Update upstream crate to [v0.32](https://github.com/orottier/web-audio-api-rs/blob/main/CHANGELOG.md#version-0320-2023-07-16)
96
100
  - Implement AudioDestination API
97
101
  - Make decodeAudioData(arrayBuffer) API compliant (drop `load` helper)
98
102
 
99
- ## v0.10.0 (26/05/2023)
103
+ ## v0.10.0 - 2023-05-26
100
104
 
101
105
  - Update upstream crate to [v0.31](https://github.com/orottier/web-audio-api-rs/blob/main/CHANGELOG.md#version-0310-2023-06-25)
102
106
 
103
- ## v0.9.0 (08/06/2023)
107
+ ## v0.9.0 - 2023-06-08
104
108
 
105
109
  - Update upstream crate to [v0.30](https://github.com/orottier/web-audio-api-rs/blob/main/CHANGELOG.md#version-0300-2023-06-07)
106
110
 
107
- ## v0.8.0 (19/05/2023)
111
+ ## v0.8.0 - 2023-05-19
108
112
 
109
113
  - Implement MediaDevices enumerateDevices and getUserMedia
110
114
  - Use jack as default output if exists on linux
111
115
 
112
- ## v0.7.0 (23/02/2023)
116
+ ## v0.7.0 - 2023-02-23
113
117
 
114
118
  - Improve readme & doc
115
119
  - Fix AudioParam method names
116
120
 
117
- ## v0.6.0 (01/02/2023)
121
+ ## v0.6.0 - 2023-02-01
118
122
 
119
123
  - Basic support for mediaDevices & MediaStreamAudioSourceNode
120
124
  - Add bindings to ConvolverNode, AnalyserNode & Panner nodes
121
125
  - Update upstream crate to [v0.26](https://github.com/orottier/web-audio-api-rs/blob/main/CHANGELOG.md#version-0250-2022-11-06)
122
126
 
123
- ## v0.5.0 (19/12/2022)
127
+ ## v0.5.0 - 2022-12-19
124
128
 
125
129
  - Implement AudioParam#setValueCurveAtTime
126
130
  - Offline context constructor
127
131
 
128
- ## v0.4.0 (07/11/2022)
132
+ ## v0.4.0 - 2022-11-07
129
133
 
130
134
  - Implement offline audio context
131
135
  - Update upstream crate to [v0.24](https://github.com/orottier/web-audio-api-rs/blob/main/CHANGELOG.md#version-0240-2022-09-10)
@@ -179,7 +179,7 @@ module.exports = (jsExport, nativeBinding) => {
179
179
  if (value === null) {
180
180
  console.warn('Setting the \'buffer\' property on \'AudioBufferSourceNode\' to \'null\' is not supported yet');
181
181
  return;
182
- } else if (!(kNapiObj in value)) {
182
+ } else if (!(value instanceof jsExport.AudioBuffer)) {
183
183
  throw new TypeError('Failed to set the \'buffer\' property on \'AudioBufferSourceNode\': Failed to convert value to \'AudioBuffer\'');
184
184
  }
185
185
 
@@ -141,7 +141,7 @@ module.exports = (jsExport, nativeBinding) => {
141
141
  if (value === null) {
142
142
  console.warn('Setting the \'buffer\' property on \'ConvolverNode\' to \'null\' is not supported yet');
143
143
  return;
144
- } else if (!(kNapiObj in value)) {
144
+ } else if (!(value instanceof jsExport.AudioBuffer)) {
145
145
  throw new TypeError('Failed to set the \'buffer\' property on \'ConvolverNode\': Failed to convert value to \'AudioBuffer\'');
146
146
  }
147
147
 
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-web-audio-api",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "author": "Benjamin Matuszewski",
5
5
  "description": "Web Audio API implementation for Node.js",
6
6
  "exports": {