Skip to content

Commit 705505a

Browse files
authored
feat: Support Angular 9 and bump to version 6.0.0 (#2282)
BREAKING CHANGE: version 6 of AngularFire drops support for Angular version 8 and below, older versions of typescript, Firebase, drops `firebase-node`, `database-deprecated`, and more. See CHANGELOG for more details.
1 parent d454cf0 commit 705505a

File tree

313 files changed

+8641
-33059
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

313 files changed

+8641
-33059
lines changed

.firebaserc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"projects": {
3+
"default": "angularfire2-test"
4+
}
5+
}

.gitignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,8 @@ angularfire2-*.tgz
1414
yarn-error.log
1515
*.bak
1616
package-lock.json
17-
test/ng-build/**/yarn.lock
17+
test/ng-build/**/yarn.lock
18+
tools/build.js
19+
coverage
20+
*.log
21+
api-*.json

.npmignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
*.spec.*
2-
bundles/test.umd.js
32
test-config.*

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
lts/*

.travis.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,4 @@ install:
3838
fi
3939
fi
4040
41-
script:
42-
- yarn build
43-
- |
44-
./node_modules/.bin/karma start --single-run --browsers ChromeHeadlessTravis --reporters mocha &&
45-
yarn test:node &&
46-
node tools/run-typings-test.js &&
47-
bash ./test/ng-build/build.sh
41+
script: yarn build && yarn test:all

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@
55

66
[![Build Status](https://travis-ci.org/angular/angularfire.svg?branch=master)](https://travis-ci.org/angular/angularfire) [![Join the chat at https://gitter.im/angular/angularfire2](https://badges.gitter.im/angular/angularfire2.svg)](https://gitter.im/angular/angularfire2?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
77

8+
---
9+
10+
> **WARNING**: Master branch is the work in progress for version 6 of AngularFire. [You can find version 5 here](https://github.com/angular/angularfire/tree/v5), if you're looking for documentation or to contribute to stable. [Learn more about the road toward version 6 here](https://github.com/angular/angularfire/issues/2267).
11+
12+
---
13+
814
## What is AngularFire?
915

1016
- **Observable based** - Use the power of RxJS, Angular, and Firebase.

angular.json

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3+
"version": 1,
4+
"newProjectRoot": ".",
5+
"projects": {
6+
"angularfire": {
7+
"projectType": "library",
8+
"root": "src",
9+
"sourceRoot": "src",
10+
"prefix": "angularfire",
11+
"architect": {
12+
"build": {
13+
"builder": "@angular-devkit/build-ng-packagr:build",
14+
"options": {
15+
"tsConfig": "tsconfig.json",
16+
"project": "src/package.json"
17+
}
18+
},
19+
"test": {
20+
"builder": "@angular-devkit/build-angular:karma",
21+
"options": {
22+
"main": "src/test.ts",
23+
"tsConfig": "tsconfig.spec.json",
24+
"karmaConfig": "karma.conf.js"
25+
}
26+
},
27+
"lint": {
28+
"builder": "@angular-devkit/build-angular:tslint",
29+
"options": {
30+
"tsConfig": [
31+
"tsconfig.json",
32+
"tsconfig.spec.json"
33+
],
34+
"exclude": [
35+
"**/node_modules/**"
36+
]
37+
}
38+
}
39+
}
40+
}},
41+
"defaultProject": "angularfire"
42+
}

angularfire2.ts

Lines changed: 0 additions & 6 deletions
This file was deleted.

cloudbuild.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# See go/angularfire-releasing for details on the AngularFire release process.
22
# If you need to trigger a release manually, be sure to use substitutions like so:
33
# @canary `gcloud builds submit --substitutions=SHORT_SHA="9b0a0b0"`
4-
# @next `gcloud builds submit --substitutions=TAG_NAME="v1.2.3-rc.1"`
5-
# @latest `gcloud builds submit --substitutions=TAG_NAME="v1.2.3"`
4+
# @next `gcloud builds submit --substitutions=TAG_NAME="1.2.3-rc.1"`
5+
# @latest `gcloud builds submit --substitutions=TAG_NAME="1.2.3"`
66
steps:
77
- name: node:lts
88
entrypoint: bash

firebase.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"database": {
3+
"rules": "test/database.rules.json"
4+
},
5+
"firestore": {
6+
"rules": "test/firestore.rules",
7+
"indexes": "test/firestore.indexes.json"
8+
},
9+
"storage": {
10+
"rules": "test/storage.rules"
11+
}
12+
}

0 commit comments

Comments
 (0)