NativeScript Versions Save

⚡ Empowering JavaScript with native platform APIs. ✨ Best of all worlds (TypeScript, Swift, Objective C, Kotlin, Java). Use what you love ❤️ Angular, Capacitor, Ionic, React, Solid, Svelte, Vue with: iOS (UIKit, SwiftUI), Android (View, Jetpack Compose), Dart (Flutter) and you name it compatible.

8.4.4-core

1 year ago

Bug Fixes

Features

  • core: new autoFillTypes for newUsername, newPassword and oneTimeCode (#10159) (bff35e5)

8.4.3-core

1 year ago

Bug Fixes

  • android: WebView url and event handling (#10147) (#10148) (8444087)
  • ios: prevent layout in viewSafeAreaInsetsDidChange until first viewDidLayoutSubviews (#10151) (760bbd0)
  • ios: prevent transitionCoordinator usage during modal presentation (#10153) (d138ac0)
  • ios: TextField keyboard handling with emoji, autofill, and shortcuts (#10154) (00944bb)

8.4.2-core

1 year ago

Bug Fixes

  • android: backwards compat Java cast Float to Long for ApplicationSettings.getNumber (#10140) (7c1590a)
  • core: update metadata filtering for IOS 16 (#10133) (c461f1b)
  • ios: box shadow border radius (#10142) (6948f7c)
  • ios: navigatingTo event handling (#10120) (a4f28b8)
  • ios: reset additional insets if they're zero (#10134) (8b7d5ab)
  • listview: delegate handling removed from unloaded (#10138) (04c3d9a)
  • utils: ios to filter out null values (#10117) (4723114)

8.4.1-core

1 year ago

8.4.1 (2022-11-30)

Bug Fixes

  • core: circular imports of SDK_VERSION (82d60ae)

8.4.0-core

1 year ago

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)

Performance Improvements

Breaking Changes

utils/utils is just Utils

  • BEFORE
import { layout } from '@nativescript/core/utils/utils'
  • AFTER
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:

  1. 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');
  1. 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.

  • BEFORE tsconfig.json
"compilerOptions": {
  "target": "es2017",
  ...
  "lib": ["es6", "dom"],
  • AFTER
"compilerOptions": {
  "target": "es2020",
  ...  
  "lib": ["esnext", "dom"],

8.3.6-core

1 year ago

Bug Fixes

5.0.9-webpack

1 year ago

What's Changed

8.3.5-core

1 year ago

Bug Fixes

8.3.4-core

1 year ago

Bug Fixes

Features

  • core: make font style, weight, scale params optional (#9993) (4b0c812)

8.3.3-core

1 year ago

Bug Fixes

  • android: getScaledDimensions (#9992) (944d542)
  • ios: additional safe area insets were miscalculated if already set (#9991) (be6efc3)