Skip to content

Commit

Permalink
chore: Release v6 rc.0 (#2302)
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
jamesdaniels committed Jan 30, 2020
1 parent 705505a commit 014911b
Show file tree
Hide file tree
Showing 6 changed files with 393 additions and 334 deletions.
29 changes: 3 additions & 26 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,41 +1,18 @@
language: node_js
sudo: false
node_js:
- "10"
node_js: 10

addons:
chrome: stable

cache:
yarn: true
directories:
- node_modules
- "$HOME/.npm"
- "$HOME/.cache"

env:
- CANARY=false
- CANARY=true

matrix:
fast_finish: true
allow_failures:
- env: CANARY=true

branches:
only:
- master # otherwise pull requests get built twice
only: master # otherwise pull requests get built twice

install:
- |
if $CANARY; then
yarn upgrade && yarn add firebase@canary
else
if [ "$TRAVIS_BRANCH" = "master" -a "$TRAVIS_PULL_REQUEST" = "false" ]; then
yarn upgrade
else
yarn install --frozen-lockfile
fi
fi
install: yarn

script: yarn build && yarn test:all
71 changes: 71 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,74 @@
<a name="6.0.0-rc.0"></a>
# [6.0.0-rc.0](https://github.com/angular/angularfire2/compare/5.3.0...6.0.0-rc.0) (2020-01-30)

Version 6 of AngularFire drops support for Angular version 8 and below, older versions of typescript, Firebase, drops `firebase-node`, `database-deprecated`, and more.

* Support for Angular versions less than 9 has been dropped
* Support for Firebase versions less than 7.8 has been dropped
* Support for `firebase-tools` less than 7.12 has been dropped
* `angularfire2` NPM shim will no longer be updated
* Dropped `@angular/fire/firebase-node` and `@angular/fire/database-depreciated`
* Using `ng-packagr` to build the library, bringing us back up to speed on APF
* All of our `@NgModules` are now `providedIn: 'any'` rather than singletons
* We make use of Proxy in more modules, you'll need to polyfill if you want to support IE 11
* Fixed the `ng add` and `ng deploy` commands
* `ng deploy` now supports a `buildTarget` option
* We've addressed a number of memory leaks and Zone.js issues in SSR applications

#### `@angular/fire`

* Dropped the `RealtimeDatabaseURL` and `DATABASE_URL` DI tokens, use `import { URL } from '@angular/fire/database'` instead
* Dropped `runOutsideAngular`, `runInZone`, `FirebaseZoneScheduler`, and the `Firebase*` type aliases

#### `@angular/fire/analytics`

* `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'`.

#### `@angular/fire/auth`

* `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

#### `@angular/fire/auth-guard`

* `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

#### `@angular/fire/database`

* `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
* Dropped the `RealtimeDatabaseURL` and `DATABASE_URL` DI tokens in favor of `URL`

#### `@angular/fire/firestore`

* `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
* Dropped the `EnablePersistenceToken` DI token in favor of `ENABLE_PERSISTENCE`
* Dropped the `PersistenceSettingsToken` DI token in favor of `PERSISTENCE_SETTINGS`
* Dropped the `FirestoreSettingsToken` DI token in favor of `SETTINGS`

#### `@angular/fire/functions`

* Dropped the `FunctionsRegionToken` and `FUNCTIONS_REGION` DI tokens in favor of `REGION`
* Dropped the `FUNCTIONS_ORIGIN` DI token in favor of `ORIGIN`
* `AngularFireFunctions` is now side-effect free and now lazy loads `firebase/functions` when a request is made
* `AngularFireFunctions` has dropped the `functions` property and instead Proxies the underlying Firebase `functions.Functions` instance

#### `@angular/fire/messaging`

* `AngularFireMessaging`'s dynamic import of `firebase/messaging` is now lazy, if you don't call any methods the SDK will not be loaded
* `AngularFireMessaging` has dropped the `messaging` property and instead Proxies the underlying Firebase `messaging.Messaging` instance

#### `@angular/fire/performance`

* `AngularFirePerformance` now Proxies the underlying Firebase `messaging.Messaging` instance

#### `@angular/fire/remote-config`

* `AngularFireRemoteConfig` now uses `ensureInitialized()` in it's observables, protecting their value emissions better against race conditions

#### `@angular/fire/storage`

* `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
* Dropped `StorageBucket` DI token in favor of `BUCKET`

<a name="5.3.0"></a>
# [5.3.0](https://github.com/angular/angularfire2/compare/5.2.3...5.3.0) (2020-01-07)

Expand Down
6 changes: 3 additions & 3 deletions cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ steps:
- 'TAG_NAME=$TAG_NAME'
- 'SHORT_SHA=$SHORT_SHA'

- name: node:lts
entrypoint: bash
args: ["./tools/test.sh"]
#- name: node:lts
# entrypoint: bash
# args: ["./tools/test.sh"]

- name: node:lts
entrypoint: bash
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@
"@angular/platform-browser": "^9.0.0-0 || ^9.0.0 || ^10.0.0-0",
"@angular/platform-browser-dynamic": "^9.0.0-0 || ^9.0.0 || ^10.0.0-0",
"@angular/router": "^9.0.0-0 || ^9.0.0 || ^10.0.0-0",
"firebase": "^7.6.2",
"firebase-tools": "^7.11.0",
"firebase": "^7.8.0",
"firebase-tools": "^7.12.1",
"fuzzy": "^0.1.3",
"inquirer": "^6.2.2",
"inquirer-autocomplete-prompt": "^1.0.1",
Expand Down
26 changes: 13 additions & 13 deletions test/ng-build/ng9/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,25 +13,25 @@
},
"private": true,
"dependencies": {
"@angular/animations": "~9.0.0-rc.9",
"@angular/common": "~9.0.0-rc.9",
"@angular/compiler": "~9.0.0-rc.9",
"@angular/core": "~9.0.0-rc.9",
"@angular/animations": "~9.0.0-rc.12",
"@angular/common": "~9.0.0-rc.12",
"@angular/compiler": "~9.0.0-rc.12",
"@angular/core": "~9.0.0-rc.12",
"@angular/fire": "../../../dist/packages-dist",
"@angular/forms": "~9.0.0-rc.9",
"@angular/platform-browser": "~9.0.0-rc.9",
"@angular/platform-browser-dynamic": "~9.0.0-rc.9",
"@angular/router": "~9.0.0-rc.9",
"firebase": "^7.6.2",
"@angular/forms": "~9.0.0-rc.12",
"@angular/platform-browser": "~9.0.0-rc.12",
"@angular/platform-browser-dynamic": "~9.0.0-rc.12",
"@angular/router": "~9.0.0-rc.12",
"firebase": "^7.8.0",
"rxjs": "~6.5.3",
"tslib": "^1.10.0",
"zone.js": "~0.10.2"
},
"devDependencies": {
"@angular-devkit/build-angular": "~0.900.0-rc.9",
"@angular/cli": "~9.0.0-rc.9",
"@angular/compiler-cli": "~9.0.0-rc.9",
"@angular/language-service": "~9.0.0-rc.9",
"@angular-devkit/build-angular": "~0.900.0-rc.11",
"@angular/cli": "~9.0.0-rc.11",
"@angular/compiler-cli": "~9.0.0-rc.12",
"@angular/language-service": "~9.0.0-rc.12",
"@types/jasmine": "~3.3.8",
"@types/jasminewd2": "~2.0.3",
"@types/node": "^12.11.1",
Expand Down
Loading

0 comments on commit 014911b

Please sign in to comment.