Skip to content

v6.0.0

Compare
Choose a tag to compare
@endarova endarova released this 17 Jul 11:18
· 441 commits to release since this release
d2f7bc9

6.0.0 (2019, July 17)

Breaking changes

  • Applications can be build only with bundle workflow - in previous versions there were two ways to build your application - bundle and legacy workflow. With this release CLI allows building your app only in case you are using the bundle workflow. More information is available in this blopost
  • With older CLI versions you were able to run tns debug android and continue debugging after the command exits. In this release, when CLI exits, it clears all used resources, so you will not be able to continue the debug session. More information is available in this issue for more information.
  • --syncAllFiles option is not supported anymore - this option was added to force CLI to watch all files in node_modules. In 6.0 this is the default and only behavior - webpack watches all required files and CLI watches the platforms directories and package.json files of the plugins added as dependencies of the application.
  • Drop support for Xcode versions below 10 - new features for iOS require the latest Xcode versions, so we decided to require at least Xcode 10 for building the applications
  • Drop support for Node.js below 8 - Node.js 8 does not support these version anymore and so does our CLI. In case you are using such Node.js version, CLI will not allow you to execute any command, so you should upgrade to latest LTS version.
  • --platformTemplate option has been deleted. More information can be found in this issue.
  • tns init command has been deleted
  • tns clean app command has been deleted
  • Improved plugin development workflow may require changes in your daily work when creating plugins. More information can be found in this issue
  • When you pass --release, CLI will switch webpack in production mode. More information can be found in this issue
  • CLI now forces sourceMap generation by default when building in debug mode. You can disable them by passing --env.sourceMap false. souceMaps are disabled by default in release builds, you can enable them by passing --env.sourceMap.

New

Fixed

  • Fixed #2739: Unit test runner do not work in --watch mode
  • Fixed #2963: Confusing messages on preparing plugin
  • Fixed #3028: Local dependency brakes build
  • Fixed #3146: tns run ios shows "No reachable hosts" after running unit tests
  • Fixed #3351: If you delete the whole css data or the css file itself the changes are not going to be applied to the app
  • Fixed #3546: Your project have installed babel-traverse version null but Android platform requires version ^6.4.5
  • Fixed #3568: EXPORT FAILED fse.node has conflicting provisioning settings
  • Fixed #3630: cp: copyFileSync: could not write to dest file (code=EPERM)
  • Fixed #3767: Exception when delete a file from <plugin>/platforms/android
  • Fixed #3849: The livesync check if a file has modifications doesn't work as expected
  • Fixed #4219: Android debugging is leaking the debug session
  • Fixed #4239: Copy App_Resources directly to platforms/.../res (Android) or platforms/.../Resources (iOS) instead of copying them with Webpack
  • Fixed #4264 : When using --syncAllFiles on Android frequently crashes with error
  • Fixed #4480: [TypeScript & Vue project] When using --bundle changes made to a platform specific file in node_modules does not start a new build process
  • Fixed #4500: Changes to .js files located in node_modules causes the livesync to take upto 30 sec
  • Fixed #4513: Error when building for Android and using bcryptjs
  • Fixed #4607: Image replacement is not respected during tns run with hmr
  • Fixed #4647: CLI's checkForChanges method should not check all node_modules
  • Fixed #4658: [iOS] tns preview is including tns-core-modules in vendor.js
  • Fixed #4770: Incorrect execution of hooks where there is unresolved injected dependency