api-sequelize-sucrase
api-sequelize-sucrase copied to clipboard
chore(deps): update dependency sucrase to v3.35.1
This PR contains the following updates:
| Package | Change | Age | Confidence |
|---|---|---|---|
| sucrase | 3.18.2 -> 3.35.1 |
Release Notes
alangpierce/sucrase (sucrase)
v3.35.1
- Switch from
globtotinyglobbyto reduce transitive dependencies. ([#846]) (Ben McCann)
v3.35.0
- Upgrade
globto fix a security vulnerability in theinflightpackage. ([#822]) (Patrick Nappa)- Note that the
sucraseCLI no longer works in Node.js versions before 14.7.- If you use the
sucraseCLI, 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
sucraseCLI, you may need to silence errors related to package.jsonengines, e.g.yarn --ignore-engines.
- If you use the
- 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.
- Note that the
v3.34.0
- Upgrade
globto fix a security vulnerability in theinflightpackage. ([#822]) (Patrick Nappa)- Note that the
sucraseCLI no longer works in Node.js versions before 14.7.- If you use the
sucraseCLI, 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
sucraseCLI, you may need to silence errors related to package.jsonengines, e.g.yarn --ignore-engines.
- If you use the
- 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.
- Note that the
v3.33.0
- Add an option
keepUnusedImportsthat disables all automatic import/export elision, equivalent to the TypeScript optionverbatimModuleSyntax. ([#811], [#615]) (Kotaro Chikuba, Alan Pierce) - Add support for the
await usingproposal 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 {...} fromstatements. ([#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 handleas 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 {}andexport {}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
- 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
- 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, iffoo.jshasmodule.exports = 1;, thenawait import('foo.js')will now evaluate to{default: 1}rather than just1. 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
- Add support for new syntax in TypeScript 5.0:
- Implement parsing for several ES proposals. These are preserved in the output code, not transformed.
- Fix parsing of
<<within a type. ([#769])
v3.29.0
- Add support for the TypeScript 4.9
satisfiesoperator. ([#766])
v3.28.0
- 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
- Add support for
assert {type: 'json'}in import statements. ([#746])
v3.26.0
- Add support for the JSX automatic runtime, also known as the
React 17 transform.
It can be enabled using
jsxRuntime: trueand configured using theproductionandjsxImportSourceconfigs. ([#738], [#739], [#742], [#740])
v3.25.0
- Add two new options to more closely match the
module: nodenextoption from TypeScript 4.7:- When using the
importstransform, the new flagpreserveDynamicImportwill leave dynamicimport()calls alone rather than compiling them to promise-wrappedrequire. This makes it possible to load ESM modules from CommonJS. ([#727]) - When not using the
importstransform, the new flaginjectCreateRequireForImportRequirewill compileimport foo = require("foo");to usecreateRequireso that can work in a Node ES module. ([#728])
- When using the
- When
disableESTransformsis enabled, removeabstractfields in the same way thatdeclarefields are removed. This matches TypeScript's behavior. ([#732])
v3.24.0
- Add support for all new syntax in TypeScript 4.7: ([#719])
- Instantiation expressions:
const NumberSet = Set<number>; extendsoninfer:T extends [infer S extends string, ...unknown[]] ? S : never;- Variance annotations:
type Getter<out T> = () => T;
- Instantiation expressions:
- Add parsing support for the
accessorkeyword 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:
- Fix some edge cases with JSX entity transformation. ([#717])
v3.23.0
- 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
- Add support for Flow enums. ([#708], [#709])
- Fix some parser bugs when detecting arrow functions. ([#673])
v3.21.1
- Allow re-export after star export of same name. ([#698]) (Cameron Pitt)
v3.21.0
- Restructure package directory layout to better support ESM. ([#684]) (Neo Nie)
v3.20.3
- Allow the names
true,false, andnullas TS enum keys. ([#656], [#657]) (pushkine, Alan Pierce) - Properly handle TS definite assignment assertions for private fields and when disabling the class transform. ([#658])
v3.20.2
- Fix ASI issue that broke function declarations immediately following a default export. ([#648]) (Ben Lambert)
v3.20.1
- Fix transformation of anonymous "export default" classes. ([#614]) (Matthieu Gicquel)
- Handle shadowed globals when they are JSX names. ([#642]) (Matthieu Gicquel)
v3.20.0
- Various small bug fixes and upcoming JS feature support in the parser. ([#632], [#635], [#637])
- Add support for TypeScript 4.2 abstract constructor signatures. ([#635])
- Add support for TypeScript 4.3 override, static index signatures, and get/set type members. ([#636]) (Lucas Garron, Alan Pierce)
- Add support for Flow indexed access types and optional indexed access types. ([#636], [#637])
v3.19.0
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 was generated by Mend Renovate. View the repository job log.