Skip to content

5.0.0

Choose a tag to compare

@github-actions github-actions released this 25 Oct 21:56
· 4 commits to master since this release
5.0.0
6891c15

Breaking Changes

  • Share.js, Facebook Comments, AddThis, Baidu Share and FeedBurner email subscriptions now show a notice instead of loading their integrations. Replace share.type: sharejs with web_share, addtoany or sharethis. 4db3ce1
  • Gitalk now uses Gitalk 2 (@aifire/gitalk@2.0.0-beta.2), which requires a GitHub App and a server-side authentication proxy. proxy is required; client_secret and flip_move_options are ignored. create_issue_manually defaults to true. Existing Issue-backed comments can be retained. e2b73b9
  • The gallery uses lightGallery 3.0.0 and justified-gallery 4.0.2 instead of the old jQuery integrations. Themes with their own initialization scripts, styles or CDN overrides need to update them. lightGallery’s upstream GPLv3/commercial licensing terms apply. 47d0530, c9736fd
  • MathJax uses 4.1.3 and loads its New Computer Modern fonts separately. Custom asset URLs and typesetting hooks need to use the v4 paths and APIs. 00e13a4
  • The outdated browser warning checks capabilities supplied by the theme through requiredFeatures, instead of loading the old detection library. Custom integrations using its jsUrl and cssUrl props need to migrate. 533e74b

New Features

  • Add an independent web_share provider with direct X, Facebook, Weibo, Telegram and LinkedIn links, followed by native system sharing. It does not load an AddToAny fallback. 2235359
  • Add a reusable Profile widget with a Hexo adapter for author information, counters and social links. It uses Gravatar or the configured avatar, and renders no image when neither is set. 0371241, 42d87f9
  • Add a responsive GitHub contribution calendar widget. 026cbe7
  • Cookie Consent’s opt-in and opt-out modes control classified tracking plugins through a shared authorization runtime. info remains notice-only; this does not gate every third-party component. b5275fd
  • Export a shared gallery runtime for image enhancement, SDK initialization and cleanup. fc2b9e8

Bug Fixes

  • Reinitialize AddToAny and ShareThis after PJAX page switches, using the destination page’s URL and title. dc61bf8
  • Gallery enhancement no longer changes sharing-widget icons. 328aeb6
  • Disqus accepts theme colors expressed with modern CSS color functions instead of failing during initialization. 6c265a5
  • Google CSE handles pasted queries and cleared input, reports SDK loading failures, and keeps the same result and pagination structure on mobile. cc2f037
  • Search components clean up their handlers and pending work when the page is replaced. Algolia initializes when loaded after DOMContentLoaded. 0e728ed, 6163753
  • Pace no longer restarts for scroll-history updates or background requests, or gets destroyed before fast PJAX navigation can paint its progress. 9dd0396
  • CDN resolution preserves custom templates and per-package overrides while using available assets for Justified Gallery and lightGallery’s loli fallback. 3c064b0

Other Changes

  • Update DisqusJS to 3.2.2 and adapt its rendering and cleanup to the v3 API. 0e3faa5
  • Update Twikoo to 2.0.17, Artalk to 2.10.0, Waline to 3.16.1 and Valine to 1.5.3. Check backend compatibility when upgrading hosted comment systems. f01ed4c, 722f52e, dc9bfb7, e34f2e7
  • Update Algolia Search to 5.60.0, InstantSearch to 4.120.0 and KaTeX to 0.19.1. 6163753, 6adc063
  • Stop emitting legacy Google+ publisher metadata. eaf0e68
  • Separate archive grouping, category-tree preparation, Insight search and tab-option parsing from their rendering adapters. 7576259, e596a8d, 7e95a75, 52c1975
  • Fix Node.js 14 test compatibility for the gallery SDK and contribution calendar, and normalize inline-script line endings in tests. be485b9