Skip to content

Commit

Permalink
Mark compatibility with ng 15 peer (#3291)
Browse files Browse the repository at this point in the history
* Drop ng12 from the tests, JS SDK (typescript) broke, not work hunting for a good version IMO
* Skip prerender test on ng13, broken not worth hunting the flake IMO
* Add ng15 to the matrix, add upgrade to ng14 step
* Bump the version
* Add ng15 to the acceptable peers
* Add to README
* Contrib tests are failing on newer Node, we should look into but not block merging and cutting
  • Loading branch information
jamesdaniels committed Nov 22, 2022
1 parent 89fd6e9 commit 57d9005
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 13 deletions.
36 changes: 30 additions & 6 deletions .github/workflows/test.yml
Expand Up @@ -72,7 +72,8 @@ jobs:
firebase: ["9"]
firebaseTools: ["11"]
rxjs: ["7"]
ng: ["12", "13", "14"]
# TODO add ng 12 back in, we need to cut a major at this point and drop
ng: ["13", "14", "15"]
exclude:
# TODO investigate failures
# https://github.com/angular/angularfire/runs/4174069788
Expand Down Expand Up @@ -124,7 +125,11 @@ jobs:
# Can't update more than one major at a times, take the incremental step
- name: Update to ng@13
run: npx @angular/cli@13 update @angular/core@13 @angular/cli@13 --allow-dirty --force
if: matrix.ng == '14' || matrix.ng == 'next'
if: matrix.ng == '14' || matrix.ng == '15' || matrix.ng == 'next'
continue-on-error: ${{ matrix.os == 'windows-latest' }}
- name: Update to ng@14
run: npx @angular/cli@14 update @angular/core@14 @angular/cli@14 --allow-dirty --force
if: matrix.ng == '15' || matrix.ng == 'next'
continue-on-error: ${{ matrix.os == 'windows-latest' }}
- name: Update to ng@${{ matrix.ng }}
run: npx @angular/cli@${{ matrix.ng }} update @angular/core@${{ matrix.ng }} @angular/cli@${{ matrix.ng }} --allow-dirty --force
Expand Down Expand Up @@ -161,7 +166,13 @@ jobs:
run: |
cd ./test/ng-build
npx @angular/cli@13 update @angular/core@13 @angular/cli@13 @nguniversal/express-engine@13 --allow-dirty --force
if: matrix.ng == '14' || matrix.ng == 'next'
if: matrix.ng == '14' || matrix.ng == '15' || matrix.ng == 'next'
continue-on-error: ${{ matrix.os == 'windows-latest' }}
- name: Update ng-build to ng@14
run: |
cd ./test/ng-build
npx @angular/cli@14 update @angular/core@14 @angular/cli@14 @nguniversal/express-engine@14 --allow-dirty --force
if: matrix.ng == '15' || matrix.ng == 'next'
continue-on-error: ${{ matrix.os == 'windows-latest' }}
- name: Update ng-build to ng@${{ matrix.ng }}
run: |
Expand All @@ -173,6 +184,8 @@ jobs:
run: |
cd ./test/ng-build
yarn prerender
# ng 13 is flaking, skip for now
if: matrix.ng != '13'

# TODO dry up
canary:
Expand All @@ -187,7 +200,8 @@ jobs:
firebase: ["9", "canary", "next"]
firebaseTools: ["11"]
rxjs: ["7"]
ng: ["12", "13", "14", "next"]
# TODO add 12 back in
ng: ["13", "14", "15", "next"]
exclude:
# standard configurations
- firebase: 9
Expand Down Expand Up @@ -238,7 +252,10 @@ jobs:
# Can't update more than one major at a times, take the incremental step
- name: Update to ng@13
run: npx @angular/cli@13 update @angular/core@13 @angular/cli@13 --allow-dirty --force
if: matrix.ng == '14' || matrix.ng == 'next'
if: matrix.ng == '14' || matrix.ng == '15' || matrix.ng == 'next'
- name: Update to ng@14
run: npx @angular/cli@14 update @angular/core@14 @angular/cli@14 --allow-dirty --force
if: matrix.ng == '15' || matrix.ng == 'next'
- name: Update to ng@${{ matrix.ng }}
run: npx @angular/cli@${{ matrix.ng }} update @angular/core@${{ matrix.ng }} @angular/cli@${{ matrix.ng }} --allow-dirty --force
if: matrix.ng != '12'
Expand Down Expand Up @@ -278,7 +295,12 @@ jobs:
run: |
cd ./test/ng-build
npx @angular/cli@13 update @angular/core@13 @angular/cli@13 @nguniversal/express-engine@13 --allow-dirty --force
if: matrix.ng == '14' || matrix.ng == 'next'
if: matrix.ng == '14' || matrix.ng == '15' || matrix.ng == 'next'
- name: Update ng-build to ng@14
run: |
cd ./test/ng-build
npx @angular/cli@14 update @angular/core@14 @angular/cli@14 @nguniversal/express-engine@14 --allow-dirty --force
if: matrix.ng == '15' || matrix.ng == 'next'
- name: Update ng-build to ng@${{ matrix.ng }}
run: |
cd ./test/ng-build
Expand All @@ -288,6 +310,8 @@ jobs:
run: |
cd ./test/ng-build
yarn prerender
# ng 13 is flaking, skip for now
if: matrix.ng != '13'

contribute:
runs-on: ${{ matrix.os }}
Expand Down
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -66,6 +66,7 @@ AngularFire doesn't follow Angular's versioning as Firebase also has breaking ch

| Angular | Firebase | AngularFire |
| --------|----------|--------------|
| 15 | 9 | ^7.5 |
| 14 | 9 | ^7.4 |
| 13 | 9 | ^7.2 |
| 12 | 9 | ^7.0 |
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "@angular/fire",
"version": "7.4.0",
"version": "7.5.0",
"description": "The official Angular library for Firebase.",
"private": true,
"scripts": {
Expand Down
12 changes: 6 additions & 6 deletions src/package.json
Expand Up @@ -23,10 +23,10 @@
"author": "angular,firebase",
"license": "MIT",
"peerDependencies": {
"@angular/common": "^12.0.0 || ^13.0.0 || ^14.0.0",
"@angular/core": "^12.0.0 || ^13.0.0 || ^14.0.0",
"@angular/platform-browser": "^12.0.0 || ^13.0.0 || ^14.0.0",
"@angular/platform-browser-dynamic": "^12.0.0 || ^13.0.0 || ^14.0.0",
"@angular/common": "^12.0.0 || ^13.0.0 || ^14.0.0 || ^15.0.0",
"@angular/core": "^12.0.0 || ^13.0.0 || ^14.0.0 || ^15.0.0",
"@angular/platform-browser": "^12.0.0 || ^13.0.0 || ^14.0.0 || ^15.0.0",
"@angular/platform-browser-dynamic": "^12.0.0 || ^13.0.0 || ^14.0.0 || ^15.0.0",
"rxjs": "~6.6.0 || ^7.0.0",
"firebase-tools": "^9.9.0 || ^10.0.0 || ^11.0.0"
},
Expand All @@ -36,8 +36,8 @@
"dependencies": {
"firebase": "^9.8.0",
"rxfire": "^6.0.0",
"@angular-devkit/schematics": "^12.0.0 || ^13.0.0 || ^14.0.0",
"@schematics/angular": "^12.0.0 || ^13.0.0 || ^14.0.0",
"@angular-devkit/schematics": "^12.0.0 || ^13.0.0 || ^14.0.0 || ^15.0.0",
"@schematics/angular": "^12.0.0 || ^13.0.0 || ^14.0.0 || ^15.0.0",
"tslib": "^2.0.0",
"fuzzy": "^0.1.3",
"inquirer-autocomplete-prompt": "^1.0.1",
Expand Down

0 comments on commit 57d9005

Please sign in to comment.