Releases: NativeScript/nativescript-cli
Releases · NativeScript/nativescript-cli
v6.0.0
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 -
bundleandlegacyworkflow. 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 androidand 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. --syncAllFilesoption is not supported anymore - this option was added to force CLI to watch all files innode_modules. In 6.0 this is the default and only behavior - webpack watches all required files and CLI watches theplatformsdirectories andpackage.jsonfiles 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.
--platformTemplateoption has been deleted. More information can be found in this issue.tns initcommand has been deletedtns clean appcommand 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
- Implemented #2368: Compiling in other path (dist), no in same path (src/app)
- Implemented #2417: Show TypeScript line numbers in stack traces
- Implemented #2776: Add ability to ignore files from final package when build in release
- Implemented #3378: Running app with locally installed plugin should transpile the plugin's TypeScript files
- Implemented #4497: Ability to detect within webpack if app is being built for release
- Implemented #4604: Logs and errors from devices always point to bundle/vendor files
- Implemented #4646: Introduce command (
tns migrate) to migrate old project to 6.0.0 requirements - Implemented #4648: Drop support for Node.js < 8
- Implemented #4649: Deprecate support for Node.js < 10
- Implemented #4650: Add official support for Node.js 12
- Implemented #4651: Add drawer navigation prompt when vue flavor is selected on
tns create - Implemented #4667: Support yarn hoisted packages in a workspace context
- Implemented #4692: CLI should watch package.json files in the application
- Implemented #4731: Drop support for Xcode < 10
- Implemented #4863: Delete
tns initcommand - Implemented #4863: Delete
tns clean appcommand - Implemented #4865: Improve plugin development workflow
- Implemented #4867: Delete
--platformTemplateoption
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 iosshows "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_Resourcesdirectly toplatforms/.../res(Android) orplatforms/.../Resources(iOS) instead of copying them with Webpack - Fixed #4264 : When using
--syncAllFileson Android frequently crashes with error - Fixed #4480: [TypeScript & Vue project] When using
--bundlechanges made to a platform specific file innode_modulesdoes not start a new build process - Fixed #4500: Changes to
.jsfiles located innode_modulescauses thelivesyncto 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
v5.4.2
v5.4.1
Fixed
Fixed #4226: Slowly attaching to debugger on real iOS device with bundle
Fixed #4584: Invalid App Store Icon Error, while uploading an iOS app with CLI generated icons
Fixed #4608: Misleading message for min runtime version
Fixed #4664: tns cloud run... command does not respect useLegacyWorkflow flag
Fixed #4665: Incorrect error is shown when unsupported Node.js version is used
Fixed #4664: $logger fails to print null objects
Fixed #4665: Deprecate support for tns init command
v5.4.0
Implemented
- Implemented #3993: Improve
ctrl + chandling. - Implemented #4374: Add
iCloudContainerEnvironmentbuild option. - Implemented #4394: Enable Using Hot Module Replacement by Default for New Projects
- Implemented #4518: Show deprecation messages for things that will be dropped for 6.0.0 release
- Implemented #4541: [Beta] Allow integration of Apple Watch application in NativeScript app
- Implemented #4548: Deprecate support for the Legacy Workflow
- Implemented #4602: Streamline CLI's logger
Fixed
- Fixed #4280: Incorrect message if you delete app's folder and run command with
--pathin it - Fixed #4512: App's Podfile should be applied last
- Fixed #4573: logcat process is not restarted in some cases
- Fixed #4593: Node.js processes not killed after
tns createon macOS when analytics are enabled - Fixed #4598: app.css changes don't apply when debugging with --debug-brk
- Fixed #4606: Unable to build application for iOS with nativescript-bottombar
- Fixed #4616:
tns plugin createcommand hangs
v5.3.4
Merge pull request #4559 from NativeScript/vladimirov/prepare-xcconfi…
v5.3.3
Merge pull request #4547 from NativeScript/fatme/publish fix: fix upload to appstore for accounts without 2 factor authentication
v5.3.2
Fixed
- Fixed #1798: Test init command doesn't add a sample test in TypeScript for TypeScript/Angular projects
- Fixed #4498: API: Change the AppStore ids for kinvey scanner and preview app
- Fixed #4504: Custom tagged versions of android runtime are not supported
- Fixed #4510: Handle HTTP 304 response status code
v5.3.1
Merge pull request #4496 from NativeScript/fatme/change-kinvey-schema fix: change ksplay to kspreview schema
v5.3.0
Implemented
- Implemented #3965: [Beta] Support for iOS app extensions
- Implemented #4389: Provide a way to use Hot Module Replacement (
--hmr) by default for a project - Implemented #4392: Ability to run unit tests with
--bundle - Implemented #4456: Official support for Hot Module Replacement (
--hmr)
Fixed
- Fixed #4403: Exception in iOS app entry point not shown in terminal
- Fixed #4440:
NativeScript can only run in Xcode version 6.0 or greatererror is shown on every iOS command - Fixed #4441: Nothing happens with app on device if you delete a file with bundle
- Fixed #4458: Warnings for short imports are shown for browser code
- Fixed #4459: API: Raise
debuggerAttachedonly if app is restarted during debug
v5.2.4
Merge pull request #4434 from NativeScript/vladimirov/fix-short-imports fix: warnings for short imports should be shown correctly