swc-project
swc
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Branches
Benchmarks
Runs
Performance History
Latest Results
fix(es/parser): parse Flow bare renders types (#11929) **Description:** Fixes Flow parser support for bare `renders T` in type positions. The parser previously only recognized the `renders? T` and `renders* T` forms, so bare `renders React.Node` was parsed as a type reference named `renders` and failed on the operand. This change lets bare `renders` consume an operand type using the existing erased AST representation, while keeping invalid operand-less `renders` cases from being reinterpreted as Flow anonymous function type parameters. Validation: - `cargo fmt --all` - `cargo clippy --all --all-targets -- -D warnings` - `cargo test -p swc_ecma_parser --features flow --test flow` - `FLOW_HERMES_FILTER=types/render_types/renders.js cargo test -p swc_ecma_parser --features flow --test flow_hermes hermes_flow_error_presence_parity` Note: `cargo test -p swc_ecma_parser` still fails on the unrelated existing TypeScript fixture `errors_tests__typescript_errors__type_only_import_specifier__invalid_type_only__input_ts`, which also fails when run alone. **Related issue:** Fixes #11928
main
8 hours ago
chore: add changeset for Flow renders parser fix
kdy1/fix-flow-bare-renders
9 hours ago
fix(parser): preserve nullable bare renders operands
kdy1/fix-flow-bare-renders
10 hours ago
Merge remote-tracking branch 'origin/main' into kdy1/fix-flow-bare-renders
kdy1/fix-flow-bare-renders
10 hours ago
chore: update release milestone management
kdy1/release-milestone-management
10 hours ago
fix(es/parser): handle Flow async generic arrows (#11926) **Description:** Fixes two Flow parser gaps reported in #11925: - Parse async generic arrows with typed params and explicit return annotations, such as `async <T>(x: T): Promise<T> => x`. - Parse anonymous function-type parameters in `declare class` method signatures, preserving the existing `__flow_anon_param_N` synthetic parameter convention. - Adds focused Flow parser fixtures for both cases. Validated with: - `cargo fmt --all` - `cargo test -p swc_ecma_parser` - `cargo test -p swc_ecma_parser --features flow --test flow -- --ignored` - `cargo test -p swc_ecma_transforms_typescript flow_strip_reparses_as_javascript -- --ignored` - `cargo test -p swc_ecma_parser --features flow --test flow_hermes` - `cargo clippy --all --all-targets -- -D warnings` **Related issue:** Fixes #11925
main
1 day ago
chore: add changeset for Flow parser fix
kdy1/fix-flow-parser-11925
1 day ago
fix(es/parser): support unknown AST cfg for Flow params
kdy1/fix-flow-parser-11925
1 day ago
Latest Branches
CodSpeed Performance Gauge
0%
fix(es/parser): parse Flow bare renders types
#11929
9 hours ago
24efb0a
kdy1/fix-flow-bare-renders
CodSpeed Performance Gauge
0%
chore: update release milestone management
#11930
10 hours ago
4b42bd7
kdy1/release-milestone-management
CodSpeed Performance Gauge
0%
fix(es/parser): handle Flow async generic arrows
#11926
1 day ago
d716b0b
kdy1/fix-flow-parser-11925
© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs