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

refactor(transformer/class-properties)!: rename ClassPropertiesOptions::loose #7716

Conversation

overlookmotel
Copy link
Contributor

@overlookmotel overlookmotel commented Dec 7, 2024

loose option also covers the private_fields_as_properties assumption, not only set_public_class_fields.

Copy link

graphite-app bot commented Dec 7, 2024

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

Add the label “0-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

codspeed-hq bot commented Dec 7, 2024

CodSpeed Performance Report

Merging #7716 will not alter performance

Comparing 12-07-refactor_transformer_class-properties_rename_classpropertiesoptions_loose_ (5913200) with main (ad27b20)

Summary

✅ 29 untouched benchmarks

@Dunqing
Copy link
Member

Dunqing commented Dec 7, 2024

I was thinking that we are only compatible with Babel8, so do we still need to support the loose option?

@overlookmotel overlookmotel force-pushed the 12-06-test_transformer_add_just_script_to_update_transformer_test_fixtures branch from c76c54f to f31d85c Compare December 7, 2024 19:00
@overlookmotel overlookmotel force-pushed the 12-07-refactor_transformer_class-properties_rename_classpropertiesoptions_loose_ branch from 75bb582 to 9dd0e00 Compare December 7, 2024 19:00
@overlookmotel
Copy link
Contributor Author

I was thinking that we are only compatible with Babel8, so do we still need to support the loose option?

I don't know what Babel 8 supports and doesn't support. But loose is equivalent to set_public_class_fields + private_fields_as_properties assumptions, which we do want to support. And we need loose at least in our test infra, because Babel's fixtures use it.

@Dunqing
Copy link
Member

Dunqing commented Dec 8, 2024

I don't know what Babel 8 supports and doesn't support. But loose is equivalent to set_public_class_fields + private_fields_as_properties assumptions, which we do want to support. And we need loose at least in our test infra, because Babel's fixtures use it.

Yes, I know we can override the config to enable set_public_class_fields + private_fields_as_properties instead of loose, anyway, we can keep it for now.

@Dunqing Dunqing added the 0-merge Merge with Graphite Merge Queue label Dec 8, 2024
Copy link
Member

Dunqing commented Dec 8, 2024

Merge activity

  • Dec 7, 8:40 PM EST: The merge label '0-merge' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Dec 7, 8:40 PM EST: A user added this pull request to the Graphite merge queue.
  • Dec 7, 9:21 PM EST: A user merged this pull request with the Graphite merge queue.

…ns::loose` (#7716)

`loose` option also covers the `private_fields_as_properties` assumption, not only `set_public_class_fields`.
@Dunqing Dunqing force-pushed the 12-06-test_transformer_add_just_script_to_update_transformer_test_fixtures branch from f31d85c to a6fd2de Compare December 8, 2024 01:47
@Dunqing Dunqing force-pushed the 12-07-refactor_transformer_class-properties_rename_classpropertiesoptions_loose_ branch from 9dd0e00 to 5913200 Compare December 8, 2024 01:47
Base automatically changed from 12-06-test_transformer_add_just_script_to_update_transformer_test_fixtures to main December 8, 2024 02:19
@graphite-app graphite-app bot merged commit 5913200 into main Dec 8, 2024
27 checks passed
@graphite-app graphite-app bot deleted the 12-07-refactor_transformer_class-properties_rename_classpropertiesoptions_loose_ branch December 8, 2024 02:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0-merge Merge with Graphite Merge Queue A-transformer Area - Transformer / Transpiler C-cleanup Category - technical debt or refactoring. Solution not expected to change behavior
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants