chore(deps): update dependency sucrase to v3.35.0 #73
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
3.21.0
->3.35.0
Release Notes
alangpierce/sucrase (sucrase)
v3.35.0
Compare Source
glob
to fix a security vulnerability in theinflight
package. ([#822]) (Patrick Nappa)sucrase
CLI no longer works in Node.js versions before 14.7.sucrase
CLI, you should pin to Sucrase 3.34.0 until you're able to upgradeNode.js to a supported version. Note that all Node.js versions before 18 are end-of-life.
sucrase
CLI, you may need to silence errors related to package.jsonengines
, e.g.yarn --ignore-engines
.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
--disable-es-transforms
fordisableESTransforms
. (<<-ArS, Alan Pierce) ([#670], [#812])SUCRASE_OPTIONS
environment variable for configuringsucrase/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
keepUnusedImports
that disables all automatic import/exportelision, equivalent to the TypeScript option
verbatimModuleSyntax
. ([#811], [#615]) (Kotaro Chikuba, Alan Pierce)await using
proposal and the updated import attributes proposal.Both are preserved in the output code, not transformed. ([#798])
export {...} from
statements. ([#806])fn(x < y, x >= y)
was incorrectly parsed as type arguments. ([#798])enableLegacyBabel5ModuleInterop
: properly handleas default
, and properly ignore type exports. ([#804], [#807]) (三咲智子 Kevin Deng, Alan Pierce)import {}
andexport {}
statements were removed with the TypeScript transform disabled. ([#810])v3.32.0
Compare Source
source map use cases, such as Jest inline snapshots, source map composition,
and some debugger features. ([#759]) (Emily Marigold Klassen)
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
import()
to import a plain CJS module.For example, if
foo.js
hasmodule.exports = 1;
, thenawait 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
export type *
. ([#786])const
on type parameters. ([#786])import module
. ([#785])using
. ([#785])export @​foo class ...
. ([#786])<<
within a type. ([#769])v3.29.0
Compare Source
satisfies
operator. ([#766])v3.28.0
Compare Source
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
assert {type: 'json'}
in import statements. ([#746])v3.26.0
Compare Source
React 17 transform.
It can be enabled using
jsxRuntime: true
and configured using theproduction
andjsxImportSource
configs. ([#738], [#739], [#742], [#740])
v3.25.0
Compare Source
module: nodenext
option fromTypeScript 4.7:
imports
transform, the new flagpreserveDynamicImport
will leave dynamic
import()
calls alone rather than compiling them topromise-wrapped
require
. This makes it possible to load ESM modules fromCommonJS. ([#727])
imports
transform, the new flaginjectCreateRequireForImportRequire
will compile
import foo = require("foo");
to usecreateRequire
so thatcan work in a Node ES module. ([#728])
disableESTransforms
is enabled, removeabstract
fields in the sameway that
declare
fields are removed. This matches TypeScript's behavior. ([#732])v3.24.0
Compare Source
const NumberSet = Set<number>;
extends
oninfer
:T extends [infer S extends string, ...unknown[]] ? S : never;
type Getter<out T> = () => T;
accessor
keyword in ES decorators. ([#716])a as b ?? c
([#721])const a: Array<number>=[];
([#717])f<<T>() => void>()
([#716])v3.23.0
Compare Source
v3.22.0
Compare Source
v3.21.1
Compare Source
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.
This PR was generated by Mend Renovate. View the repository job log.