Skip to content

Commit

Permalink
chore(release): 9.1.0 (#3002)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesdaniels authored Oct 8, 2021
1 parent 3ae6ce5 commit 236b658
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 3 deletions.
29 changes: 29 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,32 @@
<a name="7.1.0"></a>
# [7.1.0](https://github.com/angular/angularfire/compare/7.0.4...7.1.0) (2021-10-08)

### Features

* **auth-guard:** modular auth guards now available ([#3001](https://github.com/angular/angularfire/issues/3001)) ([3ae6ce5](https://github.com/angular/angularfire/commit/3ae6ce5))
* **schematics:** setup wizard on `ng add`, allow deployment to Cloud Run, and add more configuration options to `ng deploy` ([#2836](https://github.com/angular/angularfire/issues/2836)) ([72d3c2e](https://github.com/angular/angularfire/commit/72d3c2e))
* **compat/storage**: Adding list function ([#2960](https://github.com/angular/angularfire/issues/2960)) ([ea544b](https://github.com/angular/angularfire/commit/8ea544b))
* **app-check**: Add AppCheck ([#2940](https://github.com/angular/angularfire/issues/2940)) ([337116f](https://github.com/angular/angularfire/commit/337116f))
* **compat/storage**: Transfer state support for the `getDownloadURL` pipe ([#2921](https://github.com/angular/angularfire/issues/2921)) ([d6cfe16](https://github.com/angular/angularfire/commit/d6cfe16))
* **analytics**: modular versions of `ScreenTrackingService` and `UserTrackingService` now available ([#2963](https://github.com/angular/angularfire/issues/2963)) ([d724d81](https://github.com/angular/angularfire/commit/d724d81))
* **core**: `provide*` methods can pass dependencies & the factory can use the injector for more advanced configuration ([#2963](https://github.com/angular/angularfire/issues/2963)) ([d724d81](https://github.com/angular/angularfire/commit/d724d81))

### Bug Fixes

* **compat/storage**: Type fixes for `.child` ([#2921](https://github.com/angular/angularfire/issues/2921)) ([d6cfe16](https://github.com/angular/angularfire/commit/d6cfe16))

### Misc.

* `Analytics`, `RemoteConfig`, and `Messaging` can be `null` if `isSupported()` returns false, this guards against runtime failures in unsupported environments at the cost of null checking
* Require Firebase 7.1 peer
* `ng add` installs firebase-tools globally, this also addressed the race condition
* Requires firebase-tools 9.9+ peer (optional)
* Moved peer dependencies for the schematics to proper dependencies
* Mark compatability with rxjs 7
* Increase the accuracy of performance marks
* `ng deploy` echos out the firebase-tools version and the user
* Error message improvements

<a name="7.0.4"></a>
# [7.0.4](https://github.com/angular/angularfire/compare/7.0.3...7.0.4) (2021-09-07)

Expand Down
2 changes: 1 addition & 1 deletion src/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"@angular-devkit/schematics": "^12.0.0",
"@angular-devkit/architect": "> 0.1200.0 < 0.1300.0",
"@schematics/angular": "^12.0.0",
"firebase": "^9.0.0",
"firebase": "^9.1.0",
"rxfire": "^6.0.0",
"rxjs": "~6.6.0 || ^7.0.0",
"firebase-tools": "^9.9.0"
Expand Down
2 changes: 2 additions & 0 deletions src/schematics/deploy/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,8 @@ export const deployToFunction = async (
// tslint:disable-next-line:no-non-null-assertion
const siteTarget = options.target ?? context.target!.project;

execSync(`npm --prefix ${functionsOut} i`);

if (options.preview) {

await firebaseTools.serve({
Expand Down
3 changes: 1 addition & 2 deletions src/schematics/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,7 @@ export function addToNgModule(host: Tree, options: { sourcePath: string, feature
changes.push(
insertImport(source, modulePath, ['provideAnalytics', 'getAnalytics', 'ScreenTrackingService', 'UserTrackingService'] as any, '@angular/fire/analytics'),
...addImportToModule(source, modulePath, `provideAnalytics(() => getAnalytics())`, null as any),
...addProviderToModule(source, modulePath, `ScreenTrackingService`, null as any),
...addProviderToModule(source, modulePath, `UserTrackingService`, null as any),
...addProviderToModule(source, modulePath, ['ScreenTrackingService', 'UserTrackingService'] as any, null as any),
);
}

Expand Down

0 comments on commit 236b658

Please sign in to comment.