Skip to content

Instantly share code, notes, and snippets.

@wildjcrt
Last active November 30, 2018 14:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wildjcrt/36d6adad242865aa371e356fe72b382a to your computer and use it in GitHub Desktop.
Save wildjcrt/36d6adad242865aa371e356fe72b382a to your computer and use it in GitHub Desktop.

5.2 => 6.0 改了什麼?

根據 Milestone,尚未排出 alpha/beta 時程。

現有資訊整理來源:

目前已公開的重大更新

根據 CHANGELOG 列出重大更新

actioncable

  • 可分辨 ActionCable's redis connections

actionmailer

  • 動態新增/刪除 email observers and interceptors

actionpack

  • 新的 error page
  • signed/encrypted cookies 提升安全性
  • 動態 CSP (Content-Security-Policy) sources,與安全性有關

actionview

  • 在 log 新增 rendering 時的 Allocations 資訊

activejob

  • 支援 timezones

activemodel

  • full_message 支援 I18n
  • 支援指定欄位加密

activerecord (本次大改動幾乎都在這)

  • MySQL 資料庫預設為 utf8mb4,支援像是 emoji 以及更多 unicode 字元
  • create_or_find_by 處理 find_or_create_by 的 race condition 問題
  • 支援多資料庫
  • MySQL 8.0.13 以上,欄位的預設值跟 INDEX 可以用 expression

activestorage

  • 影像處理函式庫預設改用 ImageProcessing 和 libvips

activesupport

  • notification system 新增 event object 的支援
  • Recyclable cache keys
@zx1986
Copy link

zx1986 commented Nov 30, 2018

列車再起!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment