From 9ad07aefe9baed6e7e7231dac2a73a734a744c06 Mon Sep 17 00:00:00 2001 From: Bamco Date: Sun, 29 Dec 2024 17:06:58 +0100 Subject: [PATCH] Update minimal dependencies and import TransferState and makeStateKey from angular/core --- libs/ngfire/firestore/src/firestore.ts | 5 ++--- libs/ngfire/package.json | 8 ++++---- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/libs/ngfire/firestore/src/firestore.ts b/libs/ngfire/firestore/src/firestore.ts index 1d54f29..627e72e 100644 --- a/libs/ngfire/firestore/src/firestore.ts +++ b/libs/ngfire/firestore/src/firestore.ts @@ -1,10 +1,9 @@ -import { inject, Injectable, InjectFlags, Injector, PLATFORM_ID } from "@angular/core"; +import { inject, Injectable, InjectFlags, Injector, PLATFORM_ID, makeStateKey, TransferState } from "@angular/core"; import { collection, doc, DocumentData, DocumentSnapshot, query, queryEqual, QuerySnapshot, runTransaction, writeBatch } from 'firebase/firestore'; import type { Transaction, CollectionReference, DocumentReference, Query, QueryConstraint } from 'firebase/firestore'; import { FIRESTORE } from "./tokens"; import { shareWithDelay, assertCollection, assertPath, isCollectionRef, isDocPath, isQuery } from "ngfire/core"; import { fromRef } from "./operators"; -import { makeStateKey, TransferState } from "@angular/platform-browser"; import { isPlatformBrowser, isPlatformServer } from "@angular/common"; import { Observable } from "rxjs"; @@ -167,7 +166,7 @@ export class FirestoreService { if (Array.isArray(paths)) { return paths.map((path) => this.getRef(path) as DocumentReference); } - + const hasContraints = Array.isArray(constraints); if (hasContraints) { assertPath(paths); diff --git a/libs/ngfire/package.json b/libs/ngfire/package.json index 767a66b..3f37840 100644 --- a/libs/ngfire/package.json +++ b/libs/ngfire/package.json @@ -1,11 +1,11 @@ { "name": "ngfire", - "version": "0.0.48", + "version": "0.0.53", "homepage": "https://github.com/dappsnation/ngfire", "peerDependencies": { - "@angular/common": ">12.2.0", - "@angular/core": ">12.2.0", - "@angular/platform-browser": ">12.2.0", + "@angular/common": ">17.3.12", + "@angular/core": ">17.3.12", + "@angular/platform-browser": ">17.3.12", "@nrwl/devkit": ">13.0.0", "firebase": ">9.0.0", "rxjs": ">7.0.0"