clarkmcc/go-typescript
Compile and run Typescript code natively in Go
5 Releases
Latest: 3y ago
Release 0.7.0 - Updated Typescript Versionv0.7.0Latest
Updated the default Typescript version to 4.9.3.
v0.6.0 - Added Typescript 4.7.2, Performance Improvementsv0.6.0
📋 Changes
- Adds support for [Typescript v4.7.2](https://github.com/microsoft/TypeScript/tree/v4.7.2).
- Fixed bug that caused both Typescript versions 4.2.3 to be registered even when it was not intended to be used, this reduced the memory overhead by about 50%.
v0.5.0 - Go 1.17, ES6 Gojav0.5.0
📋 Changes
- Updated the go.mod to specify Go version 1.17.
- Updated [goja](https://github.com/dop251/goja) dependency to the [latest commit to master](https://github.com/dop251/goja/commit/26ebff68a7d56e27db4d45ae7655b36532aba72a) which adds support for several ES6 language features.
v0.3.0 - Evaluator with AMD Module Support and Typescript 4.2.4v0.3.0
📋 Changes
- Removed a parameter from the Transpile API for passing an explicit configuration struct. This introduced problems for users that did not add in all the correct defaults. Users have all the same customization flexibility using config modifier functions.
- Added an evaluation function that allows users to transpile, pre-evaluate dependencies and evaluate Javascript or Typescript scripts directly with full cancellation support.
- Added optional support for evaluating with a built-in [AMD module loader](https://github.com/requirejs/almond). This allows users to evaluate scripts in the context of Typescript compiled bundles.
- Added support for Typescript v4.2.4 and configured it to be the new default for the transpiler.
v0.2.0 - Optimized Registry and Additional Typescript Versionsv0.2.0
This release brings two significant changes to the project: 1. Typescript version loaders and tagged sources have been broken out into their own packages that can be imported in a side-effect type of way. This allows you to control what you load into the default registry, which avoids loading every Typescript version into memory when you only really need one version. See [the readme](https://github.com/clarkmcc/go-typescript#default-registry) for implementation details. 2. Added Typescript tags v4.1.5, v4.1.4, v4.1.3, v4.1.2, v3.9.9, and v3.8.3.
