Skip to content

chore(deps): bump wavesurfer.js and @types/wavesurfer.js - #1202

Open
dependabot[bot] wants to merge 1 commit into
developmentfrom
dependabot/npm_and_yarn/development/wavesurfer.js-and-types/wavesurfer.js-6.2.0
Open

chore(deps): bump wavesurfer.js and @types/wavesurfer.js#1202
dependabot[bot] wants to merge 1 commit into
developmentfrom
dependabot/npm_and_yarn/development/wavesurfer.js-and-types/wavesurfer.js-6.2.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Sep 13, 2022

Copy link
Copy Markdown

Bumps wavesurfer.js and @types/wavesurfer.js. These dependencies needed to be updated together.
Updates wavesurfer.js from 5.2.0 to 6.2.0

Changelog

Sourced from wavesurfer.js's changelog.

6.2.0 (16.05.2022)

  • Fix clientWidth error in responsive mode (#2498)
  • Cursor plugin:
    • Fix TypeError when showTime: undefined (#2501)
  • Spectrogram plugin:
    • Fix to have consistent CSS height regardless of device pixel ratio (#2507)
    • Added height configuration option to control CSS height of the view, which will scale to fill
    • Frequency label display is fixed instead of absolute to enable consistent size on hi-dpi displays

6.1.0 (31.03.2022)

  • Fix many calls to setSinkId resulting in no sound (#2481)
  • Optimize responsive resize to avoid unnecessarily firing redraw on unpainted waveforms (#2485)
  • Minimap plugin:
    • Remove waveform of previous audio when starting to load new audio (#2479)
    • Changed regions function name to resolve ambiguities (#2482)

6.0.4 (09.03.2022)

  • Spectrogram plugin:
    • Add frequencyMin, frequencyMax option to scale frequency axis. And set default 12kHz range to draw spectrogram like 5.x (#2455)
  • Timeline plugin:
    • Fix rendering issue for negative offset values (#2463)

6.0.3 (01.03.2022)

  • Cursor plugin:
    • Fix type documentation for followCursorY and opacity options (#2459)
    • Fix destroying cursor and showTime dom nodes (#2460)

6.0.2 (20.02.2022)

  • Fix regression and restore support for passing a CanvasGradient to setWaveColor() (#2448)
  • Regions plugin:
    • Fixed the type annotation of maxRegions in the regions plugin (#2454)

6.0.1 (13.02.2022)

  • Fixed a regression that broke bars rendering when using a certain format for the peaks array (#2439)

6.0.0 (07.02.2022)

  • Add additional type to waveColor and progressColor parameters to support linear gradients (#2345)

... (truncated)

Upgrade guide

Sourced from wavesurfer.js's upgrade guide.

Upgrade

Upgrading to version 6 from version 5

Upgrading to version 5 from version 4

  1. MultiCanvas and Drawer now use Proxy objects for DOM elements: You can access the original instances via the domElement property on the Proxy objects (e.g. CanvasEntry.wave.domElement).

This affects the following objects:

  • CanvasEntry.progress (e.g. MultiCanvas.canvases[n].progress)
  • CanvasEntry.wave (e.g. MultiCanvas.canvases[n].wave)
  • Drawer.wrapper
  • MultiCanvas.container
  1. WaveSurfer.exportPCM() now returns a Promise that resolves to an Array: Before, the Promise resolved to a JSON string representing the Array. You can get the same result by converting the resulting Array via JSON.stringify().

Upgrading to version 4 from version 3

(No backward-incompatible changes.)

Upgrading to version 3 from version 2

  • util.ajax was deprecated; use `util.fetchFile instead.
  • The xhr wavesurfer option has changed to work with util.fetchFile.
  • The MultiCanvas renderer was refactored and a new CanvasEntry class was added to represent a canvas instance in a MultiCanvas.

Upgrading to version 2 from version 1

The wavesurfer.js core library and the plugins were refactored to be modular so it can be used with a module bundler. You can still use wavesurfer without, e.g. with <script> tags. The code was also updated to ES6/ES7 syntax and is transpiled with Babel and Webpack. Read below how to update your code.

The API has mostly stayed the same but there are some changes to consider:

  1. MultiCanvas renderer is now the default: It provides all functionality of the Canvas renderer. – Most likely you can simply remove the renderer option – The Canvas renderer has been removed. (The renderer option still exists but wavesurfer expects it to be a renderer object, not merely a string.)

  2. Constructor functions instead of object constructors

// Old:
var wavesurfer = Object.create(WaveSurfer);
Wavesurfer.init(options);
// New:
</tr></table>

... (truncated)

Commits

Updates @types/wavesurfer.js from 5.2.2 to 6.0.3

Commits

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [wavesurfer.js](https://github.com/katspaugh/wavesurfer.js) and [@types/wavesurfer.js](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/wavesurfer.js). These dependencies needed to be updated together.

Updates `wavesurfer.js` from 5.2.0 to 6.2.0
- [Release notes](https://github.com/katspaugh/wavesurfer.js/releases)
- [Changelog](https://github.com/katspaugh/wavesurfer.js/blob/master/CHANGES.md)
- [Upgrade guide](https://github.com/katspaugh/wavesurfer.js/blob/master/UPGRADE.md)
- [Commits](katspaugh/wavesurfer.js@5.2.0...6.2.0)

Updates `@types/wavesurfer.js` from 5.2.2 to 6.0.3
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/wavesurfer.js)

---
updated-dependencies:
- dependency-name: wavesurfer.js
  dependency-type: direct:production
  update-type: version-update:semver-major
- dependency-name: "@types/wavesurfer.js"
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Sep 13, 2022
@sonarqubecloud

Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants