Commit d91a816
feat: allows usage with TypeScript v6 (#1049)
## Description
This PR add support for TypeScript 6.0, which is currently in Beta.
TypeScript 6.0 has no depcruiser-affecting breakage that I could see,
and is mostly about aligning the config and some defaults with tsgo
([see the notes
here](https://devblogs.microsoft.com/typescript/announcing-typescript-6-0-beta/)).
The change mostly involves increasing the range to include `< 7.0.0` as
the upper bound. I mirrored the changes in both package.json and the
generated meta.cjs.
(7.0 will most likely be another can of worms, I'd be happy to poke at
that closer to prime time 😌)
## Motivation and Context
I was testing compatibility with 6.0 at work and noticed that depcruiser
was silently giving me very small graphs. I traced this down to the
transpiler allowlist in `meta.cjs`.
Aside: [I also saw this issue about giving a warning on missing
transpilers, which would also be
relevant](#1048).
## How Has This Been Tested?
- [x] green ci
## Types of changes
- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] Documentation only change
- [ ] Refactor (non-breaking change which fixes an issue without
changing functionality)
- [x] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to change)
## Checklist
- [x] 📖
- My change doesn't require a documentation update, the TypeScript
ranges are not really specified in the docs, as far as I could see.
- [x] ⚖️
- The contribution will be subject to [The MIT
license](https://github.com/sverweij/dependency-cruiser/blob/main/LICENSE),
and I'm OK with that.
- The contribution is my own original work.
- I am ok with the stuff in
[**CONTRIBUTING.md**](https://github.com/sverweij/dependency-cruiser/blob/main/.github/CONTRIBUTING.md).
---------
Co-authored-by: sverweij <sverweij@users.noreply.github.com>1 parent e1843a6 commit d91a816
File tree
6 files changed
+305
-70
lines changed- .github/workflows
- src
- test/extract/transpile
6 files changed
+305
-70
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
60 | 63 | | |
61 | 64 | | |
62 | 65 | | |
| |||
116 | 119 | | |
117 | 120 | | |
118 | 121 | | |
119 | | - | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
120 | 126 | | |
121 | 127 | | |
122 | 128 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
25 | 28 | | |
26 | 29 | | |
27 | 30 | | |
| |||
0 commit comments