Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
574 commits
Select commit Hold shift + click to select a range
af85cf9
regions plugin: fix click propagation issue (#1926)
iboshkov Apr 24, 2020
b97afa5
Fixed destroy method of MediaElementWebAudio backend (#1927)
marizuccara May 2, 2020
d8f5c32
regions plugin: fix switch loop region (#1929)
aimkiray May 2, 2020
4203661
Removed private methods of plugins and generalized plugins' access (#…
marizuccara May 4, 2020
100de73
update dev dependencies
thijstriemstra May 6, 2020
f33cfc8
update changelog
thijstriemstra May 6, 2020
5383e42
regions plugin: move classes to separate files (#1934)
marizuccara May 11, 2020
f1a9429
Add Gatsby compatibility (#1938)
NSpehler May 11, 2020
a3712fb
minimap plugin: added ability to use a customized regions plugin (#1943)
marizuccara May 12, 2020
453e7aa
update dependencies
thijstriemstra May 12, 2020
759bc46
Make waveforms exclude x-axis (restore #478) (#1942)
dpwe May 12, 2020
f1c9524
regions plugin: ability to specify time format using timeformatCallba…
jscrusader May 15, 2020
5c6db87
doc: reorganize and update changelog
thijstriemstra May 15, 2020
0c32b72
updated CursorCustomPlugin example (#1951)
marizuccara May 17, 2020
5c2c392
When splitting channels, allow coloring and filtering of channels (#1…
win-chen May 18, 2020
3d75a79
minimap plugin: added check for drawer presence (#1953)
marizuccara May 25, 2020
ec8acc5
spectrogram plugin: perform null check when removing scroll listener …
zhoutwo Jun 7, 2020
77c6cc3
microphone plugin: change LocalMediaStream to MediaStream in docs (#1…
yasserf Jun 8, 2020
13cb121
update dev dependencies
thijstriemstra Jun 8, 2020
ba3f294
ci: use latest node on appveyor (#1961)
thijstriemstra Jun 9, 2020
54b27a5
Add setDisabledEventEmissions to allow disabling event emissions (#1960)
oliverswitzer Jun 10, 2020
9d64ccf
Drawer: removed private methods (#1962)
marizuccara Jun 13, 2020
b7d1a25
eslint: enable indent rule
thijstriemstra Jun 14, 2020
8b52847
Fix muting behavior with the MediaElement backend (#1966)
ClearlyClaire Jun 15, 2020
a5b4884
remove no-eslintrc flag (#1967)
osheroff Jun 15, 2020
52e7ac7
Fix setMute setting (incorrect isMuted) (#1968)
ClearlyClaire Jun 15, 2020
f96f3b3
MediaElement safari fixes (#1964)
osheroff Jun 15, 2020
f8544de
Release 4.0.0 (#1974)
thijstriemstra Jun 21, 2020
4e2375e
guard against null _disabledEventEmissions in Observer#fireEvent (#1970)
osheroff Jun 23, 2020
357112a
update regions plugin example (#1978)
osheroff Jun 24, 2020
aaf433e
release 4.0.1 (#1979)
thijstriemstra Jun 24, 2020
594480a
Add publishConfig (#1984)
katspaugh Jun 24, 2020
a7c7344
regions plugin: improve loop playback logic (#1977)
cadavre Jun 24, 2020
4cb1fe1
avoid call to HTMLMediaElement#load when peaks are given (#1969)
osheroff Jun 26, 2020
0fec788
performance: use clip-path css instead of width (#1983)
osheroff Jun 30, 2020
a50691b
regions plugin: improve regions handle elements access (#1985)
marizuccara Jul 3, 2020
3a02ddf
doc: add regions section in changelog
thijstriemstra Jul 3, 2020
fe19f47
update dev dependencies
thijstriemstra Jul 3, 2020
f115681
Revert "performance: use clip-path css instead of width (#1983)" (#1994)
osheroff Jul 6, 2020
1455979
add a call to drawBuffer in `loadMediaElement` (#1990)
osheroff Jul 6, 2020
043d138
Remove util.extend (deprecated since 3.3.0) (#1995)
marizuccara Jul 7, 2020
d614fa5
spectrogram plugin: move to separate directory (#1996)
thijstriemstra Jul 8, 2020
1628d16
cursor plugin: move plugin to separate directory (#1998)
thijstriemstra Jul 8, 2020
3f8b36f
minimap plugin: move plugin to separate directory (#1999)
thijstriemstra Jul 8, 2020
b8cfabe
microphone plugin: move to separate directory (#1997)
thijstriemstra Jul 8, 2020
7af166d
regions plugin: fix region ignoring minLength when being resized (#2002)
sundayz Jul 13, 2020
47d59a5
update dev dependencies
thijstriemstra Jul 22, 2020
50b9535
eslint: enable comma-dangle rule
thijstriemstra Jul 22, 2020
6566071
regions plugin: region dragging and resizing can now continue outside…
adityakrshnn Jul 22, 2020
feb0902
timeline plugin: move to separate directory (#2018)
thijstriemstra Jul 23, 2020
858cf05
elan plugin: move to separate directory (#2019)
thijstriemstra Jul 23, 2020
4eedd08
mediasession plugin: move to separate directory (#2020)
thijstriemstra Jul 23, 2020
5e9d429
update dev dependencies
thijstriemstra Jul 27, 2020
0910674
regions plugin: revert PR #1926 fix click propagation (#2024)
sundayz Jul 29, 2020
6e3b822
eslint: enable more rules
thijstriemstra Aug 3, 2020
b14f723
update dev dependencies
thijstriemstra Aug 3, 2020
d857abb
Remove util.ajax: deprecated since v3.0.0 (#2033)
marizuccara Aug 3, 2020
615f46c
regions plugin: edgescroll now works for both edges (#2023)
adityakrshnn Aug 13, 2020
97ec876
regions plugin: add regionsMinLength option (#2009)
marizuccara Aug 13, 2020
590d9cc
Code cleanup for Observer class (#2041)
sundayz Aug 14, 2020
ad4d21d
seekTo bugfix inc. basic unit tests (#2047)
Dexmaster Aug 23, 2020
1dd995a
update dev dependencies
thijstriemstra Aug 25, 2020
2784a84
tests: use range in drawer tests (#2047)
thijstriemstra Aug 25, 2020
63e8742
doc: fix typo in xhr parameter documentation (fixes #2025)
thijstriemstra Aug 25, 2020
3a71002
Fix unhandled AbortError thrown during cancelAjax (#2063)
sundayz Sep 13, 2020
b33bf0e
update dev dependencies
thijstriemstra Sep 13, 2020
31fd9bc
release 4.1.0 (#2065)
thijstriemstra Sep 17, 2020
f63638d
doc: update homepage address
thijstriemstra Sep 18, 2020
4a2beba
Revert "Code cleanup for Observer class (#2041)" (#2069)
sundayz Sep 24, 2020
3de0b5f
update dev dependencies
thijstriemstra Sep 24, 2020
9b7fd8a
bump version: 4.1.1 (#2071)
thijstriemstra Sep 25, 2020
a33cea8
Fix performance issues with seeking while audio is playing (#2045)
todoroff Sep 25, 2020
1a8fea7
catch unhandled Promise in decodeAudioData (#2079)
thijstriemstra Oct 2, 2020
3f47239
Trigger "waveform-ready" event whenever waveform peaks are drawn (#2077)
bwestergard Oct 20, 2020
f0f803e
update dev dependencies
thijstriemstra Oct 20, 2020
c438c23
bump version: 4.2.0 (#2096)
thijstriemstra Oct 20, 2020
1a9e510
doc: add next section to changelog
thijstriemstra Oct 20, 2020
c5c7135
ci: enable Chrome again
thijstriemstra Oct 26, 2020
f62ad10
ci: use focal on travis
thijstriemstra Oct 29, 2020
3c09bb8
Introduce relativeNormalization option for split channels rendering (…
Claudiohbsantos Nov 19, 2020
32f4035
update dev dependencies
thijstriemstra Nov 23, 2020
2be59a0
spectrogram plugin: Use ImageData to draw pixel-by-pixel (#2127)
ilovecomputers Dec 10, 2020
7906809
[setPlaybackRate] Webaudio backend fix (#2118)
marizuccara Dec 12, 2020
2fbfa6e
ci: switch to github actions (#2132)
thijstriemstra Dec 12, 2020
32fea4e
release: 4.3.0 (#2121)
thijstriemstra Dec 13, 2020
b234794
build: use webpack 5 (#2093)
thijstriemstra Dec 13, 2020
ecb4ba8
build: use webpack serve
thijstriemstra Dec 13, 2020
374e1b0
lint: disable and replace usage of var (#2136)
thijstriemstra Dec 20, 2020
c27243e
update dev dependencies
thijstriemstra Jan 6, 2021
d2c419a
Fix seeking issue for WebAudio backends (#2151)
todoroff Jan 8, 2021
4fa9275
Support multi channel colors for bars (#2150)
adarshpastakia Jan 11, 2021
4cd2233
release: 4.4.0 (#2153)
thijstriemstra Jan 14, 2021
e86a8c1
bump version
thijstriemstra Jan 14, 2021
d134757
regions plugin: stop dragging region when mouse exits wavesurfer div …
jbeuckm Jan 17, 2021
658bd92
WaveSurfer load() should accept HTMLMediaElement when using WebAudio …
sundayz Jan 18, 2021
d200517
ensure webaudio backend is removed from ram/cpu usage (#2164)
entonbiba Jan 25, 2021
8e77b52
build: remove publicPath from webpack dev config (#2173)
johnpaulmedina Jan 25, 2021
8cc4bbd
microphone plugin: remove deprecated MediaStream.stop call (#2171)
thijstriemstra Jan 26, 2021
c952088
update dev dependencies
thijstriemstra Feb 3, 2021
45a4732
Split channels: overlay param now properly displays a single canvas (…
johnpaulmedina Feb 6, 2021
8a4378a
release: v4.5.0 (#2187)
thijstriemstra Feb 14, 2021
625c65a
Add Markers plugin (#2196)
osheroff Mar 1, 2021
142a822
webaudio: fix decodeAudioData handling in Safari (#2201)
thijstriemstra Mar 4, 2021
48e89e4
bump version: 4.6.0 (#2202)
thijstriemstra Mar 5, 2021
d4ff489
markers plugin: markers at the begin/end of file were screwing up see…
osheroff Mar 8, 2021
43fe81b
ci: test against ms edge browser (#2215)
thijstriemstra Mar 9, 2021
c891fc8
Playhead plugin (#2209)
osheroff Mar 9, 2021
0f62482
regions plugin: drag bugfix & new showTooltip parameter (#2213)
marcelblum Mar 10, 2021
a418591
eslint: enable curly rule (#2220)
thijstriemstra Mar 10, 2021
2920c37
nullify onaudioprocess on remove so it doesn't stay active in backgro…
adityakrshnn Mar 13, 2021
b191f2f
Publish to NPM via GitHub Actions (#2205)
katspaugh Mar 14, 2021
861d52a
examples: use var instead of let (#2227)
osheroff Mar 19, 2021
9db4196
Add first-class support for vertical orientation (#2195)
valrus Apr 5, 2021
29cbdbc
update dev dependencies
thijstriemstra Apr 5, 2021
701b066
Automate GitHub releases (#2241)
katspaugh Apr 6, 2021
f455fee
regions plugin: support for vertical orientation (#2242)
valrus Apr 13, 2021
4360968
Fix exportPCM noWindow parameter (#2175)
entonbiba Apr 23, 2021
20e1ec9
update dev dependencies
thijstriemstra Apr 23, 2021
a262e69
release: 5.0.0 (#2256)
thijstriemstra May 3, 2021
9052580
fix removing DOM element in drawer.destroy() (#2260)
thijstriemstra May 5, 2021
b01e1e6
bump version: 5.0.1 (#2261)
thijstriemstra May 5, 2021
11f31ae
docs: add upgrade instructions for 5.0 (#2265)
caugner May 7, 2021
0554ffc
update dev dependencies
thijstriemstra May 10, 2021
2e49044
markers plugin: added support for custom marker elements (#2269)
bknower May 27, 2021
c4067f8
regions plugin: cursor orientation bugfix (#2293)
marcelblum Jun 4, 2021
4a040d1
markers plugin: trigger click event on wavesurfer (#2287)
Wangbaogang Jun 9, 2021
5289c4e
update dev dependencies
thijstriemstra Jun 12, 2021
ccb7cf7
plugins: prevent runtime errors when canvas context is null (setFillS…
felguerez Jun 14, 2021
e65efb2
regions plugin: fix Intervention message on mobile devices (#2252)
dimshik100 Jun 15, 2021
9c4f6ea
markers plugin: custom HTML elements are now centered over the marker…
bknower-cogito Jun 15, 2021
89912ff
update changelog
thijstriemstra Jun 15, 2021
2cac824
bump version: 5.1.0 (#2309)
thijstriemstra Jun 20, 2021
19afccb
improve error handling in ws.decodeArrayBuffer and WebAudio backend (…
vespakoen Jul 3, 2021
105dcae
update dev dependencies
thijstriemstra Jul 12, 2021
1eeb461
allow audio to be played if device is in silent mode (#2176)
entonbiba Jul 13, 2021
4f0f572
update dev dependencies
thijstriemstra Aug 2, 2021
26d96f6
examples: fix sample code in timeline-notches (#2342)
sih4sing5hong5 Aug 16, 2021
c1d2dea
regions plugin: add direction to region-updated event params (#2339)
msuhov Aug 16, 2021
acdad67
timeline plugin: fix null is not an object in fillText (#2333)
felguerez Aug 16, 2021
d27b75e
release: v5.2.0 (#2332)
thijstriemstra Aug 16, 2021
e4d17d2
regions plugin: fix region resize event direction (#2343)
msuhov Aug 16, 2021
95b0426
Support for linear gradients: add additional type to waveColor and pr…
califken Aug 25, 2021
d2c8dce
examples: fix typo
thijstriemstra Aug 25, 2021
ce29498
update dev dependencies
thijstriemstra Aug 25, 2021
2a077a8
examples: update to highlight.js 11.2.0
thijstriemstra Aug 25, 2021
2a9612d
example: revert prev commit for json file
thijstriemstra Aug 25, 2021
be6e492
Regions plugin: increase z-index to fix visual inconsistencies (#2353)
marcelblum Sep 7, 2021
8ec83d2
update dev dependencies
thijstriemstra Sep 12, 2021
bff81af
plugins: support vertical mode in cursor and minimap plugins (#2357)
Ivaka Sep 24, 2021
0b056b0
Add hideCursor option (#2367)
entonbiba Oct 1, 2021
f743fc3
update dev dependencies
thijstriemstra Oct 1, 2021
e6ea38c
regions plugin: fix region ignoring maxLength when being resized (#2374)
msuhov Oct 11, 2021
273ccb8
regions plugin: support for drag selection separated for each channel…
muhammad-sayed-mahdy Oct 18, 2021
562101b
Add optional parameter channelIdx to color methods (#2391)
muhammad-sayed-mahdy Nov 3, 2021
00b9f7e
build: update publicPath for webpack-dev-server >= 4.x (fixes #2396)
thijstriemstra Nov 4, 2021
fec8c1d
update dev dependencies
thijstriemstra Nov 11, 2021
8a80b0e
regions plugin: take formatTimeCallback from plugin params (#2294)
rdn32 Nov 12, 2021
f04e925
markers plugin: support for drag & drop functionality (#2398)
oesteve Nov 12, 2021
2dd1603
regions plugin: ensure edgeScrollWidth is set (#2401) (#2402)
rdn32 Nov 16, 2021
b036627
doc: organize changelog
thijstriemstra Nov 16, 2021
1dd21b7
update dev dependencies
thijstriemstra Nov 16, 2021
b740bb1
regions plugin: disable "region-removed" event during plugin teardown…
n0mn0m Nov 21, 2021
15b08e6
spectrogram plugin: add multi-channel & fix inaccurate doubling (#2424)
dofuuz Jan 11, 2022
ea3ef4c
fix bars sizing using max peak value in range (#2428)
lorenzos Jan 13, 2022
5fa5f66
workaround for seekTo occasionally crashing on Firefox (#2431)
lorenzos Jan 18, 2022
2cea99f
doc: update changelog
thijstriemstra Jan 18, 2022
b8ed76d
update dev dependencies
thijstriemstra Jan 18, 2022
642d0f6
readme: add info about a 10-year NFT (#2432)
katspaugh Jan 20, 2022
8c326e1
update dev dependencies
thijstriemstra Feb 7, 2022
9924b1d
bump version: 6.0.0 (#2437)
thijstriemstra Feb 7, 2022
0c538d2
docs: add upgrade instructions for 6.0 (#2441)
caugner Feb 8, 2022
1bf0091
fix bars rendering for peaks array starting with a negative value (#2…
lorenzos Feb 13, 2022
9b274c2
release: 6.0.1 (#2447)
thijstriemstra Feb 14, 2022
f2c03d4
regions plugin: correct type of maxRegions property (#2454)
JanMisker Feb 20, 2022
3bc715b
Restore support for passing CanvasGradient to setWaveColor() (#2456)
thijstriemstra Feb 20, 2022
46d423b
bump version: 6.0.2 (#2457)
thijstriemstra Feb 20, 2022
e2c5e64
cursor plugin: fix doc types for opacity and followCursorY (#2464)
thijstriemstra Feb 27, 2022
709a4e0
cursor plugin: fix element removal in destroy (#2462)
JanMisker Feb 28, 2022
8d33268
bump version: 6.0.3 (#2467)
thijstriemstra Mar 1, 2022
5af6502
timeline plugin: fix negative offset rendering (#2470)
othmar52 Mar 4, 2022
502ac42
spectrogram plugin: add `frequencyMin` and `frequencyMax` scaling opt…
dofuuz Mar 5, 2022
f16f333
bump version: 6.0.4 (#2474)
thijstriemstra Mar 8, 2022
8adaf1f
responsive debounce optimizing: don't fire redraw if waveform is invi…
marcelblum Mar 25, 2022
055d1c3
minimap plugin: clear waveform when load new audio (#2480)
othmar52 Mar 25, 2022
3b9695f
fix lint error
thijstriemstra Mar 25, 2022
1eb42d4
track and disconnect audio resources used by setSinkId (#2492)
kross-italk Mar 25, 2022
f76adfe
update changelog
thijstriemstra Mar 25, 2022
55bba32
minimap plugin: change regions function name to resolve ambiguities (…
palufra90 Mar 25, 2022
820fcdb
doc: remove flash reference
thijstriemstra Mar 25, 2022
e3ca41b
bump version: 6.1.0 (#2494)
thijstriemstra Mar 31, 2022
a69f2bb
fix typo
thijstriemstra Mar 31, 2022
f980032
Fix clientWidth error in responsive mode (#2499)
miltonlaufer Apr 21, 2022
addd2b3
cursor plugin: fix typeError if displayTime: null (#2512)
MikeyZat May 16, 2022
2e64ec1
spectrogram plugin: fix for hi-dpi displays and independent height (#…
mjrond May 16, 2022
d7bf5aa
release: 6.2.0 (#2514)
thijstriemstra May 16, 2022
0edd672
update dev dependencies
thijstriemstra May 16, 2022
6aca3e1
update dev dependencies
thijstriemstra Jun 29, 2022
cfda114
doc: remove nft from the readme (#2555)
katspaugh Jul 20, 2022
fc9aafe
update dev dependencies
thijstriemstra Jul 29, 2022
4614ef4
regions plugin: restore support for one drag selection for all channe…
muhammad-sayed-mahdy Jul 30, 2022
a92da7f
Draw all bars shorter than barMinHeight with the specified minimum he…
drinking-code Jul 30, 2022
fee7558
markers plugin: add support for a context menu event on a marker (#2546)
kpanditCtr Aug 2, 2022
61005bc
spectrogram plugin: fix issue where labels get stuck when scrolling …
musicog Aug 2, 2022
4fe025a
doc: fix typos in exportImage api doc
thijstriemstra Aug 8, 2022
fb431bd
build: remove unused babel-plugin-proxy dependency (#2568)
thijstriemstra Aug 8, 2022
1e18006
update dev dependencies
thijstriemstra Oct 3, 2022
585311a
bump version: 6.3.0
thijstriemstra Oct 3, 2022
714ac44
feat(markers): add tooltip (#2595)
ilteoood Oct 13, 2022
6994f77
Add a GitPOAP badge in the readme (#2594)
katspaugh Oct 17, 2022
d24f47a
markers plugin: check for event after every add/remove (#2599)
rstefek Oct 19, 2022
5e8b889
update changelog
thijstriemstra Oct 19, 2022
278932e
ci: update actions and test against node.js 16.x
thijstriemstra Oct 19, 2022
9e8aed5
update dev dependencies
thijstriemstra Oct 19, 2022
9833c48
cursor plugin: fix crash when destroy triggered before ready (#2606)
SilvaQ Oct 31, 2022
edccdc3
release: 6.4.0 (#2614)
thijstriemstra Nov 5, 2022
4dbd9ec
doc: fix typo
thijstriemstra Dec 8, 2022
8bcb3b8
update dev dependencies
thijstriemstra Jan 25, 2023
5a772c8
regions plugin: improved delta calculation (resize end) (#2641)
BQTH Jan 26, 2023
a97f714
Create FUNDING.yml (#2668)
katspaugh Feb 23, 2023
0b85d9d
Docs: update the issue template and wavesurfer links (#2671)
katspaugh Feb 28, 2023
4a84fc3
Proxy HTMLMediaElement's 'waiting' event through MediaElement backend…
anri-asaturov Mar 1, 2023
320f114
Fix iphone silent switch webaudio mute (#2686)
entonbiba Mar 1, 2023
1ae22fd
Fix typo (#2695)
skinkie Mar 1, 2023
1ffb823
Docs: add an import snippet (#2700)
katspaugh Mar 3, 2023
957655c
Update FUNDING.yml (#2704)
katspaugh Mar 11, 2023
9d90f1b
inherit font family rather than setting monospace (#2664)
SishaarRao Mar 11, 2023
3b9d58c
regions plugin: add editableContent and removeButton options (#2521)
ApayRus Mar 11, 2023
9c61fc4
[FIX] respect mute state when changing volume during mute (#2503)
othmar52 Mar 11, 2023
c9bb386
release: 6.5.0 (#2705)
katspaugh Mar 11, 2023
c2cd745
Fix: release workflow permissions (#2709)
katspaugh Mar 11, 2023
7c1458a
Zoom optimisation for Waves and matching implementation for Spectrogr…
luke-harrison-personal Mar 11, 2023
742860f
[Regions] Fix undefined content element on remove (#2713)
katspaugh Mar 12, 2023
bf0dc53
Chore: improve the release and changelog automation (#2710)
katspaugh Mar 13, 2023
8821b0b
Release 6.6.0 (#2715)
katspaugh Mar 14, 2023
55a01c4
Docs: add a video tutorial link to the readme (#2724)
katspaugh Mar 16, 2023
250a0f0
Fix: NPM publish in the CI job (#2727)
katspaugh Mar 18, 2023
dce4287
Fix: avoid exit 1 in CI script (#2734)
katspaugh Mar 18, 2023
6f3c193
Refactor: remove scriptNode (#2706)
katspaugh Mar 23, 2023
eb1a9dd
feat(MarkersPlugin): add getMarkers function (#2743)
FalkF Mar 26, 2023
e27d5b8
Revert "Zoom optimisation for Waves and matching implementation for S…
katspaugh Mar 27, 2023
9e15161
Release 6.6.2 (#2745)
katspaugh Mar 27, 2023
f9d5641
Docs: version the unpkg script in readme (#2746)
katspaugh Mar 27, 2023
a4dbddb
Remove marker by id (#2749)
prakharpbuf Apr 3, 2023
df4d48f
Release 6.6.3 (#2753)
katspaugh Apr 4, 2023
d6f63bd
Docs: add a note about wavesurfer.ts (#2760)
katspaugh Apr 13, 2023
220661e
fix: relay dblclick event (#2761)
prakharpbuf Apr 14, 2023
4d36715
Bump yaml from 2.2.1 to 2.2.2 (#2766)
dependabot[bot] Apr 26, 2023
2ae31ce
Bump engine.io from 6.4.1 to 6.4.2 (#2771)
dependabot[bot] May 4, 2023
26ceb09
Bump socket.io-parser from 4.2.2 to 4.2.3 (#2786)
dependabot[bot] May 24, 2023
8e8c930
Update README.md about 7.0.0-beta (#2788)
katspaugh May 28, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"presets": [
["@babel/preset-env", {
"targets": "last 3 version",
"debug": false,
"modules": "commonjs"
}]
],
"plugins": ["@babel/plugin-proposal-class-properties", "add-module-exports"],

"env": {
"test": {
"plugins": [
["istanbul", {
"exclude": [
"spec/**/*.spec.js"
]
}]
]
}
}
}
11 changes: 11 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# http://editorconfig.org

root = true

[*]
charset = utf-8
indent_style = space
indent_size = 4
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
51 changes: 51 additions & 0 deletions .esdoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"source": "./src",
"destination": "./doc",
"plugins": [
{
"name": "esdoc-standard-plugin"
},
{
"name": "esdoc-brand-plugin"
},
{
"name": "esdoc-accessor-plugin",
"option": {
"access": ["public", "protected"],
"autoPrivate": true
}
},
{
"name": "esdoc-ecmascript-proposal-plugin",
"option": {
"classProperties": true,
"objectRestSpread": true,
"exportExtensions": true
}
},
{
"name": "esdoc-coverage-plugin",
"option": {
"enable": true,
"kind": [
"class",
"method",
"member",
"get",
"set",
"constructor",
"function",
"variable"
]
}
},
{
"name": "esdoc-integrate-test-plugin",
"option": {
"source": "./spec/",
"interfaces": ["describe", "it", "context", "suite", "test"],
"includes": ["(spec|Spec|test|Test)\\.js$"]
}
}
]
}
59 changes: 59 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
/* eslint-disable */
module.exports = {
extends: ['eslint:recommended'], // extending recommended config and config derived from eslint-config-prettier
parser: '@babel/eslint-parser',
globals: {
WaveSurfer: true,
Float32Array: true,
Uint32Array: true,
Promise: true,
Proxy: true,
Symbol: true,
Uint8Array: true,
ArrayBuffer: true,
__VERSION__: true
},
env: {
browser: true,
commonjs: true
},
rules: {
eqeqeq: 'off',
'semi': 2,
'curly': "error",
"indent": ["error", 4, {
"ignoredNodes": ["TemplateLiteral"],
"SwitchCase": 1
}],
'comma-dangle': ["error", "never"],
'comma-spacing': ["error", { "before": false, "after": true }],
'no-console': 1,
'no-unused-vars': 'off',
'no-var': 'error',
'no-unreachable': 2,
'no-extra-semi': "error",
'no-multi-spaces': "error",
'no-multiple-empty-lines': "error",
'space-infix-ops': "error",
'valid-jsdoc': [2, {
'requireReturn': false,
'requireReturnType': false
}],
'no-trailing-spaces': "error",
'no-dupe-keys': "error",
'require-jsdoc': 2,
'no-duplicate-imports': "error",
'space-before-function-paren': ["error", "never"],
'keyword-spacing': ["error", {"before": true}]
},
'overrides': [
{
'files': ['example/**/*.js', 'spec/**/*.js'],
'rules': {
'no-var': 'off',
'no-console': 'off',
'require-jsdoc': 0,
'valid-jsdoc': 0
}
}]
};
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
github: [wavesurfer-js]
35 changes: 35 additions & 0 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Hey, thank you for using and contributing to wavesurfer.js!

## Need help with wavesurfer.js in your app?

Please start a Q&A dicussion in our forum: https://github.com/wavesurfer-js/wavesurfer.js/discussions/new?category=q-a

## Have an idea for a feature?

Consider sharing it in the forum: https://github.com/wavesurfer-js/wavesurfer.js/discussions/new?category=ideas

## You think you found a bug?

### Please make sure you can check all of these points below before opening an issue:

(You don't have to post this section)

- [ ] I have checked [the FAQ](https://wavesurfer-js.org/faq/) and it doesn't solve my problem.
- [ ] I have checked [the documentation](https://wavesurfer-js.org/docs/) and it doesn't solve my problem
- [ ] I have searched for [already open issues](https://github.com/wavesurfer-js/wavesurfer.js/issues) which desribe my problem.

## Please make sure to provide the following information (if applicable):

### wavesurfer.js version(s):


### Browser and operating system version(s):


### Code needed to reproduce the issue:

(Please reduce your code as much as possible and only post the minimum code needed to reproduce the issue. [A Code pen](http://codepen.io/) is an excellent way to share such code)


### (Optional) Steps in the UI to reproduce the issue:

21 changes: 21 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Hey, thank you for contributing to wavesurfer.js!

To review/merge open PRs it is very helpful to know as much as possible about the changes which are being introduced. Reviewing PRs is very time consuming, please be patient, it can take some time to do properly.

**Title:** Please make sure the name of your PR is as descriptive as possible (Describe the feature that is introduced or the bug that is being fixed).

## Please make sure you provide the information below:

### Short description of changes:


### Breaking in the external API:


### Breaking changes in the internal API:


### Todos/Notes:


### Related Issues and other PRs:
50 changes: 50 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Lint & tests

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [16]

steps:
- uses: actions/checkout@v3
- name: Update system
run: sudo apt-get update
- name: Install system dependencies
run: sudo apt-get install -y ubuntu-restricted-addons chromium-codecs-ffmpeg-extra gstreamer1.0-libav gstreamer1.0-plugins-ugly gstreamer1.0-vaapi
- name: Using Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Cache Node.js modules
uses: actions/cache@v3
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: ~/.npm
key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.OS }}-node-
${{ runner.OS }}-
- name: Install Node.js modules
run: npm install
- name: Lint
run: npm run lint
- name: Build
run: npm run build
- name: Test
run: npm run test
- name: Coveralls
uses: coverallsapp/github-action@master
with:
path-to-lcov: ./coverage/lcov/lcov.info
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Documentation
run: npm run doc
66 changes: 66 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: Release

on:
push:
branches:
- master

permissions:
contents: write

jobs:
publish-npm:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Extract version
id: version
run: |
OLD_VERSION=$(npm show wavesurfer.js version)
NEW_VERSION=$(node -p 'require("./package.json").version')
if [ $NEW_VERSION != $OLD_VERSION ]; then
echo "New version $NEW_VERSION detected"
echo "version=$NEW_VERSION" >> $GITHUB_OUTPUT
git log "$OLD_VERSION"..HEAD --pretty=format:"* %s" > TEMP_CHANGELOG.md
else
echo "Version $OLD_VERSION hasn't changed, skipping the release"
fi

- name: Create a git tag
if: ${{ steps.version.outputs.version }}
run: git tag $NEW_VERSION && git push --tags
env:
NEW_VERSION: ${{ steps.version.outputs.version }}

- name: GitHub release
if: ${{ steps.version.outputs.version }}
uses: actions/create-release@v1
id: create_release
with:
draft: false
prerelease: false
release_name: ${{ steps.version.outputs.version }}
tag_name: ${{ steps.version.outputs.version }}
body_path: TEMP_CHANGELOG.md
env:
GITHUB_TOKEN: ${{ github.token }}

- uses: actions/setup-node@v3
if: ${{ steps.version.outputs.version }}
with:
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'

- name: Install dependencies
if: ${{ steps.version.outputs.version }}
run: npm install

- name: Publish to NPM
if: ${{ steps.version.outputs.version }}
env:
NODE_AUTH_TOKEN: ${{ secrets.npm_token }}
run: npm publish
16 changes: 12 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
dist/wavesurfer.dev.js
dist/plugin/*.js
!/dist/plugin/*.min.js
/dist

/node_modules
/bower_components
/npm-debug.log
/.grunt
/coverage
/_SpecRunner.html
/doc
/_site

.DS_Store
.idea
.project
.chrome
.build_cache
.pydevproject

package-lock.json
.package.json.swp
12 changes: 12 additions & 0 deletions .htmlhintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"tagname-lowercase": true,
"attr-lowercase": true,
"attr-value-double-quotes": false,
"doctype-first": false,
"tag-pair": true,
"spec-char-escape": false,
"id-unique": true,
"src-not-empty": true,
"attr-no-duplication": true,
"title-require": true
}
7 changes: 0 additions & 7 deletions .jscsrc

This file was deleted.

6 changes: 3 additions & 3 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
/dist/wavesurfer.min.js.map
/dist/wavesurfer.amd.js
/dist/wavesurfer.min.js
# Intentionally left blank, so that npm does not ignore anything by default,
# but relies on the package.json "files" array to explicitly define what ends
# up in the package.
10 changes: 0 additions & 10 deletions .travis.yml

This file was deleted.

Loading