Skip to content

Releases: dailymotion/vast-client-js

Version 6.0.2

26 Nov 15:33
Compare
Choose a tag to compare

Fixes

  • Vast Client will now trigger error code 102 VAST version of response not supported, if it parse a outdated VAST version (only 1.0 for now)
  • Fix error 303 No VAST response after one or more Wrappers not being triggered when a wrapper containing a <Creative> without mediafile (e.g only with a <CompanionAds> inside) does not result in a VAST response.

New Contributors

Full Changelog: 6.0.1...6.0.2

Version 6.0.1

29 Aug 07:27
Compare
Choose a tag to compare

Fixes

  • #475 - Fix issue where ads where merged if the first ad was empty

Version 6.0.0

01 Jul 16:41
Compare
Choose a tag to compare

Breaking change

  • #458 Modularize VAST Client by @Rapha0511
    • ⚠️ parseVAST method from the VASTParser class, will only parse the first VAST encountered. To follow a wrappers chain please use parseVAST method from "VASTClient" class.
    • ⚠️ The IIFE built format is no longer generated as it is now possible to import ES modules format by specifying the type="module".
    • ⚠️The UMD format is no longer generated because it is obsolete, please use ES modules instead.

Enhancements:

  • #458 Modularize VAST Client by @Rapha0511
    • New VASTClient class method parseVASTto parse VAST XML document and follow any wrappers chain.
    • All VASTClient class methods related to URLTemplateFilter are now public method of VASTClient class.
    • Remaining Mocha have been migrated to Jest. VASTClient project is now only using Jest for unit tests.
  • #467 Upgraded fetching method, added error logging, and code refactoring by @Rapha0511.
    • Added a new VASTTracker class event TRACKER-error that can be listen to retreive any error related to trackers.
    • The VASTClient class now uses fetch API for browser and node environment instead of XMLHttpRequest.
  • #461 add trackOnce parameter to VASTTracker setProgress by @rs-guian.
  • #470 VASTClient integration example by @Rapha0511.
    • VASTClient integration and usage example is now available in the example folder.

Fixes

  • #466 Fix a bug where fallback was not working if the first ad element was empty by @Rapha0511.

New Contributors

Full Changelog: 5.0.0...6.0.0

Version 5.0.0

24 Aug 12:12
Compare
Choose a tag to compare

Breaking changes

  • #444 Add missing nodes to the parsing
  • ⚠️The adSlotID attribute of CompanionAd object has been modified to adSlotId to follow the VAST specs.
  • ⚠️The type attribute of the <Survey> node is now parsed. The parsed <Survey> node is now an Object {value: String, type: String}.
  • ⚠️xmlEncoded is now considered as an attribute of the <adParameters> node, instead of a node by itself. The value of is now an Object {value: String, xmlEncoded: String}.
  • <IconClickFallbackImages> node is now parsed.
  • Now, <Icon> wrapper elements will be merged with the final Inline.
  • The parseDuration function is now exposed publicly as a VASTParser method to allow users to convert timecode to seconds.
  • #454 Methods to trigger viewable impression trackers
  • ⚠️ The attributes viewable, notviewable and viewundetermined have been modified to viewable, notViewable and viewUndetermined.
  • 3 public methods are now available to track viewable impression URI
    • trackViewableImpression() to report all <Viewable> URI
    • trackNotViewableImpression() to report all <notViewable> URI
    • trackUndeterminedImpression() to report all <ViewableUndetermined> URI

Enhancements

  • #448 Validate URLTemplates before tracking
  • #456 Update dependancies

Fixes

  • #443 Add muted argument to constructor

The setMuted method assumes that muted property is false by default. Thus, the unmute tracking event will not fire if the player was in a muted state.

  • #452 Handle duplicate VASTAdTagURI in AdPod

Wrappers within an AdPod can now reference the same VASTAdTagURI.

Full Changelog: 4.0.1...5.0.0

Version 4.0.1

12 Oct 14:04
Compare
Choose a tag to compare

Enhancements

  • #432 Update VASTTracker documentation

Fixes

  • #431 Add safeguards to public methods

Full Changelog: 4.0.0...4.0.1

Version 4.0.0

15 Feb 11:05
Compare
Choose a tag to compare

Breaking changes

  • #377 Allow parsing of multiple UniversalAdID.

⚠️ The final ad object parsed will no longer contain the universalAdId property but the universalAdIds property which will contain an array of universalAdId.

  • #395 Merge wrapper ViewableImpression with the inline one.

⚠️ The property ViewableImpression is now an array of object instead of a single object.

Enhancements

  • #420 Add ad data to VAST-resolving events
  • #383 Add new public error method to vastTracker API documentation.
  • #419 Update dependencies

Fixes

  • #414 Fix typo in the documentation

Full Changelog: 3.3.0...4.0.0

Version 3.3.0

21 Sep 13:58
Compare
Choose a tag to compare

Enhancements

#411 Update master branch to 3.X to benefit latest fixes

Version 3.2.0

09 Sep 13:37
Compare
Choose a tag to compare

Enhancements

#401 Updated dependencies because of security issues on vast-client-js dependencies

#402 Add bitrate estimation from VAST requests feature

Fixes

#403 Merge correctly adVerifications from extension and from its own node

Version 3.1.1

07 Dec 16:12
Compare
Choose a tag to compare

Fixes

  • #381 - Fix rollup config for node_url_handler

Version 3.1.0

07 Dec 16:00
Compare
Choose a tag to compare

Enhancements

  • #374 - Implement vastTracker.error and deprecate vastTracker.errorWithCode

Fixes

  • #375 - Fix allowMultipleAds option when resolving wrapper