11 Commits
Author SHA1 Message Date
React Native Bot c30b7f8685 Release 0.88.1
#publish-packages-to-npm&latest
2026-10-27 12:09:29 +00:00
React Native Bot 5c35c82cf7 Release 0.88.0
#publish-packages-to-npm&latest
2026-10-15 11:38:19 +00:00
React Native Bot 1a72139b30 Release 0.88.0-rc.6
#publish-packages-to-npm&next
2026-10-14 14:54:05 +00:00
React Native Bot a3249a2e43 Release 0.88.0-rc.5
#publish-packages-to-npm&next
2026-10-12 20:22:35 +00:00
React Native Bot 62e60c3521 Release 0.88.0-rc.4
#publish-packages-to-npm&next
2026-10-05 17:21:13 +00:00
React Native Bot 0782c61fe6 Release 0.88.0-rc.3
#publish-packages-to-npm&next
2026-09-28 09:11:17 +00:00
React Native Bot 215169c51b Release 0.88.0-rc.2
#publish-packages-to-npm&next
2026-09-21 16:15:27 +00:00
React Native Bot 05a41cdc67 Release 0.88.0-rc.1
#publish-packages-to-npm&next
2026-09-15 22:16:48 +00:00
React Native Bot f065722abe Release 0.88.0-rc.0
#publish-packages-to-npm&next
2026-09-08 13:53:53 +00:00
qdr108 6f90ef7f07 Add asset utils resource identifier tests (#57999)
Summary:
Adds test coverage for `getAndroidResourceIdentifier` in `react-native/asset-utils`.

The tests cover folder path encoding, Android resource-name normalization, and generated asset path prefix removal.

## Changelog:
[INTERNAL] - Add test coverage for asset utils Android resource identifier normalization

Pull Request resolved: https://github.com/react/react-native/pull/57999

Test Plan:
Ran the package suite on this rebased commit:

```
yarn jest packages/asset-utils
# 1 suite, 7 passed (4 pre-existing, 3 new)
```

Checked that the three new cases are non-vacuous by mutating
`packages/asset-utils/src/AndroidPathUtils.js` one change at a time and re-running:

| mutation | result |
| --- | --- |
| narrow the prefix regex to `^assets_` | 1 failed, 6 passed |
| drop the `[^a-z0-9_]` illegal-char strip | 1 failed, 6 passed |
| drop `toLowerCase()` | 1 failed, 6 passed |
| restored | 7 passed |

Each new test kills exactly one distinct mutant, so all three assert real behavior
rather than padding coverage. The `^assets_` case matters most: the real regex is
`^(?:assets|assetsunstable_path)_`, where the first alternative matches `assets` then
fails on the following character, so the second alternative has to carry it.

This PR only adds `describe` blocks to an existing test file that was already running,
so there is no new test target to register.

Reviewed By: christophpurrer

Differential Revision: D117191484

Pulled By: fabriziocucci

fbshipit-source-id: 7a13c01772669eaf0ddfdf29156d8f250fd5cada
2026-08-24 08:35:52 -07:00
Alex Hunt 41d52189e2 Create @react-native/asset-utils package (#57368)
Summary:
Pull Request resolved: https://github.com/react/react-native/pull/57368

**Context**

This stack intends to relocate the `AssetRegistry` API from `react-native/assets-registry` into `react-native` — addressing runtime safety and public deep imports issues (1.0 and JS Stable API blockers).

**This diff**

Create a new `react-native/asset-utils` package, intended for internal/framework use (read: **will not be an end user concern**). This re-houses `react-native/assets-registry/path-support.js`.

Stacked with the next two diffs, this contributes to the 0.87 objective to delete `react-native/assets-registry` towards install-layout-safe behaviour and JS deep import removal.

- (Temporarily, this leaves two copies of `path-support.js` until I enact the package removal down the stack.)

This change also enables us to de-duplicate `assetPathUtils.js` inside `community-cli-plugin` and use one source of truth.

- Additionally, we have fbsource consumers of this util that cannot have a circular Buck dep on `react-native`, so the main package was not a suitable relocation point (secondarily to not adding an awkward new public API here).

**Changes**
- Add `react-native/asset-utils` (`packages/asset-utils/`): `src/AssetPathUtils.js` containing Android path helpers and tests.
- De-duplicate usages in `community-cli-plugin`: delete `src/commands/bundle/assetPathUtils.js`.

Changelog:
[General][Added] - Introduce `react-native/asset-utils` package (relocates Android path utils for libraries/frameworks)

Reviewed By: robhogan

Differential Revision: D110045272

fbshipit-source-id: 781e75c58ae9ce7f0fa860e66beca3b9990d26ea
2026-07-06 10:32:14 -07:00