YUI 3.5.0 正式版發布
Yahoo! UI Library (YUI) 是一個開放源代碼的 JavaScript 函數庫,為了能建立一個高互動的網頁,它采用了AJAX, DHTML 和 DOM 等程式碼技術。它也包含了許多 CSS 資源。使用授權為 BSD許可證
YUI 包含完整的說明文件。它包含了兩種元件: 工具與控件,和一些 CSS 資源。
YUI 3.5.0 正式版發布了,可通過 CDN http://yui.yahooapis.com/3.5.0/build/yui/yui-min.js 或者 download 獲取.
該版本值得關注的改進包括:
- Availability of YUI in Node.js as an NPM module
- Formal introduction of “night”, our second skin offering
- Introduction of App, Button, CSSButton, Handlebars, Pjax, TestConsole components
- Refactoring of CSS Grids to be even more lightweight and versatile
- Refactoring of the Get utility for additional feature support and performance enhancements
- Refactoring of Loader to implement Get’s asynchronous functionality
- The Uploader component received an HTML5 implementation which includes drag-and-drop functionality, plus a much improved progressive enhancement scenario, granular queue management and accessibility.
- Keyboard navigation add to the Calendar component
- Enhancements to App, Charts, and DataTable components
- Numerous bug fixes
API 上需要注意的改動和廢棄的方法:
- The App Framework family of modules, including Model, Controller/Router, and View have received significant enhancements. An overview of the changes was covered in an earlier blog post, and a detailed list of changes can be found in the history file.
- We introduced asynchronous loading in Loader by default. This means that any script
Loader
injects into the page will be loaded asynchronously. This will decrease load time and improve performance by allowing the browser to fetch as many scripts at once as it can. If your custom modules are properly wrapped in aYUI.add
callback, you will see no difference at all. However, if you are loading custom modules that require ordered script loading (depends on another dynamic, unwrapped module), you will need to change your module config to tellLoader
to not load these modules with theasync
flag. You can do this by adding anasync: false
config to its module definition andY.Get.script
will not load it asynchronously. - Uploader was refactored in order to support HTML5 functionality when available. The 3.4.1 version was deprecated and made available as uploader-deprecated. A migration guide is available at http://yuilibrary.com/yui/docs/uploader/migration.html.
- An update to Charts custom formatting may cause backward compatibility issues when upgrading under certain circumstances. Please see the Known Issues section for more detail.
- DataTable was refactored in order to leverage Model, ModelList, and View. The 3.4.1 version was deprecated and made available as datatable-deprecated, datatable-base-deprecated, datatable-sort-deprecated, etc. A migration guide is available at http://yuilibrary.com/yui/docs/datatable/migration.html.
- A small number of methods, properties, and config options were deprecated in Get, but are still supported for backcompat. They’ll be removed in a future release. Full details are available in Get’s history file.
詳細列表請看 rollup of 3.5.0 changes
我們將很快發布 YUI 3.6 的路線圖
本文由用戶 openkk 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!