Skip to content

Commit 014911b

Browse files
authored
chore: Release v6 rc.0 (#2302)
* Simplify travis, cache seems to be taking far too long * Bump versions * Changelog entry * Dropping the tests from the Cloud Build run Cloud Build is responsible for generating our NPM artifacts, however I am planning on moving to Github Actions for this so the community has more visibility. Our Cloud Build image doesn't current have java, so the new emulator powered tests are failing. Rather than invest more in the Cloud Build scripts I'm just commenting out the test runner for now.
1 parent 705505a commit 014911b

File tree

6 files changed

+393
-334
lines changed

6 files changed

+393
-334
lines changed

.travis.yml

+3-26
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,18 @@
11
language: node_js
22
sudo: false
3-
node_js:
4-
- "10"
3+
node_js: 10
54

65
addons:
76
chrome: stable
87

9-
cache:
10-
yarn: true
11-
directories:
12-
- node_modules
13-
- "$HOME/.npm"
14-
- "$HOME/.cache"
15-
16-
env:
17-
- CANARY=false
18-
- CANARY=true
19-
208
matrix:
219
fast_finish: true
2210
allow_failures:
2311
- env: CANARY=true
2412

2513
branches:
26-
only:
27-
- master # otherwise pull requests get built twice
14+
only: master # otherwise pull requests get built twice
2815

29-
install:
30-
- |
31-
if $CANARY; then
32-
yarn upgrade && yarn add firebase@canary
33-
else
34-
if [ "$TRAVIS_BRANCH" = "master" -a "$TRAVIS_PULL_REQUEST" = "false" ]; then
35-
yarn upgrade
36-
else
37-
yarn install --frozen-lockfile
38-
fi
39-
fi
16+
install: yarn
4017

4118
script: yarn build && yarn test:all

CHANGELOG.md

+71
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,74 @@
1+
<a name="6.0.0-rc.0"></a>
2+
# [6.0.0-rc.0](https://github.com/angular/angularfire2/compare/5.3.0...6.0.0-rc.0) (2020-01-30)
3+
4+
Version 6 of AngularFire drops support for Angular version 8 and below, older versions of typescript, Firebase, drops `firebase-node`, `database-deprecated`, and more.
5+
6+
* Support for Angular versions less than 9 has been dropped
7+
* Support for Firebase versions less than 7.8 has been dropped
8+
* Support for `firebase-tools` less than 7.12 has been dropped
9+
* `angularfire2` NPM shim will no longer be updated
10+
* Dropped `@angular/fire/firebase-node` and `@angular/fire/database-depreciated`
11+
* Using `ng-packagr` to build the library, bringing us back up to speed on APF
12+
* All of our `@NgModules` are now `providedIn: 'any'` rather than singletons
13+
* We make use of Proxy in more modules, you'll need to polyfill if you want to support IE 11
14+
* Fixed the `ng add` and `ng deploy` commands
15+
* `ng deploy` now supports a `buildTarget` option
16+
* We've addressed a number of memory leaks and Zone.js issues in SSR applications
17+
18+
#### `@angular/fire`
19+
20+
* Dropped the `RealtimeDatabaseURL` and `DATABASE_URL` DI tokens, use `import { URL } from '@angular/fire/database'` instead
21+
* Dropped `runOutsideAngular`, `runInZone`, `FirebaseZoneScheduler`, and the `Firebase*` type aliases
22+
23+
#### `@angular/fire/analytics`
24+
25+
* `AngularFireAnalytics` now memozies `analytics.Analtyics` instances keyed to the `measurementId`, this prevents exceptions if you're using more than one `FirebaseApp` with the same `measurementId`. This is also needed as we are `providedIn: 'any'`.
26+
27+
#### `@angular/fire/auth`
28+
29+
* `AngularFireAuthModule` no longer imports `firebase/auth` on it's own to remain side-effect free, you'll need to `import 'firebase/auth'` on your own
30+
31+
#### `@angular/fire/auth-guard`
32+
33+
* `AngularFireAuthGuard` and `canActivate` have dropped (attempted) support for raw `AuthPipe`s, as they were not functioning in AOT builds; you'll want to move to `AuthPipeGenerator`s
34+
35+
#### `@angular/fire/database`
36+
37+
* `AngularFireDatabaseModule` no longer imports `firebase/database` on it's own to remain side-effect free, you'll need to `import 'firebase/database'` on your own
38+
* Dropped the `RealtimeDatabaseURL` and `DATABASE_URL` DI tokens in favor of `URL`
39+
40+
#### `@angular/fire/firestore`
41+
42+
* `AngularFirestoreModule` no longer imports `firebase/firestore` on it's own to remain side-effect free, you'll need to `import 'firebase/firestore'` on your own
43+
* Dropped the `EnablePersistenceToken` DI token in favor of `ENABLE_PERSISTENCE`
44+
* Dropped the `PersistenceSettingsToken` DI token in favor of `PERSISTENCE_SETTINGS`
45+
* Dropped the `FirestoreSettingsToken` DI token in favor of `SETTINGS`
46+
47+
#### `@angular/fire/functions`
48+
49+
* Dropped the `FunctionsRegionToken` and `FUNCTIONS_REGION` DI tokens in favor of `REGION`
50+
* Dropped the `FUNCTIONS_ORIGIN` DI token in favor of `ORIGIN`
51+
* `AngularFireFunctions` is now side-effect free and now lazy loads `firebase/functions` when a request is made
52+
* `AngularFireFunctions` has dropped the `functions` property and instead Proxies the underlying Firebase `functions.Functions` instance
53+
54+
#### `@angular/fire/messaging`
55+
56+
* `AngularFireMessaging`'s dynamic import of `firebase/messaging` is now lazy, if you don't call any methods the SDK will not be loaded
57+
* `AngularFireMessaging` has dropped the `messaging` property and instead Proxies the underlying Firebase `messaging.Messaging` instance
58+
59+
#### `@angular/fire/performance`
60+
61+
* `AngularFirePerformance` now Proxies the underlying Firebase `messaging.Messaging` instance
62+
63+
#### `@angular/fire/remote-config`
64+
65+
* `AngularFireRemoteConfig` now uses `ensureInitialized()` in it's observables, protecting their value emissions better against race conditions
66+
67+
#### `@angular/fire/storage`
68+
69+
* `AngularFireStorageModule` no longer imports `firebase/storage` on it's own to remain side-effect free, you'll need to `import 'firebase/storage'` on your own
70+
* Dropped `StorageBucket` DI token in favor of `BUCKET`
71+
172
<a name="5.3.0"></a>
273
# [5.3.0](https://github.com/angular/angularfire2/compare/5.2.3...5.3.0) (2020-01-07)
374

cloudbuild.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ steps:
1111
- 'TAG_NAME=$TAG_NAME'
1212
- 'SHORT_SHA=$SHORT_SHA'
1313

14-
- name: node:lts
15-
entrypoint: bash
16-
args: ["./tools/test.sh"]
14+
#- name: node:lts
15+
# entrypoint: bash
16+
# args: ["./tools/test.sh"]
1717

1818
- name: node:lts
1919
entrypoint: bash

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@
4343
"@angular/platform-browser": "^9.0.0-0 || ^9.0.0 || ^10.0.0-0",
4444
"@angular/platform-browser-dynamic": "^9.0.0-0 || ^9.0.0 || ^10.0.0-0",
4545
"@angular/router": "^9.0.0-0 || ^9.0.0 || ^10.0.0-0",
46-
"firebase": "^7.6.2",
47-
"firebase-tools": "^7.11.0",
46+
"firebase": "^7.8.0",
47+
"firebase-tools": "^7.12.1",
4848
"fuzzy": "^0.1.3",
4949
"inquirer": "^6.2.2",
5050
"inquirer-autocomplete-prompt": "^1.0.1",

test/ng-build/ng9/package.json

+13-13
Original file line numberDiff line numberDiff line change
@@ -13,25 +13,25 @@
1313
},
1414
"private": true,
1515
"dependencies": {
16-
"@angular/animations": "~9.0.0-rc.9",
17-
"@angular/common": "~9.0.0-rc.9",
18-
"@angular/compiler": "~9.0.0-rc.9",
19-
"@angular/core": "~9.0.0-rc.9",
16+
"@angular/animations": "~9.0.0-rc.12",
17+
"@angular/common": "~9.0.0-rc.12",
18+
"@angular/compiler": "~9.0.0-rc.12",
19+
"@angular/core": "~9.0.0-rc.12",
2020
"@angular/fire": "../../../dist/packages-dist",
21-
"@angular/forms": "~9.0.0-rc.9",
22-
"@angular/platform-browser": "~9.0.0-rc.9",
23-
"@angular/platform-browser-dynamic": "~9.0.0-rc.9",
24-
"@angular/router": "~9.0.0-rc.9",
25-
"firebase": "^7.6.2",
21+
"@angular/forms": "~9.0.0-rc.12",
22+
"@angular/platform-browser": "~9.0.0-rc.12",
23+
"@angular/platform-browser-dynamic": "~9.0.0-rc.12",
24+
"@angular/router": "~9.0.0-rc.12",
25+
"firebase": "^7.8.0",
2626
"rxjs": "~6.5.3",
2727
"tslib": "^1.10.0",
2828
"zone.js": "~0.10.2"
2929
},
3030
"devDependencies": {
31-
"@angular-devkit/build-angular": "~0.900.0-rc.9",
32-
"@angular/cli": "~9.0.0-rc.9",
33-
"@angular/compiler-cli": "~9.0.0-rc.9",
34-
"@angular/language-service": "~9.0.0-rc.9",
31+
"@angular-devkit/build-angular": "~0.900.0-rc.11",
32+
"@angular/cli": "~9.0.0-rc.11",
33+
"@angular/compiler-cli": "~9.0.0-rc.12",
34+
"@angular/language-service": "~9.0.0-rc.12",
3535
"@types/jasmine": "~3.3.8",
3636
"@types/jasminewd2": "~2.0.3",
3737
"@types/node": "^12.11.1",

0 commit comments

Comments
 (0)