Comparing version 1.11.8 to 1.11.9
@@ -63,3 +63,7 @@ # Released | ||
# v1.11.9 | ||
* DOCS: recommend `fast:always` with `grunt-contrib-watch` because `spawn:false` breaks under stress (i.e. `interrupt:true`) | ||
* FIX: use `stdout` if not empty. Otherwise fall back to `stderr` (a change introduced in the latest version of the compiler for consistency with other Microsoft compilers) See https://github.com/grunt-ts/grunt-ts/issues/140 | ||
## Work to be done | ||
* Show error when `/// ts:???` is detected but no transform exists for `???` |
@@ -320,3 +320,3 @@ /*! ***************************************************************************** | ||
*/ | ||
match(regexp: string): string[]; | ||
match(regexp: string): RegExpMatchArray; | ||
@@ -327,3 +327,3 @@ /** | ||
*/ | ||
match(regexp: RegExp): string[]; | ||
match(regexp: RegExp): RegExpMatchArray; | ||
@@ -795,35 +795,12 @@ /** | ||
interface RegExpExecArray { | ||
[index: number]: string; | ||
length: number; | ||
interface RegExpMatchArray extends Array<string> { | ||
index?: number; | ||
input?: string; | ||
} | ||
interface RegExpExecArray extends Array<string> { | ||
index: number; | ||
input: string; | ||
toString(): string; | ||
toLocaleString(): string; | ||
concat(...items: string[][]): string[]; | ||
join(separator?: string): string; | ||
pop(): string; | ||
push(...items: string[]): number; | ||
reverse(): string[]; | ||
shift(): string; | ||
slice(start?: number, end?: number): string[]; | ||
sort(compareFn?: (a: string, b: string) => number): string[]; | ||
splice(start: number): string[]; | ||
splice(start: number, deleteCount: number, ...items: string[]): string[]; | ||
unshift(...items: string[]): number; | ||
indexOf(searchElement: string, fromIndex?: number): number; | ||
lastIndexOf(searchElement: string, fromIndex?: number): number; | ||
every(callbackfn: (value: string, index: number, array: string[]) => boolean, thisArg?: any): boolean; | ||
some(callbackfn: (value: string, index: number, array: string[]) => boolean, thisArg?: any): boolean; | ||
forEach(callbackfn: (value: string, index: number, array: string[]) => void, thisArg?: any): void; | ||
map(callbackfn: (value: string, index: number, array: string[]) => any, thisArg?: any): any[]; | ||
filter(callbackfn: (value: string, index: number, array: string[]) => boolean, thisArg?: any): string[]; | ||
reduce(callbackfn: (previousValue: any, currentValue: any, currentIndex: number, array: string[]) => any, initialValue?: any): any; | ||
reduceRight(callbackfn: (previousValue: any, currentValue: any, currentIndex: number, array: string[]) => any, initialValue?: any): any; | ||
} | ||
interface RegExp { | ||
@@ -986,2 +963,6 @@ /** | ||
/** | ||
* Gets or sets the length of the array. This is a number one higher than the highest element defined in an array. | ||
*/ | ||
length: number; | ||
/** | ||
* Returns a string representation of an array. | ||
@@ -992,2 +973,11 @@ */ | ||
/** | ||
* Appends new elements to an array, and returns the new length of the array. | ||
* @param items New elements of the Array. | ||
*/ | ||
push(...items: T[]): number; | ||
/** | ||
* Removes the last element from an array and returns it. | ||
*/ | ||
pop(): T; | ||
/** | ||
* Combines two or more arrays. | ||
@@ -1008,11 +998,2 @@ * @param items Additional items to add to the end of array1. | ||
/** | ||
* Removes the last element from an array and returns it. | ||
*/ | ||
pop(): T; | ||
/** | ||
* Appends new elements to an array, and returns the new length of the array. | ||
* @param items New elements of the Array. | ||
*/ | ||
push(...items: T[]): number; | ||
/** | ||
* Reverses the elements in an Array. | ||
@@ -1133,7 +1114,2 @@ */ | ||
/** | ||
* Gets or sets the length of the array. This is a number one higher than the highest element defined in an array. | ||
*/ | ||
length: number; | ||
[n: number]: T; | ||
@@ -1140,0 +1116,0 @@ } |
@@ -33,2 +33,7 @@ /*! ***************************************************************************** | ||
byteLength: number; | ||
/** | ||
* Returns a section of an ArrayBuffer. | ||
*/ | ||
slice(begin:number, end?:number): ArrayBuffer; | ||
} | ||
@@ -35,0 +40,0 @@ |
# Fast compile configuration | ||
Note : You must use *external modules* to be effective with `grunt-ts` fast compile. | ||
Note : `watch` is a good default for `grunt-contrib-watch`. Make sure that `spawn` is false in `grunt-contrib-watch` otherwise it reloads `grunt-ts` and we clear the cache. Alternatively use `always` | ||
Configuration is done via the `fast` *task* option. The following values are supported: | ||
* `watch`(default) which will clear the cache of the current target the first time it is called after `grunt-ts` has loaded (basically assumming that the js might have been out of date and just regenerating it *once*). | ||
* `always` will *never* clear the cache and it is up to the user to clear it if they purge the js. This is useful when you are using something like `webstorm` which always restarts `grunt-ts` and therefore we cannot take responsibility of clearing the cache for your. | ||
* `never` Disables fast compile. | ||
## watch | ||
`watch`(default) which will clear the cache of the current target the first time it is called after `grunt-ts` has loaded (basically assumming that the js might have been out of date and just regenerating it *once*). | ||
## always | ||
`always` will *never* clear the cache (the `.tscache` folder) and it is up to the user to clear it (delete the `.tscache` folder) if they purge the js. This is useful when you are using something like `webstorm` which always restarts `grunt-ts` and therefore we cannot take responsibility of clearing the cache for your. Use the option for `grunt-contrib-watch` as well. | ||
## never | ||
`never` Disables fast compile. |
@@ -5,3 +5,3 @@ { | ||
"description": "Compile and manage your TypeScript project", | ||
"version": "1.11.8", | ||
"version": "1.11.9", | ||
"homepage": "https://github.com/grunt-ts/grunt-ts", | ||
@@ -8,0 +8,0 @@ "repository": { |
@@ -24,3 +24,4 @@ /// <reference path="../../defs/tsd.d.ts"/> | ||
code: code, | ||
output: String(result) | ||
// New TypeScript compiler uses stdout for user code errors. Old one used stderr. | ||
output: result.stdout || result.stderr | ||
}; | ||
@@ -27,0 +28,0 @@ resolve(ret); |
@@ -31,3 +31,4 @@ /// <reference path="../../defs/tsd.d.ts"/> | ||
code: code, | ||
output: String(result) | ||
// New TypeScript compiler uses stdout for user code errors. Old one used stderr. | ||
output: result.stdout || result.stderr | ||
}; | ||
@@ -34,0 +35,0 @@ resolve(ret); |
@@ -103,3 +103,3 @@ /// <reference path="../../defs/tsd.d.ts"/> | ||
BaseTransformer.tsSignature = '///ts:'; | ||
BaseTransformer.tsSignatureMatch = '///ts:{0}=(.*)'; | ||
BaseTransformer.tsSignatureMatch = '///\\s?ts:{0}=(.*)'; | ||
return BaseTransformer; | ||
@@ -106,0 +106,0 @@ })(); |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4242237
79996
10
44
1