Skip to content

Commit

Permalink
feat(core): mark ng 14 as allowed peer (#3230)
Browse files Browse the repository at this point in the history
* Mark ng 14 as peer
* Bump firebase
* Bump version
* Lint
* Cleanup actions
  • Loading branch information
jamesdaniels authored Jun 4, 2022
1 parent 8d5bc12 commit 3c3a343
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 16 deletions.
20 changes: 13 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ jobs:
os: [ ubuntu-latest, macos-latest, windows-latest ]
node: [ "14", "16"]
firebase: ["9"]
firebaseTools: ["10"]
rxjs: ["6", "7"]
ng: ["12", "13"]
firebaseTools: ["11"]
rxjs: ["7"]
ng: ["12", "13", "14"]
exclude:
# TODO investigate failures
# https://github.com/angular/angularfire/runs/4174069788
Expand Down Expand Up @@ -150,7 +150,7 @@ jobs:
yarn test:node-esm
if: matrix.ng != '12' && matrix.rxjs == '7'
- name: Test browser
if: matrix.os == 'ubuntu-latest' && matrix.node == '14' && matrix.firebaseTools == '10'
if: matrix.os == 'ubuntu-latest' && matrix.node == '14' && matrix.firebaseTools == '11'
run: yarn test:chrome-headless
- name: ng-build yarn install
run: |
Expand Down Expand Up @@ -185,9 +185,9 @@ jobs:
os: [ ubuntu-latest ]
node: ["14"]
firebase: ["9", "canary", "next"]
firebaseTools: ["10"]
firebaseTools: ["11"]
rxjs: ["7"]
ng: ["12", "13", "next"]
ng: ["12", "13", "14", "next"]
exclude:
# standard configurations
- firebase: 9
Expand Down Expand Up @@ -278,7 +278,7 @@ 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 == 'next'
if: matrix.ng == '14' || matrix.ng == 'next'
- name: Update ng-build to ng@${{ matrix.ng }}
run: |
cd ./test/ng-build
Expand Down Expand Up @@ -309,6 +309,12 @@ jobs:
with:
node-version: ${{ matrix.node }}
check-latest: true
- name: Setup java
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '11'
if: matrix.os == 'macos-latest' && matrix.node == '14'
- name: node_modules cache
uses: actions/cache@v2
id: node_modules_cache
Expand Down
12 changes: 6 additions & 6 deletions src/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@
"author": "angular,firebase",
"license": "MIT",
"peerDependencies": {
"@angular/common": "^12.0.0 || ^13.0.0",
"@angular/core": "^12.0.0 || ^13.0.0",
"@angular/platform-browser": "^12.0.0 || ^13.0.0",
"@angular/platform-browser-dynamic": "^12.0.0 || ^13.0.0",
"@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",
"rxjs": "~6.6.0 || ^7.0.0",
"firebase-tools": "^9.9.0 || ^10.0.0"
},
Expand All @@ -36,8 +36,8 @@
"dependencies": {
"firebase": "^9.5.0",
"rxfire": "^6.0.0",
"@angular-devkit/schematics": "^12.0.0 || ^13.0.0",
"@schematics/angular": "^12.0.0 || ^13.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",
"tslib": "^2.0.0",
"fuzzy": "^0.1.3",
"inquirer-autocomplete-prompt": "^1.0.1",
Expand Down
4 changes: 3 additions & 1 deletion src/performance/performance.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ export class PerformanceModule {
}
}

export function providePerformance(fn: (injector: Injector) => FirebasePerformance, ...deps: any[]): ModuleWithProviders<PerformanceModule> {
export function providePerformance(
fn: (injector: Injector) => FirebasePerformance, ...deps: any[]
): ModuleWithProviders<PerformanceModule> {
return {
ngModule: PerformanceModule,
providers: [{
Expand Down
4 changes: 3 additions & 1 deletion src/remote-config/remote-config.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ export class RemoteConfigModule {
}
}

export function provideRemoteConfig(fn: (injector: Injector) => FirebaseRemoteConfig, ...deps: any[]): ModuleWithProviders<RemoteConfigModule> {
export function provideRemoteConfig(
fn: (injector: Injector) => FirebaseRemoteConfig, ...deps: any[]
): ModuleWithProviders<RemoteConfigModule> {
return {
ngModule: RemoteConfigModule,
providers: [{
Expand Down
2 changes: 1 addition & 1 deletion test/ng-build/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"declaration": false,
"downlevelIteration": true,
"experimentalDecorators": true,
"skipLibCheck": false,
"skipLibCheck": true,
"moduleResolution": "node",
"importHelpers": true,
"target": "es2017",
Expand Down

0 comments on commit 3c3a343

Please sign in to comment.