Skip to content

Commit 14b33ac

Browse files
authored
Readying 0.9.4 release (#323)
* tidy up * Update package.json * Update CHANGELOG.md * Update README.md
1 parent 5bd4b04 commit 14b33ac

File tree

4 files changed

+8
-13
lines changed

4 files changed

+8
-13
lines changed

CHANGELOG.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# Changelog
22

3-
## v0.9.x - not released yet
3+
## v0.9.4
44

5-
- [Make logging to stderr or stdout configurable; introduce logging levels](https://github.com/TypeStrong/ts-loader/pull/313) [#214]
6-
- [Fix regression that broke hot module replacement](https://github.com/TypeStrong/ts-loader/pull/322) [#321]
5+
- [Make logging to stderr or stdout configurable; introduce logging levels](https://github.com/TypeStrong/ts-loader/pull/313) [#214] - thanks @ThYpHo0n
6+
- [Fix regression that broke hot module replacement](https://github.com/TypeStrong/ts-loader/pull/322) [#321] - thanks @dopare
77

88
## v0.9.3
99

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Tutorials and examples can be [found here](https://github.com/TypeStrong/ts-load
1515

1616
ts-loader supports the latest and greatest version of TypeScript right back to v1.6. (Including the [nightly build](http://blogs.msdn.com/b/typescript/archive/2015/07/27/introducing-typescript-nightlies.aspx).)
1717

18-
A full test suite runs against the following versions of TypeScript each night (and on each pull request):
18+
A full test suite runs each night (and on each pull request). It runs both on Linux ([Travis](https://travis-ci.org/)) and Windows ([AppVeyor](https://www.appveyor.com/)), testing ts-loader against the following versions of TypeScript:
1919
- TypeScript 2.0
2020
- TypeScript 1.8
2121
- TypeScript 1.7
@@ -24,7 +24,7 @@ A full test suite runs against the following versions of TypeScript each night (
2424
and also:
2525
- TypeScript@next (because we want to use it as much as you do)
2626

27-
If you become aware of issues not caught by the test suite then please let us know.
27+
If you become aware of issues not caught by the test suite then please let us know. Better yet, write a test and submit it in a PR!
2828

2929
### Babel
3030

index.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -156,9 +156,8 @@ function findConfigFile(compiler: typeof typescript, searchPath: string, configF
156156
// or returns the existing one. Multiple instances are possible by using the
157157
// `instance` property.
158158
function ensureTypeScriptInstance(loaderOptions: LoaderOptions, loader: any): { instance?: TSInstance, error?: WebpackError } {
159-
160159
function log(...messages: string[]): void {
161-
logToConsole(stdoutConsole, messages);
160+
logToConsole(loaderOptions.logInfoToStdOut ? stdoutConsole : stderrConsole, messages);
162161
}
163162

164163
function logToConsole(logConsole:any, messages: string[]): void {
@@ -169,11 +168,7 @@ function ensureTypeScriptInstance(loaderOptions: LoaderOptions, loader: any): {
169168

170169
function logInfo(...messages: string[]): void {
171170
if (LogLevel[loaderOptions.logLevel] <= LogLevel.INFO) {
172-
if(loaderOptions.logInfoToStdOut) {
173-
logToConsole(stdoutConsole, messages);
174-
} else {
175-
logToConsole(stderrConsole, messages);
176-
}
171+
logToConsole(loaderOptions.logInfoToStdOut ? stdoutConsole : stderrConsole, messages);
177172
}
178173
}
179174

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ts-loader",
3-
"version": "0.9.3",
3+
"version": "0.9.4",
44
"description": "TypeScript loader for webpack",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)