我們發佈了官方外掛倉庫 & hexo-util 的新版本。
warehouse 3.0.0
重大變更
- 將建構子函數替換為類別宣告 #30,請參閱文件以獲取更多關於更新到新語法的資訊。
- chore: 移除 node 6 的支援 #49
重構
- 移除舊的相容性程式碼 #57
- 轉換方法定義 #52
- 分割 Schema 類別 #58
- refactor: 使用 instanceof Date 而非 util.isDate #37
hexo-util 1.3.1
修復
- fix(encode_url): 跳過編碼非網址 #102
hexo-util 1.3.0
重大變更
- fix(html_tag): 預設情況下跳脫 HTML 並編碼網址 #93
- 插入
false
作為第四個參數以停用跳脫
- 例如:
htmlTag('a', {href: 'http://foo.com/'}, '<b>bold</b>', false)
功能
修復
- fix(encodeURL): 只編碼路徑一次 #92
- fix(html_tag): 編碼網址相關屬性的網址值,並跳過跳脫/編碼
<style>
#96
- fix(html_tag): 編碼 style 標籤中的 url() #101
hexo-util 1.2.0
功能
- 新增 gravatar() #81
- 新增 url_for() & relative_url() #82
- 新增 full_url_for() #84
修復
- fix(encodeURL): 支援雜湊/錨點、驗證和連接埠號 #85