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

Breaking: Remove "UseLegacyStretchBehaviour" functions #39372

Closed
wants to merge 5 commits into from

Conversation

NickGerleman
Copy link
Contributor

Summary: These were marked as deprecated as part of the public Yoga 2.0 release, and were alredy emitting deprecation warnings. Remove them.

Differential Revision: D49131250

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Facebook Partner: Facebook Partner labels Sep 10, 2023
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D49131250

NickGerleman added a commit to NickGerleman/yoga that referenced this pull request Sep 10, 2023
Summary:
Pull Request resolved: facebook#1368

X-link: facebook/react-native#39372

These were marked as deprecated as part of the public Yoga 2.0 release, and were alredy emitting deprecation warnings. Remove them.

Differential Revision: D49131250

fbshipit-source-id: f3addeaa4984914993ba57633c85b7aad7cecac7
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D49131250

NickGerleman added a commit to NickGerleman/react-native that referenced this pull request Sep 10, 2023
Summary:
X-link: facebook/yoga#1368

Pull Request resolved: facebook#39372

These were marked as deprecated as part of the public Yoga 2.0 release, and were alredy emitting deprecation warnings. Remove them.

Differential Revision: D49131250

fbshipit-source-id: b7261d567f74be946da8138c82a28e45eacaf121
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D49131250

NickGerleman added a commit to NickGerleman/react-native that referenced this pull request Sep 10, 2023
Summary:
X-link: facebook/yoga#1368

Pull Request resolved: facebook#39372

These were marked as deprecated as part of the public Yoga 2.0 release, and were alredy emitting deprecation warnings. Remove them.

Differential Revision: D49131250

fbshipit-source-id: cf08e4d2412fbff08fa88d882f584d275b856d6d
NickGerleman added a commit to NickGerleman/yoga that referenced this pull request Sep 10, 2023
Summary:
Pull Request resolved: facebook#1368

X-link: facebook/react-native#39372

These were marked as deprecated as part of the public Yoga 2.0 release, and were alredy emitting deprecation warnings. Remove them.

Differential Revision: D49131250

fbshipit-source-id: 97e94d374a5f5e1a8654d8a519aab1eed4bebf8a
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D49131250

@analysis-bot
Copy link

analysis-bot commented Sep 10, 2023

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 8,966,513 +86
android hermes armeabi-v7a n/a --
android hermes x86 n/a --
android hermes x86_64 n/a --
android jsc arm64-v8a 9,559,243 +234
android jsc armeabi-v7a n/a --
android jsc x86 n/a --
android jsc x86_64 n/a --

Base commit: a2fb46e
Branch: main

NickGerleman added a commit to NickGerleman/react-native that referenced this pull request Sep 10, 2023
Summary:
X-link: facebook/yoga#1368

Pull Request resolved: facebook#39372

These were marked as deprecated as part of the public Yoga 2.0 release, and were alredy emitting deprecation warnings. Remove them.

Differential Revision: D49131250

fbshipit-source-id: 441a42564d00c96db0bad517b4af8ae02a858717
NickGerleman added a commit to NickGerleman/yoga that referenced this pull request Sep 10, 2023
Summary:
Pull Request resolved: facebook#1368

X-link: facebook/react-native#39372

These were marked as deprecated as part of the public Yoga 2.0 release, and were alredy emitting deprecation warnings. Remove them.

Differential Revision: D49131250

fbshipit-source-id: cf6101bd801d72ab7e6a67e65590e03f25a80fa8
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D49131250

NickGerleman added a commit to NickGerleman/react-native that referenced this pull request Sep 10, 2023
Summary:
X-link: facebook/yoga#1368

Pull Request resolved: facebook#39372

These were marked as deprecated as part of the public Yoga 2.0 release, and were alredy emitting deprecation warnings. Remove them.

Differential Revision: D49131250

fbshipit-source-id: 39dbeb7c21e37333872f77fcfc5c75f458991c67
NickGerleman added a commit to NickGerleman/yoga that referenced this pull request Sep 10, 2023
Summary:
Pull Request resolved: facebook#1368

X-link: facebook/react-native#39372

These were marked as deprecated as part of the public Yoga 2.0 release, and were alredy emitting deprecation warnings. Remove them.

Differential Revision: D49131250

fbshipit-source-id: 4e6acfbaa1cd26c03bb7db90ba26529fe7c3f48b
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D49131250

NickGerleman added a commit to NickGerleman/yoga that referenced this pull request Sep 11, 2023
Summary:
Pull Request resolved: facebook#1368

X-link: facebook/react-native#39372

These were marked as deprecated as part of the public Yoga 2.0 release, and were alredy emitting deprecation warnings. Remove them.

Reviewed By: javache

Differential Revision: D49131250

fbshipit-source-id: cdbb51e026df1fee51ee76bdb7b2724a425a51dd
NickGerleman added a commit to NickGerleman/react-native that referenced this pull request Sep 11, 2023
Summary:
X-link: facebook/yoga#1368

Pull Request resolved: facebook#39372

These were marked as deprecated as part of the public Yoga 2.0 release, and were alredy emitting deprecation warnings. Remove them.

Reviewed By: javache

Differential Revision: D49131250

fbshipit-source-id: eb6e0b254b1c40151e4dde38ce375a563e33ee6f
NickGerleman added a commit to NickGerleman/yoga that referenced this pull request Sep 12, 2023
Summary:
Pull Request resolved: facebook#1368

X-link: facebook/react-native#39372

These were marked as deprecated as part of the public Yoga 2.0 release, and were alredy emitting deprecation warnings. Remove them.

Reviewed By: javache

Differential Revision: D49131250

fbshipit-source-id: b6d5e3a7109e7ecd4163a7986cb522e14ab6c1d7
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D49131250

NickGerleman added a commit to NickGerleman/react-native that referenced this pull request Sep 12, 2023
Summary:
X-link: facebook/yoga#1368

Pull Request resolved: facebook#39372

These were marked as deprecated as part of the public Yoga 2.0 release, and were alredy emitting deprecation warnings. Remove them.

Reviewed By: javache

Differential Revision: D49131250

fbshipit-source-id: 9f4fcd3dcea2757130a048197643db78d6ac9761
NickGerleman added a commit to NickGerleman/yoga that referenced this pull request Sep 12, 2023
Summary:
Pull Request resolved: facebook#1368

X-link: facebook/react-native#39372

These were marked as deprecated as part of the public Yoga 2.0 release, and were alredy emitting deprecation warnings. Remove them.

Reviewed By: javache

Differential Revision: D49131250

fbshipit-source-id: 89d91e672f3f92c1660aaaee2186c6b384eaddaa
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D49131250

NickGerleman added a commit to NickGerleman/react-native that referenced this pull request Sep 12, 2023
Summary:
X-link: facebook/yoga#1368

Pull Request resolved: facebook#39372

These were marked as deprecated as part of the public Yoga 2.0 release, and were alredy emitting deprecation warnings. Remove them.

Reviewed By: javache

Differential Revision: D49131250

fbshipit-source-id: 4a8e339abe8cc6329546f832d972a40d077de0ab
NickGerleman added a commit to NickGerleman/yoga that referenced this pull request Sep 12, 2023
Summary:
Pull Request resolved: facebook#1368

X-link: facebook/react-native#39372

These were marked as deprecated as part of the public Yoga 2.0 release, and were alredy emitting deprecation warnings. Remove them.

Reviewed By: javache

Differential Revision: D49131250

fbshipit-source-id: 178828b49f1e4a6dc0620669b7cb3bbc522b9444
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D49131250

NickGerleman added a commit to NickGerleman/react-native that referenced this pull request Sep 12, 2023
Summary:
X-link: facebook/yoga#1368

Pull Request resolved: facebook#39372

These were marked as deprecated as part of the public Yoga 2.0 release, and were alredy emitting deprecation warnings. Remove them.

Reviewed By: javache

Differential Revision: D49131250

fbshipit-source-id: abd366ecb8d9fab7a49921a7fe44dc25cb9430b2
NickGerleman and others added 5 commits September 11, 2023 19:00
Summary:
This changes public Yoga API to in more places accept const structures where before they required mutable ones.

This tries to avoid more breaking changes yet, e.g. changing callbacks to require clients do not modify nodes when they are passed for logging. We also don't have const variants for returning child structures which would allow mutation of dependencies of the const object. These would need new names under the public API, since we do not have operator overloading in C.

Differential Revision: D49130412

fbshipit-source-id: 85567669e1014da755dfdcd822294ceb392073be
Summary:
X-link: facebook/yoga#1369

Pull Request resolved: facebook#39370

This fixes const-correctness of callbacks (e.g. not letting a logger function modify nodes during layout). This helps us to continue to fix const-correctness issues inside of Yoga.

This change is breaking to the public API, since it requires a change in signature passed to Yoga.

Changelog: [Internal]

Differential Revision: https://internalfb.com/D49130714

fbshipit-source-id: a9a533fb900da1de9e0de1008a653e46fe3eab82
Summary:
Yoga's public API exposes indices most often as `uint32_t`, with exception of clone callbacks which are `int32_t`. Yoga internally represents these indices as `size_t` when dealing with the child vector, and this is the true index.

This changes the API to consistently be `size_t`. This should not be breaking for most users, but will cause breaks where:

1. Users set a clone node callback (I think this should be rare. RN uses it, but only because it relies on a separate private API).
2. Callers of `YGNodeGetChildCount()` are assigning to an int with less width than `size_t` and have strong warnings enabled.
3. Using a newer Yoga binary with older source, since we are not preserving ABI compatibility (Yoga in general does not aim to be ABI stable between major versions, only ABI safe for a given set of sources).

Differential Revision: D49130914

fbshipit-source-id: 0fccf73fa696e94db5a9cbf3559a5be5d663f70b
Summary:
This was added in facebook/yoga#497 specifically for tests related to memory leaks in the C# bindings to count how often YGConfigFree.

This is the wrong layer for this check, we don't have officially supported C# bindings anymore, and this API is not safe when Yoga runs on multiple threads. This removes it.

Differential Revision: D49131207

fbshipit-source-id: f433288c6175b8b49177fb9113021381e4c68377
Summary:
X-link: facebook/yoga#1368

Pull Request resolved: facebook#39372

These were marked as deprecated as part of the public Yoga 2.0 release, and were alredy emitting deprecation warnings. Remove them.

Reviewed By: javache

Differential Revision: D49131250

fbshipit-source-id: a85f4355acf708e4e68a9bed69550aed0dc934cc
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D49131250

NickGerleman added a commit to NickGerleman/yoga that referenced this pull request Sep 12, 2023
Summary:
Pull Request resolved: facebook#1368

X-link: facebook/react-native#39372

These were marked as deprecated as part of the public Yoga 2.0 release, and were alredy emitting deprecation warnings. Remove them.

Reviewed By: javache

Differential Revision: D49131250

fbshipit-source-id: 1959e0a330f49ec4ce99303b66354aafb20aa26b
facebook-github-bot pushed a commit to facebook/litho that referenced this pull request Sep 12, 2023
Summary:
X-link: facebook/yoga#1368

X-link: facebook/react-native#39372

These were marked as deprecated as part of the public Yoga 2.0 release, and were alredy emitting deprecation warnings. Remove them.

Reviewed By: javache

Differential Revision: D49131250

fbshipit-source-id: cc1d4e8b179697b9a11a685f4fc4e9d36e1a26a0
facebook-github-bot pushed a commit to facebook/yoga that referenced this pull request Sep 12, 2023
Summary:
Pull Request resolved: #1368

X-link: facebook/react-native#39372

These were marked as deprecated as part of the public Yoga 2.0 release, and were alredy emitting deprecation warnings. Remove them.

Reviewed By: javache

Differential Revision: D49131250

fbshipit-source-id: cc1d4e8b179697b9a11a685f4fc4e9d36e1a26a0
@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Sep 12, 2023
@facebook-github-bot
Copy link
Contributor

This pull request has been merged in c35ff13.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged This PR has been merged. p: Facebook Partner: Facebook Partner
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants