跳轉到

2312 → 2402

本次 UOF X 由 2312 升級至 2402 注意事項如下

新功能

  • 升級 PrimeNG 至 16.9.1
npm install primeng@16.9.1

破壞性異動

  • 套件包由 EJs Framework 改為 PrimeNG 16.9.1。

使用指令移除 EJs 所有套件。

npm uninstall @syncfusion/ej2 @syncfusion/ej2-angular-base @syncfusion/ej2-angular-buttons @syncfusion/ej2-angular-calendars @syncfusion/ej2-angular-dropdowns @syncfusion/ej2-angular-grids @syncfusion/ej2-angular-inputs @syncfusion/ej2-angular-lists @syncfusion/ej2-angular-maps @syncfusion/ej2-angular-navigations @syncfusion/ej2-angular-notifications @syncfusion/ej2-angular-popups @syncfusion/ej2-angular-progressbar @syncfusion/ej2-angular-richtexteditor @syncfusion/ej2-angular-splitbuttons @syncfusion/ej2-base

安裝套件包。

npm install @uofx/app-components@2.7.0 @uofx/core@2.7.0 @uofx/error-code@1.6.0 @uofx/icon@1.5.0 @uofx/plugin@2.0.0 @uofx/web-components@3.3.1
  • @uofx/plugin-api 更名為 @uofx/plugin,並將 api 功能收至 @uofx/plugin 內,所以請先移除 @uofx/plugin-api 後安裝 @uofx/plugin,所有原先有使用 @uofx/plugin-api 的路徑須改為 @uofx/plugin/api。
  • 請參考我們所提供 sample 複製並覆蓋 webpack.config.js

  • 將所有設定檔加上對應的$schema位置(請務必先安裝新版@uofx/plugin套件包),請參考 配置與設定

  • 調整 plugin.manifest.json

    • 新增可設定$schema
    • 新增可設定schemaVersion,本次出版為"94"
    • 移除vers,版本設定移至 plugin.versions.json 內。
plugin.manifest.json
{
  "$schema": "../node_modules/@uofx/plugin/schema/plugin-manifest.schema.json",
  "schemaVersion": "94",
  "name": "一等一外掛模組範例",
  "code": "Ede.Sample",
  "description": "新一代 UOF X 外掛模組",
  "manufacturerCode": "Ede",
  "manufacturer": "一等一科技",
  "production": false
}
  • 新增 plugin.versions.json,修改了原先的相依特性,可以使用多版本以及設定變更說明。
plugin.versions.json
{
  "$schema": "../node_modules/@uofx/plugin/schema/plugin-versions.schema.json",
  "versions": [
    {
      "version": "3.0",
      "minimumUOFXVersion": "2.94.0",
      "changelog": [
        "新增了2個欄位",
        "修正了一些錯誤"
      ]
    },
    {
      "version": "2.0",
      "minimumUOFXVersion": "2.90.0",
      "changelog": [
        "本次更新除掉了幾條蟲"
      ]
    },
    {
      "version": "1.0",
      "minimumUOFXVersion": "2.89.1",
      "changelog": [
        "全新對話功能上線!"
      ]
    }
  ]
}
  • angular.json 中需要額外匯出檔案,所以要在 architect.build.options.assets 中新增 src/plugin.versions.json

升級步驟

  1. 請先調整專案並重新部署
  2. 由於配置與設定檔有變更,請先更新 UOF x
  3. 才至 UOF X 中操作檢查更新

若不慎先使用了檢查更新

  1. 若有「重載設定檔」可以使用,則直接操作。
  2. 若沒有,請重新從 步驟1,加入新的版號與站台,再次操作 步驟3 即可。

相依套件包

套件名稱 版本
@uofx/app-components 2.7.0
@uofx/app-native 1.1.3
@uofx/core 2.7.0
@uofx/error-code 1.6.0
@uofx/icon 1.5.0
@uofx/plugin 2.0.0
@uofx/web-components 3.3.0