Releases: danvk/literate-ts
Releases · danvk/literate-ts
v2.5.0
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
What's Changed
New features:
- Support Node.js 20+ by @danvk in #256
- Throw on duplicate IDs by @danvk in #257
- Check emitted JS by @danvk in #260
- Check for line length by @danvk in #261
- Allow named values for tsconfig enums by @danvk in #262
Also many dependency updates.
Full Changelog: v2.3.0...v2.4.0
v2.3.0
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
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 involvingimport
s (#150) - JSON/JSONC sources are verified and can be
import
ed 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:
- Update typescript-eslint monorepo to v6.3.0 by @renovate in #108
- Update dependency @types/node to v18.17.4 by @renovate in #110
- Update dependency @types/lodash to v4.14.197 by @renovate in #111
- Update actions/setup-node action to v3.8.0 by @renovate in #112
- Update dependency eslint to v8.47.0 by @renovate in #113
- Update typescript-eslint monorepo to v6.4.0 by @renovate in #114
- Update actions/setup-node action to v3.8.1 by @renovate in #115
- Update dependency prettier to v3.0.2 by @renovate in #116
- Update dependency @types/node to v18.17.6 by @renovate in #118
- Update dependency find-cache-dir to v5 by @renovate in #119
- Update dependency jest to v29.6.3 by @renovate in #120
- Update typescript-eslint monorepo to v6.4.1 by @renovate in #121
- Update dependency @types/node to v18.17.7 by @renovate in #122
- Update dependency @types/jest to v29.5.4 by @renovate in #123
- Update dependency read-pkg-up to v10.1.0 by @renovate in #124
- Update dependency typescript to v5.2.2 by @renovate in #126
- Update dependency eslint to v8.48.0 by @renovate in #127
- Update dependency @types/node to v18.17.12 by @renovate in #128
- Update typescript-eslint monorepo to v6.5.0 by @renovate in #129
- Update dependency prettier to v3.0.3 by @renovate in #130
- Update actions/checkout action to v4 by @renovate in #133
- Update dependency @types/node to v18.17.14 by @renovate in #131
- Update typescript-eslint monorepo to v6.6.0 by @renovate in #134
- Update dependency @types/lodash to v4.14.198 by @renovate in #140
- Update dependency eslint to v8.49.0 by @renovate in #144
Full Changelog: v2.1.0...v2.2.0
v2.1.0
What's Changed
- Two new directives:
replace-with-id
andprepend-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
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 withrm -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
- Add an on-disk cache by @danvk in #63
- Update to use ES Modules by @danvk in #64
- Bump word-wrap from 1.2.3 to 1.2.4 by @dependabot in #58
- Bump semver from 5.7.1 to 5.7.2 by @dependabot in #57
- Bump ansi-regex from 4.1.0 to 4.1.1 by @dependabot in #65
- Documentation updates by @danvk in #66
- Configure Renovate by @renovate in #67
- Update dependency @types/fs-extra to v8.1.2 by @renovate in #68
- Update dependency @types/lodash to v4.14.196 by @renovate in #69
- Update dependency @types/yargs to v13.0.12 by @renovate in #72
- Update actions/setup-node action to v3.7.0 by @renovate in #73
- Update dependency eslint-config-prettier to v6.15.0 by @renovate in #74
- Update dependency eslint-plugin-prettier to v3.4.1 by @renovate in #75
- Update dependency glob to v7.2.3 by @renovate in #76
- Set up knip and remove unused dependencies by @danvk in #80
- Update dependency tmp to ^0.2.0 by @renovate in #77
- Add a few badges by @danvk in #83
- Update actions/checkout action to v3 by @renovate in #78
- Update ts-node version to support ESM by @danvk in #85
- Update dependency @types/glob to v8 by @renovate in #79
- Improve display for absolute paths by @danvk in #89
- Update dependency @types/jest to v29 by @renovate in #81
- Update dependency @types/node to v18 by @renovate in #82
- Update dependency fs-extra to v11 by @renovate in #90
- Update dependency ora to v7 by @renovate in #92
- Update dependency yargs to v17 by @renovate in #94
- Update dependency prettier to v3 by @renovate in #93
- Update typescript-eslint monorepo to v6 (major) by @renovate in #95
- Switch from glob -> fast-glob by @danvk in #97
- Misc fixes for 2.0 release by @danvk in #98
New Contributors
Full Changelog: v1.3.0...v2.0.0
v1.3.0
v1.2.0
- 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
First version on npm.