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

chore(deps): update dependency sucrase to v3.35.0 #82

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jun 22, 2022

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
sucrase 3.21.0 -> 3.35.0 age adoption passing confidence

Release Notes

alangpierce/sucrase (sucrase)

v3.35.0

Compare Source

  • Upgrade glob to fix a security vulnerability in the inflight package. ([#​822]) (Patrick Nappa)
    • Note that the sucrase CLI no longer works in Node.js versions before 14.7.
      • If you use the sucrase CLI, you should pin to Sucrase 3.34.0 until you're able to upgrade
        Node.js to a supported version. Note that all Node.js versions before 18 are end-of-life.
      • If you don't use the sucrase CLI, you may need to silence errors related to package.json
        engines, e.g. yarn --ignore-engines.
    • This change is being released in a semver-minor release since it fixes a security vulnerability
      and the breaking change impact is expected to be small. See this PR comment
      for a rationale on the release strategy.

v3.34.0

Compare Source

  • Add CLI options for all remaining Sucrase options, e.g. --disable-es-transforms for
    disableESTransforms. (<<-ArS, Alan Pierce) ([#​670], [#​812])
  • Add SUCRASE_OPTIONS environment variable for configuring sucrase/register, sucrase-node,
    and any programmatic require hook usages. The value must be a valid JSON object of Sucrase
    options that will be merged with the usual options. ([#​813])

v3.33.0

Compare Source

  • Add an option keepUnusedImports that disables all automatic import/export
    elision, equivalent to the TypeScript option verbatimModuleSyntax. ([#​811], [#​615]) (Kotaro Chikuba, Alan Pierce)
  • Add support for the await using proposal and the updated import attributes proposal.
    Both are preserved in the output code, not transformed. ([#​798])
  • Fix some issues with TypeScript automatic export elision in export {...} from statements. ([#​806])
    • Type names from the current file are no longer removed.
    • When all exports are type exports, the entire statement is now removed.
  • Fix bug where fn(x < y, x >= y) was incorrectly parsed as type arguments. ([#​798])
  • Fix a few bugs in enableLegacyBabel5ModuleInterop: properly handle as default, and properly ignore type exports. ([#​804], [#​807]) (三咲智子 Kevin Deng, Alan Pierce)
  • Fix bug where parameters inside function types could be misinterpreted as declarations and result in imports being incorrectly marked as unused. ([#​809])
  • Fix bug where import {} and export {} statements were removed with the TypeScript transform disabled. ([#​810])
  • Make the transform behavior more forgiving when code accidentally has a return type annotation on a constructor. ([#​800])

v3.32.0

Compare Source

  • Improve source map quality by adding column information. This fixes several
    source map use cases, such as Jest inline snapshots, source map composition,
    and some debugger features. ([#​759]) (Emily Marigold Klassen)
    • Unfortunately, this change comes at some performance cost. Previously, the
      slowdown from enabling source maps was about 10%, and now it is about 30%.
      In most cases, the more detailed source maps are probably still preferable,
      so for configuration simplicity, there is currently no option to switch
      back to source maps without column information. If you would like to still
      use the faster but less accurate implementation, feel free to file an issue
      to request a new config option, or create the source map yourself in
      wrapper code by copying the
      original simple implementation.

v3.31.0

Compare Source

  • Add option to recognize and preserve JSX syntax. ([#​788])
  • Fix default export interop behavior when using transpiled dynamic import() to import a plain CJS module.
    For example, if foo.js has module.exports = 1;, then await import('foo.js') will now evaluate to {default: 1}
    rather than just 1. Named exports behave the same as before.
    This change matches the behavior of Node.js and other transpilers, so it is considered a bug fix rather than
    breaking. If you relied on the old behavior, feel free to file an issue and it may be possible to roll back until the
    next semver-major release. ([#​789], [#​790])

v3.30.0

Compare Source

  • Add support for new syntax in TypeScript 5.0:
  • Implement parsing for several ES proposals. These are preserved in the output code, not transformed.
    • Import reflection: import module. ([#​785])
    • Explicit resource management: using. ([#​785])
    • Decorator after export keyword: export @&#8203;foo class .... ([#​786])
  • Fix parsing of << within a type. ([#​769])

v3.29.0

Compare Source

  • Add support for the TypeScript 4.9 satisfies operator. ([#​766])

v3.28.0

Compare Source

  • Add ts-node transpiler plugin, available as sucrase/ts-node-plugin.
    This makes it possible to use Sucrase with all ts-node features such as an ESM loader, a REPL, and configuration
    via tsconfig.json. ([#​729])

v3.27.0

Compare Source

  • Add support for assert {type: 'json'} in import statements. ([#​746])

v3.26.0

Compare Source

  • Add support for the JSX automatic runtime, also known as the
    React 17 transform.
    It can be enabled using jsxRuntime: true and configured using the production and jsxImportSource
    configs. ([#​738], [#​739], [#​742], [#​740])

v3.25.0

Compare Source

  • Add two new options to more closely match the module: nodenext option from
    TypeScript 4.7:
    • When using the imports transform, the new flag preserveDynamicImport
      will leave dynamic import() calls alone rather than compiling them to
      promise-wrapped require. This makes it possible to load ESM modules from
      CommonJS. ([#​727])
    • When not using the imports transform, the new flag injectCreateRequireForImportRequire
      will compile import foo = require("foo"); to use createRequire so that
      can work in a Node ES module. ([#​728])
  • When disableESTransforms is enabled, remove abstract fields in the same
    way that declare fields are removed. This matches TypeScript's behavior. ([#​732])

v3.24.0

Compare Source

  • Add support for all new syntax in TypeScript 4.7: ([#​719])
    • Instantiation expressions: const NumberSet = Set<number>;
    • extends on infer: T extends [infer S extends string, ...unknown[]] ? S : never;
    • Variance annotations: type Getter<out T> = () => T;
  • Add parsing support for the accessor keyword in ES decorators. ([#​716])
  • Fix invalid ESM output that sometimes happened when eliding TS star imports. ([#​723])
  • Fix lots of parser edge case bugs. Examples of code that confused the parser before but now works:
    • a as b ?? c ([#​721])
    • const a: Array<number>=[]; ([#​717])
    • f<<T>() => void>() ([#​716])
    • Some additional cases involving line break handling. ([#​714])
  • Fix some edge cases with JSX entity transformation. ([#​717])

v3.23.0

Compare Source

  • Add support for TS 4.5 import/export type modifiers. ([#​713])
  • Fix parsing bug that failed on scientific notation with dot access. ([#​711])

v3.22.0

Compare Source

  • Add support for Flow enums. ([#​708], [#​709])
  • Fix some parser bugs when detecting arrow functions. ([#​673])

v3.21.1

Compare Source

  • Allow re-export after star export of same name. ([#​698]) (Cameron Pitt)

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot changed the title chore(deps): update dependency sucrase to v3.21.1 chore(deps): update dependency sucrase to v3.22.0 Jun 27, 2022
@renovate renovate bot changed the title chore(deps): update dependency sucrase to v3.22.0 chore(deps): update dependency sucrase to v3.23.0 Jul 1, 2022
@renovate renovate bot changed the title chore(deps): update dependency sucrase to v3.23.0 chore(deps): update dependency sucrase to v3.24.0 Jul 14, 2022
@renovate renovate bot changed the title chore(deps): update dependency sucrase to v3.24.0 chore(deps): update dependency sucrase to v3.25.0 Aug 2, 2022
@renovate renovate bot changed the title chore(deps): update dependency sucrase to v3.25.0 chore(deps): update dependency sucrase to v3.27.0 Sep 25, 2022
@renovate renovate bot changed the title chore(deps): update dependency sucrase to v3.27.0 chore(deps): update dependency sucrase to v3.29.0 Nov 20, 2022
@renovate renovate bot changed the title chore(deps): update dependency sucrase to v3.29.0 chore(deps): update dependency sucrase to v3.30.0 Mar 23, 2023
@renovate renovate bot changed the title chore(deps): update dependency sucrase to v3.30.0 chore(deps): update dependency sucrase to v3.31.0 Mar 27, 2023
@renovate renovate bot changed the title chore(deps): update dependency sucrase to v3.31.0 chore(deps): update dependency sucrase to v3.32.0 Apr 17, 2023
@renovate renovate bot changed the title chore(deps): update dependency sucrase to v3.32.0 chore(deps): update dependency sucrase to v3.33.0 Jul 15, 2023
@renovate renovate bot changed the title chore(deps): update dependency sucrase to v3.33.0 chore(deps): update dependency sucrase to v3.34.0 Jul 19, 2023
@renovate renovate bot changed the title chore(deps): update dependency sucrase to v3.34.0 chore(deps): update dependency sucrase to v3.35.0 Dec 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

0 participants