Repository navigation
Conversation
Also add node-based unit tests for SSR APIs.
Remove libraries from benchmarks as comparison to css-modules baseline is what matters. This makes benchmark builds faster and will reduce how often people open PRs asking for their library to be included. Close #2210
* Control writing direction using 'dir' and 'lang' props. * Change the compiler output for RTL styles polyfill. * Export 'useLocaleContext' for working with writing direction context. * Turn I18nManager into a mock API
owenjeon
marked this pull request as draft
April 17, 2022 15:57
Bumps [semver-regex](https://github.com/sindresorhus/semver-regex) from 3.1.3 to 3.1.4. - [Release notes](https://github.com/sindresorhus/semver-regex/releases) - [Commits](https://github.com/sindresorhus/semver-regex/commits/v3.1.4) --- updated-dependencies: - dependency-name: semver-regex dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com>
Bumps [cross-fetch](https://github.com/lquixada/cross-fetch) from 3.0.6 to 3.1.5. - [Release notes](https://github.com/lquixada/cross-fetch/releases) - [Commits](lquixada/cross-fetch@v3.0.6...v3.1.5) --- updated-dependencies: - dependency-name: cross-fetch dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com>
Bumps [ws](https://github.com/websockets/ws) from 7.4.3 to 7.4.6. - [Release notes](https://github.com/websockets/ws/releases) - [Commits](websockets/ws@7.4.3...7.4.6) --- updated-dependencies: - dependency-name: ws dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com>
Bumps [ejs](https://github.com/mde/ejs) from 3.1.6 to 3.1.8. - [Release notes](https://github.com/mde/ejs/releases) - [Changelog](https://github.com/mde/ejs/blob/main/CHANGELOG.md) - [Commits](mde/ejs@v3.1.6...v3.1.8) --- updated-dependencies: - dependency-name: ejs dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com>
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.14.7 to 1.15.1. - [Release notes](https://github.com/follow-redirects/follow-redirects/releases) - [Commits](follow-redirects/follow-redirects@v1.14.7...v1.15.1) --- updated-dependencies: - dependency-name: follow-redirects dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Bowen Milner <bowenmilner@mac.lan>
…2851) The image-loading effect listed onError, onLoad, onLoadEnd, and onLoadStart in its dependency array. Passing inline handlers - new function identities on every parent render - made the effect re-run for an unchanged uri: the cleanup aborted the in-flight request, state was reset to LOADING, onLoadStart fired again, and the load restarted. A handler such as onLoadEnd={() => setLoading(false)} triggers a re-render and can loop this indefinitely, with the element never settling even though the browser has the image fully decoded. Read the handlers through a ref that is refreshed on every render, so the effect depends only on the uri while the handlers invoked are always the ones from the most recent render. Native Image is unaffected by handler identity, so this also aligns web behavior with native.
…stcss-modules-scope (#2867) Bumps [postcss-selector-parser](https://github.com/postcss/postcss-selector-parser), [postcss-modules-local-by-default](https://github.com/css-modules/postcss-modules-local-by-default) and [postcss-modules-scope](https://github.com/css-modules/postcss-modules-scope). These dependencies needed to be updated together. Updates `postcss-selector-parser` from 6.0.11 to 7.1.6 - [Release notes](https://github.com/postcss/postcss-selector-parser/releases) - [Changelog](https://github.com/postcss/postcss-selector-parser/blob/main/CHANGELOG.md) - [Commits](postcss/postcss-selector-parser@v6.0.11...7.1.6) Updates `postcss-modules-local-by-default` from 4.0.0 to 4.2.0 - [Release notes](https://github.com/css-modules/postcss-modules-local-by-default/releases) - [Changelog](https://github.com/css-modules/postcss-modules-local-by-default/blob/master/CHANGELOG.md) - [Commits](css-modules/postcss-modules-local-by-default@v4.0.0...v4.2.0) Updates `postcss-modules-scope` from 3.0.0 to 3.2.1 - [Release notes](https://github.com/css-modules/postcss-modules-scope/releases) - [Changelog](https://github.com/css-modules/postcss-modules-scope/blob/master/CHANGELOG.md) - [Commits](css-modules/postcss-modules-scope@v3.0.0...v3.2.1) --- updated-dependencies: - dependency-name: postcss-selector-parser dependency-version: 7.1.6 dependency-type: indirect - dependency-name: postcss-modules-local-by-default dependency-version: 4.2.0 dependency-type: indirect - dependency-name: postcss-modules-scope dependency-version: 3.2.1 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps and [js-yaml](https://github.com/nodeca/js-yaml). These dependencies needed to be updated together. Updates `js-yaml` from 3.14.1 to 3.15.2 - [Changelog](https://github.com/nodeca/js-yaml/blob/3.15.2/CHANGELOG.md) - [Commits](nodeca/js-yaml@3.14.1...3.15.2) Updates `js-yaml` from 4.1.0 to 4.3.2 - [Changelog](https://github.com/nodeca/js-yaml/blob/3.15.2/CHANGELOG.md) - [Commits](nodeca/js-yaml@3.14.1...3.15.2) --- updated-dependencies: - dependency-name: js-yaml dependency-version: 3.15.2 dependency-type: indirect - dependency-name: js-yaml dependency-version: 4.3.2 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [source-map-js](https://github.com/7rulnik/source-map-js) from 1.2.1 to 1.2.2. - [Release notes](https://github.com/7rulnik/source-map-js/releases) - [Changelog](https://github.com/7rulnik/source-map-js/blob/main/CHANGELOG.md) - [Commits](7rulnik/source-map-js@v1.2.1...v1.2.2) --- updated-dependencies: - dependency-name: source-map-js dependency-version: 1.2.2 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [immutable](https://github.com/immutable-js/immutable-js) from 3.8.2 to 3.8.4. - [Release notes](https://github.com/immutable-js/immutable-js/releases) - [Changelog](https://github.com/immutable-js/immutable-js/blob/main/CHANGELOG.md) - [Commits](immutable-js/immutable-js@v3.8.2...v3.8.4) --- updated-dependencies: - dependency-name: immutable dependency-version: 3.8.4 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [brace-expansion](https://github.com/juliangruber/brace-expansion) from 1.1.11 to 1.1.21. - [Release notes](https://github.com/juliangruber/brace-expansion/releases) - [Commits](juliangruber/brace-expansion@1.1.11...v1.1.21) --- updated-dependencies: - dependency-name: brace-expansion dependency-version: 1.1.21 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
React Native 0.87 exposes AssetRegistry as a public API. This adds the missing export to React Native Web.
* Update to Jest v30 # Conflicts: # package-lock.json * Rename expectToBeCalledOnce to expectToHaveBeenCalledOnce
* Add `react-native-web/asset-registry` entry point Metro imports the asset registry from a dedicated module path when `transformer.assetRegistryPath` points to it. User projects can also import it directly, so expose it as a public entry point. * Fix `react-native-web/asset-registry` import
React Native Web ships both CJS and ESM builds. When both are loaded, each had its own registry array. Assets registered through one build were not found through the other. The registry is now stored on globalThis with Symbol.for, so both builds share it.
The registry from #2887 is stored on `global`. `global` is not defined in every browser environment. When it is missing, the module throws a ReferenceError when it loads, which also breaks Image. Use `globalThis` when it exists, then `global`, then `window`. Some browser targets (Chrome 49, Safari 10) do not have `globalThis`. If none of these exist, the registry is not shared between builds, but nothing throws. Add the `es2021` ESLint env so `globalThis` is a known global.
AssetRegistry is now exported by React Native Web. List it in the compatibility table.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.