Releases: TypeStrong/ts-node
Releases · TypeStrong/ts-node
Nice Errors
Changed
- Improved, cleaner error messages - errors are properly formatted and not thrown with stack traces
- [Internal] Register now accepts the
getFile
andgetVersion
arguments to override default lookups (for eval, REPL)
Fixed
- Using eval/print or the REPL with TypeScript 1.6 works as expected
- CLI arguments after the script are not interpreted
File Reloads
Changed
- Use file
mtime
as the file version for TypeScript to trigger reloads - Write source maps inline with the file contents, in a hope to better support third-party tools like istanbul
Remove TypeScript Peer Dependency
Changed
- Source maps are always compiled in memory
Removed
- TypeScript no longer listed as peer dependency - use any version compatible (including
1.6
) - TypeScript definition no longer listed in
package.json
for hack with TSD
Export version
Added
- Programmatic usage to
README.md
- Prefer global in
package.json
- Add short arguments for CLI
- Add and update
VERSION
variable with legitpre-commit
script
Fixed
- CLI argument descriptions
Changed
- Compiler function from
register
reversed arguments - Resolve cwd on
register
TypeScript Stable
Changed
- Reference minimum version of
typescript@^1.5.0
Eval Source Maps
Fixed
- Source maps will output properly during
eval
and REPL sessions (negative index was caused by https://github.com/evanw/node-source-map-support/blob/93a7c8a22ef194085b05e85273b5d7e48e044301/source-map-support.js#L289-L293)
Eval Source Maps Throw
Changed
- Removed semicolon before eval'd code, will throw source map errors instead
Source Maps
Fixed
- Source maps use correct filename in maps for look up
Changed
- Reuse same service across register and
ts-node
eval - Use source maps on uncaught errors, but all source maps are inline so avoid falling back to old lookup because of IO
- [private]
register
returns an inline compiler instance
Added
- More advanced examples
Quick Maintenance
Changed
- Output filenames with errors
- Various updates to README
- Use TypeScript release from GitHub as dev dependency for compilation
Initial Release
Initial release of ts-node
CLI for executing TypeScript under node. Provides a register
hook for ordinary code and can be required for use with mocha, etc.