Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

⬆️ Bump rollup-plugin-ts from 1.4.7 to 3.0.1 #736

Closed

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github May 31, 2022

Bumps rollup-plugin-ts from 1.4.7 to 3.0.1.

Release notes

Sourced from rollup-plugin-ts's releases.

v3.0.1

  • fix: use ansi-colors instead of Chalk for better CJS fallback support eac318e
  • docs: add note about different declaration formats 2b34a70

wessberg/rollup-plugin-ts@v3.0.0...v3.0.1

v3.0.0

New Features

rollup-plugin-ts is now based on ESM and requires Node v14.19.0 (BREAKING CHANGE)

Now that TypeScript v4.7 is out, it has finally received great support for ES modules in a Node.js environment that aligns with how it has been implemented across Node.js and browsers.

Because of this, now is a good time to make this plugin a type: "module" package. However, it still provides a CommonJS fallback. If your codebase is still based on CommonJS, you should be fine. Please know however, that rollup-plugin-ts requires an environment running Node v14.19.0 or newer going forward.

TypeScript v4.7 support

rollup-plugin-ts now fully supports TypeScript v4.7 and its new features. This also means that you can now use .mjs, .mts, .cjs, and .mts files. Additionally, the extension of your declaration files will depend on the extensions of your output files as controlled by your Rollup config:

  • .js output files will produce .d.ts and optionally .d.ts.map files
  • .mjs output files will produce .d.mts and optionally .d.mts.map files
  • .cjs output files will produce .d.cts and optionally .d.cts.map files

Transpilers are now used for the entire syntax transformation (BREAKING CHANGE)

Before, when you selected a transpiler such as babel or swc, these wouldn't actually be used for stripping away TypeScript-specific features such as types, enums, and decorators. Instead, the TypeScript compiler APIs would still be used for performing the initial syntax transformation, and then babel or swc would "take over from there". However, there are times when you may want to use babel or swc even for the initial transformation.

Going forward, a transpiler will be used for the entire syntax transformation. However, this can be easily customized by mixing transpilers, which is an easy way to get the old behavior back.

Transpilers can be mixed

Now, the transpiler plugin option also accepts an options object if you want to mix them:

ts({
    transpiler: {
        typescriptSyntax: "typescript",
        otherSyntax: "babel"
    }
})

This allows you to decide exactly which transpilers are responsible for which parts of the emit phase. If you want to, in principle you can decide to let swc strip away TypeScript syntax, and then let babel continue on from there. You're in full control.

Of course, it still supports simply accepting a string, like always.

wessberg/rollup-plugin-ts@v2.0.7...v3.0.0

... (truncated)

Changelog

Sourced from rollup-plugin-ts's changelog.

3.0.1 (2022-05-31)

Bug Fixes

  • use ansi-colors instead of Chalk for better CJS fallback support (eac318e)

3.0.0 (2022-05-30)

Bug Fixes

  • use correct import binding (e693665)

Features

  • add TypeScript v4.7 support (aae4588)

2.0.7 (2022-04-15)

Bug Fixes

  • fix a regression when a Rollup cache is being used where unsupported files would be attempted to be added to the CompilerHost and crash the compilation. Fixes #178 (630d5ae)

2.0.6 (2022-04-15)

Bug Fixes

  • correctly add aliased re-exported bindings to lexical environment at all times. Fixes #109 (16d24fa)
  • correctly alias re-exported bindings which themselves may be aliased from other source files from the same chunk. Closes #176 (364b50b)

Features

  • add support for target ES2022 (6eec842)
  • add TypeScript v4.6 support (c387ff7)
  • generate correct declarations, diagnostics, and .tsbuildinfo when a Rollup cache is being used. Fixes #140 (afa76ed)

2.0.5 (2022-01-03)

... (truncated)

Commits
  • f81209d 3.0.1
  • eac318e fix: use ansi-colors instead of Chalk for better CJS fallback support
  • 2b34a70 docs: add note about different declaration formats
  • 2fce040 3.0.0
  • e693665 fix: use correct import binding
  • c2c785c BREAKING CHANGE: When using another transpiler such as babel or swc, use it f...
  • aae4588 feat: add TypeScript v4.7 support
  • beecd93 chore: extend test config. Add new sponsor: scrubtheweb
  • 2aeb70e 2.0.7
  • 630d5ae fix: fix a regression when a Rollup cache is being used where unsupported fil...
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [rollup-plugin-ts](https://github.com/wessberg/rollup-plugin-ts) from 1.4.7 to 3.0.1.
- [Release notes](https://github.com/wessberg/rollup-plugin-ts/releases)
- [Changelog](https://github.com/wessberg/rollup-plugin-ts/blob/master/CHANGELOG.md)
- [Commits](wessberg/rollup-plugin-ts@v1.4.7...v3.0.1)

---
updated-dependencies:
- dependency-name: rollup-plugin-ts
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label May 31, 2022
@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Jun 7, 2022

Superseded by #745.

@dependabot dependabot bot closed this Jun 7, 2022
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/rollup-plugin-ts-3.0.1 branch June 7, 2022 23:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants