Skip to content

Move main to React Native 0.83 and Vega OS 2.0 - #21

Open
khuatkdev wants to merge 13 commits into
mainfrom
vega-os-2.0
Open

khuatkdev wants to merge 13 commits into
mainfrom
vega-os-2.0

Conversation

@khuatkdev

Copy link
Copy Markdown
Collaborator

Summary

Moves main to React Native 0.83 and Vega OS 2.0, matching the branch layout of the other Vega samples.

  • Merges the release-rn-83 React Native 0.83 upgrade (vega-rn-83) into main, so later merges from release-rn-83 stay clean.
  • Sets [os.version] min and target to 2.0 in manifest.toml and removes the IVega_1_2 module.
  • README: Vega SDK 2.0 requirement, a Branches section (main Vega OS 2.0, release-rn-83 Vega OS 1.2, release-rn-72 RN 0.72) and a "Check the branch first" note.
  • THIRD-PARTY-NOTICES regenerated.

Dependencies: the React Native 0.83 dependency set from release-rn-83, with @amazon-devices/react-native-kepler moved to ~4.0.0 (4.0.2). The lockfile resolves from public npm only.

Please merge the release-rn-83 PR first, then this PR, both with "Create a merge commit" (not squash), so future merges from release-rn-83 stay clean.

Testing

  • Clean install from public npm with Vega SDK 2.0: doctor, test and build pass. On the current main, the build fails because hermesc is not found.
  • Lint (jest/globals environment unknown, as on the current main) and type check (KeplerEPGRef not exported by keplerscript-epg 2.8.9) fail; left for a follow-up.
  • Ran on a Vega OS 2 virtual device: the guide launches and scrolls in all four directions, wraps from the last channel to the first, the header follows focus, select and back work, relaunch works, no crashes.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

- Replace the kepler-ui-components EPG with KeplerEPG from
  @amazon-devices/keplerscript-epg
- Update dependencies for RN 0.83 (React 19.2, TypeScript 5.8,
  @amazon-devices/react-native-kepler 4.0.0)
- Replace Typography with Text and scale layout values by PixelRatio
- Use @react-native/babel-preset and @react-native/typescript-config
- Move ts-jest options inline and remove the duplicate jest.config.js
- Set the manifest runtime-module to IReactNativeKepler_0
- Update README commands and links for the vega CLI, document KeplerEPG
  instead of the kepler-ui-components EPG, and match the prop and data
  types to the keplerscript-epg typings
- Regenerate package-lock.json from registry.npmjs.org
- Regenerate THIRD-PARTY-NOTICES for the production dependencies
State that release-rn-83 targets Vega OS 1.2 and point Vega OS 2.0
builds to the main branch.
Bring the release-rn-83 React Native 0.83 upgrade into main as a merge,
so that later merges of release-rn-83 into main stay clean.
- Set [os.version] min and target to 2.0 in manifest.toml and drop the
  IVega_1_2 module from [needs]
- Allow @amazon-devices/react-native-kepler ~4.0.0 instead of exactly
  4.0.0, and refresh package-lock.json to 4.0.2 from registry.npmjs.org
- Regenerate THIRD-PARTY-NOTICES for the production dependencies
- Note in the README that the app needs Vega SDK 2.0 or later
Add a Branches section that lists main (React Native 0.83, Vega OS 2.0),
release-rn-83 (React Native 0.83, Vega OS 1.2) and release-rn-72
(React Native 0.72, Vega OS 1.2), and a note in the prerequisites to
check the branch and the Vega SDK version before building.
@khuatkdev khuatkdev changed the title Vega os 2.0 Move main to React Native 0.83 and Vega OS 2.0 Nov 10, 2026
khuatkdev and others added 8 commits November 12, 2026 04:21
v7.2.0 predates React 18 and 19, so tests written against React 19.2
and react-test-renderer 19.2.0 would hit a peer conflict. v13.3.3
supports react and react-test-renderer >=18.2.0 and react-native
>=0.71. v14 needs test-renderer 1.3, whose react-reconciler requires
React ^19.3, while this app pins React 19.2.0.

Regenerate package-lock.json from registry.npmjs.org.
Bring the @testing-library/react-native ^13.3.3 bump from the
release-rn-83 PR into the main PR. package-lock.json had one
adjacent-entry conflict (each side had removed different entries). It
is resolved by keeping this branch's lockfile and applying the bump
with npm install --package-lock-only.
Run a non-forced npm audit fix against registry.npmjs.org. Only
package-lock.json changes:
- minimatch 3.0.8 to 3.1.5 at the top level (and the nested 3.1.5
  copies are deduplicated), which clears the high-severity ReDoS
  advisories for minimatch <=3.1.3
- @typescript-eslint packages 8.72.1 to 8.72.2 and brace-expansion
  5.0.12 to 5.0.13 under @react-native/eslint-config (lint tooling)

npm audit --omit=dev goes from 5 findings (1 high, 4 low) to 4 low.
Change @amazon-devices/react-native-kepler from exactly 4.0.0 to
~4.0.0, as on main, so it resolves 4.0.2. 4.0.0 pulls in
@microsoft/api-extractor with vulnerable lodash, minimatch, ajv and
@rushstack versions; 4.0.2 does not. Then run a non-forced npm audit
fix against registry.npmjs.org (minimatch 3.0.8 to 3.1.5 and lint
patch bumps).

npm audit --omit=dev goes from 14 findings (4 high, 6 moderate,
4 low) to 4 low. package-lock.json now matches the vega-os-2.0
branch. Regenerate THIRD-PARTY-NOTICES for the production
dependencies.
Bring the release-rn-83 security update into the main PR, so later
merges of release-rn-83 into main stay clean. package.json and
package-lock.json are already identical on both branches; the only
change here is the regenerated THIRD-PARTY-NOTICES, which drops the
minimatch 3.0.8 entry that npm audit fix removed.
On Vega OS 1.2 and 2.0 the system EPG component is built for
React Native 0.72, so this React Native 0.83 build crashes on launch
there. Point OS 1.2 and 2.0 users at release-rn-72, correct the
release-rn-83 row (it currently holds the same React Native 0.72 code
as release-rn-72), and explain that manifest.toml still declares 2.0
because the current Vega SDK does not accept 2.1 yet. Drop the hint
to lower min to 1.2 on this branch.
# Conflicts:
#	package-lock.json
This commit goes on both PR #20 (head vega-rn-83, base release-rn-83)
and PR #21 (head vega-os-2.0, base main) as a fast-forward of each
head. Once both merge, release-rn-83 has the same code as main: React
Native 0.83 and the Vega OS 2.0 manifest (min and target "2.0").
Update the Branches table row for release-rn-83 to say so: React
Native 0.83, runs on Vega OS 2.1 or later like main, same code as
main, prefer main.

The "Check the branch first" note said other branches target an older
OS, which is no longer true for release-rn-83; it now names
release-rn-72.

README only; no app file changes.

Co-Authored-By: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants