Repository navigation
Upgrade to Prettier 3.10.2 (#2336) - #2336
Conversation
|
@noschiff has exported this pull request. If you are a Meta employee, you can view the originating Diff in D136322615. |
Metro review: Looks goodRisk: low · Commit: This PR upgrades the Prettier devDependency from 3.10.0 to 3.10.2. It also gives two metro-file-map worker private fields an initializer, so their Flow comment types survive 3.10.2's new semicolon placement. My previous finding is fixed: with 3.10.2 installed, No findings. Verified
Not run: No benchmark: the only runtime change is a field initializer in the file-map worker constructors, which costs nothing measurable. The Watchman integration tests can't run in the sandbox, and fail identically on the base. No Windows run, since nothing here depends on the platform. Automated review by Claude. Advisory only: it never approves or blocks, and a maintainer makes the call. |
Summary: X-link: react/react-native#60573 Upgrade the Prettier dev dependency from 3.10.0 to 3.10.2. 3.10.2 adds a semicolon after a `// prettier-ignore` class field, in front of any comment after it. Two Metro worker fields keep their Flow type in such a comment, so the result (`#plugins; /*: ... */`) doesn't parse. They now have an initializer (`= []`, `= undefined`), which keeps the comment inside the field and changes no behavior: an uninitialized field is already `undefined`, and the constructor always replaces `#plugins`. Changelog: [Internal] Reviewed By: SamChou19815 Differential Revision: D136322615 Signed-off-by: Noah Schiff <noahschiff@meta.com>
5b6e65e to
da51ee8
Compare
Summary: X-link: react/metro#2336 Upgrade the Prettier dev dependency from 3.10.0 to 3.10.2. 3.10.2 adds a semicolon after a `// prettier-ignore` class field, in front of any comment after it. Two Metro worker fields keep their Flow type in such a comment, so the result (`#plugins; /*: ... */`) doesn't parse. They now have an initializer (`= []`, `= undefined`), which keeps the comment inside the field and changes no behavior: an uninitialized field is already `undefined`, and the constructor always replaces `#plugins`. Changelog: [Internal] Reviewed By: SamChou19815 Differential Revision: D136322615 Signed-off-by: Noah Schiff <noahschiff@meta.com>
Summary: X-link: react/metro#2336 Upgrade the Prettier dev dependency from 3.10.0 to 3.10.2. 3.10.2 adds a semicolon after a `// prettier-ignore` class field, in front of any comment after it. Two Metro worker fields keep their Flow type in such a comment, so the result (`#plugins; /*: ... */`) doesn't parse. They now have an initializer (`= []`, `= undefined`), which keeps the comment inside the field and changes no behavior: an uninitialized field is already `undefined`, and the constructor always replaces `#plugins`. Changelog: [Internal] Reviewed By: SamChou19815 Differential Revision: D136322615 Pull Request resolved: #60573
Summary:
X-link: react/react-native#60573
Upgrade the Prettier dev dependency from 3.10.0 to 3.10.2.
3.10.2 adds a semicolon after a
// prettier-ignoreclass field, in front of any comment after it. Two Metro worker fields keep their Flow type in such a comment, so the result (#plugins; /*: ... */) doesn't parse. They now have an initializer (= [],= undefined), which keeps the comment inside the field and changes no behavior: an uninitialized field is alreadyundefined, and the constructor always replaces#plugins.Changelog: [Internal]
Reviewed By: SamChou19815
Differential Revision: D136322615