{"id":303,"date":"2012-11-15T10:44:00","date_gmt":"2012-11-15T10:44:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/typescript\/2012\/11\/15\/announcing-typescript-0-8-1\/"},"modified":"2024-07-01T13:55:59","modified_gmt":"2024-07-01T21:55:59","slug":"announcing-typescript-0-8-1","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/typescript\/announcing-typescript-0-8-1\/","title":{"rendered":"Announcing TypeScript 0.8.1"},"content":{"rendered":"<h2><span style=\"color: #2e74b5;\"><span style=\"font-family: Calibri Light;\">Announcing TypeScript 0.8.1<\/span><\/span><\/h2>\n<p><span style=\"font-family: Calibri; font-size: small;\">We released the first public preview of <a href=\"http:\/\/typescriptlang.org\" target=\"_blank\" rel=\"noopener\">TypeScript<\/a> last month, and have been excited to see the great reaction from the developer community.\u00a0 Since the preview, we\u2019ve seen an influx of suggestions and bug reports, integration into various build and testing tools, and <\/span><a href=\"https:\/\/github.com\/borisyankov\/DefinitelyTyped\"><span style=\"color: #0563c1; font-family: Calibri; font-size: small;\">declare files for a variety of existing JavaScript libraries<\/span><\/a><span style=\"font-size: small;\"><span style=\"font-family: Calibri;\">.\u00a0 <\/span><\/span><\/p>\n<p><span style=\"font-size: small;\"><span style=\"font-family: Calibri;\">Today, we\u2019re happy to announce the second publically available preview of TypeScript: version 0.8.1.\u00a0 This preview focuses on addressing critical bugs and adding one of the most requested features: source level debugging.<\/span><\/span><\/p>\n<p><span style=\"font-size: medium;\"><span style=\"color: #2e74b5;\"><span style=\"font-family: Calibri Light;\">Debugging<\/span><\/span><\/span><\/p>\n<p><span style=\"font-family: Calibri; font-size: small;\">TypeScript now supports source level debugging! \u00a0The <\/span><a href=\"https:\/\/docs.google.com\/document\/d\/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k\/edit?pli=1\"><span style=\"color: #0563c1; font-family: Calibri; font-size: small;\">source map<\/span><\/a><span style=\"font-size: small;\"><span style=\"font-family: Calibri;\"> format has been gaining popularity as a way of debugging languages which translate to JavaScript and is supported by a variety of browsers and tools.\u00a0 With version 0.8.1, the TypeScript compiler officially supports source maps.\u00a0 Additionally, the new version of TypeScript for Visual Studio 2012 supports debugging using the source map format.<\/span><\/span><\/p>\n<p><span style=\"font-size: small;\"><span style=\"font-family: Calibri;\">From the command-line, we now fully support the use of the <\/span>&#8211;sourcemap<span style=\"font-family: Calibri;\"> flag, which outputs a source map file corresponding to the JavaScript output.\u00a0 This file will allow directly debugging the original TypeScript source in source map-enabled browsers and Visual Studio.<\/span><\/span><\/p>\n<p><span style=\"font-size: small;\"><span style=\"font-family: Calibri;\">To enable debugging in Visual Studio select \u2018Debug\u2019 from the dropdown after creating an HTML Application with TypeScript project.<\/span><\/span><\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/typescript\/wp-content\/uploads\/sites\/11\/2012\/11\/0083.debugconfig.png\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4321\" src=\"https:\/\/devblogs.microsoft.com\/typescript\/wp-content\/uploads\/sites\/11\/2012\/11\/0083.debugconfig.png\" alt=\"Image 0083 debugconfig\" width=\"172\" height=\"94\" \/><\/a><\/p>\n<p><span style=\"font-size: small;\"><span style=\"font-family: Calibri;\">Once selected, you can set breakpoints and step directly in your TypeScript code.<\/span><\/span><\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/typescript\/wp-content\/uploads\/sites\/11\/2012\/11\/4130.debuggreeter.png\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4322\" src=\"https:\/\/devblogs.microsoft.com\/typescript\/wp-content\/uploads\/sites\/11\/2012\/11\/4130.debuggreeter.png\" alt=\"Image 4130 debuggreeter\" width=\"721\" height=\"465\" srcset=\"https:\/\/devblogs.microsoft.com\/typescript\/wp-content\/uploads\/sites\/11\/2012\/11\/4130.debuggreeter.png 721w, https:\/\/devblogs.microsoft.com\/typescript\/wp-content\/uploads\/sites\/11\/2012\/11\/4130.debuggreeter-300x193.png 300w\" sizes=\"(max-width: 721px) 100vw, 721px\" \/><\/a><\/p>\n<p><span style=\"font-size: small;\"><span style=\"font-family: Calibri;\">You can also see your current location using the call stack.\u00a0\u00a0<\/span><\/span><\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/typescript\/wp-content\/uploads\/sites\/11\/2012\/11\/2022.debugcallstack.png\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4324\" src=\"https:\/\/devblogs.microsoft.com\/typescript\/wp-content\/uploads\/sites\/11\/2012\/11\/2022.debugcallstack.png\" alt=\"Image 2022 debugcallstack\" width=\"315\" height=\"104\" srcset=\"https:\/\/devblogs.microsoft.com\/typescript\/wp-content\/uploads\/sites\/11\/2012\/11\/2022.debugcallstack.png 315w, https:\/\/devblogs.microsoft.com\/typescript\/wp-content\/uploads\/sites\/11\/2012\/11\/2022.debugcallstack-300x99.png 300w\" sizes=\"(max-width: 315px) 100vw, 315px\" \/><\/a><\/p>\n<p><span style=\"font-size: medium;\"><span style=\"color: #2e74b5;\"><span style=\"font-family: Calibri Light;\">Bug Fixes<\/span><\/span><\/span><\/p>\n<p><span style=\"font-family: Calibri; font-size: small;\">This release addresses many issues found in our first public preview. \u00a0These fixes have improved compiler stability, compiler correctness, and UTF-8 support.\u00a0 A big \u201cthank you!\u201d to everyone who has helped so far by <\/span><a href=\"http:\/\/typescript.codeplex.com\/WorkItem\/Create\"><span style=\"color: #0563c1; font-family: Calibri; font-size: small;\">reporting bugs<\/span><\/a><span style=\"font-size: small;\"><span style=\"font-family: Calibri;\"> and participating in the issue tracker and forums.<\/span><\/span><\/p>\n<p><span style=\"font-size: medium;\"><span style=\"color: #2e74b5;\"><span style=\"font-family: Calibri Light;\">Breaking Changes<\/span><\/span><\/span><\/p>\n<p><span style=\"font-size: small;\"><span style=\"font-family: Calibri;\">There are two known breaking changes since v0.8.0:<\/span><\/span><\/p>\n<ul>\n<li><span style=\"font-size: small;\"><span style=\"font-family: Calibri;\">Projects created from the Visual Studio templates using v0.8.0 will need to be manually updated to work with v0.8.1.\u00a0 Going forward, this should not be necessary.\u00a0\u00a0<a href=\"http:\/\/typescript.codeplex.com\/discussions\/403394\">This post <\/a>contains details of the MSBuild to use when converting projects.<\/span><\/span><\/li>\n<li><span style=\"font-size: small;\"><span style=\"font-family: Calibri;\">The compiler was previously incorrectly allowing non-exported interfaces in a module to be used from outside the module.\u00a0 These must now be exported explicitly per the specification. <\/span><\/span><\/li>\n<\/ul>\n<p><span style=\"font-size: medium;\"><span style=\"color: #2e74b5;\"><span style=\"font-family: Calibri Light;\">Conclusion<\/span><\/span><\/span><\/p>\n<p><span style=\"font-family: Calibri; font-size: small;\">The version 0.8.1 preview is now available for <\/span><a href=\"http:\/\/go.microsoft.com\/fwlink\/?LinkID=266563\"><span style=\"color: #0563c1; font-family: Calibri; font-size: small;\">Visual Studio<\/span><\/a><span style=\"font-family: Calibri; font-size: small;\">, <\/span><a href=\"https:\/\/npmjs.org\/package\/typescript\"><span style=\"color: #0563c1; font-family: Calibri; font-size: small;\">npm<\/span><\/a><span style=\"font-family: Calibri; font-size: small;\">, and <\/span><a href=\"http:\/\/typescript.codeplex.com\/SourceControl\/BrowseLatest\"><span style=\"color: #0563c1; font-family: Calibri; font-size: small;\">source<\/span><\/a><span style=\"font-size: small;\"><span style=\"font-family: Calibri;\">.\u00a0 We\u2019re excited to see how people will continue using, building upon, and integrating TypeScript into their JavaScript development, and we\u2019d love to get your feedback.<\/span><\/span><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Announcing TypeScript 0.8.1 We released the first public preview of TypeScript last month, and have been excited to see the great reaction from the developer community.\u00a0 Since the preview, we\u2019ve seen an influx of suggestions and bug reports, integration into various build and testing tools, and declare files for a variety of existing JavaScript libraries.\u00a0 [&hellip;]<\/p>\n","protected":false},"author":377,"featured_media":1797,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[3,4,5,6],"class_list":["post-303","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-typescript","tag-0-8-1","tag-debugging","tag-release","tag-typescript"],"acf":[],"blog_post_summary":"<p>Announcing TypeScript 0.8.1 We released the first public preview of TypeScript last month, and have been excited to see the great reaction from the developer community.\u00a0 Since the preview, we\u2019ve seen an influx of suggestions and bug reports, integration into various build and testing tools, and declare files for a variety of existing JavaScript libraries.\u00a0 [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/typescript\/wp-json\/wp\/v2\/posts\/303","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/typescript\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/typescript\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/typescript\/wp-json\/wp\/v2\/users\/377"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/typescript\/wp-json\/wp\/v2\/comments?post=303"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/typescript\/wp-json\/wp\/v2\/posts\/303\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/typescript\/wp-json\/wp\/v2\/media\/1797"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/typescript\/wp-json\/wp\/v2\/media?parent=303"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/typescript\/wp-json\/wp\/v2\/categories?post=303"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/typescript\/wp-json\/wp\/v2\/tags?post=303"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}