Features
-
android: support drawable in ImageSource (#10098) (75eefa6)
-
android: use NestedScrollView for vertical ScrollView (#9199) (cfaa813)
-
core: support css font-variation-settings (#9995) (a5e3e22)
-
core: support for external XML UI compilers (#10008) (75503ef)
-
HtmlView: selectable property (#10057) (ca9c092)
-
types-android: API Level 33 (#10113) (c1187fe)
-
types-ios: 16.1 (#10114) (da78e0b)
-
utils: dismissKeyboard, copyToClipboard, setWindowBackgroundColor, getCurrentActivity and getResource (#10089) (2e1d2c1)
-
webview: adds iosAllowInlineMediaPlayback property (#10014) (4a0e1c9)
- TypeScript 4.8+ support and NativeClass decorator improvements (#10081) (7f069a7)
Bug Fixes
-
android: application fallback for
startActivity
(#10062) (f3a5c16)
-
android: file manipulation threw exception inside worker (#10076) (25c862e)
-
android: file system normalizePath (#10077) (497a9db)
-
android: modal status bar props applied to wrong window (#10049) (6934645)
-
android: normalize for API >= 26 (#10083) (e687e9d)
-
android: tappable spans aren't visible on single-line labels (#10055) (5765707)
-
android: ApplicationSettings return precise stored numbers (#10094) (fd98690)
-
android: memory leak with EditableTextBase (#10052) (501d310)
-
android: prevent flashing activity on app start (#9190) (6a9484a)
-
android: shared SDK_VERSION (#10090) (0226f47)
-
core: ellipsis at the end for Labels with maxLines (#10005) (6c60eab)
-
core: prevent a circular reference because of
SDK_VERSION
(#10097) (c957b48)
-
core: Color.isValid returned true for null/undefined (#10040) (9091e43)
-
core: font-weight allow passing number (#10072) (5f3f1ac)
-
core: windows build (#10056) (7860d51)
-
color: floating point color values (66e8e39)
-
core: deprecation notes for WeakRef clear and get (3019181)
-
core: WeakRef deprecation notes (b83ed39)
-
ios: animation layer resilience (#10060) (6cabcab)
-
ios: Color.fromIosColor returns wrong value (#10059) (b7d340f)
-
ios: ensure autocorrect not applied silently on IOS16 (#10032) (40b9e35)
-
ios: frame navigatingTo event (#10096) (6148955)
-
ios: stability around canceling an animation (b8d5372)
-
webpack: prevent hmr from patching __onLiveSync multiple times (#10103) (42f5dc5)
-
webpack: support angular 15.x (#10106) (f100109)
-
webpack: close compiler after run (#10080) (59ca35b)
-
webpack: make NativeClass transformer backwards compatible (59624a4)
Breaking Changes
utils/utils is just Utils
import { layout } from '@nativescript/core/utils/utils'
import { Utils } from '@nativescript/core'
Utils.layout
This will affect some plugins. If you use a plugin that encounters this issue you can do the following:
- Add a quick webpack alias to mitigate for now:
webpack.chainWebpack(config => {
config.resolve.alias.set('@nativescript/core/utils/utils', '@nativescript/core/utils');
config.resolve.alias.set('tns-core-modules/utils/utils', '@nativescript/core/utils');
config.resolve.alias.set('tns-core-modules', '@nativescript/core');
- Contribute a pull request to the plugin author.
WeakRef type
Core uses the latest WeakRef types and you can update your tsconfig to latest targets.
"compilerOptions": {
"target": "es2017",
...
"lib": ["es6", "dom"],
"compilerOptions": {
"target": "es2020",
...
"lib": ["esnext", "dom"],