Releases: ezolenko/rollup-plugin-typescript2
Releases · ezolenko/rollup-plugin-typescript2
0.36.0
Features/bugfixes
- support newer
moduleResolutionkinds, update build to TS 5.x by @ezolenko in #453 - fix: hardcode declaration extension check by @agilgur5 in #456
Internal (testing, refactors)
- github: mark
dist/*as generated code by @agilgur5 in #457 - deps: auto-update
semvervianpm audit fixby @agilgur5 in #459 - switching from tslint (deprecated) to eslint by @ezolenko in #463
Full Changelog: 0.35.0...0.36.0
0.35.0
0.34.1
Bugfixes
- fix: don't error out while catching a
buildStarterror by @agilgur5 in #422- This fixes an initialization regression in
0.34.0where users sawTypeError: Cannot read property 'done' of undefinedinstead of their actual initialization error, such as atsconfigissue (such as with #421)
- This fixes an initialization regression in
- fix: add compatibility checks w/
semverby @agilgur5 in #4240.34.0introduced a type-only fix that relied on Rollup 2.60.0+ and would (accidentally) error out on older versions of Rollup. This fix handles it gracefully with a clear warning message instead and skips that check when using an older version of Rollup (i.e. partly backward-compatible).- This also adds an error if
peerDependenciesminimum versions have not been met
- fix: don't resolve
filtered files by @agilgur5 in #428
Internal (testing, refactors)
- clean(deps): remove unused
@types/resolveby @agilgur5 in #423 - test: increase
no-errorsintegration timeout to 20s by @agilgur5 in #425
Full Changelog: 0.34.0...0.34.1
0.34.0
Bugfixes
- fix: handle all type-only imports by piping TS imports by @agilgur5 in #406
- If you have ever had issues with some files not being type-checked or not generating declarations, this should conclusively fix all such issues. This type of issue used to occur if you had a type-only / interface-only / emit-less file, i.e. a file with only TS
types andinterfaces that would produce no JS. - NOTE: This requires Rollup version
2.60.0+ as it requires the use ofthis.load0.34.0will (accidentally) error out on older versions of Rollup.0.34.1patched this to instead give a warning and skip this check on older versions of Rollup.
- If you have ever had issues with some files not being type-checked or not generating declarations, this should conclusively fix all such issues. This type of issue used to occur if you had a type-only / interface-only / emit-less file, i.e. a file with only TS
More Fixes ...
Docs
- docs: add a simple
CHANGELOG.mdthat references GH releases by @agilgur5 in #419- i.e. it references this page
Internal (testing, refactors)
- test: ensure
declarationMapsources are correct by @agilgur5 in #403 - test: add
print-diagnosticsspec by @agilgur5 in #405
More Internal ...
- refactor(test): heavily simplify the
contexthelper by @agilgur5 in #404 - refactor: combine
check-tsconfigwithparse-tsconfigby @agilgur5 in #413 - clean: remove
ConsoleContextentirely by usingbuildStartby @agilgur5 in #414 - refactor(cache): simplify creating / using the
cachevar by @agilgur5 in #415 - refactor: consolidate
diagnosticsfuncs into single file by @agilgur5 in #415
Full Changelog: 0.33.0.1...0.34.0
0.33.0
NOTE: this is a re-tag of 0.33.0 which was tied to wrong commit originally (it was not compiled / built previously). This re-tag is equivalent to 0.33.0 on NPM.
Features
- feat: support
emitDeclarationOnlyby @agilgur5 in #366 - feat: capture watch mode when called via the Rollup API by @agilgur5 in #384
Bugfixes
- fix: type-check
included files missed bytransform(type-only files) by @agilgur5 in #345- Type-only files should now be type-checked if they are in the
tsconfiginclude, fixing #298
- Type-only files should now be type-checked if they are in the
- fix:
filter"missed" declarations as well by @agilgur5 in #347 - fix: don't skip resolving files imported by other plugins by @agilgur5 in #365
- This fixes a
Could not resolveerror that could occur when importing TS files from another plugin, such as with Svelte in #283
- This fixes a
- fix(host):
getScriptSnapshotmust also callfileNames.addby @agilgur5 in #364 - fix(cache): invalidate
codeCachein most cases when imports change by @agilgur5 in #369 - fix(diagnostics):
prettydefaults totruein TS 2.9+ by @agilgur5 in #372- We now align with TS's current default, which should make for much nicer error messages!
- revert: back to using
vue.d.tsinstead of.d.tsfor Vue declarations by @agilgur5 in #410- This fixes a regression in
0.32.0that erroneously shifted to.d.ts. The Vue team now mandates.vue.d.ts, so we have reverted accordingly. See #224 (comment)
- This fixes a regression in
More Fixes ...
Internal Fixes ...
Optimizations
- optim(watch): don't reset
DocumentRegistryb/t watch cycles by @agilgur5 in #388 - optim(cache): don't check imports for syntactic diagnostics by @agilgur5 in #389
More Optimizations ...
Docs
- docs/clean: formally deprecate
rollupCommonJSResolveHackby @agilgur5 in #367 - docs: mention
module: "ES2020"compatibility by @agilgur5 in #376 - docs: mention
ttypescript, a common integration by @agilgur5 in #379 - docs: mention
transpileOnlyincheck: falseby @agilgur5 in #378 - docs: clarify
clean: trueand defaultincludeby @agilgur5 in #387
More Docs ...
- docs: improve grammar & formatting, plus add TSConfig Reference links by @agilgur5 in #375
- docs: add a permalink to the og rpt by @agilgur5 in #380
- dx: add rpt2 prefix to remaining errors by @agilgur5 in #382
- dx(cache): improve
cleanedge-case errors with quotes by @agilgur5 in #394 - dx: be more explicit with
emitSkippederror by @agilgur5 in #395
Internal Docs ...
GitHub
- github: add troubleshooting steps to the issue template by @agilgur5 in #350
- github: add more environment details to
envinfoby @agilgur5 in #353 - github: add a reproduction environment to the issue template by @agilgur5 in #354
- github: add a Pull Request template by @agilgur5 in #370
Internal (testing, refactors)
- test: add initial integration test suite by @agilgur5 in #371
- test: add initial watch mode test suite by @agilgur5 in #386
- test: add
parse-tsconfigspec by @agilgur5 in #397 - test: 100% coverage for
tslib.ts(error case) by @agilgur5 in #399
More Internal ...
- clean: condense own
tsconfigby removing defaults by @agilgur5 in #343 - clean: remove redundant
allImportedFilescheck in_onwriteby @agilgur5 in #346 - refactor: invert another if for readabilty -- in
get-options-overridesby @agilgur5 in #348 - refactor: simplify hosts to directly assign
tsModule.syswhere possible by @agilgur5 in #349 - fix(test): handle
prettyformatting by @agilgur5 in #377 - refactor(cache):
makeName->createHashfor clarity by @agilgur5 in #355 - refactor(cache): simplify condition w/ optional chaining by @agilgur5 in #356
- refactor(cache): tiny simplification to
walkTreeby @agilgur5 in #359 - refactor(cache): simplify
cleanmethod by @agilgur5 in #358 - refactor: split out a common
typecheckFilefunc by @agilgur5 in #344 - refactor: use optional chaining for
sourceMapCallbackby @agilgur5 in #363 - refactor(cache): split a
getCachedfunction out by @agilgur5 in #360 - refactor(cache): simplify
noCachecondition by @agilgur5 in #362 - clean(cache): remove unused
checkNewCacheparameter by @agilgur5 in #368 - clean: remove backward-compat checks for old Rollup versions by @agilgur5 in #374
- refactor: move
generateRound = 0tobuildEndby @agilgur5 in #390 - refactor: move
snapshotcheck intotypecheckFileby @agilgur5 in #391 - refactor: split out an
addDeclarationfunc by @agilgur5 in #392 - refactor(cache): further condense
walkTreeby @agilgur5 in #393 - refactor(diagnostics): simplify some conditionals by @agilgur5 in #402
- refactor: combine two context files into one by @agilgur5 in #396
- refactor(test): use more specific checks in
check-tsconfigspec by @agilgur5 in #398 - clean: remove redundant
generateRound === 0check by...
0.32.1
Bugfixes
Full Changelog: 0.32.0...0.32.1
0.32.0
Features
Bugfixes
- fix: normalize paths in
get-options-overridesby @agilgur5 in #331 - fix: add
realpathto host to properly resolve monorepos / symlinks by @agilgur5 in #332 - fix: use
.d.tsinstead of.vue.d.tsfor Vue declarations by @agilgur5 in #336- EDIT: Per #224 (comment), this issue and fix seem to have been made erroneously, as the Vue team now mandates
.vue.d.ts. As such, this has been reverted in0.33.0
- EDIT: Per #224 (comment), this issue and fix seem to have been made erroneously, as the Vue team now mandates
- fix: don't attempt to change declarationMap
sourceswhen no output by @agilgur5 in #334 - fix: force
noEmitOnError: falseby @agilgur5 in #338
Dependencies
- updating dependencies by @ezolenko in f84afe9, 0df5362, 5a3e58b, and 08d2f5b
- deps: remove unneeded
@types/colorspackage by @agilgur5 in #319 - deps: use
normalizePathfrom@rollup/pluginutilsby @agilgur5 in #320 - deps: upgrade
tslibto^2.4.0, remove@yarn-tool/resolve-packageby @agilgur5 in #326
Docs
- fix(docs):
_.mergedoesn't concat arrays by @agilgur5 in #314 - docs: clarify the TS option's defaults by @agilgur5 in #316
- docs: split off a CONTRIBUTING.md and improve formatting, grammar, links by @agilgur5 in #313
More Docs ...
GitHub
Internal (testing, refactors)
- test: add initial unit test suite by @agilgur5 in #321
- test: 100% coverage in
get-options-overrides(createFilter) by @agilgur5 in #329
More Internal ...
- clean: remove
partial.tsas this is built into TS by @agilgur5 in #322 - optim(ci): use
npm cifor install and cachenpmby @agilgur5 in #323 - ci: add a lint check to ensure all PRs pass lint too by @agilgur5 in #327
- refactor: prefer native methods to lodash where possible by @agilgur5 in #328
- refactor: invert some conditionals for better readability by @agilgur5 in #335
- refactor: sort all top-level imports by @agilgur5 in #337
Full Changelog: 0.31.2...0.32.0
0.31.2
What's Changed
- chore: should not lock deps version by @bluelovers in #293
- Add
tracemethod to theLanguageServiceHostto enable usage withtraceResolutionby @Andarist in #296
Full Changelog: 0.31.1...0.31.2