Skip to content

0.33.0

Pre-release
Pre-release
Compare
Choose a tag to compare
@ezolenko ezolenko released this 22 Aug 04:20

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 emitDeclarationOnly by @agilgur5 in #366
  • feat: capture watch mode when called via the Rollup API by @agilgur5 in #384

Bugfixes

  • fix: type-check included files missed by transform (type-only files) by @agilgur5 in #345
    • Type-only files should now be type-checked if they are in the tsconfig include, fixing #298
  • fix: filter "missed" declarations as well by @agilgur5 in #347
    • This fixes a regression that caused significant confusion when there was overlap between the plugin's include / exclude and the tsconfig's include / exclude, such as in #225 and #280
  • fix: don't skip resolving files imported by other plugins by @agilgur5 in #365
    • This fixes a Could not resolve error that could occur when importing TS files from another plugin, such as with Svelte in #283
  • fix(host): getScriptSnapshot must also call fileNames.add by @agilgur5 in #364
    • This fixes the Could not find source file error that some experienced during watch mode, such as in #408 and #271
  • fix(cache): invalidate codeCache in most cases when imports change by @agilgur5 in #369
  • fix(diagnostics): pretty defaults to true in 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.ts instead of .d.ts for Vue declarations by @agilgur5 in #410
    • This fixes a regression in 0.32.0 that erroneously shifted to .d.ts. The Vue team now mandates .vue.d.ts, so we have reverted accordingly. See #224 (comment)
More Fixes ...
  • fix: set noErrors = false when there are compilerOptions errors by @agilgur5 in #342
  • fix(diagnostics): workaround Rollup duplicating error messages by @agilgur5 in #373
  • fix: missing tsconfig error shouldn't say undefined by @agilgur5 in #383
Internal Fixes ...
  • fix: add back noErrors = false to emitSkipped by @agilgur5 in #381
  • fix: don't duplicate type-only check on Windows by @agilgur5 in #385

Optimizations

  • optim(watch): don't reset DocumentRegistry b/t watch cycles by @agilgur5 in #388
  • optim(cache): don't check imports for syntactic diagnostics by @agilgur5 in #389
More Optimizations ...
  • optim: don't getScriptSnapshot when we already have the snapshot by @agilgur5 in #341

Docs

  • docs/clean: formally deprecate rollupCommonJSResolveHack by @agilgur5 in #367
  • docs: mention module: "ES2020" compatibility by @agilgur5 in #376
  • docs: mention ttypescript, a common integration by @agilgur5 in #379
  • docs: mention transpileOnly in check: false by @agilgur5 in #378
  • docs: clarify clean: true and default include by @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 clean edge-case errors with quotes by @agilgur5 in #394
  • dx: be more explicit with emitSkipped error by @agilgur5 in #395
Internal Docs ...
  • docs: add a section on "Learning the codebase" to CONTRIBUTING.md by @agilgur5 in #351
  • docs(cache): add/change some comments for clarity by @agilgur5 in #357
  • docs(cache): add a typedoc @returns to createHash by @agilgur5 in #361

GitHub

  • github: add troubleshooting steps to the issue template by @agilgur5 in #350
  • github: add more environment details to envinfo by @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)

More Internal ...
  • clean: condense own tsconfig by removing defaults by @agilgur5 in #343
  • clean: remove redundant allImportedFiles check in _onwrite by @agilgur5 in #346
  • refactor: invert another if for readabilty -- in get-options-overrides by @agilgur5 in #348
  • refactor: simplify hosts to directly assign tsModule.sys where possible by @agilgur5 in #349
  • fix(test): handle pretty formatting by @agilgur5 in #377
  • refactor(cache): makeName -> createHash for clarity by @agilgur5 in #355
  • refactor(cache): simplify condition w/ optional chaining by @agilgur5 in #356
  • refactor(cache): tiny simplification to walkTree by @agilgur5 in #359
  • refactor(cache): simplify clean method by @agilgur5 in #358
  • refactor: split out a common typecheckFile func by @agilgur5 in #344
  • refactor: use optional chaining for sourceMapCallback by @agilgur5 in #363
  • refactor(cache): split a getCached function out by @agilgur5 in #360
  • refactor(cache): simplify noCache condition by @agilgur5 in #362
  • clean(cache): remove unused checkNewCache parameter by @agilgur5 in #368
  • clean: remove backward-compat checks for old Rollup versions by @agilgur5 in #374
  • refactor: move generateRound = 0 to buildEnd by @agilgur5 in #390
  • refactor: move snapshot check into typecheckFile by @agilgur5 in #391
  • refactor: split out an addDeclaration func by @agilgur5 in #392
  • refactor(cache): further condense walkTree by @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-tsconfig spec by @agilgur5 in #398
  • clean: remove redundant generateRound === 0 check by @agilgur5 in #400
  • test(cache): ignore coverage for corrupted cache check by @agilgur5 in #401

Full Changelog: 0.32.1...0.33.0.1