工具發佈:2015 年 6 月 10 日
2015 年 6 月 10 日
新版本的 cordova 工具現已上線!
發佈重點
- CB-8898 引入新的
cordova requirements
指令 - CB-8441
cordova prepare --browserify
現在支援第三方外掛在執行時建置您的cordova.js
!試試看! - CB-9075 固定版本的平台將包含平台修補更新,而無需發佈新的工具版本。
更新您的工具
-
如果您已安裝
cordova
npm install -g cordova
-
如果您已安裝
plugman
npm install -g plugman <!--more-->
變更包括
平台更新
當將這些平台新增到您的專案時,預設會使用以下版本。這些平台版本是最近發佈的,工具的預設值已更新
cordova-lib
- CB-9087 將 cordova-windows 的固定版本更新至
4.0.0
- CB-9108 使用
--usegit
新增平台時處理版本範圍。 - CB-8898 當在 cordova 專案外部呼叫
requirements
時,錯誤訊息更具描述性。 - CB-8007 兩個 cordova 外掛修改
*-Info.plist CFBundleURLTypes
- CB-9065 允許通過簡短名稱移除外掛。
- CB-9001 根據
config.xml
設定WMAppManifest.xml
的 Author、Description 和 Publisher 屬性 - CB-9073 允許在專案路徑包含
&
符號時新增平台 - CB-8783 - 還原
all
作為 Orientation 的全域偏好值(目前僅限於 iOS) - CB-8783 - Orientation 的
default
值不支援橫向和縱向方向。(新的all
值) - CB-9075 固定版本的平台將包含修補更新,而無需發佈新的工具版本
- CB-9051 如果刪除平台資料夾,外掛不會重新新增。
- CB-9025 在 cordova-lib
prepare
中呼叫 Windowsprepare
邏輯。這關閉了 #217 - CB-8965 當為 browserify 工作流程新增新平台時,將平台特定的 js 複製到
platform_www
中 - 新增支援指定建置設定檔。如果未指定,則將專案根目錄中的
build.json
用作預設值。這關閉了 #215 - CB-9030:修改 superspawn 以支援
chmod
選項。當值為 truthy 時,嘗試在執行前將目標檔案模式設定為 755。對於常見的 CLI 操作(compile、run 和 plugman 中的步驟),將此參數指定為 truthy。由於該特定模式屬於舊版支援,因此未將其添加到 hooks runner 中。 - CB-6462 CB-6026 - Orientation 偏好設定現在也會更新
UISupportedInterfaceOrientations~ipad
。 - CB-8898 引入
requirements
cordova 模組 - 將 elementtree 相依性更新至 0.1.6。請注意,它有一個破壞性的 API 變更。https://github.com/racker/node-elementtree/issues/24 (關閉 #209)
- CB-8757 解析符號連結,以避免相對路徑問題(關閉 #212)
- CB-8956 移除對
registry.npmjs.org
的硬式編碼引用 - CB-8934 修復了 cordova create 中未使用專案 config.json 的回歸錯誤
- CB-8908 通過
--depth=1
使通過 git 提取更快 - CB-8897 使 Android 上的預設圖示/啟動畫面映射到 mdpi
cordova-cli
- CB-8898 將有關
requirements
的遺失部分添加到一般 cordova 說明中 - CB-8898 引入
cordova requirements
指令 - 已將
cordova-lib
相依性更新至5.1.1
cordova-js
- CB-9057:更新 Windows 的
cordova.js
以引用base.js
,而不是完整的WinJS.js
。 - CB-6865 為具有任何 id 的外掛新增了 browserify 支援
- CB-8441 新增了遺失的 requires 並更新了 npm 執行指令碼
- CB-8441 不再需要
platformVersion
標誌。從相依性平台版本中獲取版本 - CB-8441 更新了工作流程,以便在可用時使用
cordova-js-src
- CB-8441 grunt compile 現在使用平台相依性
cordova-js-src
目錄來獲取平台特定的執行檔 - CB-8441 新增了平台作為開發相依性
- 為支援 Windows 10 新增了範本封裝的
WinJS
參考。這關閉了 #111 - CB-8996 Windows 修復了無效的 null 比較。這關閉了 #110。
- 已將 browserify 相依性更新至 10.1.3
- android:刪除
PRIVATE_API
橋接模式列舉,因為它已在4.0.0
中移除 - CB-8838 - 為
WK_WEBVIEW_BINDING
停用了commandQueue
。(關閉 #107)
plugman
- 已將
cordova-lib
相依性更新至5.1.1
Cordova CLI 5.1.1 的固定平台版本
- Cordova Amazon-FireOS:3.6.3
- Cordova Android:4.0.2
- Cordova BlackBerry10:3.7.0
- Cordova Browser:3.6.0
- Cordova FirefoxOS:3.6.3
- Cordova iOS:3.8.0
- Cordova Ubuntu:4.0.0
- Cordova Windows:4.0.0
- Cordova WP8:3.8.1