Skip to content

build(deps): bump hexo-theme-butterfly from 5.5.4 to 5.6.1#4

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/hexo-theme-butterfly-5.6.1
Open

build(deps): bump hexo-theme-butterfly from 5.5.4 to 5.6.1#4
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/hexo-theme-butterfly-5.6.1

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jul 21, 2026

Copy link
Copy Markdown
Contributor

Bumps hexo-theme-butterfly from 5.5.4 to 5.6.1.

Release notes

Sourced from hexo-theme-butterfly's releases.

5.6.1

Full Changelog: jerryc127/hexo-theme-butterfly@5.6.0...5.6.1

修復

  • 從 pjax 加載中排除 fancybox 鏈接以防止衝突
  • 在 pjax 排除列表中添加 :not([data-fancybox]) 選擇器

變更

  • 重構系列分組邏輯,使用共享的 hexo._seriesGroups 對象
  • 通過一次構建系列分組代替每次渲染時構建來提高性能
  • 保持相同的排序行為,同時避免數據變更

Fixed

  • Exclude fancybox links from pjax loading to prevent conflicts
  • Add :not([data-fancybox]) selector to pjax exclude list

Changed

  • Refactor series grouping logic to use shared hexo._seriesGroups object
  • Improve performance by building series groups once instead of per-render
  • Maintain same sorting behavior while avoiding data mutation

5.6.0

Full Changelog: jerryc127/hexo-theme-butterfly@5.5.5...5.6.0

New Features

  • 新增 Knocket 聊天功能,新增對應的 pug 模板 knocket.pug,在聊天配置中新增 knocket 選項
  • 新增腳本和樣式表緩存機制(scriptCache / cssCache),避免重複加載相同資源
  • 新增 rafThrottle 工具函數,基於 requestAnimationFrame 實現節流
  • 新增 HTML 轉義函數(sanitizeString),防範 XSS 注入

Performance

  • TOC 滾動改用 IntersectionObserver 取代原本的 throttle + 遍歷方式,大幅減少滾動事件計算量
  • 滾動處理從 btf.throttle 改為 btf.rafThrottle,與瀏覽器渲染幀率同步
  • resize 事件處理加入 rafThrottle 節流
  • scrollToDest 平滑滾動改用 easeOutQuart 緩動曲線,取代原本的線性插值
  • rightsideScrollPercentgoUpElement / scrollPercentElement 改為閉包緩存,避免每次滾動都查詢 DOM
  • overflowPaddingRpage-header / menus 元素改為閉包緩存
  • 漢堡選單切換時 document.getElementById 查詢結果緩存到 sidebarFn
  • adjustMenuclassList.toggle 包裹在 requestAnimationFrame
  • forPostFn 改為接收 $article 參數,內部所有函數(addHighlightTooladdPhotoFigcaptionrunLightboxscrollFnToDoaddTableWrapclickFnOfTagHidetabsFn)統一使用傳入的 $article 查詢,避免重複 document.getElementById('article-container')
  • tabsFn 改為事件委託,將點擊監聽綁在 $article 上而非每個 .tabs 元素
  • clickFnOfTagHide 改為事件委託,綁在 $article 上而非逐個 .hide-button 綁定
  • getActualHeight 改用 cloneNode(true) + 隱藏插入測量,取代原本遍歷父節點修改 style 的方式
  • 簡繁轉換的查找從 indexOf 改為 Map.has / Map.get,O(1) 查找
  • 簡繁字對映改為延遲初始化(getMaps),避免不必要的計算

... (truncated)

Commits
  • 93c6cfb Merge branch 'dev'
  • 77ec898 fix: exclude fancybox links from pjax and refactor series logic
  • 1b1a26e update
  • d8942c2 update
  • 6b44647 update
  • d8c890a Merge pull request #1812 from jerryc127/revert-1811-feat/knocket-chat
  • e1e2fb6 Merge pull request #1813 from jerryc127/master
  • a2dd42d Merge branch 'dev' into master
  • d7b4226 Revert "Add Knocket as a free live chat option (alongside Chatra/Tidio/Crisp)"
  • 891dcee update
  • Additional commits viewable in compare view

Dependabot compatibility score

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 show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @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 [hexo-theme-butterfly](https://github.com/jerryc127/hexo-theme-butterfly) from 5.5.4 to 5.6.1.
- [Release notes](https://github.com/jerryc127/hexo-theme-butterfly/releases)
- [Commits](jerryc127/hexo-theme-butterfly@5.5.4...5.6.1)

---
updated-dependencies:
- dependency-name: hexo-theme-butterfly
  dependency-version: 5.6.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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 Jul 21, 2026
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