Skip to content

feat: update packages to latest Nitro version #64

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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

grabbou
Copy link
Collaborator

@grabbou grabbou commented Jul 5, 2025

Updates to latest Nitro Modules before continuing further work.

cursoragent and others added 2 commits July 5, 2025 21:51
- Updated React Native from 0.76.0 to 0.80.1
- Updated React from 18.3.1 to 19.1.0 (required by RN 0.80)
- Updated React Native Nitro Modules from 0.20.0 to 0.26.3
- Updated Nitro Codegen from 0.20.0 to 0.26.3
- Updated TypeScript from 5.1.3 to 5.8.3
- Updated ESLint and related packages to latest in major version
- Updated @types/jest from 29.x to 30.x
- Updated prettier, vitest, and other dev dependencies

Breaking changes addressed:
- Fixed TypeScript compilation errors for React 19 compatibility
- Added type annotations and @ts-ignore for stream/event compatibility
- Updated W3C API implementations for new React types

Generated code updated with latest Nitro 0.26.3:
- Regenerated all hybrid object specifications
- Updated autolinking configurations
- Updated Swift, Kotlin, and C++ bindings
Co-authored-by: grabbou <grabbou@gmail.com>
Copy link

changeset-bot bot commented Jul 5, 2025

⚠️ No Changeset found

Latest commit: f95a1ac

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

cursoragent and others added 2 commits July 5, 2025 22:01
…s implementations

- Removed all @ts-ignore statements from WebSocket dispatchEvent calls
- Restored EventTarget interface implementation with proper generics in WebSocket
- Restored globalThis.File interface implementation in File class
- Restored globalThis.CompressionStream interface in CompressionStream class
- Added type assertions instead of 'any' types for polyfill/native type bridging

Note: TypeScript 5.8.3 reveals fundamental type incompatibilities between
web-streams-polyfill and native DOM types that were not caught by TS 5.1.3.
These need to be resolved either by:
1. Updating to compatible stream polyfill versions
2. Creating proper type declaration merging
3. Using conditional types for polyfill/native environments

The code maintains strict typing contracts while using type assertions
where polyfill and native types are functionally equivalent but
structurally incompatible at the type level.
… audit

Co-authored-by: grabbou <grabbou@gmail.com>
@grabbou grabbou changed the title Update packages and run codegen Update packages to latest Nitro 0.26 Jul 5, 2025
@grabbou grabbou changed the title Update packages to latest Nitro 0.26 feat: update packages to latest Nitro version Jul 5, 2025
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