Skip to content

v2.6

Compare
Choose a tag to compare
@NikolayRys NikolayRys released this 26 Oct 03:10
· 164 commits to master since this release

image

Fixes

  • Fixed Facebook counter by obtaining public user token(configured app access). For #194
  • Fixed odnoklassniki counter to handle #190
  • Completely reworked Reddit counting approach - it wasn't counting what we needed
  • Delete obligatory duplicated params to handle #188
  • Handle gracefully incorrect service names(now it doesn't die if encounters a service with a typo)
  • Fixed cross-origin resource sharing warnings with badly supported JSONP, now likely does not flood console with a warning. Before it was so:
    image

New features

  • Expanded and updated the lists of available params for all the services.
  • Allowed again static values for overriding counters and avoid API calls. Now you can set the exact counter as param. It can be useful to save traffic for clients or to avoid AdBlock interference.

Tech improvements

  • Remove JSONP because of CORS - keep only for VK, which supports it properly. Other services reworked to use simple XHR.
  • Updated dependencies
  • Limit deprecations to be displayed only once on the first load and to not flood in the console.
  • Removed possible memory leaks when there are several copies of the buttons on the page or force updates
  • Specified Exact release files(the last release got an accidental inclusion of some hidden text file from my mac)
  • Viber now relies on "data-title" as other services
  • More robust handling of failed responses from services

Refactoring

  • Many things are massively simplified
  • Removed dead code
  • Speeded it up a bit because of JSONP removal
  • Improve method names

Documentation

  • Add API documentation to links to the services
  • Improved and reorganized Readme(also alphabetically)
  • Update documentation about supported params
  • Added documentation about OGP(site preview supported by social networks)
  • Added doc to how to include more buttons into the same likely umbrella, based on: #191

Optics

  • Removed redundant whitespaces in generated HTML classes
  • Improved pictures and colors according to brand books. #187
  • Updated Licence.
  • Show buttons immediately, without waiting for services to respond
  • Update sizes of modal popups, so they do not jump around when opened.