nativescript 8.7.2 → 8.8.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (327) hide show
  1. package/lib/android-tools-info.js +0 -12
  2. package/lib/base-package-manager.js +0 -7
  3. package/lib/bootstrap.js +1 -5
  4. package/lib/bun-package-manager.js +1 -17
  5. package/lib/color.js +0 -3
  6. package/lib/commands/add-platform.js +0 -1
  7. package/lib/commands/apple-login.js +0 -1
  8. package/lib/commands/appstore-list.js +0 -1
  9. package/lib/commands/appstore-upload.js +0 -4
  10. package/lib/commands/build.js +2 -3
  11. package/lib/commands/clean.js +1 -22
  12. package/lib/commands/command-base.js +0 -1
  13. package/lib/commands/config.js +0 -3
  14. package/lib/commands/create-project.js +0 -6
  15. package/lib/commands/debug.js +1 -6
  16. package/lib/commands/deploy.js +2 -3
  17. package/lib/commands/extensibility/install-extension.js +0 -1
  18. package/lib/commands/extensibility/list-extensions.js +0 -1
  19. package/lib/commands/extensibility/uninstall-extension.js +0 -1
  20. package/lib/commands/fonts.js +0 -1
  21. package/lib/commands/generate-assets.js +0 -1
  22. package/lib/commands/generate-help.js +0 -1
  23. package/lib/commands/generate.js +2 -12
  24. package/lib/commands/info.js +0 -1
  25. package/lib/commands/install.js +0 -1
  26. package/lib/commands/list-platforms.js +0 -1
  27. package/lib/commands/migrate.js +0 -1
  28. package/lib/commands/platform-clean.js +0 -1
  29. package/lib/commands/plugin/add-plugin.js +0 -1
  30. package/lib/commands/plugin/build-plugin.js +0 -1
  31. package/lib/commands/plugin/create-plugin.js +0 -5
  32. package/lib/commands/plugin/list-plugins.js +0 -1
  33. package/lib/commands/plugin/remove-plugin.js +0 -2
  34. package/lib/commands/plugin/update-plugin.js +0 -1
  35. package/lib/commands/post-install.js +0 -6
  36. package/lib/commands/prepare.js +2 -3
  37. package/lib/commands/preview.js +0 -2
  38. package/lib/commands/remove-platform.js +0 -1
  39. package/lib/commands/resources/resources-update.js +0 -2
  40. package/lib/commands/run.js +0 -1
  41. package/lib/commands/setup.js +0 -1
  42. package/lib/commands/start.js +0 -1
  43. package/lib/commands/test-init.js +0 -4
  44. package/lib/commands/test.js +2 -9
  45. package/lib/commands/typings.js +1 -2
  46. package/lib/commands/update-platform.js +0 -5
  47. package/lib/commands/update.js +0 -2
  48. package/lib/common/bootstrap.js +0 -1
  49. package/lib/common/child-process.js +0 -3
  50. package/lib/common/codeGeneration/code-entity.js +0 -1
  51. package/lib/common/codeGeneration/code-printer.js +0 -1
  52. package/lib/common/command-params.js +0 -1
  53. package/lib/common/commands/analytics.js +0 -3
  54. package/lib/common/commands/autocompletion.js +0 -3
  55. package/lib/common/commands/device/device-log-stream.js +0 -1
  56. package/lib/common/commands/device/get-file.js +0 -2
  57. package/lib/common/commands/device/list-applications.js +0 -1
  58. package/lib/common/commands/device/list-devices.js +0 -3
  59. package/lib/common/commands/device/list-files.js +0 -2
  60. package/lib/common/commands/device/put-file.js +0 -2
  61. package/lib/common/commands/device/run-application.js +0 -1
  62. package/lib/common/commands/device/stop-application.js +0 -1
  63. package/lib/common/commands/device/uninstall-application.js +0 -1
  64. package/lib/common/commands/doctor.js +2 -3
  65. package/lib/common/commands/generate-messages.js +0 -1
  66. package/lib/common/commands/help.js +0 -1
  67. package/lib/common/commands/package-manager-get.js +0 -1
  68. package/lib/common/commands/package-manager-set.js +0 -1
  69. package/lib/common/commands/post-install.js +0 -1
  70. package/lib/common/commands/preuninstall.js +2 -11
  71. package/lib/common/commands/proxy/proxy-base.js +0 -4
  72. package/lib/common/commands/proxy/proxy-clear.js +0 -1
  73. package/lib/common/commands/proxy/proxy-get.js +0 -1
  74. package/lib/common/commands/proxy/proxy-set.js +0 -1
  75. package/lib/common/common-lib.js +0 -1
  76. package/lib/common/constants.js +0 -11
  77. package/lib/common/decorators.js +0 -48
  78. package/lib/common/dispatchers.js +1 -10
  79. package/lib/common/errors.js +3 -13
  80. package/lib/common/file-system.js +2 -13
  81. package/lib/common/header.js +0 -3
  82. package/lib/common/helpers.js +3 -89
  83. package/lib/common/host-info.js +0 -4
  84. package/lib/common/http-client.js +0 -20
  85. package/lib/common/logger/appenders/cli-appender.js +0 -4
  86. package/lib/common/logger/appenders/emit-appender.js +0 -4
  87. package/lib/common/logger/layouts/cli-layout.js +0 -1
  88. package/lib/common/logger/logger.js +0 -5
  89. package/lib/common/messages/messages.js +0 -6
  90. package/lib/common/mobile/android/android-application-manager.js +1 -20
  91. package/lib/common/mobile/android/android-debug-bridge-result-handler.js +0 -1
  92. package/lib/common/mobile/android/android-debug-bridge.js +0 -6
  93. package/lib/common/mobile/android/android-device-file-system.js +0 -4
  94. package/lib/common/mobile/android/android-device-hash-service.js +0 -3
  95. package/lib/common/mobile/android/android-device.js +0 -8
  96. package/lib/common/mobile/android/android-emulator-services.js +1 -2
  97. package/lib/common/mobile/android/android-ini-file-parser.js +0 -9
  98. package/lib/common/mobile/android/android-log-filter.js +0 -4
  99. package/lib/common/mobile/android/android-virtual-device-service.js +0 -26
  100. package/lib/common/mobile/android/device-android-debug-bridge.js +0 -1
  101. package/lib/common/mobile/android/genymotion/genymotion-service.js +0 -5
  102. package/lib/common/mobile/android/genymotion/virtualbox-service.js +0 -11
  103. package/lib/common/mobile/android/logcat-helper.js +1 -20
  104. package/lib/common/mobile/application-manager-base.js +0 -6
  105. package/lib/common/mobile/device-emitter.js +0 -4
  106. package/lib/common/mobile/device-log-emitter.js +0 -1
  107. package/lib/common/mobile/device-log-provider-base.js +0 -1
  108. package/lib/common/mobile/device-log-provider.js +0 -23
  109. package/lib/common/mobile/device-platforms-constants.js +0 -1
  110. package/lib/common/mobile/emulator-helper.js +0 -3
  111. package/lib/common/mobile/ios/device/ios-application-manager.js +0 -3
  112. package/lib/common/mobile/ios/device/ios-device-file-system.js +0 -1
  113. package/lib/common/mobile/ios/device/ios-device-operations.js +0 -4
  114. package/lib/common/mobile/ios/device/ios-device.js +0 -4
  115. package/lib/common/mobile/ios/ios-device-base.js +0 -1
  116. package/lib/common/mobile/ios/ios-device-product-name-mapper.js +0 -2
  117. package/lib/common/mobile/ios/ios-log-filter.js +0 -1
  118. package/lib/common/mobile/ios/simulator/ios-emulator-services.js +0 -4
  119. package/lib/common/mobile/ios/simulator/ios-sim-resolver.js +0 -1
  120. package/lib/common/mobile/ios/simulator/ios-simulator-application-manager.js +0 -6
  121. package/lib/common/mobile/ios/simulator/ios-simulator-device.js +0 -5
  122. package/lib/common/mobile/ios/simulator/ios-simulator-file-system.js +0 -1
  123. package/lib/common/mobile/ios/simulator/ios-simulator-log-provider.js +0 -1
  124. package/lib/common/mobile/local-to-device-path-data-factory.js +0 -1
  125. package/lib/common/mobile/log-filter.js +0 -2
  126. package/lib/common/mobile/logging-levels.js +0 -1
  127. package/lib/common/mobile/mobile-core/android-device-discovery.js +0 -2
  128. package/lib/common/mobile/mobile-core/android-emulator-discovery.js +0 -3
  129. package/lib/common/mobile/mobile-core/android-process-service.js +0 -32
  130. package/lib/common/mobile/mobile-core/device-discovery.js +0 -1
  131. package/lib/common/mobile/mobile-core/devices-service.js +0 -69
  132. package/lib/common/mobile/mobile-core/ios-device-discovery.js +0 -2
  133. package/lib/common/mobile/mobile-core/ios-simulator-discovery.js +0 -3
  134. package/lib/common/mobile/mobile-helper.js +0 -1
  135. package/lib/common/mobile/wp8/wp8-emulator-services.js +0 -1
  136. package/lib/common/opener.js +0 -1
  137. package/lib/common/os-info.js +0 -1
  138. package/lib/common/plist-parser.js +0 -1
  139. package/lib/common/project-helper.js +0 -1
  140. package/lib/common/prompter.js +1 -9
  141. package/lib/common/queue.js +0 -1
  142. package/lib/common/resource-loader.js +0 -1
  143. package/lib/common/services/auto-completion-service.js +1 -13
  144. package/lib/common/services/cancellation.js +1 -2
  145. package/lib/common/services/commands-service.js +6 -17
  146. package/lib/common/services/help-service.js +3 -11
  147. package/lib/common/services/hooks-service.js +0 -13
  148. package/lib/common/services/ios-notification-service.js +0 -1
  149. package/lib/common/services/json-file-settings-service.js +0 -6
  150. package/lib/common/services/lock-service.js +0 -6
  151. package/lib/common/services/message-contract-generator.js +0 -1
  152. package/lib/common/services/messages-service.js +0 -1
  153. package/lib/common/services/micro-templating-service.js +0 -6
  154. package/lib/common/services/net-service.js +0 -3
  155. package/lib/common/services/project-files-manager.js +0 -5
  156. package/lib/common/services/project-files-provider-base.js +0 -1
  157. package/lib/common/services/proxy-service.js +0 -1
  158. package/lib/common/services/qr.js +0 -1
  159. package/lib/common/services/settings-service.js +0 -1
  160. package/lib/common/services/xcode-select-service.js +0 -1
  161. package/lib/common/utils.js +0 -1
  162. package/lib/common/validators/project-name-validator.js +0 -1
  163. package/lib/common/validators/validation-result.js +0 -1
  164. package/lib/common/verify-node-version.js +1 -8
  165. package/lib/common/yok.js +11 -32
  166. package/lib/config.js +1 -22
  167. package/lib/constants-provider.js +0 -1
  168. package/lib/constants.js +0 -53
  169. package/lib/controllers/build-controller.js +3 -4
  170. package/lib/controllers/debug-controller.js +3 -8
  171. package/lib/controllers/deploy-controller.js +0 -1
  172. package/lib/controllers/migrate-controller.js +3 -91
  173. package/lib/controllers/platform-controller.js +1 -9
  174. package/lib/controllers/prepare-controller.js +4 -14
  175. package/lib/controllers/run-controller.js +1 -17
  176. package/lib/controllers/update-controller-base.js +0 -1
  177. package/lib/controllers/update-controller.js +0 -11
  178. package/lib/data/build-data.js +0 -1
  179. package/lib/data/controller-data-base.js +0 -1
  180. package/lib/data/debug-data.js +0 -1
  181. package/lib/data/platform-data.js +0 -1
  182. package/lib/data/prepare-data.js +0 -1
  183. package/lib/data/run-data.js +0 -1
  184. package/lib/detached-processes/cleanup-js-subprocess.js +2 -8
  185. package/lib/detached-processes/cleanup-process.js +14 -18
  186. package/lib/detached-processes/file-log-service.js +1 -2
  187. package/lib/device-path-provider.js +0 -1
  188. package/lib/device-sockets/ios/app-debug-socket-proxy-factory.js +0 -7
  189. package/lib/device-sockets/ios/notification.js +0 -3
  190. package/lib/device-sockets/ios/socket-request-executor.js +0 -3
  191. package/lib/helpers/android-bundle-validator-helper.js +1 -2
  192. package/lib/helpers/deploy-command-helper.js +0 -1
  193. package/lib/helpers/key-command-helper.js +2 -4
  194. package/lib/helpers/livesync-command-helper.js +1 -4
  195. package/lib/helpers/network-connectivity-validator.js +0 -1
  196. package/lib/helpers/options-track-helper.js +2 -3
  197. package/lib/helpers/package-path-helper.js +0 -1
  198. package/lib/helpers/platform-command-helper.js +2 -7
  199. package/lib/helpers/version-validator-helper.js +0 -1
  200. package/lib/key-commands/bootstrap.js +2 -3
  201. package/lib/key-commands/index.js +4 -5
  202. package/lib/nativescript-cli-lib-bootstrap.js +0 -4
  203. package/lib/nativescript-cli-lib.js +0 -1
  204. package/lib/nativescript-cli.js +1 -10
  205. package/lib/node/pbxproj-dom-xcode.js +0 -1
  206. package/lib/node/xcode.js +0 -1
  207. package/lib/node-package-manager.js +1 -11
  208. package/lib/options.js +116 -141
  209. package/lib/package-installation-manager.js +1 -8
  210. package/lib/package-manager.js +0 -2
  211. package/lib/platform-command-param.js +0 -1
  212. package/lib/pnpm-package-manager.js +1 -4
  213. package/lib/project-data.js +0 -12
  214. package/lib/providers/project-files-provider.js +0 -1
  215. package/lib/resolvers/livesync-service-resolver.js +0 -1
  216. package/lib/services/analytics/analytics-broker-process.js +6 -10
  217. package/lib/services/analytics/analytics-broker.js +1 -2
  218. package/lib/services/analytics/analytics-service.js +25 -29
  219. package/lib/services/analytics/google-analytics-provider.js +12 -13
  220. package/lib/services/analytics-settings-service.js +0 -5
  221. package/lib/services/android/android-bundle-tool-service.js +0 -1
  222. package/lib/services/android/gradle-build-args-service.js +2 -9
  223. package/lib/services/android/gradle-build-service.js +0 -1
  224. package/lib/services/android/gradle-command-service.js +0 -1
  225. package/lib/services/android-device-debug-service.js +0 -6
  226. package/lib/services/android-plugin-build-service.js +12 -43
  227. package/lib/services/android-project-service.js +4 -71
  228. package/lib/services/android-resources-migration-service.js +0 -7
  229. package/lib/services/apple-portal/apple-portal-application-service.js +0 -1
  230. package/lib/services/apple-portal/apple-portal-cookie-service.js +0 -1
  231. package/lib/services/apple-portal/apple-portal-session-service.js +4 -6
  232. package/lib/services/assets-generation/assets-generation-service.js +5 -16
  233. package/lib/services/build-artifacts-service.js +1 -2
  234. package/lib/services/build-data-service.js +0 -1
  235. package/lib/services/build-info-file-service.js +0 -1
  236. package/lib/services/cleanup-service.js +9 -13
  237. package/lib/services/cocoapods-platform-manager.js +0 -9
  238. package/lib/services/cocoapods-service.js +1 -21
  239. package/lib/services/debug-data-service.js +0 -1
  240. package/lib/services/debug-service-base.js +0 -7
  241. package/lib/services/device/device-install-app-service.js +1 -2
  242. package/lib/services/doctor-service.js +6 -21
  243. package/lib/services/extensibility-service.js +0 -8
  244. package/lib/services/files-hash-service.js +0 -1
  245. package/lib/services/hmr-status-service.js +0 -2
  246. package/lib/services/info-service.js +0 -1
  247. package/lib/services/initialize-service.js +1 -5
  248. package/lib/services/ios/export-options-plist-service.js +0 -4
  249. package/lib/services/ios/ios-signing-service.js +0 -4
  250. package/lib/services/ios/spm-service.js +0 -9
  251. package/lib/services/ios/xcodebuild-args-service.js +0 -9
  252. package/lib/services/ios/xcodebuild-command-service.js +0 -1
  253. package/lib/services/ios/xcodebuild-service.js +0 -1
  254. package/lib/services/ios-debugger-port-service.js +0 -1
  255. package/lib/services/ios-device-debug-service.js +0 -1
  256. package/lib/services/ios-entitlements-service.js +0 -1
  257. package/lib/services/ios-extensions-service.js +0 -1
  258. package/lib/services/ios-log-filter.js +0 -20
  259. package/lib/services/ios-native-target-service.js +4 -6
  260. package/lib/services/ios-project-service.js +1 -23
  261. package/lib/services/ios-provision-service.js +0 -3
  262. package/lib/services/ios-watch-app-service.js +0 -1
  263. package/lib/services/ip-service.js +0 -2
  264. package/lib/services/itmstransporter-service.js +0 -1
  265. package/lib/services/karma-execution.js +0 -2
  266. package/lib/services/livesync/android-device-livesync-service-base.js +0 -1
  267. package/lib/services/livesync/android-device-livesync-service.js +0 -2
  268. package/lib/services/livesync/android-device-livesync-sockets-service.js +0 -3
  269. package/lib/services/livesync/android-livesync-service.js +0 -1
  270. package/lib/services/livesync/android-livesync-tool.js +0 -4
  271. package/lib/services/livesync/device-livesync-service-base.js +0 -2
  272. package/lib/services/livesync/ios-device-livesync-service.js +0 -7
  273. package/lib/services/livesync/ios-livesync-service.js +0 -2
  274. package/lib/services/livesync/livesync-socket.js +0 -1
  275. package/lib/services/livesync/platform-livesync-service-base.js +0 -5
  276. package/lib/services/livesync-process-data-service.js +0 -1
  277. package/lib/services/log-parser-service.js +0 -1
  278. package/lib/services/log-source-map-service.js +0 -15
  279. package/lib/services/marking-mode-service.js +5 -8
  280. package/lib/services/metadata-filtering-service.js +0 -1
  281. package/lib/services/npm-config-service.js +0 -4
  282. package/lib/services/pacote-service.js +0 -7
  283. package/lib/services/performance-service.js +1 -3
  284. package/lib/services/platform/add-platform-service.js +2 -47
  285. package/lib/services/platform/platform-validation-service.js +0 -1
  286. package/lib/services/platform/prepare-native-platform-service.js +2 -5
  287. package/lib/services/platform-environment-requirements.js +3 -8
  288. package/lib/services/platform-project-service-base.js +0 -1
  289. package/lib/services/platforms-data-service.js +0 -1
  290. package/lib/services/plugins-service.js +2 -18
  291. package/lib/services/prepare-data-service.js +0 -1
  292. package/lib/services/project-backup-service.js +0 -4
  293. package/lib/services/project-changes-service.js +3 -12
  294. package/lib/services/project-cleanup-service.js +0 -2
  295. package/lib/services/project-config-service.js +1 -18
  296. package/lib/services/project-data-service.js +7 -36
  297. package/lib/services/project-name-service.js +0 -1
  298. package/lib/services/project-service.js +0 -10
  299. package/lib/services/project-templates-service.js +2 -3
  300. package/lib/services/qr-code-terminal-service.js +0 -1
  301. package/lib/services/require-service.js +0 -1
  302. package/lib/services/start-service.js +0 -1
  303. package/lib/services/temp-service.js +0 -1
  304. package/lib/services/terminal-spinner-service.js +0 -2
  305. package/lib/services/test-execution-service.js +2 -9
  306. package/lib/services/test-initialization-service.js +0 -4
  307. package/lib/services/timeline-profiler-service.js +0 -1
  308. package/lib/services/user-settings-service.js +0 -1
  309. package/lib/services/versions-service.js +4 -6
  310. package/lib/services/watch-ignore-list-service.js +0 -1
  311. package/lib/services/webpack/webpack-compiler-service.js +1 -42
  312. package/lib/services/xcconfig-service.js +0 -2
  313. package/lib/services/xcproj-service.js +0 -1
  314. package/lib/shared-event-bus.js +0 -6
  315. package/lib/sys-info.js +1 -2
  316. package/lib/tools/config-manipulation/config-transformer.js +0 -12
  317. package/lib/tools/node-modules/node-modules-builder.js +0 -1
  318. package/lib/tools/node-modules/node-modules-dependencies-builder.js +0 -6
  319. package/lib/yarn-package-manager.js +0 -1
  320. package/lib/yarn2-package-manager.js +0 -3
  321. package/package.json +1 -1
  322. package/vendor/aab-tool/README.txt +1 -1
  323. package/vendor/aab-tool/bundletool.jar +0 -0
  324. package/vendor/gradle-plugin/build.gradle +21 -15
  325. package/node_modules/@npmcli/move-file/node_modules/mkdirp/CHANGELOG.md +0 -15
  326. package/node_modules/rimraf/CHANGELOG.md +0 -65
  327. package/node_modules/stringify-package/CHANGELOG.md +0 -16
@@ -34,10 +34,8 @@ class TestExecutionService {
34
34
  platform = platform.toLowerCase();
35
35
  this.platform = platform;
36
36
  const projectData = this.$projectDataService.getProjectData(liveSyncInfo.projectDir);
37
- // We need the dependencies installed here, so we can start the Karma server.
38
37
  yield this.$pluginsService.ensureAllDependenciesAreInstalled(projectData);
39
38
  const karmaConfig = this.getKarmaConfiguration(platform, projectData);
40
- // In case you want to debug the unit test runner, add "--inspect-brk=<port>" as a first element in the array of args.
41
39
  const karmaRunner = this.$childProcess.spawn(process.execPath, [path.join(__dirname, "karma-execution.js")], { stdio: ["inherit", "inherit", "inherit", "ipc"] });
42
40
  const launchKarmaTests = (karmaData) => __awaiter(this, void 0, void 0, function* () {
43
41
  this.$logger.trace("## Unit-testing: Parent process received message", karmaData);
@@ -54,8 +52,6 @@ class TestExecutionService {
54
52
  const configJs = this.generateConfig(port, configOptions);
55
53
  this.$fs.writeFile(path.join(liveSyncInfo.projectDir, TestExecutionService.CONFIG_FILE_NAME), configJs);
56
54
  }
57
- // Prepare the project AFTER the TestExecutionService.CONFIG_FILE_NAME file is created in node_modules
58
- // so it will be sent to device.
59
55
  yield this.$runController.run({
60
56
  liveSyncInfo,
61
57
  deviceDescriptors,
@@ -68,13 +64,12 @@ class TestExecutionService {
68
64
  }
69
65
  launchKarmaTests(karmaData).catch((result) => {
70
66
  this.$logger.error(result);
71
- process.exit(130 /* ErrorCodes.KARMA_FAIL */);
67
+ process.exit(130);
72
68
  });
73
69
  });
74
70
  return new Promise((resolve, reject) => {
75
71
  karmaRunner.on("exit", (exitCode) => {
76
72
  if (exitCode !== 0) {
77
- //End our process with a non-zero exit code
78
73
  const testError = new Error("Test run failed.");
79
74
  reject(testError);
80
75
  }
@@ -89,7 +84,7 @@ class TestExecutionService {
89
84
  canStartKarmaServer(projectData) {
90
85
  return __awaiter(this, void 0, void 0, function* () {
91
86
  let canStartKarmaServer = true;
92
- const requiredDependencies = ["@nativescript/unit-test-runner"]; // we need @nativescript/unit-test-runner at the local level because of hooks!
87
+ const requiredDependencies = ["@nativescript/unit-test-runner"];
93
88
  _.each(requiredDependencies, (dep) => {
94
89
  if (!projectData.dependencies[dep] && !projectData.devDependencies[dep]) {
95
90
  canStartKarmaServer = false;
@@ -139,7 +134,6 @@ class TestExecutionService {
139
134
  karmaConfig.logLevel = "DEBUG";
140
135
  }
141
136
  if (!this.$options.watch) {
142
- // Setting singleRun to true will automatically start the tests when new browser (device in our case) is registered in karma.
143
137
  karmaConfig.singleRun = true;
144
138
  }
145
139
  if (this.$options.debugBrk) {
@@ -158,4 +152,3 @@ TestExecutionService.CONFIG_FILE_NAME = `node_modules/${constants.TEST_RUNNER_NA
158
152
  TestExecutionService.SOCKETIO_JS_FILE_NAME = `node_modules/${constants.TEST_RUNNER_NAME}/socket.io.js`;
159
153
  exports.TestExecutionService = TestExecutionService;
160
154
  yok_1.injector.register("testExecutionService", TestExecutionService);
161
- //# sourceMappingURL=test-execution-service.js.map
@@ -34,9 +34,6 @@ class TestInitializationService {
34
34
  });
35
35
  return targetFrameworkDependencies;
36
36
  }
37
- /**
38
- * This method is used from test-init.md file so it is not allowed to use "this" inside the method's body.
39
- */
40
37
  getFrameworkNames() {
41
38
  const configsPath = path.join(__dirname, "..", "..", "config");
42
39
  const dependenciesPath = path.join(configsPath, "test-dependencies.json");
@@ -55,4 +52,3 @@ __decorate([
55
52
  ], TestInitializationService.prototype, "getFrameworkNames", null);
56
53
  exports.TestInitializationService = TestInitializationService;
57
54
  yok_1.injector.register("testInitializationService", TestInitializationService);
58
- //# sourceMappingURL=test-initialization-service.js.map
@@ -98,4 +98,3 @@ __decorate([
98
98
  ], TimelineProfilerService.prototype, "isEnabled", null);
99
99
  exports.TimelineProfilerService = TimelineProfilerService;
100
100
  yok_1.injector.register("timelineProfilerService", TimelineProfilerService);
101
- //# sourceMappingURL=timeline-profiler-service.js.map
@@ -32,4 +32,3 @@ class UserSettingsService {
32
32
  }
33
33
  exports.UserSettingsService = UserSettingsService;
34
34
  yok_1.injector.register("userSettingsService", UserSettingsService);
35
- //# sourceMappingURL=user-settings-service.js.map
@@ -59,7 +59,6 @@ class VersionsService {
59
59
  const tnsCoreModulesPath = path.join(nodeModulesPath, constants.TNS_CORE_MODULES_NAME);
60
60
  const dependsOnNonScopedPackage = !!this.projectData.dependencies[constants.TNS_CORE_MODULES_NAME];
61
61
  const dependsOnScopedPackage = !!this.projectData.dependencies[constants.SCOPED_TNS_CORE_MODULES];
62
- // ensure the dependencies are installed, so we can get their actual versions from node_modules
63
62
  if (!this.$fs.exists(nodeModulesPath) ||
64
63
  (dependsOnNonScopedPackage && !this.$fs.exists(tnsCoreModulesPath)) ||
65
64
  (dependsOnScopedPackage && !this.$fs.exists(scopedPackagePath))) {
@@ -88,16 +87,16 @@ class VersionsService {
88
87
  }
89
88
  getRuntimesVersions(platform) {
90
89
  return __awaiter(this, void 0, void 0, function* () {
91
- const iosRuntime = this.$projectDataService.getRuntimePackage(this.projectData.projectDir, "ios" /* constants.PlatformTypes.ios */);
92
- const androidRuntime = this.$projectDataService.getRuntimePackage(this.projectData.projectDir, "android" /* constants.PlatformTypes.android */);
90
+ const iosRuntime = this.$projectDataService.getRuntimePackage(this.projectData.projectDir, "ios");
91
+ const androidRuntime = this.$projectDataService.getRuntimePackage(this.projectData.projectDir, "android");
93
92
  let runtimes = [];
94
93
  if (!platform) {
95
94
  runtimes = [iosRuntime, androidRuntime];
96
95
  }
97
- else if (platform === "ios" /* PlatformTypes.ios */) {
96
+ else if (platform === "ios") {
98
97
  runtimes.push(iosRuntime);
99
98
  }
100
- else if (platform === "android" /* PlatformTypes.android */) {
99
+ else if (platform === "android") {
101
100
  runtimes.push(androidRuntime);
102
101
  }
103
102
  const runtimesVersions = yield Promise.all(runtimes.map((runtime) => __awaiter(this, void 0, void 0, function* () {
@@ -195,4 +194,3 @@ VersionsService.UP_TO_DATE_MESSAGE = "up to date";
195
194
  VersionsService.UPDATE_AVAILABLE_MESSAGE = "Update available";
196
195
  VersionsService.NOT_INSTALLED_MESSAGE = "not installed";
197
196
  yok_1.injector.register("versionsService", VersionsService);
198
- //# sourceMappingURL=versions-service.js.map
@@ -18,4 +18,3 @@ class WatchIgnoreListService {
18
18
  }
19
19
  exports.WatchIgnoreListService = WatchIgnoreListService;
20
20
  yok_1.injector.register("watchIgnoreListService", WatchIgnoreListService);
21
- //# sourceMappingURL=watch-ignore-list-service.js.map
@@ -25,8 +25,7 @@ const constants_1 = require("../../constants");
25
25
  const yok_1 = require("../../common/yok");
26
26
  const package_path_helper_1 = require("../../helpers/package-path-helper");
27
27
  class WebpackCompilerService extends events_1.EventEmitter {
28
- constructor($options, $errors, $childProcess, $fs, $hooksService, $hostInfo, $logger, $mobileHelper, $cleanupService, $packageManager, $packageInstallationManager // private $sharedEventBus: ISharedEventBus
29
- ) {
28
+ constructor($options, $errors, $childProcess, $fs, $hooksService, $hostInfo, $logger, $mobileHelper, $cleanupService, $packageManager, $packageInstallationManager) {
30
29
  super();
31
30
  this.$options = $options;
32
31
  this.$errors = $errors;
@@ -61,23 +60,14 @@ class WebpackCompilerService extends events_1.EventEmitter {
61
60
  });
62
61
  childProcess.on("message", (message) => {
63
62
  this.$logger.trace("Message from webpack", message);
64
- // if we are on webpack5 - we handle HMR in a slightly different way
65
63
  if (typeof message === "object" &&
66
64
  "version" in message &&
67
65
  "type" in message) {
68
- // first compilation can be ignored because it will be synced regardless
69
- // handling it here would trigger 2 syncs
70
66
  if (isFirstWebpackWatchCompilation) {
71
67
  isFirstWebpackWatchCompilation = false;
72
68
  resolve(childProcess);
73
69
  return;
74
70
  }
75
- // if ((message as IWebpackMessage).type === "hmr-status") {
76
- // // we pass message through our event-bus to be handled wherever needed
77
- // // in this case webpack-hmr-status-service listens for this event
78
- // this.$sharedEventBus.emit("webpack:hmr-status", message);
79
- // return;
80
- // }
81
71
  return this.handleHMRMessage(message, platformData, projectData, prepareData);
82
72
  }
83
73
  if (message === "Webpack compilation complete.") {
@@ -92,7 +82,6 @@ class WebpackCompilerService extends events_1.EventEmitter {
92
82
  prepareData.hmr ? message.hash : "";
93
83
  return;
94
84
  }
95
- // Persist the previousHash value before calling `this.getUpdatedEmittedFiles` as it will modify the expectedHashes object with the current hash
96
85
  const previousHash = this.expectedHashes[platformData.platformNameLowerCase];
97
86
  let result;
98
87
  if (prepareData.hmr) {
@@ -117,7 +106,6 @@ class WebpackCompilerService extends events_1.EventEmitter {
117
106
  platform: platformData.platformNameLowerCase,
118
107
  };
119
108
  this.$logger.trace("Generated data from webpack message:", data);
120
- // the hash of the compilation is the same as the previous one and there are only hot updates produced
121
109
  if (data.hasOnlyHotUpdateFiles && previousHash === message.hash) {
122
110
  return;
123
111
  }
@@ -196,9 +184,6 @@ class WebpackCompilerService extends events_1.EventEmitter {
196
184
  }
197
185
  shouldUsePreserveSymlinksOption() {
198
186
  return __awaiter(this, void 0, void 0, function* () {
199
- // pnpm does not require symlink (https://github.com/nodejs/node-eps/issues/46#issuecomment-277373566)
200
- // and it also does not work in some cases.
201
- // Check https://github.com/NativeScript/nativescript-cli/issues/5259 for more information
202
187
  const currentPackageManager = yield this.$packageManager.getPackageManagerName();
203
188
  const res = currentPackageManager !== constants_1.PackageManagers.pnpm;
204
189
  return res;
@@ -250,28 +235,16 @@ class WebpackCompilerService extends events_1.EventEmitter {
250
235
  });
251
236
  envData.verbose = envData.verbose || this.$logger.isVerbose();
252
237
  envData.production = envData.production || prepareData.release;
253
- // add the config file name to the env data so the webpack process can read the
254
- // correct config file when resolving the CLI lib and the config service
255
- // we are explicitly setting it to false to force using the defaults
256
238
  envData.config =
257
239
  (_b = (_a = process.env.NATIVESCRIPT_CONFIG_NAME) !== null && _a !== void 0 ? _a : this.$options.config) !== null && _b !== void 0 ? _b : "false";
258
- // explicitly set the env variable
259
240
  process.env.NATIVESCRIPT_CONFIG_NAME = envData.config;
260
- // The snapshot generation is wrongly located in the Webpack plugin.
261
- // It should be moved in the Native Prepare of the CLI or a Gradle task in the Runtime.
262
- // As a workaround, we skip the mksnapshot, xxd and android-ndk calls based on skipNativePrepare.
263
- // In this way the plugin will prepare only the snapshot JS entry without any native prepare and
264
- // we will able to execute cloud builds with snapshot without having any local snapshot or Docker setup.
265
- // TODO: Remove this flag when we remove the native part from the plugin.
266
241
  envData.skipSnapshotTools =
267
242
  prepareData.nativePrepare && prepareData.nativePrepare.skipNativePrepare;
268
- // only set sourceMap if not explicitly set through a flag
269
243
  if (typeof ((_c = prepareData === null || prepareData === void 0 ? void 0 : prepareData.env) === null || _c === void 0 ? void 0 : _c.sourceMap) === "undefined") {
270
244
  if (!prepareData.release) {
271
245
  envData.sourceMap = true;
272
246
  }
273
247
  }
274
- // convert string to boolean
275
248
  if (envData.sourceMap === "true" || envData.sourceMap === "false") {
276
249
  envData.sourceMap = envData.sourceMap === "true";
277
250
  }
@@ -322,15 +295,6 @@ class WebpackCompilerService extends events_1.EventEmitter {
322
295
  }
323
296
  getUpdatedEmittedFiles(allEmittedFiles, chunkFiles, nextHash, platform) {
324
297
  const currentHash = this.getCurrentHotUpdateHash(allEmittedFiles);
325
- // This logic is needed as there are already cases when webpack doesn't emit any files physically.
326
- // We've set noEmitOnErrors in webpack.config.js based on noEmitOnError from tsconfig.json,
327
- // so webpack doesn't emit any files when noEmitOnErrors: true is set in webpack.config.js and
328
- // there is a compilation error in the source code. On the other side, hmr generates new hot-update files
329
- // on every change and the hash of the next hmr update is written inside hot-update.json file.
330
- // Although webpack doesn't emit any files, hmr hash is still generated. The hash is generated per compilation no matter
331
- // if files will be emitted or not. This way, the first successful compilation after fixing the compilation error generates
332
- // a hash that is not the same as the one expected in the latest emitted hot-update.json file.
333
- // As a result, the hmr chain is broken and the changes are not applied.
334
298
  const isHashValid = nextHash
335
299
  ? this.expectedHashes[platform] === currentHash
336
300
  : true;
@@ -349,7 +313,6 @@ class WebpackCompilerService extends events_1.EventEmitter {
349
313
  let hotHash;
350
314
  const hotUpdateScripts = emittedFiles.filter((x) => x.endsWith(".hot-update.js"));
351
315
  if (hotUpdateScripts && hotUpdateScripts.length) {
352
- // the hash is the same for each hot update in the current compilation
353
316
  const hotUpdateName = hotUpdateScripts[0];
354
317
  const matcher = /^(.+)\.(.+)\.hot-update/gm;
355
318
  const matches = matcher.exec(hotUpdateName);
@@ -369,7 +332,6 @@ class WebpackCompilerService extends events_1.EventEmitter {
369
332
  });
370
333
  }
371
334
  handleHMRMessage(message, platformData, projectData, prepareData) {
372
- // handle new webpack hmr packets
373
335
  this.$logger.trace("Received message from webpack process:", message);
374
336
  if (message.type !== "compilation") {
375
337
  return;
@@ -377,7 +339,6 @@ class WebpackCompilerService extends events_1.EventEmitter {
377
339
  this.$logger.trace("Webpack build done!");
378
340
  const files = message.data.emittedAssets.map((asset) => path.join(platformData.appDestinationDirectoryPath, "app", asset));
379
341
  const staleFiles = message.data.staleAssets.map((asset) => path.join(platformData.appDestinationDirectoryPath, "app", asset));
380
- // extract last hash from emitted filenames
381
342
  const lastHash = (() => {
382
343
  const absoluteFileNameWithLastHash = files.find((fileName) => fileName.endsWith("hot-update.js"));
383
344
  if (!absoluteFileNameWithLastHash) {
@@ -390,7 +351,6 @@ class WebpackCompilerService extends events_1.EventEmitter {
390
351
  }
391
352
  })();
392
353
  if (!files.length) {
393
- // ignore compilations if no new files are emitted
394
354
  return;
395
355
  }
396
356
  this.emit(constants_1.WEBPACK_COMPILATION_COMPLETE, {
@@ -440,4 +400,3 @@ __decorate([
440
400
  ], WebpackCompilerService.prototype, "startWebpackProcess", null);
441
401
  exports.WebpackCompilerService = WebpackCompilerService;
442
402
  yok_1.injector.register("webpackCompilerService", WebpackCompilerService);
443
- //# sourceMappingURL=webpack-compiler-service.js.map
@@ -66,7 +66,6 @@ class XcconfigService {
66
66
  }
67
67
  });
68
68
  if (isPropertyParsed) {
69
- // property can be an empty string, so we don't check for that.
70
69
  return property;
71
70
  }
72
71
  }
@@ -75,4 +74,3 @@ class XcconfigService {
75
74
  }
76
75
  exports.XcconfigService = XcconfigService;
77
76
  yok_1.injector.register("xcconfigService", XcconfigService);
78
- //# sourceMappingURL=xcconfig-service.js.map
@@ -9,4 +9,3 @@ class XcprojService {
9
9
  }
10
10
  }
11
11
  yok_1.injector.register("xcprojService", XcprojService);
12
- //# sourceMappingURL=xcproj-service.js.map
@@ -2,12 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const events_1 = require("events");
4
4
  const yok_1 = require("./common/yok");
5
- /**
6
- * Event Bus used by different services to emit state changes and
7
- * allow listening for these state changes without needing a reference
8
- * to the emitting service.
9
- */
10
5
  class SharedEventBus extends events_1.EventEmitter {
11
6
  }
12
7
  yok_1.injector.register("sharedEventBus", SharedEventBus);
13
- //# sourceMappingURL=shared-event-bus.js.map
package/lib/sys-info.js CHANGED
@@ -93,7 +93,7 @@ class SysInfo {
93
93
  if (macOSVersion && macOSVersion < constants_1.MacOSVersions.HighSierra) {
94
94
  return {
95
95
  message: (0, util_1.format)(constants_1.MacOSDeprecationStringFormat, macOSVersion),
96
- severity: "high" /* SystemWarningsSeverity.high */,
96
+ severity: "high",
97
97
  };
98
98
  }
99
99
  return null;
@@ -118,4 +118,3 @@ __decorate([
118
118
  ], SysInfo.prototype, "getSupportedNodeVersionRange", null);
119
119
  exports.SysInfo = SysInfo;
120
120
  yok_1.injector.register("sysInfo", SysInfo);
121
- //# sourceMappingURL=sys-info.js.map
@@ -55,7 +55,6 @@ class ConfigTransformer {
55
55
  const parts = key.split(".");
56
56
  const name = parts.shift();
57
57
  const property = this.getProperty(name, parent);
58
- // no android key, add it to parent to root
59
58
  if (!property) {
60
59
  return undefined;
61
60
  }
@@ -65,14 +64,11 @@ class ConfigTransformer {
65
64
  if (!_parent) {
66
65
  return undefined;
67
66
  }
68
- // add nonExistent.deep to android: {}
69
67
  return this.getProperty(parts.join("."), _parent);
70
68
  }
71
- // if we have a parent, we are reading the property from it
72
69
  if (parent) {
73
70
  return parent.getProperty(key);
74
71
  }
75
- // otherwise we just read it from the root exports object
76
72
  return this.getProperty(key, this.getDefaultExportValue());
77
73
  }
78
74
  addProperty(key, value, parent = null) {
@@ -185,22 +181,15 @@ class ConfigTransformer {
185
181
  }
186
182
  this.setInitializerValue(initializer, newValue);
187
183
  }
188
- /**
189
- * @internal
190
- */
191
184
  getFullText() {
192
185
  return this.config.getFullText();
193
186
  }
194
- /**
195
- * @internal
196
- */
197
187
  getValue(key) {
198
188
  return this.getPropertyValue(this.getProperty(key));
199
189
  }
200
190
  setValue(key, value) {
201
191
  const property = this.getProperty(key);
202
192
  if (!property) {
203
- // add new property
204
193
  this.addProperty(key, value);
205
194
  }
206
195
  else {
@@ -210,4 +199,3 @@ class ConfigTransformer {
210
199
  }
211
200
  }
212
201
  exports.ConfigTransformer = ConfigTransformer;
213
- //# sourceMappingURL=config-transformer.js.map
@@ -40,4 +40,3 @@ class NodeModulesBuilder {
40
40
  }
41
41
  exports.NodeModulesBuilder = NodeModulesBuilder;
42
42
  yok_1.injector.register("nodeModulesBuilder", NodeModulesBuilder);
43
- //# sourceMappingURL=node-modules-builder.js.map
@@ -56,18 +56,14 @@ class NodeModulesDependenciesBuilder {
56
56
  let modulePath = (0, resolve_package_path_1.resolvePackagePath)(depDescription.name, {
57
57
  paths: [parentModulesPath],
58
58
  });
59
- // perhaps traverse up the tree here?
60
59
  if (!modulePath) {
61
- // fallback to searching in the root path
62
60
  modulePath = (0, resolve_package_path_1.resolvePackagePath)(depDescription.name, {
63
61
  paths: [rootPath],
64
62
  });
65
63
  }
66
- // if we failed to find the module...
67
64
  if (!modulePath) {
68
65
  return null;
69
66
  }
70
- // if we already resolved this dependency, we return null to avoid a duplicate resolution
71
67
  if (resolvedDependencies.some((r) => {
72
68
  return r.name === depDescription.name && r.directory === modulePath;
73
69
  })) {
@@ -92,7 +88,6 @@ class NodeModulesDependenciesBuilder {
92
88
  const packageJsonContents = this.$fs.readJson(packageJsonPath);
93
89
  dependency.version = packageJsonContents.version;
94
90
  if (!!packageJsonContents.nativescript) {
95
- // add `nativescript` property, necessary for resolving plugins
96
91
  dependency.nativescript = packageJsonContents.nativescript;
97
92
  }
98
93
  dependency.dependencies = _.keys(packageJsonContents.dependencies);
@@ -103,4 +98,3 @@ class NodeModulesDependenciesBuilder {
103
98
  }
104
99
  exports.NodeModulesDependenciesBuilder = NodeModulesDependenciesBuilder;
105
100
  yok_1.injector.register("nodeModulesDependenciesBuilder", NodeModulesDependenciesBuilder);
106
- //# sourceMappingURL=node-modules-dependencies-builder.js.map
@@ -132,4 +132,3 @@ __decorate([
132
132
  ], YarnPackageManager.prototype, "getCachePath", null);
133
133
  exports.YarnPackageManager = YarnPackageManager;
134
134
  yok_1.injector.register("yarn", YarnPackageManager);
135
- //# sourceMappingURL=yarn-package-manager.js.map
@@ -46,8 +46,6 @@ class Yarn2PackageManager extends base_package_manager_1.BasePackageManager {
46
46
  }
47
47
  const packageJsonPath = path.join(pathToSave, "package.json");
48
48
  const jsonContentBefore = this.$fs.readJson(packageJsonPath);
49
- // remove unsupported flags
50
- // todo: refactor all package managers to map typed flags to the actual flags
51
49
  const cleanedConfig = _.omit(config, ["save-dev", "save-exact"]);
52
50
  const flags = this.getFlagsString(cleanedConfig, true);
53
51
  let params = [];
@@ -143,4 +141,3 @@ __decorate([
143
141
  ], Yarn2PackageManager.prototype, "getCachePath", null);
144
142
  exports.Yarn2PackageManager = Yarn2PackageManager;
145
143
  yok_1.injector.register("yarn2", Yarn2PackageManager);
146
- //# sourceMappingURL=yarn2-package-manager.js.map
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "nativescript",
3
3
  "main": "./lib/nativescript-cli-lib.js",
4
- "version": "8.7.2",
4
+ "version": "8.8.0-alpha.1",
5
5
  "author": "NativeScript <support@nativescript.org>",
6
6
  "description": "Command-line interface for building NativeScript projects",
7
7
  "bin": {
@@ -1 +1 @@
1
- Downloaded from https://github.com/google/bundletool/releases/tag/1.8.2
1
+ Downloaded from https://github.com/google/bundletool/releases/tag/1.15.6
Binary file
@@ -11,11 +11,11 @@ buildscript {
11
11
  def getDepPlatformDir = { dep ->
12
12
  file("${project.ext.USER_PROJECT_ROOT}/${project.ext.PLATFORMS_ANDROID}/${dep.directory}/$PLATFORMS_ANDROID")
13
13
  }
14
- def computeKotlinVersion = { -> project.hasProperty("kotlinVersion") ? kotlinVersion : "1.8.20" }
14
+ def computeKotlinVersion = { -> project.hasProperty("kotlinVersion") ? kotlinVersion : "2.0.0-RC1" }
15
15
  def kotlinVersion = computeKotlinVersion()
16
16
  repositories {
17
17
  google()
18
- jcenter()
18
+ mavenCentral()
19
19
  }
20
20
  dependencies {
21
21
  classpath 'com.android.tools.build:gradle:{{runtimeAndroidPluginVersion}}'
@@ -135,7 +135,6 @@ allprojects {
135
135
  url 'https://maven.google.com/'
136
136
  name 'Google'
137
137
  }
138
- jcenter()
139
138
  if (pluginDependencies.size() > 0) {
140
139
  flatDir {
141
140
  dirs pluginDependencies
@@ -145,13 +144,29 @@ allprojects {
145
144
  }
146
145
 
147
146
 
148
- def computeCompileSdkVersion = { -> project.hasProperty("compileSdk") ? compileSdk : 31 }
149
- def computeTargetSdkVersion = { -> project.hasProperty("targetSdk") ? targetSdk : 31 as int }
147
+ def computeCompileSdkVersion = { -> project.hasProperty("compileSdk") ? compileSdk : 34 }
148
+ def computeTargetSdkVersion = { -> project.hasProperty("targetSdk") ? targetSdk : 34 as int }
150
149
  def computeBuildToolsVersion = { ->
151
- project.hasProperty("buildToolsVersion") ? buildToolsVersion : "31.0.0"
150
+ project.hasProperty("buildToolsVersion") ? buildToolsVersion : "34.0.0"
152
151
  }
153
152
 
154
153
  android {
154
+ namespace "{{pluginNamespace}}"
155
+
156
+ kotlinOptions {
157
+ jvmTarget = '17'
158
+ }
159
+
160
+ compileOptions {
161
+ sourceCompatibility JavaVersion.VERSION_17
162
+ targetCompatibility JavaVersion.VERSION_17
163
+ }
164
+
165
+
166
+ if (project.hasProperty("ndkVersion")) {
167
+ ndkVersion project.ndkVersion
168
+ }
169
+
155
170
  def applyPluginGradleConfigurations = { ->
156
171
  nativescriptDependencies.each { dep ->
157
172
  def includeGradlePath = "${getDepPlatformDir(dep)}/include.gradle"
@@ -205,15 +220,6 @@ task addDependenciesFromNativeScriptPlugins {
205
220
  }
206
221
  }
207
222
 
208
- afterEvaluate {
209
- def generateBuildConfig = project.hasProperty("generateBuildConfig") ? project.generateBuildConfig : false
210
- def generateR = project.hasProperty("generateR") ? project.generateR : false
211
- generateReleaseBuildConfig.enabled = generateBuildConfig
212
- generateDebugBuildConfig.enabled = generateBuildConfig
213
- generateReleaseResValues.enabled = generateR
214
- generateDebugResValues.enabled = generateR
215
- }
216
-
217
223
  tasks.whenTaskAdded({ DefaultTask currentTask ->
218
224
  if (currentTask.name == 'bundleRelease' || currentTask.name == 'bundleDebug') {
219
225
  def generateBuildConfig = project.hasProperty("generateBuildConfig") ? project.generateBuildConfig : false
@@ -1,15 +0,0 @@
1
- # Changers Lorgs!
2
-
3
- ## 1.0
4
-
5
- Full rewrite. Essentially a brand new module.
6
-
7
- - Return a promise instead of taking a callback.
8
- - Use native `fs.mkdir(path, { recursive: true })` when available.
9
- - Drop support for outdated Node.js versions. (Technically still works on
10
- Node.js v8, but only 10 and above are officially supported.)
11
-
12
- ## 0.x
13
-
14
- Original and most widely used recursive directory creation implementation
15
- in JavaScript, dating back to 2010.
@@ -1,65 +0,0 @@
1
- # v3.0
2
-
3
- - Add `--preserve-root` option to executable (default true)
4
- - Drop support for Node.js below version 6
5
-
6
- # v2.7
7
-
8
- - Make `glob` an optional dependency
9
-
10
- # 2.6
11
-
12
- - Retry on EBUSY on non-windows platforms as well
13
- - Make `rimraf.sync` 10000% more reliable on Windows
14
-
15
- # 2.5
16
-
17
- - Handle Windows EPERM when lstat-ing read-only dirs
18
- - Add glob option to pass options to glob
19
-
20
- # 2.4
21
-
22
- - Add EPERM to delay/retry loop
23
- - Add `disableGlob` option
24
-
25
- # 2.3
26
-
27
- - Make maxBusyTries and emfileWait configurable
28
- - Handle weird SunOS unlink-dir issue
29
- - Glob the CLI arg for better Windows support
30
-
31
- # 2.2
32
-
33
- - Handle ENOENT properly on Windows
34
- - Allow overriding fs methods
35
- - Treat EPERM as indicative of non-empty dir
36
- - Remove optional graceful-fs dep
37
- - Consistently return null error instead of undefined on success
38
- - win32: Treat ENOTEMPTY the same as EBUSY
39
- - Add `rimraf` binary
40
-
41
- # 2.1
42
-
43
- - Fix SunOS error code for a non-empty directory
44
- - Try rmdir before readdir
45
- - Treat EISDIR like EPERM
46
- - Remove chmod
47
- - Remove lstat polyfill, node 0.7 is not supported
48
-
49
- # 2.0
50
-
51
- - Fix myGid call to check process.getgid
52
- - Simplify the EBUSY backoff logic.
53
- - Use fs.lstat in node >= 0.7.9
54
- - Remove gently option
55
- - remove fiber implementation
56
- - Delete files that are marked read-only
57
-
58
- # 1.0
59
-
60
- - Allow ENOENT in sync method
61
- - Throw when no callback is provided
62
- - Make opts.gently an absolute path
63
- - use 'stat' if 'lstat' is not available
64
- - Consistent error naming, and rethrow non-ENOENT stat errors
65
- - add fiber implementation
@@ -1,16 +0,0 @@
1
- # Change Log
2
-
3
- All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
-
5
- <a name="1.0.1"></a>
6
- ## [1.0.1](https://github.com/npm/stringify-package/compare/v1.0.0...v1.0.1) (2019-09-30)
7
-
8
-
9
- ### Bug Fixes
10
-
11
- * strict comparison ([0c5675f](https://github.com/npm/stringify-package/commit/0c5675f)), closes [#2](https://github.com/npm/stringify-package/issues/2)
12
-
13
-
14
-
15
- <a name="1.0.0"></a>
16
- # 1.0.0 (2018-07-18)