Skip to content
This repository has been archived by the owner on Apr 17, 2024. It is now read-only.

Commit

Permalink
Update firebase to version 9.0.0 (#47)
Browse files Browse the repository at this point in the history
* Update firebase version

* Bump to 2.1.5
  • Loading branch information
chrisfls authored Sep 23, 2021
1 parent b1d49ce commit f999ee5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
3 changes: 2 additions & 1 deletion firebase/remoteConfig.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import { RemoteConfig, Type, Value } from './types';
import { getValue } from 'firebase/remote-config';

export async function getConfigValue(
remoteConfig: RemoteConfig,
key: string,
type: Type,
): Promise<Value> {
const remoteValue = remoteConfig.getValue(key);
const remoteValue = getValue(remoteConfig, key);

switch (type) {
case 'string':
Expand Down
4 changes: 1 addition & 3 deletions firebase/types.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import firebase from 'firebase';

export type RemoteConfig = firebase.remoteConfig.RemoteConfig;
export { RemoteConfig } from 'firebase/remote-config';

export type Type = 'string' | 'number' | 'boolean' | 'object';

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@PaackEng/frontend-elm-kit",
"version": "2.1.4",
"version": "2.1.5",
"description": "",
"private": false,
"files": [
Expand Down Expand Up @@ -43,7 +43,7 @@
"elm": "^0.19.1-5",
"elm-review": "^2.5.5",
"elm-test": "^0.19.1-revision7",
"firebase": "^8.6.3"
"firebase": "^9.0.0"
},
"devDependencies": {
"@auth0/auth0-spa-js": "^1.17.0",
Expand Down

0 comments on commit f999ee5

Please sign in to comment.