Skip to content

Releases: mdo/github-buttons

v4.0.10

05 May 05:53
Compare
Choose a tag to compare
4.0.10

v4.0.9

18 Mar 12:41
Compare
Choose a tag to compare
4.0.9

v4.0.8

23 Jan 09:40
Compare
Choose a tag to compare
4.0.8

v4.0.7

03 Dec 08:53
Compare
Choose a tag to compare
4.0.7

v4.0.5

19 Oct 11:48
Compare
Choose a tag to compare
  • update devDependencies and gems
  • minor doc tweaks

v4.0.4...v4.0.5

v4.0.4

19 Sep 08:18
Compare
Choose a tag to compare
  • docs: mention the GitHub API rate limit
  • Add jekyll-sitemap plugin

v4.0.3

18 Sep 19:09
Compare
Choose a tag to compare
  • Fix followers link
  • Remove deprecated bundler flags

v4.0.2

15 Sep 15:03
Compare
Choose a tag to compare
  • Add jekyll-seo-tag in docs
  • Update to Ruby 2.7/Bundler 2.x.
  • Update devDependencies and gems

v4.0.1

20 May 05:36
Compare
Choose a tag to compare
  • fix snippet markup
  • update devDependencies and gems
  • move docs to he docs folder

v4.0.0

27 Apr 18:09
@mdo mdo
dd20799
Compare
Choose a tag to compare

Highlights

  • New: Added sponsor button (pass type=sponsor)
  • New: Updated the font stack to a more modern one
  • Breaking: Dropped ancient CSS vendor prefixes and IE < 10 support; the button will still work on IE9, but it won't look perfect, IE < 9 no longer works.
  • Enhancement: Reduced filesize approximately -20% off the uncompressed github-btn.html's size (6849 -> 5419 bytes)
  • Enhancement: When count=true is not passed, we now don't make any GitHub API request which should significantly improve page load times

Detailed changes

  • Improved button's accessibility:
    • counter is hidden with aria-hidden if it's empty
    • a title is added in the iframe
  • Improve button's HTML
    • add doctype
    • add lang
    • add charset
    • add rel="noopener noreferrer" for external links
    • remove aria-label since we set it via JS
  • Improve button's CSS:
    • the embedded SVG is no longer base64-encoded (-45% off the uncompressed SVG)
    • the embedded SVG is optimized with SVGO (approximately -25% off the compressed SVG, -28% off the uncompressed SVG)
    • the CSS is streamlined
  • Improved button's JS:
    • we no longer make unneeded GitHub API calls, for example if you don't pass query=true
    • add a few fail-safe checks
    • switched to Node.textContent since we weren't adding HTML
    • wrap the code in an IIFE so that the minifier mangles the variables properly
    • switch to strict mode
  • Build:
    • it should be generally easier to work on the project locally; npm i && bundle i to get started
    • replace gulp with npm scripts
    • add CSS/Sass linting with Stylelint
    • and JS linting with xo
    • add a watch script
    • update Jekyll to v4.0.0
    • add CI for tests and docs deployments
  • Docs:
    • the docs are HTML5 valid
    • the docs are WCAG2AA valid
    • add link rel=canonical
    • add meta generator tag
    • switch to Sass
    • inline the docs CSS