Skip to content

Comments

improve(transformer): validate JSX pragma options#3536

Merged
graphite-app[bot] merged 1 commit intomainfrom
06-05-improve_transformer_improve_validation_of_jsx_pragma_options
Jun 6, 2024
Merged

improve(transformer): validate JSX pragma options#3536
graphite-app[bot] merged 1 commit intomainfrom
06-05-improve_transformer_improve_validation_of_jsx_pragma_options

Conversation

@overlookmotel
Copy link
Member

@overlookmotel overlookmotel commented Jun 5, 2024

Validate React JSX pragma and pragma_frag options. Don't allow:

  • empty string
  • foo.bar.qux
  • foo.
  • .bar
  • .

If options provided are invalid, raise an error and use the defaults.

Also fast path the defaults.

@graphite-app
Copy link
Contributor

graphite-app bot commented Jun 5, 2024

Your org has enabled the Graphite merge queue for merging into main

Add the label “merge” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “hotfix” to add to the merge queue as a hot fix.

You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link.

Copy link
Member Author

overlookmotel commented Jun 5, 2024

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @overlookmotel and the rest of your teammates on Graphite Graphite

@github-actions github-actions bot added the A-transformer Area - Transformer / Transpiler label Jun 5, 2024
@overlookmotel overlookmotel marked this pull request as ready for review June 5, 2024 11:53
@codspeed-hq
Copy link

codspeed-hq bot commented Jun 5, 2024

CodSpeed Performance Report

Merging #3536 will improve performances by 7.02%

Comparing 06-05-improve_transformer_improve_validation_of_jsx_pragma_options (14c00a5) with main (6506d08)

Summary

⚡ 1 improvements
✅ 21 untouched benchmarks

Benchmarks breakdown

Benchmark main 06-05-improve_transformer_improve_validation_of_jsx_pragma_options Change
transformer[RadixUIAdoptionSection.jsx] 285.1 µs 266.4 µs +7.02%

@overlookmotel overlookmotel changed the title improve(transformer): improve validation of JSX pragma options improve(transformer): validate JSX pragma options Jun 5, 2024
@overlookmotel overlookmotel force-pushed the 06-05-improve_transformer_improve_validation_of_jsx_pragma_options branch from 74510db to f028a4a Compare June 5, 2024 11:57
@graphite-app
Copy link
Contributor

graphite-app bot commented Jun 6, 2024

Merge activity

Validate React JSX `pragma` and `pragma_frag` options. Don't allow:

* empty string
* `foo.bar.qux`
* `foo.`
* `.bar`
* `.`

If options provided are invalid, raise an error and use the defaults.

Also fast path the defaults.
@Dunqing Dunqing force-pushed the 06-05-improve_transformer_improve_validation_of_jsx_pragma_options branch from fd098ad to 14c00a5 Compare June 6, 2024 03:20
@graphite-app graphite-app bot merged commit 14c00a5 into main Jun 6, 2024
@graphite-app graphite-app bot deleted the 06-05-improve_transformer_improve_validation_of_jsx_pragma_options branch June 6, 2024 03:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-transformer Area - Transformer / Transpiler

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants