Skip to content

Deprecate package in favor of Codemagic Patch - #60

Merged
zgoldie merged 2 commits into
masterfrom
flags-and-warnings
Nov 12, 2026
Merged

zgoldie merged 2 commits into
masterfrom
flags-and-warnings

Conversation

@zgoldie

@zgoldie zgoldie commented Nov 12, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Mark the package as deprecated and frozen (no new features, no new React Native version support), pointing people at Codemagic Patch.
  • Surface the same guidance in the README banner, npm description, a postinstall notice, and a __DEV__-only runtime warning.
  • Call out Patch upsides (web dashboard, native fingerprinting and support for new React Native versions).
  • All copy links to https://patch.codemagic.io/docs/migration/migrating-from-codepush

Post-merge to-do

Do these in order after this PR is merged to master.

1. Version bump

  • Bump package.json / lockfile (e.g. 10.4.3 → 10.4.4)
  • Commit as v10.4.4 (match prior version-bump style)

2. Publish to npm

3. GitHub Release

  • Tag v10.4.4 and create a GitHub Release
  • Lead the notes with the deprecation blurb, then the usual "What's Changed" list

Suggested release intro:

## Deprecated

This package is deprecated in favor of [Codemagic Patch](https://patch.codemagic.io/docs/migration/migrating-from-codepush) (`@codemagic/react-native-patch`), which includes a web dashboard, native fingerprinting and support for new React Native versions.

It is frozen: no new features, no new React Native version support. Last targeted support is in the React Native 0.82 era (`v10.4+`).

Migrate: https://patch.codemagic.io/docs/migration/migrating-from-codepush

## What's Changed
- Deprecation warnings (README, npm description, postinstall, `__DEV__` runtime warn) in #60

4. Registry deprecation

  • Run (warning only; does not block installs):
npm deprecate @code-push-next/react-native-code-push "Deprecated in favor of Codemagic Patch (@codemagic/react-native-patch), which includes a web dashboard, native fingerprinting and support for new React Native versions. https://patch.codemagic.io/docs/migration/migrating-from-codepush"
  • Confirm a fresh npm install @code-push-next/react-native-code-push shows the yellow deprecate warning and the postinstall notice

Test plan

  • Confirm README banner reads clearly on GitHub (migrate URL resolves)
  • Run node scripts/postinstall.js and confirm the install notice
  • Confirm package.json description looks right on the npm package page after publish
  • __DEV__ gate + warn message verified in Node (true warns once; false/unset silent). Full LogBox check still needs a RN debug app after publish.
  • Confirm release/production builds do not show the runtime warning (gate inspection + __DEV__=false test)
  • After publish, run npm deprecate and confirm a yellow deprecation warning on install

Add README and npm description freeze copy, a postinstall notice, and a
dev-only runtime warning so installs and local development point at the
migration guide.

Co-authored-by: Cursor <cursoragent@cursor.com>
@zgoldie
zgoldie requested a review from CHOIMINSEOK November 12, 2026 12:39
… copy.

Give people a concrete reason to migrate, not only that this package is frozen.

Co-authored-by: Cursor <cursoragent@cursor.com>
@zgoldie
zgoldie merged commit af54431 into master Nov 12, 2026
0 of 8 checks passed
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