fork-ts-checker-webpack-plugin 6.5.0 → 7.0.0

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 (318) hide show
  1. package/README.md +20 -83
  2. package/lib/files-change.d.ts +17 -0
  3. package/lib/files-change.js +47 -0
  4. package/lib/{reporter/FilesMatch.d.ts → files-match.d.ts} +0 -0
  5. package/lib/{ForkTsCheckerWebpackPluginOptions.js → files-match.js} +0 -0
  6. package/lib/formatter/{BasicFormatter.d.ts → basic-formatter.d.ts} +1 -1
  7. package/lib/formatter/{BasicFormatter.js → basic-formatter.js} +1 -0
  8. package/lib/formatter/{CodeFrameFormatter.d.ts → code-frame-formatter.d.ts} +1 -1
  9. package/lib/formatter/{CodeFrameFormatter.js → code-frame-formatter.js} +5 -4
  10. package/lib/formatter/formatter-config.d.ts +5 -0
  11. package/lib/formatter/formatter-config.js +26 -0
  12. package/lib/formatter/formatter-options.d.ts +12 -0
  13. package/lib/{eslint-reporter/EsLintReporterOptions.js → formatter/formatter-options.js} +0 -0
  14. package/lib/formatter/{Formatter.d.ts → formatter.d.ts} +1 -1
  15. package/lib/{eslint-reporter/types/eslint.js → formatter/formatter.js} +0 -0
  16. package/lib/formatter/index.d.ts +6 -7
  17. package/lib/formatter/index.js +16 -8
  18. package/lib/formatter/{WebpackFormatter.d.ts → webpack-formatter.d.ts} +1 -1
  19. package/lib/formatter/{WebpackFormatter.js → webpack-formatter.js} +6 -6
  20. package/lib/hooks/intercept-done-to-get-dev-server-tap.d.ts +5 -0
  21. package/lib/hooks/intercept-done-to-get-dev-server-tap.js +18 -0
  22. package/lib/hooks/tap-after-compile-to-add-dependencies.d.ts +5 -0
  23. package/lib/hooks/{tapAfterCompileToAddDependencies.js → tap-after-compile-to-add-dependencies.js} +5 -1
  24. package/lib/hooks/tap-after-compile-to-get-issues.d.ts +5 -0
  25. package/lib/hooks/{tapAfterCompileToGetIssues.js → tap-after-compile-to-get-issues.js} +10 -6
  26. package/lib/hooks/{tapAfterEnvironmentToPatchWatching.d.ts → tap-after-environment-to-patch-watching.d.ts} +2 -2
  27. package/lib/hooks/tap-after-environment-to-patch-watching.js +22 -0
  28. package/lib/hooks/tap-done-to-async-get-issues.d.ts +5 -0
  29. package/lib/hooks/{tapDoneToAsyncGetIssues.js → tap-done-to-async-get-issues.js} +21 -21
  30. package/lib/hooks/tap-error-to-log-message.d.ts +4 -0
  31. package/lib/hooks/{tapErrorToLogMessage.js → tap-error-to-log-message.js} +10 -9
  32. package/lib/hooks/tap-start-to-run-workers.d.ts +8 -0
  33. package/lib/hooks/tap-start-to-run-workers.js +95 -0
  34. package/lib/hooks/tap-stop-to-terminate-workers.d.ts +5 -0
  35. package/lib/hooks/tap-stop-to-terminate-workers.js +26 -0
  36. package/lib/index.d.ts +1 -1
  37. package/lib/index.js +2 -2
  38. package/lib/infrastructure-logger.d.ts +9 -0
  39. package/lib/infrastructure-logger.js +14 -0
  40. package/lib/issue/index.d.ts +3 -3
  41. package/lib/issue/index.js +13 -6
  42. package/lib/issue/issue-config.d.ts +8 -0
  43. package/lib/issue/issue-config.js +29 -0
  44. package/lib/issue/{IssueLocation.d.ts → issue-location.d.ts} +2 -2
  45. package/lib/issue/issue-location.js +36 -0
  46. package/lib/issue/issue-match.d.ts +5 -0
  47. package/lib/issue/{IssueMatch.js → issue-match.js} +5 -5
  48. package/lib/issue/{IssueOptions.d.ts → issue-options.d.ts} +2 -2
  49. package/lib/{formatter/Formatter.js → issue/issue-options.js} +0 -0
  50. package/lib/issue/{IssuePosition.d.ts → issue-position.d.ts} +0 -0
  51. package/lib/issue/{IssuePosition.js → issue-position.js} +1 -0
  52. package/lib/issue/{IssuePredicate.d.ts → issue-predicate.d.ts} +1 -1
  53. package/lib/issue/{IssuePredicate.js → issue-predicate.js} +1 -0
  54. package/lib/issue/{IssueSeverity.d.ts → issue-severity.d.ts} +0 -0
  55. package/lib/issue/{IssueSeverity.js → issue-severity.js} +1 -0
  56. package/lib/issue/{IssueWebpackError.d.ts → issue-webpack-error.d.ts} +3 -3
  57. package/lib/issue/{IssueWebpackError.js → issue-webpack-error.js} +8 -6
  58. package/lib/issue/{Issue.d.ts → issue.d.ts} +2 -3
  59. package/lib/issue/{Issue.js → issue.js} +6 -7
  60. package/lib/{logger/Logger.d.ts → logger.d.ts} +1 -2
  61. package/lib/{formatter/FormatterOptions.js → logger.js} +0 -0
  62. package/lib/plugin-config.d.ts +16 -0
  63. package/lib/plugin-config.js +17 -0
  64. package/lib/plugin-hooks.d.ts +20 -0
  65. package/lib/{hooks/pluginHooks.js → plugin-hooks.js} +8 -7
  66. package/lib/plugin-options.d.ts +13 -0
  67. package/lib/{issue/IssueOptions.js → plugin-options.js} +0 -0
  68. package/lib/plugin-options.json +224 -0
  69. package/lib/plugin-pools.d.ts +4 -0
  70. package/lib/plugin-pools.js +28 -0
  71. package/lib/plugin-state.d.ts +14 -0
  72. package/lib/{ForkTsCheckerWebpackPluginState.js → plugin-state.js} +4 -4
  73. package/lib/plugin.d.ts +28 -0
  74. package/lib/plugin.js +82 -0
  75. package/lib/rpc/expose-rpc.d.ts +1 -0
  76. package/lib/rpc/expose-rpc.js +78 -0
  77. package/lib/rpc/index.d.ts +5 -7
  78. package/lib/rpc/index.js +10 -7
  79. package/lib/rpc/{rpc-ipc/error/RpcIpcMessagePortClosedError.d.ts → rpc-error.d.ts} +2 -3
  80. package/lib/rpc/rpc-error.js +12 -0
  81. package/lib/rpc/rpc-worker.d.ts +13 -0
  82. package/lib/rpc/rpc-worker.js +79 -0
  83. package/lib/rpc/types.d.ts +19 -0
  84. package/lib/{logger/Logger.js → rpc/types.js} +0 -0
  85. package/lib/rpc/wrap-rpc.d.ts +4 -0
  86. package/lib/rpc/wrap-rpc.js +96 -0
  87. package/lib/{typescript-reporter/extension/TypeScriptEmbeddedExtension.d.ts → typescript/extension/type-script-embedded-extension.d.ts} +1 -1
  88. package/lib/{typescript-reporter/extension/TypeScriptEmbeddedExtension.js → typescript/extension/type-script-embedded-extension.js} +4 -3
  89. package/lib/{typescript-reporter/extension/TypeScriptExtension.d.ts → typescript/extension/type-script-extension.d.ts} +2 -2
  90. package/lib/{logger/LoggerOptions.js → typescript/extension/type-script-extension.js} +0 -0
  91. package/lib/typescript/extension/vue/type-script-vue-extension-config.d.ts +7 -0
  92. package/lib/{typescript-reporter/extension/vue/TypeScriptVueExtensionConfiguration.js → typescript/extension/vue/type-script-vue-extension-config.js} +3 -2
  93. package/lib/{typescript-reporter/extension/vue/TypeScriptVueExtensionOptions.d.ts → typescript/extension/vue/type-script-vue-extension-options.d.ts} +0 -0
  94. package/lib/{reporter/FilesMatch.js → typescript/extension/vue/type-script-vue-extension-options.js} +0 -0
  95. package/lib/typescript/extension/vue/type-script-vue-extension-support.d.ts +3 -0
  96. package/lib/{typescript-reporter/extension/vue/TypeScriptVueExtensionSupport.js → typescript/extension/vue/type-script-vue-extension-support.js} +4 -3
  97. package/lib/typescript/extension/vue/type-script-vue-extension.d.ts +4 -0
  98. package/lib/{typescript-reporter/extension/vue/TypeScriptVueExtension.js → typescript/extension/vue/type-script-vue-extension.js} +5 -4
  99. package/lib/{typescript-reporter → typescript}/extension/vue/types/vue-template-compiler.d.ts +0 -0
  100. package/lib/{typescript-reporter → typescript}/extension/vue/types/vue-template-compiler.js +0 -0
  101. package/lib/{typescript-reporter → typescript}/extension/vue/types/vue__compiler-sfc.d.ts +0 -0
  102. package/lib/{typescript-reporter → typescript}/extension/vue/types/vue__compiler-sfc.js +0 -0
  103. package/lib/{typescript-reporter/TypeScriptConfigurationOverwrite.d.ts → typescript/type-script-config-overwrite.d.ts} +3 -3
  104. package/lib/{reporter/Report.js → typescript/type-script-config-overwrite.js} +0 -0
  105. package/lib/{typescript-reporter/TypeScriptDiagnosticsOptions.d.ts → typescript/type-script-diagnostics-options.d.ts} +0 -0
  106. package/lib/{reporter/Reporter.js → typescript/type-script-diagnostics-options.js} +0 -0
  107. package/lib/typescript/type-script-support.d.ts +3 -0
  108. package/lib/typescript/type-script-support.js +67 -0
  109. package/lib/typescript/type-script-worker-config.d.ts +22 -0
  110. package/lib/{typescript-reporter/TypeScriptReporterConfiguration.js → typescript/type-script-worker-config.js} +6 -4
  111. package/lib/typescript/type-script-worker-options.d.ts +18 -0
  112. package/lib/{rpc/RpcHost.js → typescript/type-script-worker-options.js} +0 -0
  113. package/lib/typescript/worker/get-dependencies-worker.d.ts +5 -0
  114. package/lib/typescript/worker/get-dependencies-worker.js +18 -0
  115. package/lib/typescript/worker/get-issues-worker.d.ts +5 -0
  116. package/lib/typescript/worker/get-issues-worker.js +75 -0
  117. package/lib/typescript/worker/lib/artifacts.d.ts +4 -0
  118. package/lib/typescript/worker/lib/artifacts.js +90 -0
  119. package/lib/typescript/worker/lib/config.d.ts +14 -0
  120. package/lib/typescript/worker/lib/config.js +111 -0
  121. package/lib/typescript/worker/lib/dependencies.d.ts +3 -0
  122. package/lib/typescript/worker/lib/dependencies.js +87 -0
  123. package/lib/typescript/worker/lib/diagnostics.d.ts +7 -0
  124. package/lib/typescript/worker/lib/diagnostics.js +100 -0
  125. package/lib/typescript/worker/lib/extensions.d.ts +3 -0
  126. package/lib/typescript/worker/lib/extensions.js +11 -0
  127. package/lib/{typescript-reporter/file-system/FileSystem.d.ts → typescript/worker/lib/file-system/file-system.d.ts} +2 -3
  128. package/lib/{rpc/RpcMessagePort.js → typescript/worker/lib/file-system/file-system.js} +0 -0
  129. package/lib/typescript/worker/lib/file-system/mem-file-system.d.ts +5 -0
  130. package/lib/typescript/worker/lib/file-system/mem-file-system.js +78 -0
  131. package/lib/typescript/worker/lib/file-system/passive-file-system.d.ts +5 -0
  132. package/lib/typescript/worker/lib/file-system/passive-file-system.js +65 -0
  133. package/lib/typescript/worker/lib/file-system/real-file-system.d.ts +5 -0
  134. package/lib/typescript/worker/lib/file-system/real-file-system.js +187 -0
  135. package/lib/typescript/worker/lib/host/compiler-host.d.ts +2 -0
  136. package/lib/typescript/worker/lib/host/compiler-host.js +17 -0
  137. package/lib/typescript/worker/lib/host/watch-compiler-host.d.ts +2 -0
  138. package/lib/typescript/worker/lib/host/watch-compiler-host.js +32 -0
  139. package/lib/typescript/worker/lib/host/watch-solution-builder-host.d.ts +2 -0
  140. package/lib/typescript/worker/lib/host/watch-solution-builder-host.js +54 -0
  141. package/lib/typescript/worker/lib/performance.d.ts +3 -0
  142. package/lib/typescript/worker/lib/performance.js +32 -0
  143. package/lib/typescript/worker/lib/program/program.d.ts +2 -0
  144. package/lib/typescript/worker/lib/program/program.js +32 -0
  145. package/lib/typescript/worker/lib/program/solution-builder.d.ts +2 -0
  146. package/lib/typescript/worker/lib/program/solution-builder.js +39 -0
  147. package/lib/typescript/worker/lib/program/watch-program.d.ts +3 -0
  148. package/lib/typescript/worker/lib/program/watch-program.js +49 -0
  149. package/lib/{typescript-reporter/reporter/ControlledTypeScriptSystem.d.ts → typescript/worker/lib/system.d.ts} +4 -6
  150. package/lib/typescript/worker/lib/system.js +222 -0
  151. package/lib/typescript/worker/lib/tracing.d.ts +4 -0
  152. package/lib/typescript/worker/lib/tracing.js +28 -0
  153. package/lib/typescript/worker/lib/tsbuildinfo.d.ts +4 -0
  154. package/lib/typescript/worker/lib/tsbuildinfo.js +92 -0
  155. package/lib/typescript/worker/lib/typescript.d.ts +2 -0
  156. package/lib/typescript/worker/lib/typescript.js +6 -0
  157. package/lib/typescript/worker/lib/worker-config.d.ts +2 -0
  158. package/lib/typescript/worker/lib/worker-config.js +5 -0
  159. package/lib/utils/async/{isPending.d.ts → is-pending.d.ts} +1 -1
  160. package/lib/utils/async/{isPending.js → is-pending.js} +2 -1
  161. package/lib/utils/async/pool.d.ts +2 -1
  162. package/lib/utils/async/pool.js +13 -14
  163. package/lib/utils/async/wait.d.ts +1 -1
  164. package/lib/utils/async/wait.js +2 -1
  165. package/lib/utils/path/{forwardSlash.d.ts → forward-slash.d.ts} +1 -1
  166. package/lib/utils/path/{forwardSlash.js → forward-slash.js} +2 -1
  167. package/lib/utils/path/relative-to-context.d.ts +2 -0
  168. package/lib/utils/path/relative-to-context.js +16 -0
  169. package/lib/watch/inclusive-node-watch-file-system.d.ts +15 -0
  170. package/lib/watch/inclusive-node-watch-file-system.js +165 -0
  171. package/lib/watch/watch-file-system.d.ts +16 -0
  172. package/lib/{rpc/RpcProcedure.js → watch/watch-file-system.js} +0 -0
  173. package/package.json +54 -66
  174. package/CHANGELOG.md +0 -318
  175. package/changelog.config.js +0 -36
  176. package/lib/ForkTsCheckerWebpackPlugin.d.ts +0 -29
  177. package/lib/ForkTsCheckerWebpackPlugin.js +0 -84
  178. package/lib/ForkTsCheckerWebpackPluginConfiguration.d.ts +0 -17
  179. package/lib/ForkTsCheckerWebpackPluginConfiguration.js +0 -18
  180. package/lib/ForkTsCheckerWebpackPluginOptions.d.ts +0 -14
  181. package/lib/ForkTsCheckerWebpackPluginOptions.json +0 -297
  182. package/lib/ForkTsCheckerWebpackPluginState.d.ts +0 -15
  183. package/lib/error/OperationCanceledError.d.ts +0 -4
  184. package/lib/error/OperationCanceledError.js +0 -9
  185. package/lib/eslint-reporter/EsLintReporterConfiguration.d.ts +0 -11
  186. package/lib/eslint-reporter/EsLintReporterConfiguration.js +0 -26
  187. package/lib/eslint-reporter/EsLintReporterOptions.d.ts +0 -8
  188. package/lib/eslint-reporter/assertEsLintSupport.d.ts +0 -3
  189. package/lib/eslint-reporter/assertEsLintSupport.js +0 -30
  190. package/lib/eslint-reporter/issue/EsLintIssueFactory.d.ts +0 -4
  191. package/lib/eslint-reporter/issue/EsLintIssueFactory.js +0 -32
  192. package/lib/eslint-reporter/reporter/EsLintReporter.d.ts +0 -4
  193. package/lib/eslint-reporter/reporter/EsLintReporter.js +0 -179
  194. package/lib/eslint-reporter/reporter/EsLintReporterRpcClient.d.ts +0 -4
  195. package/lib/eslint-reporter/reporter/EsLintReporterRpcClient.js +0 -13
  196. package/lib/eslint-reporter/reporter/EsLintReporterRpcService.d.ts +0 -1
  197. package/lib/eslint-reporter/reporter/EsLintReporterRpcService.js +0 -11
  198. package/lib/eslint-reporter/types/eslint.d.ts +0 -37
  199. package/lib/formatter/FormatterConfiguration.d.ts +0 -5
  200. package/lib/formatter/FormatterConfiguration.js +0 -7
  201. package/lib/formatter/FormatterFactory.d.ts +0 -13
  202. package/lib/formatter/FormatterFactory.js +0 -18
  203. package/lib/formatter/FormatterOptions.d.ts +0 -7
  204. package/lib/hooks/interceptDoneToGetWebpackDevServerTap.d.ts +0 -5
  205. package/lib/hooks/interceptDoneToGetWebpackDevServerTap.js +0 -16
  206. package/lib/hooks/pluginHooks.d.ts +0 -20
  207. package/lib/hooks/tapAfterCompileToAddDependencies.d.ts +0 -5
  208. package/lib/hooks/tapAfterCompileToGetIssues.d.ts +0 -5
  209. package/lib/hooks/tapAfterEnvironmentToPatchWatching.js +0 -13
  210. package/lib/hooks/tapDoneToAsyncGetIssues.d.ts +0 -5
  211. package/lib/hooks/tapErrorToLogMessage.d.ts +0 -4
  212. package/lib/hooks/tapStartToConnectAndRunReporter.d.ts +0 -6
  213. package/lib/hooks/tapStartToConnectAndRunReporter.js +0 -125
  214. package/lib/hooks/tapStopToDisconnectReporter.d.ts +0 -5
  215. package/lib/hooks/tapStopToDisconnectReporter.js +0 -29
  216. package/lib/issue/IssueConfiguration.d.ts +0 -8
  217. package/lib/issue/IssueConfiguration.js +0 -28
  218. package/lib/issue/IssueLocation.js +0 -21
  219. package/lib/issue/IssueMatch.d.ts +0 -5
  220. package/lib/logger/LoggerConfiguration.d.ts +0 -10
  221. package/lib/logger/LoggerConfiguration.js +0 -11
  222. package/lib/logger/LoggerFactory.d.ts +0 -5
  223. package/lib/logger/LoggerFactory.js +0 -20
  224. package/lib/logger/LoggerOptions.d.ts +0 -8
  225. package/lib/logger/PartialLogger.d.ts +0 -4
  226. package/lib/logger/PartialLogger.js +0 -10
  227. package/lib/logger/WebpackInfrastructureLogger.d.ts +0 -4
  228. package/lib/logger/WebpackInfrastructureLogger.js +0 -12
  229. package/lib/profile/Performance.d.ts +0 -11
  230. package/lib/profile/Performance.js +0 -62
  231. package/lib/reporter/AggregatedReporter.d.ts +0 -6
  232. package/lib/reporter/AggregatedReporter.js +0 -60
  233. package/lib/reporter/FilesChange.d.ts +0 -16
  234. package/lib/reporter/FilesChange.js +0 -39
  235. package/lib/reporter/Report.d.ts +0 -8
  236. package/lib/reporter/Reporter.d.ts +0 -6
  237. package/lib/reporter/index.d.ts +0 -7
  238. package/lib/reporter/index.js +0 -9
  239. package/lib/reporter/reporter-rpc/ReporterRpcClient.d.ts +0 -10
  240. package/lib/reporter/reporter-rpc/ReporterRpcClient.js +0 -82
  241. package/lib/reporter/reporter-rpc/ReporterRpcProcedure.d.ts +0 -10
  242. package/lib/reporter/reporter-rpc/ReporterRpcProcedure.js +0 -12
  243. package/lib/reporter/reporter-rpc/ReporterRpcService.d.ts +0 -9
  244. package/lib/reporter/reporter-rpc/ReporterRpcService.js +0 -74
  245. package/lib/rpc/RpcClient.d.ts +0 -10
  246. package/lib/rpc/RpcClient.js +0 -78
  247. package/lib/rpc/RpcHost.d.ts +0 -6
  248. package/lib/rpc/RpcMessage.d.ts +0 -26
  249. package/lib/rpc/RpcMessage.js +0 -45
  250. package/lib/rpc/RpcMessageChannel.d.ts +0 -10
  251. package/lib/rpc/RpcMessageChannel.js +0 -49
  252. package/lib/rpc/RpcMessagePort.d.ts +0 -14
  253. package/lib/rpc/RpcProcedure.d.ts +0 -5
  254. package/lib/rpc/RpcService.d.ts +0 -12
  255. package/lib/rpc/RpcService.js +0 -63
  256. package/lib/rpc/error/RpcMessagePortClosedError.d.ts +0 -3
  257. package/lib/rpc/error/RpcMessagePortClosedError.js +0 -5
  258. package/lib/rpc/error/RpcRemoteError.d.ts +0 -6
  259. package/lib/rpc/error/RpcRemoteError.js +0 -17
  260. package/lib/rpc/rpc-ipc/ProcessLike.d.ts +0 -12
  261. package/lib/rpc/rpc-ipc/ProcessLike.js +0 -3
  262. package/lib/rpc/rpc-ipc/RpcIpcMessageChannel.d.ts +0 -3
  263. package/lib/rpc/rpc-ipc/RpcIpcMessageChannel.js +0 -10
  264. package/lib/rpc/rpc-ipc/RpcIpcMessagePort.d.ts +0 -5
  265. package/lib/rpc/rpc-ipc/RpcIpcMessagePort.js +0 -150
  266. package/lib/rpc/rpc-ipc/error/RpcIpcMessagePortClosedError.js +0 -12
  267. package/lib/rpc/rpc-ipc/index.d.ts +0 -2
  268. package/lib/rpc/rpc-ipc/index.js +0 -7
  269. package/lib/typescript-reporter/TypeScriptConfigurationOverwrite.js +0 -2
  270. package/lib/typescript-reporter/TypeScriptDiagnosticsOptions.js +0 -2
  271. package/lib/typescript-reporter/TypeScriptReporterConfiguration.d.ts +0 -22
  272. package/lib/typescript-reporter/TypeScriptReporterOptions.d.ts +0 -19
  273. package/lib/typescript-reporter/TypeScriptReporterOptions.js +0 -2
  274. package/lib/typescript-reporter/TypeScriptSupport.d.ts +0 -3
  275. package/lib/typescript-reporter/TypeScriptSupport.js +0 -52
  276. package/lib/typescript-reporter/extension/TypeScriptExtension.js +0 -2
  277. package/lib/typescript-reporter/extension/vue/TypeScriptVueExtension.d.ts +0 -4
  278. package/lib/typescript-reporter/extension/vue/TypeScriptVueExtensionConfiguration.d.ts +0 -7
  279. package/lib/typescript-reporter/extension/vue/TypeScriptVueExtensionOptions.js +0 -2
  280. package/lib/typescript-reporter/extension/vue/TypeScriptVueExtensionSupport.d.ts +0 -3
  281. package/lib/typescript-reporter/file-system/FileSystem.js +0 -2
  282. package/lib/typescript-reporter/file-system/MemFileSystem.d.ts +0 -8
  283. package/lib/typescript-reporter/file-system/MemFileSystem.js +0 -81
  284. package/lib/typescript-reporter/file-system/PassiveFileSystem.d.ts +0 -9
  285. package/lib/typescript-reporter/file-system/PassiveFileSystem.js +0 -68
  286. package/lib/typescript-reporter/file-system/RealFileSystem.d.ts +0 -8
  287. package/lib/typescript-reporter/file-system/RealFileSystem.js +0 -179
  288. package/lib/typescript-reporter/issue/TypeScriptIssueFactory.d.ts +0 -4
  289. package/lib/typescript-reporter/issue/TypeScriptIssueFactory.js +0 -45
  290. package/lib/typescript-reporter/profile/TypeScriptPerformance.d.ts +0 -10
  291. package/lib/typescript-reporter/profile/TypeScriptPerformance.js +0 -33
  292. package/lib/typescript-reporter/reporter/ControlledTypeScriptSystem.js +0 -231
  293. package/lib/typescript-reporter/reporter/ControlledWatchCompilerHost.d.ts +0 -5
  294. package/lib/typescript-reporter/reporter/ControlledWatchCompilerHost.js +0 -28
  295. package/lib/typescript-reporter/reporter/ControlledWatchSolutionBuilderHost.d.ts +0 -5
  296. package/lib/typescript-reporter/reporter/ControlledWatchSolutionBuilderHost.js +0 -50
  297. package/lib/typescript-reporter/reporter/TypeScriptConfigurationParser.d.ts +0 -8
  298. package/lib/typescript-reporter/reporter/TypeScriptConfigurationParser.js +0 -136
  299. package/lib/typescript-reporter/reporter/TypeScriptReporter.d.ts +0 -4
  300. package/lib/typescript-reporter/reporter/TypeScriptReporter.js +0 -352
  301. package/lib/typescript-reporter/reporter/TypeScriptReporterRpcClient.d.ts +0 -4
  302. package/lib/typescript-reporter/reporter/TypeScriptReporterRpcClient.js +0 -13
  303. package/lib/typescript-reporter/reporter/TypeScriptReporterRpcService.d.ts +0 -1
  304. package/lib/typescript-reporter/reporter/TypeScriptReporterRpcService.js +0 -11
  305. package/lib/utils/array/flatten.d.ts +0 -2
  306. package/lib/utils/array/flatten.js +0 -6
  307. package/lib/utils/array/intersect.d.ts +0 -2
  308. package/lib/utils/array/intersect.js +0 -6
  309. package/lib/utils/array/substract.d.ts +0 -2
  310. package/lib/utils/array/substract.js +0 -6
  311. package/lib/utils/array/unique.d.ts +0 -2
  312. package/lib/utils/array/unique.js +0 -6
  313. package/lib/watch/CompilerWithWatchFileSystem.d.ts +0 -6
  314. package/lib/watch/CompilerWithWatchFileSystem.js +0 -2
  315. package/lib/watch/InclusiveNodeWatchFileSystem.d.ts +0 -15
  316. package/lib/watch/InclusiveNodeWatchFileSystem.js +0 -135
  317. package/lib/watch/WatchFileSystem.d.ts +0 -33
  318. package/lib/watch/WatchFileSystem.js +0 -2
@@ -0,0 +1,165 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.InclusiveNodeWatchFileSystem = void 0;
7
+ const path_1 = require("path");
8
+ const chokidar_1 = __importDefault(require("chokidar"));
9
+ const minimatch_1 = __importDefault(require("minimatch"));
10
+ const files_change_1 = require("../files-change");
11
+ const infrastructure_logger_1 = require("../infrastructure-logger");
12
+ const BUILTIN_IGNORED_DIRS = ['node_modules', '.git', '.yarn', '.pnp'];
13
+ function createIsIgnored(ignored, excluded) {
14
+ const ignoredPatterns = ignored ? (Array.isArray(ignored) ? ignored : [ignored]) : [];
15
+ const ignoredFunctions = ignoredPatterns.map((pattern) => {
16
+ // ensure patterns are valid - see https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/issues/594
17
+ if (typeof pattern === 'string') {
18
+ return (path) => (0, minimatch_1.default)(path, pattern);
19
+ }
20
+ else if (pattern instanceof RegExp) {
21
+ return (path) => pattern.test(path);
22
+ }
23
+ else {
24
+ // fallback to no-ignore function
25
+ return () => false;
26
+ }
27
+ });
28
+ ignoredFunctions.push((path) => excluded.some((excludedPath) => path.startsWith(excludedPath)));
29
+ ignoredFunctions.push((path) => BUILTIN_IGNORED_DIRS.some((ignoredDir) => path.includes(`/${ignoredDir}/`)));
30
+ return function isIgnored(path) {
31
+ return ignoredFunctions.some((ignoredFunction) => ignoredFunction(path));
32
+ };
33
+ }
34
+ class InclusiveNodeWatchFileSystem {
35
+ constructor(watchFileSystem, compiler, pluginState) {
36
+ this.watchFileSystem = watchFileSystem;
37
+ this.compiler = compiler;
38
+ this.pluginState = pluginState;
39
+ this.paused = true;
40
+ this.watch = (files, dirs, missing, startTime, options, callback, callbackUndelayed) => {
41
+ var _a, _b, _c, _d;
42
+ const { debug } = (0, infrastructure_logger_1.getInfrastructureLogger)(this.compiler);
43
+ (0, files_change_1.clearFilesChange)(this.compiler);
44
+ const isIgnored = createIsIgnored(options === null || options === void 0 ? void 0 : options.ignored, ((_a = this.pluginState.lastDependencies) === null || _a === void 0 ? void 0 : _a.excluded) || []);
45
+ // use standard watch file system for files and missing
46
+ const standardWatcher = this.watchFileSystem.watch(files, dirs, missing, startTime, options, callback, callbackUndelayed);
47
+ (_b = this.watcher) === null || _b === void 0 ? void 0 : _b.on('change', (file) => {
48
+ if (typeof file !== 'string') {
49
+ return;
50
+ }
51
+ if (!isIgnored(file)) {
52
+ debug('Detected file change', file);
53
+ this.deletedFiles.delete(file);
54
+ (0, files_change_1.updateFilesChange)(this.compiler, { changedFiles: [file] });
55
+ }
56
+ else {
57
+ debug("Detected file change but it's ignored", file);
58
+ }
59
+ });
60
+ (_c = this.watcher) === null || _c === void 0 ? void 0 : _c.on('remove', (file) => {
61
+ if (typeof file !== 'string') {
62
+ return;
63
+ }
64
+ if (this.deletedFiles.has(file)) {
65
+ debug('Skipping duplicated remove event.');
66
+ return;
67
+ }
68
+ if (!isIgnored(file)) {
69
+ debug('Detected file remove', file);
70
+ this.deletedFiles.add(file);
71
+ (0, files_change_1.updateFilesChange)(this.compiler, { deletedFiles: [file] });
72
+ }
73
+ else {
74
+ debug("Detected file remove but it's ignored", file);
75
+ }
76
+ });
77
+ // calculate what to change
78
+ const prevDirs = Array.from(this.dirsWatchers.keys());
79
+ const nextDirs = Array.from(((_d = this.pluginState.lastDependencies) === null || _d === void 0 ? void 0 : _d.dirs) || []);
80
+ const dirsToUnwatch = prevDirs.filter((prevDir) => !nextDirs.includes(prevDir));
81
+ const dirsToWatch = nextDirs.filter((nextDir) => !prevDirs.includes(nextDir) && !isIgnored(nextDir));
82
+ // update dirs watcher
83
+ dirsToUnwatch.forEach((dirToUnwatch) => {
84
+ var _a;
85
+ (_a = this.dirsWatchers.get(dirToUnwatch)) === null || _a === void 0 ? void 0 : _a.close();
86
+ this.dirsWatchers.delete(dirToUnwatch);
87
+ });
88
+ dirsToWatch.forEach((dirToWatch) => {
89
+ const interval = typeof (options === null || options === void 0 ? void 0 : options.poll) === 'number' ? options.poll : undefined;
90
+ const dirWatcher = chokidar_1.default.watch(dirToWatch, {
91
+ ignoreInitial: true,
92
+ ignorePermissionErrors: true,
93
+ ignored: (path) => isIgnored(path),
94
+ usePolling: (options === null || options === void 0 ? void 0 : options.poll) ? true : undefined,
95
+ interval: interval,
96
+ binaryInterval: interval,
97
+ alwaysStat: true,
98
+ atomic: true,
99
+ awaitWriteFinish: true,
100
+ });
101
+ dirWatcher.on('add', (file, stats) => {
102
+ var _a, _b;
103
+ if (this.paused) {
104
+ return;
105
+ }
106
+ const extension = (0, path_1.extname)(file);
107
+ const supportedExtensions = ((_a = this.pluginState.lastDependencies) === null || _a === void 0 ? void 0 : _a.extensions) || [];
108
+ if (!supportedExtensions.includes(extension)) {
109
+ debug('Detected new file add but extension is not supported', file);
110
+ return;
111
+ }
112
+ debug('Detected new file add', file);
113
+ this.deletedFiles.delete(file);
114
+ (0, files_change_1.updateFilesChange)(this.compiler, { changedFiles: [file] });
115
+ (_b = this.watcher) === null || _b === void 0 ? void 0 : _b._onChange(dirToWatch, (stats === null || stats === void 0 ? void 0 : stats.mtimeMs) || (stats === null || stats === void 0 ? void 0 : stats.ctimeMs) || 1, file, 'rename');
116
+ });
117
+ dirWatcher.on('unlink', (file) => {
118
+ var _a, _b;
119
+ if (this.paused) {
120
+ return;
121
+ }
122
+ const extension = (0, path_1.extname)(file);
123
+ const supportedExtensions = ((_a = this.pluginState.lastDependencies) === null || _a === void 0 ? void 0 : _a.extensions) || [];
124
+ if (!supportedExtensions.includes(extension)) {
125
+ debug('Detected new file remove but extension is not supported', file);
126
+ return;
127
+ }
128
+ if (this.deletedFiles.has(file)) {
129
+ debug('Skipping duplicated unlink event.');
130
+ return;
131
+ }
132
+ debug('Detected new file remove', file);
133
+ this.deletedFiles.add(file);
134
+ (0, files_change_1.updateFilesChange)(this.compiler, { deletedFiles: [file] });
135
+ (_b = this.watcher) === null || _b === void 0 ? void 0 : _b._onRemove(dirToWatch, file, 'rename');
136
+ });
137
+ this.dirsWatchers.set(dirToWatch, dirWatcher);
138
+ });
139
+ this.paused = false;
140
+ return Object.assign(Object.assign({}, standardWatcher), { close: () => {
141
+ (0, files_change_1.clearFilesChange)(this.compiler);
142
+ if (standardWatcher) {
143
+ standardWatcher.close();
144
+ }
145
+ this.dirsWatchers.forEach((dirWatcher) => {
146
+ dirWatcher === null || dirWatcher === void 0 ? void 0 : dirWatcher.close();
147
+ });
148
+ this.dirsWatchers.clear();
149
+ this.paused = true;
150
+ }, pause: () => {
151
+ if (standardWatcher) {
152
+ standardWatcher.pause();
153
+ }
154
+ this.paused = true;
155
+ } });
156
+ };
157
+ this.dirsWatchers = new Map();
158
+ this.deletedFiles = new Set();
159
+ }
160
+ get watcher() {
161
+ var _a;
162
+ return this.watchFileSystem.watcher || ((_a = this.watchFileSystem.wfs) === null || _a === void 0 ? void 0 : _a.watcher);
163
+ }
164
+ }
165
+ exports.InclusiveNodeWatchFileSystem = InclusiveNodeWatchFileSystem;
@@ -0,0 +1,16 @@
1
+ /// <reference types="node" />
2
+ import type { EventEmitter } from 'events';
3
+ import type webpack from 'webpack';
4
+ interface Watchpack extends EventEmitter {
5
+ _onChange(item: string, mtime: number, file: string, type?: string): void;
6
+ _onRemove(item: string, file: string, type?: string): void;
7
+ }
8
+ declare type Watch = webpack.Compiler['watchFileSystem']['watch'];
9
+ interface WatchFileSystem {
10
+ watcher?: Watchpack;
11
+ wfs?: {
12
+ watcher: Watchpack;
13
+ };
14
+ watch: Watch;
15
+ }
16
+ export { WatchFileSystem, Watchpack };
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "fork-ts-checker-webpack-plugin",
3
- "version": "6.5.0",
3
+ "version": "7.0.0",
4
4
  "description": "Runs typescript type checker and linter on separate process.",
5
5
  "keywords": [
6
- "fast",
7
- "fork",
8
- "linter",
9
6
  "webpack",
10
7
  "plugin",
11
- "ts-loader",
12
8
  "typescript",
13
- "webpack"
9
+ "typecheck",
10
+ "ts-loader",
11
+ "webpack",
12
+ "fork",
13
+ "fast"
14
14
  ],
15
15
  "bugs": {
16
16
  "url": "https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/issues"
@@ -38,13 +38,8 @@
38
38
  "test:e2e": "npm pack && cross-env jest --config=test/e2e/jest.config.js --ci -i -b",
39
39
  "precommit": "cross-env lint-staged && yarn build && yarn test:unit",
40
40
  "commit": "cross-env git-cz",
41
- "semantic-release": "semantic-release"
42
- },
43
- "husky": {
44
- "hooks": {
45
- "pre-commit": "lint-staged && yarn build && yarn test:unit",
46
- "commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
47
- }
41
+ "semantic-release": "semantic-release",
42
+ "prepare": "husky install"
48
43
  },
49
44
  "commitlint": {
50
45
  "extends": [
@@ -60,79 +55,72 @@
60
55
  }
61
56
  },
62
57
  "dependencies": {
63
- "@babel/code-frame": "^7.8.3",
64
- "@types/json-schema": "^7.0.5",
65
- "chalk": "^4.1.0",
66
- "chokidar": "^3.4.2",
67
- "cosmiconfig": "^6.0.0",
58
+ "@babel/code-frame": "^7.16.7",
59
+ "chalk": "^4.1.2",
60
+ "chokidar": "^3.5.3",
61
+ "cosmiconfig": "^7.0.1",
68
62
  "deepmerge": "^4.2.2",
69
- "fs-extra": "^9.0.0",
70
- "glob": "^7.1.6",
71
- "memfs": "^3.1.2",
63
+ "fs-extra": "^10.0.0",
64
+ "memfs": "^3.4.1",
72
65
  "minimatch": "^3.0.4",
73
- "schema-utils": "2.7.0",
74
- "semver": "^7.3.2",
75
- "tapable": "^1.0.0"
66
+ "schema-utils": "4.0.0",
67
+ "semver": "^7.3.5",
68
+ "tapable": "^2.2.1"
76
69
  },
77
70
  "peerDependencies": {
78
- "eslint": ">= 6",
79
- "typescript": ">= 2.7",
80
- "webpack": ">= 4",
71
+ "typescript": ">3.6.0",
72
+ "webpack": "^5.11.0",
81
73
  "vue-template-compiler": "*"
82
74
  },
83
75
  "peerDependenciesMeta": {
84
- "eslint": {
85
- "optional": true
86
- },
87
76
  "vue-template-compiler": {
88
77
  "optional": true
89
78
  }
90
79
  },
91
80
  "devDependencies": {
92
- "@commitlint/config-conventional": "^11.0.0",
81
+ "@commitlint/config-conventional": "^16.0.0",
93
82
  "@semantic-release/commit-analyzer": "^8.0.1",
94
83
  "@semantic-release/exec": "^5.0.0",
95
- "@semantic-release/github": "^7.1.1",
96
- "@semantic-release/npm": "^7.0.6",
97
- "@semantic-release/release-notes-generator": "^9.0.1",
98
- "@types/babel__code-frame": "^7.0.2",
84
+ "@semantic-release/github": "^7.2.3",
85
+ "@semantic-release/npm": "^7.1.3",
86
+ "@semantic-release/release-notes-generator": "^9.0.3",
87
+ "@types/babel__code-frame": "^7.0.3",
99
88
  "@types/cross-spawn": "^6.0.2",
100
- "@types/eslint": "^7.2.4",
101
- "@types/fs-extra": "^9.0.2",
102
- "@types/jest": "^26.0.14",
103
- "@types/minimatch": "^3.0.1",
104
- "@types/mock-fs": "^4.13.0",
105
- "@types/node": "^14.11.10",
106
- "@types/rimraf": "^3.0.0",
107
- "@types/semver": "^7.3.4",
108
- "@types/webpack": "^4.41.22",
109
- "@typescript-eslint/eslint-plugin": "^2.27.0",
110
- "@typescript-eslint/parser": "^2.27.0",
111
- "commitlint": "^11.0.0",
112
- "cross-env": "^7.0.2",
113
- "cross-spawn": "^7.0.3",
114
- "eslint": "^6.8.0",
115
- "eslint-config-prettier": "^6.13.0",
89
+ "@types/fs-extra": "^9.0.13",
90
+ "@types/jest": "^27.4.0",
91
+ "@types/json-schema": "^7.0.9",
92
+ "@types/minimatch": "^3.0.5",
93
+ "@types/mock-fs": "^4.13.1",
94
+ "@types/node": "^16.4.13",
95
+ "@types/rimraf": "^3.0.2",
96
+ "@types/semver": "^7.3.9",
97
+ "@typescript-eslint/eslint-plugin": "^5.10.1",
98
+ "@typescript-eslint/parser": "^5.10.1",
99
+ "commitlint": "^16.1.0",
100
+ "cross-env": "^7.0.3",
101
+ "eslint": "^8.8.0",
102
+ "eslint-plugin-import": "^2.25.4",
116
103
  "eslint-plugin-node": "^11.1.0",
117
- "eslint-plugin-prettier": "^3.1.4",
118
- "git-cz": "^4.7.1",
119
- "husky": "^4.3.0",
120
- "jest": "^26.5.3",
121
- "jest-circus": "^26.5.3",
122
- "jest-environment-node": "^26.5.2",
123
- "lint-staged": "^10.4.2",
124
- "mock-fs": "^4.13.0",
125
- "prettier": "^2.1.2",
104
+ "eslint-plugin-prettier": "^4.0.0",
105
+ "git-cz": "^4.8.0",
106
+ "husky": "^7.0.4",
107
+ "jest": "^27.4.7",
108
+ "jest-circus": "^27.4.6",
109
+ "jest-environment-node": "^27.4.6",
110
+ "json-schema": "^0.3.0",
111
+ "karton": "^0.4.1",
112
+ "lint-staged": "^11.1.2",
113
+ "mock-fs": "^5.1.2",
114
+ "prettier": "^2.5.1",
126
115
  "rimraf": "^3.0.2",
127
- "semantic-release": "^17.2.1",
116
+ "semantic-release": "^17.4.4",
128
117
  "strip-ansi": "^6.0.0",
129
- "tree-kill": "^1.2.2",
130
- "ts-jest": "^26.4.1",
131
- "typescript": "^3.8.3",
132
- "webpack": "^4.42.1"
118
+ "ts-jest": "^27.1.3",
119
+ "typescript": "^4.5.5",
120
+ "webpack": "^5.67.0"
133
121
  },
134
122
  "engines": {
135
- "node": ">=10",
123
+ "node": ">=12.13.0",
136
124
  "yarn": ">=1.0.0"
137
125
  }
138
126
  }
package/CHANGELOG.md DELETED
@@ -1,318 +0,0 @@
1
- ## ⚠️ Next versions are available only on the [GitHub Releases](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/releases) page ⚠️
2
-
3
- # [1.3.0-beta.1](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/compare/v1.2.0...v1.3.0-beta.1@beta) (2019-04-30)
4
-
5
- ### Bug Fixes
6
-
7
- - **tests:** fix linter tests that were doing nothing ([d078278](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/commit/d078278))
8
- - **tests:** linter tests - useTypescriptIncrementalApi usage ([e0020d6](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/commit/e0020d6))
9
- - **tests:** rework vue integration tests ([5ad2568](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/commit/5ad2568))
10
-
11
- ### Features
12
-
13
- - **apiincrementalchecker:** improve generation of diagnostics ([ae80e5f](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/commit/ae80e5f)), closes [#257](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/issues/257)
14
-
15
- # [1.2.0](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/compare/v1.1.1...v1.2.0) (2019-04-22)
16
-
17
- ### Bug Fixes
18
-
19
- - semantic-release update `CHANGELOG.md` on the git repo ([8ad58af](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/commit/8ad58af))
20
-
21
- ### Features
22
-
23
- - add semantic-release integration ([5fe0653](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/commit/5fe0653))
24
-
25
- # [1.2.0-beta.4](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/compare/v1.2.0-beta.3@beta...v1.2.0-beta.4@beta) (2019-04-23)
26
-
27
- ### Bug Fixes
28
-
29
- - **tests:** fix linter tests that were doing nothing ([d078278](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/commit/d078278))
30
- - **tests:** linter tests - useTypescriptIncrementalApi usage ([e0020d6](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/commit/e0020d6))
31
-
32
- ### Features
33
-
34
- - **apiincrementalchecker:** improve generation of diagnostics ([ae80e5f](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/commit/ae80e5f)), closes [#257](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/issues/257)
35
-
36
- # [1.2.0-beta.3](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/compare/v1.2.0-beta.2@beta...v1.2.0-beta.3@beta) (2019-04-22)
37
-
38
- ### Bug Fixes
39
-
40
- - **tests:** rework vue integration tests ([5ad2568](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/commit/5ad2568))
41
-
42
- # [1.2.0-beta.2](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/compare/v1.2.0-beta.1@beta...v1.2.0-beta.2@beta) (2019-04-22)
43
-
44
- ### Bug Fixes
45
-
46
- - semantic-release update `CHANGELOG.md` on the git repo ([8ad58af](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/commit/8ad58af))
47
-
48
- # [1.2.0-beta.1](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/compare/v1.1.0...v1.2.0-beta.1@beta) (2019-04-22)
49
-
50
- ### Features
51
-
52
- - add semantic-release integration ([5fe0653](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/commit/5fe0653))
53
-
54
- ## v1.1.1
55
-
56
- - [Fix a regression w/ plugins like tsconfig-paths-webpack-plugin](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/pull/260)
57
-
58
- ## v1.1.0
59
-
60
- - [Add new custom resolution options](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/pull/250)
61
-
62
- ## v1.0.4
63
-
64
- - [gracefully handle error thrown from the service](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/pull/249)
65
-
66
- ## v1.0.3
67
-
68
- - [use worker-rpc library for inter-process communication](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/pull/231)
69
-
70
- ## v1.0.2
71
-
72
- - [Fix ignoreLintWarning mark warnings as errors](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/pull/243)
73
-
74
- ## v1.0.1
75
-
76
- - [Apply rounding to compilation time](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/pull/235)
77
-
78
- ## v1.0.0
79
-
80
- - [Going 1.0](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/pull/218)
81
-
82
- This is the first major version of `fork-ts-checker-webpack-plugin`. A long time coming :-)
83
-
84
- There are actually no breaking changes that we're aware of; users of 0.x `fork-ts-checker-webpack-plugin` should be be able to upgrade without any drama. Users of TypeScript 3+ may notice a performance improvement as by default the plugin now uses the [incremental watch API](https://github.com/Microsoft/TypeScript/pull/20234) in TypeScript. Should this prove problematic you can opt out of using it by supplying `useTypescriptIncrementalApi: false`.
85
-
86
- We are aware of an [issue with Vue and the incremental API](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/issues/219). We hope it will be fixed soon - a generous member of the community is taking a look. In the meantime, we will _not_ default to using the incremental watch API when in Vue mode.
87
-
88
- The plugin supports webpack 2, 3, 4 and 5 alpha and TypeScript 2.1+ alongside tslint 4+.
89
-
90
- See also: https://blog.johnnyreilly.com/2019/03/the-big-one-point-oh.html
91
-
92
- ## v1.0.0-alpha.10
93
-
94
- - [Fix incremental api to work with TS 3+ by default](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/pull/223)
95
-
96
- ## v1.0.0-alpha.9
97
-
98
- - [Default to incremental api usage to true if TS 3+](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/pull/217)
99
-
100
- ## v1.0.0-alpha.8
101
-
102
- - [Respect tslint configs hierarchical order](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/pull/214)
103
-
104
- ## v1.0.0-alpha.7
105
-
106
- - [Add ignoreLintWarnings option](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/pull/213)
107
-
108
- ## v1.0.0-alpha.6
109
-
110
- - [don't directly depend upon typescript](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/pull/208)
111
-
112
- ## v1.0.0-alpha.5
113
-
114
- - [can now provide path where typescript can be found](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/pull/204)
115
-
116
- ## v1.0.0-alpha.4
117
-
118
- - [make node 6 compatible](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/pull/202)
119
-
120
- ## v1.0.0-alpha.3
121
-
122
- - [replace peerDeps with runtime checks](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/pull/201)
123
-
124
- ## v1.0.0-alpha.2
125
-
126
- - [Add `useTypescriptIncrementalApi`](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/pull/198) (#196)
127
-
128
- ## v1.0.0-alpha.1
129
-
130
- - [Use object-spread instead of `Object.assign`](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/pull/194) (#194)
131
-
132
- ## v1.0.0-alpha.0
133
-
134
- - [Add support for webpack 5](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/pull/166)
135
-
136
- ### Breaking Changes
137
-
138
- Version `1.x` additionally supports webpack 5 alongside webpack 4, whose hooks are now tapped differently:
139
-
140
- ```diff
141
- - compiler.hooks.forkTsCheckerDone.tap(...args)
142
- + const forkTsCheckerHooks = ForkTsCheckerWebpackPlugin.getCompilerHooks(compiler)
143
- + forkTsCheckerHooks.done.tap(...args)
144
- ```
145
-
146
- v1.0.0-alpha.0 drops support for node 6.
147
-
148
- ## v0.5.2
149
-
150
- - [Fix erroneous error on diagnostics at 0 line; remove deprecated fs.existsSync](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/pull/190) (#190)
151
-
152
- ## v0.5.1
153
-
154
- - [Make the checker compile with TypeScript 3.2](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/pull/189)
155
-
156
- ## 0.5.0
157
-
158
- - Removed unused dependency `resolve`.
159
- - Replace `lodash` usage with native calls.
160
- - ** Breaking Changes**:
161
- - Removed all getters from `NormalizedMessage`, use direct property access instead.
162
- - **Internal**:
163
- - Test against ts-loader v5
164
- - Enable all strict type checks
165
- - Update dev dependencies
166
-
167
- ## v0.4.15
168
-
169
- - [Add `tslintAutoFix` option to be passed on to tslint to auto format typescript files](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/pull/174) (#174)
170
-
171
- ## v0.4.14
172
-
173
- - [Add support for `reportFiles` option](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/pull/179) (#179)
174
-
175
- ## v0.4.13
176
-
177
- - [Merge in `compilerOptions` prior to calling `parseJsonConfigFileContent`](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/pull/176) (#176)
178
-
179
- ## v0.4.12
180
-
181
- - [Add `compilerOptions` option](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/pull/173) (#173)
182
-
183
- ## v0.4.11
184
-
185
- - [Fix os.cpus is not a function](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/pull/172) (#172)
186
-
187
- ## v0.4.10
188
-
189
- - [Allow fork-ts-checker-webpack-plugin to be imported in .ts files using ESM import syntax](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/pull/163) (#163)
190
-
191
- ## v0.4.9
192
-
193
- - [Set "compilationDone" before resolving "forkTsCheckerServiceBeforeStart"](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/pull/146) (#146)
194
-
195
- ## v0.4.8
196
-
197
- - [Fix(types collision): update webpack](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/pull/151) (#142)
198
-
199
- ## v0.4.7
200
-
201
- - [Fix(types collision): update chalk and chokidar](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/pull/147) (#142)
202
- - [Fix(logger): Don't limit Options.logger to Console type](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/pull/143)
203
-
204
- ## v0.4.6
205
-
206
- - [Fix(types): Make options Partial<Options>](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/pull/141) (#140)
207
-
208
- ## v0.4.5
209
-
210
- - [Fix(types): Add types to the plugin](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/pull/139) (#137)
211
- - [Fix(vue): Avoid false positive of no-consecutive-blank-lines TSLint rule in Vue file](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/pull/138) (#130)
212
-
213
- ## v0.4.4
214
-
215
- - [Fix(vue): resolve src attribute on the script block on Vue files](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/pull/130) (#111, #85)
216
- - Add TypeScript ^3.0.0 to peerDependencies
217
-
218
- ## v0.4.3
219
-
220
- - Fix "File system lag can cause Invalid source file errors to slip through" (#127)
221
-
222
- ## v0.4.2
223
-
224
- - Format messages when `async` is false
225
-
226
- ## v0.4.1
227
-
228
- - Fix webpack 4 hooks bug
229
-
230
- ## v0.4.0
231
-
232
- - Support webpack 4
233
-
234
- ## v0.3.0
235
-
236
- - Add `vue` support
237
-
238
- ## v0.2.10
239
-
240
- - Fix #80 "Cannot read property 'getLineAndCharacterOfPosition' of undefined"
241
- - Fix #76 "TypeError: Cannot read property '0' of undefined"
242
-
243
- ## v0.2.9
244
-
245
- - Make errors formatting closer to `ts-loader` style
246
- - Handle tslint exclude option
247
-
248
- ## v0.2.8
249
-
250
- - Add `checkSyntacticErrors` option
251
- - Fix `process.env` pass to the child process
252
- - Add `fork-ts-checker-service-before-start` hook
253
-
254
- ## v0.2.7
255
-
256
- - Fix service is not killed when webpack watch is done
257
-
258
- ## v0.2.6
259
-
260
- - Add diagnostics/lints formatters - `formatter` and `formatterOptions` option
261
-
262
- ## v0.2.5
263
-
264
- - Add `async` option - more information in `README.md`
265
-
266
- ## v0.2.4
267
-
268
- - Fix `ESLint: "fork-ts-checker-webpack-plugin" is not published.` issue
269
-
270
- ## v0.2.3
271
-
272
- - Add support for webpack 3 as peerDependency
273
-
274
- ## v0.2.2
275
-
276
- - Force `isolatedModule: false` in checker compiler for better performance
277
-
278
- ## v0.2.1
279
-
280
- - Fix for `tslint: true` option issue
281
-
282
- ## v0.2.0
283
-
284
- - tsconfig.json and tslint.json path are not printed anymore.
285
- - `watch` option is not used on 'build' mode
286
- - Handle case with no options object (`new ForkTsCheckerWebpacPlugin()`)
287
- - Basic integration tests (along units)
288
- - **Breaking changes**:
289
- - tslint is not enabled by default - you have to set `tslint: true` or `tslint: './path/to/tslint.json'` to enable it.
290
- - `blockEmit` option is removed - it choose automatically - blocks always on 'build' mode, never on 'watch' mode.
291
-
292
- ## v0.1.5
293
-
294
- - Disable tslint if module is not installed and no tslint path is passed
295
- - Improve README.md
296
-
297
- ## v0.1.4
298
-
299
- - Fix send to closed channel case
300
- - Fix removed files case
301
- - Add `fork-ts-checker-service-start-error` hook
302
-
303
- ## v0.1.3
304
-
305
- - Fix "Cannot read property 'mtime' of undefined on OSX"
306
-
307
- ## v0.1.2
308
-
309
- - Workers mode works correctly (fixed typo)
310
-
311
- ## v0.1.1
312
-
313
- - Support memory limit in multi-process mode
314
- - Handle already closed channel case on sending ipc message
315
-
316
- ## v0.1.0
317
-
318
- - Initial release - not production ready.