Skip to content

Commit

Permalink
Move init deprecation notice 30 Sept → 31 Dec (#45590)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #45590

This gives us more wiggle room with the release of 0.76.

Changelog: [General][Changed] Move init deprecation notice 30 Sept → 31 Dec

Reviewed By: cortinico

Differential Revision: D60105868

fbshipit-source-id: d03fcf5d4a97db9b21792eff6f993e2671b276ef
  • Loading branch information
blakef authored and cipolleschi committed Aug 14, 2024
1 parent 34c9103 commit 9120cd3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/react-native/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ const DEFAULT_REGISTRY_HOST =
const HEAD = '1000.0.0';

// We're going to deprecate the `init` command proxying requests to @react-native-community/cli transparently
// on September 30th, 2024 or 0.76 (whichever arrives first). This is part of work to decouple of community CLI from React Native core.
// on December 31th, 2024 or 0.76 (whichever arrives first). This is part of work to decouple of community CLI from React Native core.
//
// See https://github.com/react-native-community/discussions-and-proposals/blob/main/proposals/0759-react-native-frameworks.md
const CLI_DEPRECATION_DATE = new Date('2024-09-30');
const CLI_DEPRECATION_DATE = new Date('2024-12-31');

async function getLatestVersion(registryHost = DEFAULT_REGISTRY_HOST) {
return new Promise((res, rej) => {
Expand Down Expand Up @@ -119,7 +119,7 @@ function warnWithDeprecated() {
}

console.warn(`
${chalk.yellow('🚨')}️ The \`init\` command is deprecated.
🚨️ The \`init\` command is deprecated.
- Switch to ${chalk.dim('npx @react-native-community/cli init')} for the identical behavior.
- Refer to the documentation for information about alternative tools: ${chalk.dim('https://reactnative.dev/docs/getting-started')}`);
Expand Down

0 comments on commit 9120cd3

Please sign in to comment.