Skip to content

Releases: danvk/literate-ts

v2.5.0

03 Jul 15:53
8f349b7
Compare
Choose a tag to compare

What's Changed

This is the version of literate-ts that I used to verify the second edition of Effective TypeScript and extract the code samples and playground URLs for its companion repo.

  • feat: match error spans by @danvk in #297
  • Generate code samples for repo by @danvk in #314
  • Many dependency updates and adjustments to testing infrastructure

Full Changelog: v2.4.0...v2.5.0

v2.4.0

05 Apr 15:50
4716e28
Compare
Choose a tag to compare

What's Changed

New features:

Also many dependency updates.

Full Changelog: v2.3.0...v2.4.0

v2.3.0

10 Mar 19:45
033112c
Compare
Choose a tag to compare

What's Changed

📘 With any luck, this will be the version used to check the second edition of Effective TypeScript.

New features:

  • Add prepended files to TS Program by @danvk in #215
  • Allow ellipsis in expected types by @danvk in #248
  • Add example with top level await by @danvk in #250
  • Support "equivalent to" for values by @danvk in #252
  • feat: special syntax for start-of-line errors by @danvk in #255
  • A smattering of bug fixes and features by @danvk in #180
    • Warn about active prefixes with JSON sources (maybe they should be ignored).
    • Allow a trailing undefined in program listings
    • Allow prepend-as-file to write to subdirectories and honor that name when the sample itself is being checked.

Bug fixes:

  • Strip filename from Node stack traces by @danvk in #216
  • Handle named function types specially in matchModuloWhitespace by @danvk in #214
  • Extract type assertions without a scanner by @danvk in #223
  • fix: check type assertions involving arrow functions by @danvk in #237
  • Fix mysterious node_modules bug by @danvk in #224
  • fix: be stricter about continuation lines for twoslash by @danvk in #253
  • fix: always run type assertion tests, add test for DOM augmentation by @danvk in #254

Also many dependency updates.

Full Changelog: v2.2.0...v2.3.0

v2.2.0

13 Sep 15:10
820c3af
Compare
Choose a tag to compare

What's Changed

New features:

  • The include-node-module directive now include transitive dependencies (#143)
  • "type equivalent to" assertions to "resolve" opaque-looking types like keyof T (#145)
  • Test node REPL "program listings" (#148, #149)
  • The new prepend-as-file directive lets you verify code involving imports (#150)
  • JSON/JSONC sources are verified and can be imported in code samples (#151)

Bug fixes:

  • Fix a crashing bug in matchModuleWhitespace() by @danvk in #138
  • Clamp error spans to source code block by @danvk in #107
  • Simplify and clarify --filter behavior by @danvk in #141
  • Empty twoslash assertions should fail by @danvk in #146
  • Support verify+skip by @danvk in #147
  • Precise error spans for twoslash assertions by @danvk in #142

Various dependency updates:

Full Changelog: v2.1.0...v2.2.0

v2.1.0

07 Aug 21:50
5957f9a
Compare
Choose a tag to compare

What's Changed

  • Two new directives: replace-with-id and prepend-subset-of-id-to-following
  • Report precise error spans for much better error highlighting in your editor
  • Inline replacements by @danvk in #102
  • Add prepend-subset-of-id-to-following directive by @danvk in #103
  • Report error spans in code samples by @danvk in #104

Full Changelog: v2.0.0...v2.1.0

v2.0.0

06 Aug 16:12
66db595
Compare
Choose a tag to compare

What's Changed

Major changes:

  • literate-ts now uses an on-disk cache. This results in dramatic speedups when you repeatedly run literate-ts on the same set of files with only a few changes. You can bypass the cache with --nocache and delete it with rm -rf node_modules/.cache/literate-ts.
  • literate-ts now uses ES modules. You'll need to use a version of Node that supports them.
  • literate-ts can now be run inside VS Code as a task to highlight problems inline in your document.

All changes

New Contributors

Full Changelog: v1.3.0...v2.0.0

v1.3.0

01 Aug 18:34
10b1e52
Compare
Choose a tag to compare

What's Changed

  • Add support for Twoslash assertions by @danvk in #61
  • Update TypeScript, Jest, ts-jest by @danvk in #60

v1.2.0

04 Feb 21:39
e110e79
Compare
Choose a tag to compare
  • Update dependencies
  • Add triple-tick codeblock support to asciidoc processor (#36) thanks @JoshuaKGoldberg!
  • Document CLI flags in README.md (#46) thanks @JoshuaKGoldberg!
  • Print failures as filename:line (#37 / #54) thanks @JoshuaKGoldberg!
  • Switch from CircleCI → GitHub Actions and set up Code Coverage (currently at 63.29%)
  • Fixes for error messages in recent Node.js versions (#53)

Initial release

29 Jun 22:00
d89d146
Compare
Choose a tag to compare

First version on npm.