Skip to content

Latest commit

 

History

History
217 lines (177 loc) · 16.9 KB

CHANGELOG.md

File metadata and controls

217 lines (177 loc) · 16.9 KB

Releases

Next

v5.3.2 (2016-01-15)

  • FIX: Should not crash in presence of target named "src" (#321) - thanks for the report @ravishivt and @riggerthegeek.

v5.3.1 (2016-01-15)

  • FIX: Will now properly add default tsconfig.json path if omitted when using object style (#302) - thanks for the report @nsgundy.

v5.3.0 (2016-01-15)

  • FEAT: Updated to natively support and include TypeScript 1.7.
  • FEAT: Added support for --noLib, --emitBOM, --locale, --suppressExcessPropertyErrors, --stripInternal, and --allowSyntheticDefaultImports.
  • FEAT: Added support for es6 and es2015 as module options.
  • FIX: Revised all integration tests to account for its behavior (generally, the change to how removeComments works with /// references).
  • FIX: Will now resolve templates prior to updating the globs in a tsconfig.json file (#303) - thanks for the report @nsgundy.
  • FIX: Will now provide a warning when a grunt-ts task-level keyword (such as "watch") is used as a target name (#319) - thanks for the report @jounii.
  • FIX: Transformed HTML files will be automatically added to the compilation context if they match a glob (#255).
  • FIX: Use of outDir in the Gruntfile now works when otherwise getting the configuration from tsconfig.json. (Thanks, @gilamran (#312)).
  • FIX: Certain conditions (such as the specified tsconfig.json not found or VS project resolution errors) caused grunt-ts to hard-quit during options resolution. These are now properly surfaced as errors, and the main quit path will be followed.
  • FIX: Improved detection of if newLine parameter is redundant for TSC. This should make the functionality work more consistently if grunt.util.linefeed is used. Thanks to @Maks3w for the report.

v5.2.0 (2015-11-21)

  • FIX: Grunt pipeline will once again halt by default in the presence of type errors. This was a regression in 5.0.0. Thanks to @mironx, @niondir, and @johnman for the report and assistance. We've added assertions for the count of failed build events in the grunt-ts release test cycle, so a regression like this should hopefully not happen again.
  • FEAT: Added new option emitGruntEvents. In the event of a build failure, grunt-ts will now raise an event grunt-ts.failure if emitGruntEvents is true. See the docs for more detail and an example. This defaults to false, so it's opt-in and there is no change to the existing grunt-ts default behavior.

v5.1.1 (2015-11-17)

  • FIX: Fixes to htmlOutputTemplate. Thanks so much to @rolego, @sethx, and @johnman for the help.
  • DOCS: tweak to html2ts docs to clarify and perhaps fix old merge conflict.
  • FIX: Resolve inappropriate warning if target is called src and uses files (Thanks, @vilmosioo (#305)).

v5.1.0 (2015-10-14)

  • FEAT: Upgraded to TypeScript 1.6.2 (thanks to @vp2177 and @JoshuaKGoldberg for sending early PRs, and for @awjreynolds, @Zjaaspoer, @DrColossos, @ravishivt, @logankd, and @Gouigouix for early encouragement.)
    • Added support for --moduleResolution, --jsx, --experimentalAsyncFunctions, --suppressExcessPropertyErrors, --rootDir.
    • Added outFile support to tsconfig.json (same function as out, but always relative to tsconfig.json file.)
    • Support all TypeScript 1.6 features from Visual Studio/MSBuild (via upgrade to csproj2ts v0.0.6).
  • FIX: Fixed bug where outDir in tsconfig.json was not treated as being relative to the tsconfig.json file.
  • FIX: New tests for "HTML" features (Thanks again, @rolego (#297)).
  • FIX: Blank tsconfig.json should not be an error according to the spec, so this was changed to be same as {}.
  • DOCS: New documentation for several "HTML" features - htmlOutDir and htmlOutDirFlatten.

v5.0.1 (2015-10-08)

  • FIX: 'htmlOutputTemplate' was not handled. Thanks for the PR, @rolego (#291).

v5.0.0 (2015-10-07)

Version 5 of grunt-ts represents a major overhaul of the options resolution system. More than 100 new tests have been added, so this should be the highest quality version of grunt-ts yet. Also, many integration tests have been rewritten as "heavy unit tests" (meaning they call into grunt-ts from grunt, but don't actually call tsc, so they run in ~0.02 sec). This allows validation of grunt-ts warnings, and assertion of exact command line parameters. Even though testing quality has gone up significantly, the overall time to run grunt release on grunt-ts itself has dropped from 184 seconds to 112 seconds - a 64% improvement.

  • FIX: amdloader will now work for .tsx extension as well
  • FEAT: Added support for tsconfig.json #202. Supports maintenance of files property and optional TypeStrong custom filesGlob extension.
  • NOTE: Upgrade to TypeScript 1.6 was out of scope for version 5.0 - that will be part of version 5.1 which should be available soon.
  • NOTE: Significant use of ES6 features throughout - let & const, ES6 imports, destructuring, etc.
  • CHORE: Upgraded to tslint v2.4.0.
  • CHORE: Upgraded to csproj2ts v0.0.4.
  • NOTE: Added dependency on strip-bom npm package.
  • CHORE: Updated several definition files including nodeunit, NodeJS, and es6-promises.
  • CHORE: 'use strict' throughout.
  • CHORE: Upgraded to csproj2ts v0.0.4.
  • FIX: Will now provide warning if sourcemap is used; should be sourceMap. This issue will be auto-resolved.
  • FIX: Templates in grunt targets should always be resolved consistently now #273. Thanks for the report, @bjorm.
  • FIX: html2ts should now honor the outdir setting #271. Thanks for the report, @hoeni.
  • FIX: Target options should always work properly in conjunction with the vs option #264. Thanks for the report, @vtkalek.
  • FIX: Task and target-level options should always override consistently now #248.
  • FIX: out and outDir in VS projects will now work consistently between grunt-ts and Visual Studio; the paths will resolve to be relative to the gruntfile even if the VS project is not in the same folder.
  • If vs is used with files, there will still be a warning, but grunt-ts will now append the files from the Visual Studio project to the result of each files glob. Previously it would compile the Visual Studio project files only (once per files entry).
  • Fixed several broken warnings such as using an array for dest with files.

v4.2.0 (2015-07-21)

  • FEAT: TypeScript 1.5.3 support (TypeScript 1.5 "RTM").
    • While still compatible with older versions, grunt-ts now depends on TypeScript 1.5.3 by default (via package.json).
    • In addition to features added in 4.2.0-beta.1, added experimentalDecorators flag.
    • If emitDecoratorMetadata is specified, experimentalDecorators will now be enabled automatically.
    • If both inlineSources and inlineSourceMap are specified, sourceMap will now be disabled automatically. Thanks @bryanforbes for notifying us of the change between TypeScript 1.5-alpha and 1.5-beta.
  • DOCS: Updated for the above. Thanks to @hdeshev for the PR.

v4.2.0-beta.1 (2015-06-07)

  • FEAT: TypeScript 1.5 beta support.
    • Added support for new TS 1.5 switches: newLine, noEmit, emitDecoratorMetadata, isolatedModules, noEmitHelpers, inlineSourceMap, inlineSources.
    • Added support for SystemJS ('system') and UMD ('umd') on module option.
    • Grunt-ts now compiles correctly with TypeScript 1.5 beta, and all tests pass. Development should now be done with TypeScript 1.5.
    • Note - the compiler that ships with grunt-ts will remain as 1.4 until 1.5 is finalized. Update typescript in your package.json to 1.5.0-beta and run npm install if you wish to use the TypeScript 1.5 beta to compile your code.
  • FEAT: Added new additionalFlags option to allow passing arbitrary strings to tsc (To allow immediate support for new or custom features on the command-line)
  • FEAT: Implemented support for arbitrary HTML transforms, such as to external modules (#249). Thanks to @sethx for the Pull Request.
  • FIX: Now grunt-ts provides a warning if someone uses --out with an external module system (#257). Thanks to @dbeckwith for the report.
  • DOCS: Updated the docs for all of the above.

v4.1.2 (2015-06-03)

  • FIX: Regression with out and outDir for paths with spaces (Also reported on #251). Thanks to @seanmailander for the report.

v4.1.1 (2015-06-02)

  • FIX: Support for the Grunt files feature had a regression and was not working correctly. (#251). Thanks to @Linowitch for the report. We've built in some assertions to ensure this doesn't happen again.

v4.1.0 (2015-05-10)

  • FIX: The reference property should properly work with Grunt transforms again (#235 + #245). Thanks to @thorseye for the PR and @smfeest for independently reporting.
  • FIX: Should work better in situations where node isn't the PATH of the current process (#236). Thanks to @ryanthomas840310 for the PR and @olegccc for the initial report.
  • FIX: The html feature now emits TypeScript that passes tslint (#226). Thank you for the suggestion and example code @BerndWessels.
  • FIX: The html feature now supports file names with periods (#237). Thanks to @starstuffharvestingstarlight.
  • CHORE: Updated to latest chokidar in package.json (#232). Thanks to @paulmillr.
  • CHORE: Cleaned up our sample Gruntfile (#228). Thanks to @bennyn.
  • DOCS: Improved documentation for html feature (#234). Thanks to @ben8p.

v4.0.1 (2015-03-27)

  • FIX: Corrected an issue introduced in 4.0.0 where Grunt transforms were not running on out, outDir, reference, mapRoot, or sourceRoot. (#220 - thanks to paulgambrell and JoeFirebaugh for the report.)
  • FIX: An empty compile step was getting called once per project file if vs was used; this has been corrected.
  • FIX: Ignored a dev-only directory for npm.
  • FIX: Comments will now be preserved when using vs unless RemoveComments is explicitly set in the Visual Studio project.
  • DOCS: Clarified that Compile on Save is not necessarily disabled if you follow the instructions to disable the Visual Studio TypeScript build (but it can be disabled if desired).

v4.0.0 (2015-03-27)

  • FEAT: Now supports parsing and compiling directly against the TypeScript files and configuration specified in a Visual Studio project file - .csproj or .vbproj. Visual Studio not required and files list/config override-able, ignorable and extend-able. (TypeStrong#215)
  • FEAT: Now includes a custom TypeScript targets file to easily disable the internal Visual Studio TypeScript build.
  • DOCS: New detailed instructions on how to disable TypeScript build within Visual Studio while keeping TypeScript Build project properties pane functional.
  • DOCS: Several documentation improvements and clarifications.
  • FIX: report error on wrong module option. (TypeStrong#212)
  • FIX: Corrected an issue where the grunt-ts transforms module might transform itself. #SkyNet
  • CHORE: Added unit test for ///ts:ref= transform.
  • CHORE: Removed dependency on tslint-path-formatter and upgraded grunt-tslint dev dependency to 2.0.0.

v3.0.0 (2015-02-06)

  • Breaking Change: the default bundled typescript compiler is now 1.4.1
  • FEAT: More compiler flags supported (TypeStrong#206)
  • CHORE: updated chokidar. Needed to decrease CPU utilization on certain OSes (TypeStrong#192 (comment))
  • FIX: now will default to Grunt end of line character, but supports Grunt override (#200).
  • CHORE: do not publish /customcompiler folder to npm

v2.0.1 (2014-12-20)

  • FIX: Compatibility with TypeScript 1.3 exit codes (#189).
  • FIX: Show issue count in red if failOnTypeError option is set and there are non-emit preventing errors (#189).
  • FIX: Fixed bad failontypeerror test. (Used incorrect location for parameter in Gruntfile.js).

v2.0.0 (2014-12-05)

  • DOCS: Major documentation overhaul (TypeStrong#185)
  • DOCS: More sample config for gruntfile (TypeStrong#166)
  • DOCS: changelog is now newest on top
  • FEAT: support for files in gruntfile (TypeStrong#171)
  • FEAT: support watching multiple DIRS. (TypeStrong#155)
  • CHORE: Use lodash instead of underscore (TypeStrong#161)
  • FIX: missing tsc.js will now fail the build step (#177)

v1.12.0 (2014-09-30)

  • ENANCEMENT: Transforms are run even when the compile option is false

v1.11.13 (2014-09-30)

  • FIX: transforms will now pick up a generated references.ts (#148)

v1.11.12

  • FIX: transforms should now work for files with BOM (#146)

v1.11.11

  • import/export transforms can provide an alternate variable name to use instead of the file name (#143)
  • Error displayed when /// ts:??? is detected but no transform exists for ???

v1.11.10

  • FIX: ///ts:import and ///ts:ref will now work with d.ts files as well.

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 TypeStrong#140

v1.11.8

  • Update bundled TypeScript compiler to v1.0.1

v1.11.7

  • Fix: Make /// ts:import etc. work same as ///ts:import i.e. whitespace independent.(#135)

v1.11.6

  • FEAT: Add a compiler task option to specify a custom compiler bin path : TypeStrong#126
  • DOCS: Add documentation for transforms (TypeStrong#85) + ts:ref
  • DOCS: I don't like amdLoader anymore now that we have transforms. So deprecating it and moving its docs to its own file.
  • DOCS: Moved docs for customizing html2ts output into their own file as I want readme to be quick and effective (focused on why).
  • DOCS: Add documentation for fast compile
    • All tasks like grunt-contrib-watch are supported
    • will not work with --out
    • the granularity TypeStrong#96 (comment)

v1.11.5

  • No need to warn when default values are usable. Ref: TypeStrong#115
  • Fix path.join error because of grunt.task.current.target : TypeStrong#118
  • Update LKG with self

v1.11.4

  • Add additional error summary for type error vs. code emit preventing error : TypeStrong#120

v1.11.3

  • Add failOnTypeErrors task option. If false build succeeds (exit code 0) if JS can be emitted successfully. More : TypeStrong#103

v1.11.2

  • Add ///ts:ref transform for reference tags
  • change './../path/to/file' to be '../path/to/file' when doing transforms

v1.11.1

  • Do not update templateCache if previous file is same as the new calculated one

v1.11.0

  • Fix LKG TypeStrong#97 i.e. grunt upgrade
  • Cleanup .npmignore
  • Breaking Change: Update the bundled TSC to v1.0.0
  • Breaking Change: Remove index option (TypeStrong#68). This has been replaced by transformers. Plus the blindly created index is unreliable for when we have any file that doesn't export anything.

v1.10.0

  • Breaking Change: updated fast task option to have three levels: TypeStrong#96 (comment) watch (default) | always | never. If you never specified it than you don't need to do anything as the new default 'watch' is same as old default true
  • use grunt-ts to smoothe grunt-ts development workflow
  • Update LKG is automatic at the moment because of TypeStrong#97

v1.9.3

v1.9.2

  • Fix: if fast compiling and user specified an outDir but baseDir isn't specified, figure one out based on the target src glob. (TypeStrong#77 (comment))
  • Chore: updated chokidar TypeStrong#94

v1.9.1

  • Fix: Automatically clear the .tscache on loading grunt-ts task. TypeStrong#81

v1.9.0

  • Breaking change: reference.ts generation now does EOL based on the current OS. This is the only rational reasonable way to handle EOLs.
  • Breaking change: fast:true is now the default. This means that your project might not be build ready just because the last ts:compile succeeded. You should add a task to clean .tscache and recompile everything for that safety before you push to the build server.