Skip to content

Commit 59d44e7

Browse files
docs: drop the --save-exact step for the release candidate (#3778)
The 25 canary releases that outranked 21.0.0-rc.1 are deprecated on npm, so `ng update` and `ng add` with `@angular/fire@next` now install the release candidate without it. Fixes #3777
1 parent f182972 commit 59d44e7

2 files changed

Lines changed: 0 additions & 12 deletions

File tree

‎docs/install-and-setup.md‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,6 @@ This installs AngularFire and configures your project. `ng add` will:
4848
1. Prompt you to select the features to enable and the Firebase project to use, signing you in to Firebase if needed.
4949
2. Add `provideFirebaseApp(...)`, along with a provider for each feature you select, to your app configuration (for example `app.config.ts`), with your Firebase configuration inlined. No environment files are created.
5050

51-
`ng add` writes the version it installed into your `package.json`, and today that is a canary release such as `21.0.0-rc.1-canary.95b3de1` rather than the release candidate. To replace it with the release candidate, `21.0.0-rc.1`, run:
52-
53-
```bash
54-
npm install --save-exact @angular/fire@next
55-
```
56-
5751
### 3. Inject `Firestore`
5852

5953
Open `/src/app/app.ts` and make the following changes:

‎docs/version-21-upgrade.md‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,6 @@ The release candidate is published under the `next` tag. From an app on Angular
1010
ng update @angular/core@21 @angular/cli@21 @angular/fire@next
1111
```
1212

13-
`ng update` writes the range `^21.0.0-rc.1` into your `package.json`. That range also matches canary releases, and npm currently installs one of them, such as `21.0.0-rc.1-canary.95b3de1`, instead of the release candidate. To install the release candidate itself, and stop npm from picking a canary release on a later install, change the entry to the exact version `21.0.0-rc.1` by running:
14-
15-
```bash
16-
npm install --save-exact @angular/fire@next
17-
```
18-
1913
The AngularFire update runs a migration that:
2014

2115
- **Aligns your `firebase` dependency to `^12.18.0`.** AngularFire 21 requires Firebase JS SDK 12, at 12.18 or later. If your app requested an older `firebase`, whether that is 11 or an earlier 12, npm would install both that copy and the one AngularFire needs side by side, and the two copies reject each other's objects at runtime. The migration updates the dependency and reinstalls so you end up with a single copy. Verify with `npm ls firebase`.

0 commit comments

Comments
 (0)