You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+25
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,31 @@
1
1
NativeScript CLI Changelog
2
2
================
3
3
4
+
4.0.2 (2018, May 18)
5
+
==
6
+
7
+
### Fixed
8
+
*[Fixed #3595](https://github.com/NativeScript/nativescript-cli/issues/3595): Do not track local paths in Analytics
9
+
*[Fixed #3597](https://github.com/NativeScript/nativescript-cli/issues/3597): Users who subscribe to Progess Newsletter are not informed for the privacy policy
*[Fixed #1548](https://github.com/NativeScript/nativescript-cli/issues/1548): `--sdk` flag not working properly when starting emulators in iOS
20
+
*[Fixed #2131](https://github.com/NativeScript/nativescript-cli/issues/2131): Simulators with `(` in name are not started after `tns run ios --device <device_name>`
21
+
*[Fixed #2727](https://github.com/NativeScript/nativescript-cli/issues/2727): Passing more than one parameter on `tns create` returns unappropriate error message
22
+
*[Fixed #3529](https://github.com/NativeScript/nativescript-cli/issues/3529): iOS logging does not work on multiple simulators
23
+
*[Fixed #3536](https://github.com/NativeScript/nativescript-cli/issues/3536): Message for tracking in Google Analytics is always printed
24
+
*[Fixed #3554](https://github.com/NativeScript/nativescript-cli/issues/3554): NativeScript is not compatible with Node.js 10.x.x
25
+
*[Fixed #3557](https://github.com/NativeScript/nativescript-cli/pull/3557): Asset generation should not fail in case some App_Resources are missing.
26
+
*[Fixed #3560](https://github.com/NativeScript/nativescript-cli/issues/3560): Android build fails when path to app has space and plugin should be build
.catch(err=>console.error(`Error while checking for PID: ${err}`));
1152
1157
```
1153
1158
1159
+
## sysInfo
1160
+
The `sysInfo` module exposes methods to get the current environment setup and warnings for it.
1161
+
1162
+
### getSupportedNodeVersionRange
1163
+
The `getSupportedNodeVersionRange` method gives information about the supported Node.js versions for the current CLI. The result is a valid semver range, for example `>=6.0.0`.
1164
+
1165
+
* Definition
1166
+
```TypeScript
1167
+
/**
1168
+
* Returns the value of engines.node key from CLI's package.json file.
1169
+
* @return{string} The range of supported Node.js versions.
The `getSystemWarnings` methods returns all deprecation warnings for current environment. For example, in case the support for the current OS is deprecated by CLI, the method will return array with one message describing the deprecation.
1182
+
1183
+
* Definition
1184
+
```TypeScript
1185
+
/**
1186
+
* Gets all global warnings for the current environment, for example Node.js version compatibility, OS compatibility, etc.
1187
+
* @return{Promise<string[]>} All warnings. Empty array is returned in case the system is setup correctly.
1188
+
*/
1189
+
getSystemWarnings():Promise<string[]>;
1190
+
```
1191
+
1192
+
* Usage
1193
+
```JavaScript
1194
+
tns.sysInfo.getSystemWarnings()
1195
+
.then(warnings=> {
1196
+
warnings.forEach(warn=>console.log(warn));
1197
+
})
1198
+
.catch(err=>console.error(`Error while trying to get system warnings: ${err}`));
1199
+
```
1154
1200
1155
1201
## How to add a new method to Public API
1156
1202
CLI is designed as command line tool and when it is used as a library, it does not give you access to all of the methods. This is mainly implementation detail. Most of the CLI's code is created to work in command line, not as a library, so before adding method to public API, most probably it will require some modification.
$injector.require("usbLiveSyncService","./services/livesync/livesync-service");// The name is used in https://github.com/NativeScript/nativescript-dev-typescript
exportconstMacOSDeprecationStringFormat="Support for macOS %s is deprecated and will be removed in one of the next releases of NativeScript. Please, upgrade to the latest macOS version.";
publicstaticAgreeToReceiveEmailMsg="I agree to receive email communications from Progress Software or its Partners (`https://www.progress.com/partners/partner-directory`),"+
188
+
"containing information about Progress Software's products. Consent may be withdrawn at any time.";
189
+
publicstaticReviewPrivacyPolicyMsg=`You can review the Progress Software Privacy Policy at \`${PROGRESS_PRIVACY_POLICY_URL}\``;
190
+
publicstaticPromptMsg="Input your e-mail address to agree".green+" or "+"leave empty to decline".red.bold+":";
// Prevent cases where liveSync is called consecutive times with the same device, for example [ A, B, C ] and then [ A, B, D ] - we want to execute initialSync only for D.
// Prevent cases where liveSync is called consecutive times with the same device, for example [ A, B, C ] and then [ A, B, D ] - we want to execute initialSync only for D.
0 commit comments