@unitybase/adminui-vue #

Added #

5.24.25 2024-10-02 #
  • added en-US date picker localization. Used in case application.localization.irregularLangToLocaleMap in ubConfig.json contains {"en": "en-US"} key-value

@unitybase/adminui-pub #

Fixed #

5.24.99 2024-10-02 #
  • UBApp: use generateTabId method to generate correct tab ID via direct links and prevent opening second identical tab

@unitybase/cs-shared #

Added #

5.24.6 2024-10-02 #
  • UBDomain: added new property description for models. It is taken from the description property of models package.json. For UB server < 5.24.21 property is empty.
  • added new method formatByPattern.addIrregularLangToLocales({lang: locale}) what allow to override default lang -> locale conversion. Called automatically by AsyncConnection and from inside server using value from application.localization.irregularLangToLocaleMap ubConfig section

@unitybase/ub #

Added #

5.25.37 2024-10-02 #
  • declarative language to locale: new section in ubConfig.json application.localization.irregularLangToLocaleMap can contain a language to locale transformation rules. For example, by default UB consider en language is en-GB locale, therefore formatByPattern.formatDate('2021-12-30', 'date') returns 30/12/2021 (dd/mm/yy), but if we define "irregularLangToLocaleMap": {"en": "en-US"} in config, the same function will return 12/30/2021 (mm/dd/yy) as in American locale. Prior to these changes, the developer had to use the JS function formatByPattern.setLang2LocaleHook in the model to achieve the same result
  • allLocales endpoint now combine not only /model/locale/lang-${lang}.json files, but also /model/locale/lang-${locale}.json. This allows to define a different localization for different locale, for example by adding locale/lang-en-US.json for US.

Chores #

5.25.38 2024-10-12 #
  • ubConfig.schema.json: improved schema for configuration section security.dstu.iit.additionalKeys

@unitybase/uba #

Added #

5.24.21 2024-10-12 #
  • new optional parameters added for uba_user.changeOtherUserPassword method:
    • @param {boolean} [ctx.mParams.skipOnMatch=false] skip change password in case it match current (to be used in migrations only)
    • @param {boolean} [ctx.mParams.newerExpire=false] set lastChangeDate to infinity, so password newer expire

@unitybase/ubcli #

Fixed #

5.25.43 2024-10-02 #
  • ubcli generateNginxCfg: generated config now contains fix for nginx mime.types what not including .mjs extension. In case of multiple UB servers may produce warning during nginx -T, but still works