|TypeScript A Decade On|
|Written by Mike James|
|Wednesday, 12 October 2022|
In my initial report on TypeScript on October 1st, 2012 I wrote:
Concluding that report on TypeScript on October 1st, 2012, my opinion was wrote:
In a blog post "Ten Years of TypeScript", Daniel Rosenwasser, Microsoft's Senior Program Manager for TypeScript recalls that there was a lot of skepticism when the language was first unveiled, commenting:
TypeScript has evolved rapidly. It had already been underdevelopment at Microsoft for two years when it first became public. In June 2013, nine months after its debut it reached version 0.9, a release that is important for the inclusion of Generics and a re-engineered compiler. The first release candidate of TypeScript 1.0. arrived in February 2014 at the same time as we reported TypeScript Fully Accepted into Visual Studio.
In July 2014 the TypeScript project moved in its entirety to GitHub, something we reported as being in response to feedback from its community. This coincided with a new faster and lighter compiler that was able to compile existing real-world TypeScript code five times faster than the previous compiler.
The next major version, TypeScript 3.0, introduced project reference support - specifically tsconfig.json files can reference other tsconfig.json files and in general, according to Rosenwasser:
"means things like faster builds that work incrementally, and support for transparently navigating, editing, and refactoring across projects."
This version also introduced the unknown type, a type-safe alternative to any, and the ability to use tuples in parameter lists.
TypeScript 4.0 arrived in August 2020 and while it didn't introduce any major breaking changes there were plenty of new features starting with variadic tuple types.
We've reported the new releases in the TypeScript 4.x as they have arrived. One that stands out is TypeScript 4.5 which introduced a new utility type called Awaited. This can be used to model operations like await in async functions, or the .then() method on Promises, and in particular, the way that they recursively unwrap Promises.
The most recent release, in September 2022, TypeScript 4.8 was notable for a bug fix, eliminating a long-standing bug that until now has caused problems when some changes occurred in files in --watch mode and editor scenarios. This sometimes manifested as displaying stale or inaccurate errors that might show up that require restarting tsc or VS Code. This problem should be consigned to history thanks to reworking of how it decides when to use a new watcher.
New TypeScript Website Launched
TypeScript 4.8 Improves Intersection Reduction
TypeScript 4.7 Adds Node.js ECMAScript Module Support
TypeScript 4.6 Improves Constructors
TypeScript 4.4 Improves Control Flow Analysis
TypeScript 4.3 Adds Separate Property Write Types
TypeScript 4.2 Release Candidate Available
TypeScript 4.1 Adds Temporal Literal Types
To be informed about new articles on I Programmer, sign up for our weekly newsletter, subscribe to the RSS feed and follow us on Twitter, Facebook or Linkedin.
or email your comment to: email@example.com
|Last Updated ( Wednesday, 12 October 2022 )|