@hyper-fetch/firebase 8.1.1 → 8.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +93 -32
- package/__tests__/features/firestore/shared/constraints.shared.tests.ts +1 -1
- package/__tests__/features/firestore/shared/methods/add-doc.test.suite.ts +1 -1
- package/__tests__/features/firestore/shared/methods/delete-doc.test.suite.ts +2 -2
- package/__tests__/features/firestore/shared/methods/get-doc.test.suite.ts +2 -2
- package/__tests__/features/firestore/shared/methods/get-docs.test.suite.ts +2 -2
- package/__tests__/features/firestore/shared/methods/on-snapshot.test.suite.ts +2 -2
- package/__tests__/features/firestore/shared/methods/set-doc.test.suite.ts +2 -2
- package/__tests__/features/firestore/shared/methods/update-doc.test.suite.ts +2 -2
- package/__tests__/features/firestore/shared/methods.shared.tests.ts +2 -1
- package/__tests__/features/firestore/web/constraints.web.spec.ts +2 -2
- package/__tests__/features/firestore/web/methods.web.spec.ts +3 -2
- package/__tests__/features/firestore/web/sockets.base.spec.ts +1 -0
- package/__tests__/features/realtime/browser/constraints.web.spec.ts +1 -1
- package/__tests__/features/realtime/browser/methods.web.spec.ts +1 -1
- package/__tests__/features/realtime/browser/sockets.base.spec.ts +2 -1
- package/__tests__/features/realtime/shared/constraints.shared.tests.ts +2 -2
- package/__tests__/features/realtime/shared/methods/get.test.suite.ts +1 -1
- package/__tests__/features/realtime/shared/methods/on-value.test.suite.ts +2 -2
- package/__tests__/features/realtime/shared/methods/push.test.suite.ts +1 -1
- package/__tests__/features/realtime/shared/methods/remove.test.suite.ts +1 -1
- package/__tests__/features/realtime/shared/methods/set.test.suite.ts +1 -1
- package/__tests__/features/realtime/shared/methods/update.test.suite.ts +1 -1
- package/__tests__/features/realtime/shared/methods.shared.tests.ts +4 -3
- package/__tests__/tsconfig.json +4 -14
- package/__tests__/vitest.setup.ts +1 -1
- package/dist/adapter/adapter.d.ts.map +1 -1
- package/dist/adapter/adapter.sockets.d.ts.map +1 -1
- package/dist/adapter/types/adapter.base.types.d.ts +2 -2
- package/dist/adapter/types/adapter.base.types.d.ts.map +1 -1
- package/dist/adapter/types/adapter.firestore.types.d.ts +2 -2
- package/dist/adapter/types/adapter.firestore.types.d.ts.map +1 -1
- package/dist/adapter/types/adapter.realtime.types.d.ts +1 -1
- package/dist/adapter/types/adapter.realtime.types.d.ts.map +1 -1
- package/dist/firestore/firestore.methods.d.ts +1 -1
- package/dist/firestore/firestore.methods.d.ts.map +1 -1
- package/dist/firestore/firestore.sockets.d.ts +1 -1
- package/dist/firestore/firestore.sockets.d.ts.map +1 -1
- package/dist/firestore/utils/constraints.utils.d.ts.map +1 -1
- package/dist/index.mjs +248 -248
- package/dist/index.mjs.map +1 -1
- package/dist/realtime/realtime.methods.d.ts +1 -1
- package/dist/realtime/realtime.methods.d.ts.map +1 -1
- package/dist/realtime/realtime.sockets.d.ts +1 -1
- package/dist/realtime/realtime.sockets.d.ts.map +1 -1
- package/dist/realtime/utils/constraints.utils.d.ts.map +1 -1
- package/package.json +7 -7
- package/src/adapter/adapter.sockets.ts +2 -3
- package/src/adapter/adapter.ts +2 -3
- package/src/adapter/types/adapter.base.types.ts +2 -3
- package/src/adapter/types/adapter.firestore.types.ts +8 -9
- package/src/adapter/types/adapter.realtime.types.ts +1 -2
- package/src/firestore/firestore.methods.ts +4 -4
- package/src/firestore/firestore.sockets.ts +5 -5
- package/src/firestore/utils/constraints.utils.ts +1 -2
- package/src/realtime/realtime.methods.ts +6 -6
- package/src/realtime/realtime.sockets.ts +3 -3
- package/src/realtime/utils/constraints.utils.ts +2 -3
- package/tsconfig.json +12 -1
- package/vite.config.ts +14 -20
- package/.eslintrc.cjs +0 -12
package/README.md
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
# 🔥 Hyper Fetch Firebase
|
|
1
|
+
# 🔥 Hyper Fetch Firebase
|
|
2
2
|
|
|
3
|
-
<p>
|
|
3
|
+
<p align="center">
|
|
4
|
+
<b>Type-safe Firebase/Firestore client built on HyperFetch. CRUD, realtime listeners, auth — all typed.</b>
|
|
5
|
+
</p>
|
|
6
|
+
|
|
7
|
+
<p align="center">
|
|
4
8
|
<a href="https://bettertyped.com/">
|
|
5
9
|
<img src="https://custom-icon-badges.demolab.com/static/v1?label=&message=BetterTyped&color=333&logo=BT" />
|
|
6
10
|
</a>
|
|
@@ -13,58 +17,115 @@
|
|
|
13
17
|
<a href="https://www.npmjs.com/package/@hyper-fetch/firebase">
|
|
14
18
|
<img src="https://custom-icon-badges.demolab.com/npm/v/@hyper-fetch/firebase.svg?logo=npm&color=e76f51" />
|
|
15
19
|
</a>
|
|
16
|
-
<a href="https://
|
|
17
|
-
<img src="https://custom-icon-badges.demolab.com/
|
|
20
|
+
<a href="https://www.npmjs.com/package/@hyper-fetch/firebase">
|
|
21
|
+
<img src="https://custom-icon-badges.demolab.com/npm/dm/@hyper-fetch/firebase?logoColor=fff&logo=trending-up" />
|
|
18
22
|
</a>
|
|
19
23
|
<a href="https://github.com/BetterTyped/hyper-fetch">
|
|
20
|
-
<img src="https://custom-icon-badges.demolab.com/badge
|
|
24
|
+
<img src="https://custom-icon-badges.demolab.com/badge/typescript-%23007ACC.svg?logo=typescript&logoColor=white" />
|
|
21
25
|
</a>
|
|
22
|
-
<a href="https://
|
|
26
|
+
<a href="https://bundlephobia.com/package/@hyper-fetch/firebase">
|
|
23
27
|
<img src="https://custom-icon-badges.demolab.com/bundlephobia/minzip/@hyper-fetch/firebase?color=64BC4B&logo=package" />
|
|
24
28
|
</a>
|
|
29
|
+
<a href="https://github.com/BetterTyped/hyper-fetch">
|
|
30
|
+
<img src="https://img.shields.io/badge/firebase-ffca28?logo=firebase&logoColor=black" alt="Firebase" />
|
|
31
|
+
</a>
|
|
25
32
|
</p>
|
|
26
33
|
|
|
27
|
-
## About
|
|
34
|
+
## 📖 About
|
|
35
|
+
|
|
36
|
+
This adapter brings HyperFetch's typed request system to Firebase. Use the same `createRequest` / `.send()` patterns for
|
|
37
|
+
Firestore and Realtime Database operations with typed responses, caching, queuing, and React hooks — the same API you
|
|
38
|
+
use for REST.
|
|
39
|
+
|
|
40
|
+
## 🎯 Key Capabilities
|
|
41
|
+
|
|
42
|
+
- 🔥 **Same API for Firebase** — Use `createRequest` / `.send()` for Firestore and Realtime Database, just like REST
|
|
43
|
+
- 🔮 **Typed CRUD** — `getDoc`, `addDoc`, `updateDoc`, `deleteDoc` with full TypeScript types on every field
|
|
44
|
+
- 📡 **Realtime subscriptions** — Listen to document and collection changes with typed data flowing in
|
|
45
|
+
- ⚛️ **React hooks for Firebase** — `useFetch` and `useSubmit` work with Firebase operations — same patterns, different
|
|
46
|
+
backend
|
|
47
|
+
- 💾 **Cache and offline support** — HyperFetch's caching and offline queue work with Firebase out of the box
|
|
48
|
+
|
|
49
|
+
## 🚀 Quick Start
|
|
50
|
+
|
|
51
|
+
```bash
|
|
52
|
+
npm install @hyper-fetch/core @hyper-fetch/firebase firebase
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
```ts
|
|
56
|
+
import { createClient } from "@hyper-fetch/core";
|
|
57
|
+
import { FirebaseAdapter } from "@hyper-fetch/firebase";
|
|
58
|
+
import { getFirestore } from "firebase/firestore";
|
|
59
|
+
|
|
60
|
+
const db = getFirestore();
|
|
61
|
+
const client = createClient({ url: "" }).setAdapter(FirebaseAdapter(db));
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
## 📚 Documentation
|
|
28
65
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
66
|
+
- [Firebase Adapter Docs](https://hyperfetch.bettertyped.com/docs/integrations/adapter-firebase)
|
|
67
|
+
- [Getting Started](https://hyperfetch.bettertyped.com/docs/getting-started/quick-start)
|
|
68
|
+
- [API Reference](https://hyperfetch.bettertyped.com/api/)
|
|
32
69
|
|
|
33
|
-
##
|
|
70
|
+
## 💡 Examples
|
|
34
71
|
|
|
35
|
-
|
|
72
|
+
### Read a document
|
|
36
73
|
|
|
37
|
-
|
|
74
|
+
```ts
|
|
75
|
+
interface User {
|
|
76
|
+
id: string;
|
|
77
|
+
name: string;
|
|
78
|
+
email: string;
|
|
79
|
+
}
|
|
38
80
|
|
|
39
|
-
|
|
40
|
-
|
|
81
|
+
const getUser = client.createRequest<{ response: User }>()({
|
|
82
|
+
endpoint: "/users/:userId",
|
|
83
|
+
method: "getDoc",
|
|
84
|
+
});
|
|
41
85
|
|
|
42
|
-
|
|
86
|
+
const { data } = await getUser.setParams({ userId: "abc123" }).send();
|
|
87
|
+
console.log(data.name, data.email);
|
|
88
|
+
```
|
|
43
89
|
|
|
44
|
-
|
|
90
|
+
### Write a document
|
|
45
91
|
|
|
46
|
-
|
|
92
|
+
```ts
|
|
93
|
+
const createUser = client.createRequest<{
|
|
94
|
+
payload: { name: string; email: string };
|
|
95
|
+
response: null;
|
|
96
|
+
}>()({
|
|
97
|
+
endpoint: "/users",
|
|
98
|
+
method: "addDoc",
|
|
99
|
+
});
|
|
47
100
|
|
|
48
|
-
|
|
101
|
+
await createUser.send({ data: { name: "Jane", email: "jane@example.com" } });
|
|
102
|
+
```
|
|
49
103
|
|
|
50
|
-
|
|
104
|
+
### List documents
|
|
51
105
|
|
|
52
|
-
|
|
106
|
+
```ts
|
|
107
|
+
const listUsers = client.createRequest<{ response: User[] }>()({
|
|
108
|
+
endpoint: "/users",
|
|
109
|
+
method: "getDocs",
|
|
110
|
+
});
|
|
53
111
|
|
|
54
|
-
|
|
112
|
+
const { data: users } = await listUsers.send();
|
|
113
|
+
users.forEach((user) => console.log(user.name));
|
|
114
|
+
```
|
|
55
115
|
|
|
56
|
-
|
|
116
|
+
### Use with React hooks
|
|
57
117
|
|
|
58
|
-
|
|
118
|
+
```tsx
|
|
119
|
+
import { useFetch } from "@hyper-fetch/react";
|
|
59
120
|
|
|
60
|
-
|
|
121
|
+
const UserProfile = ({ userId }: { userId: string }) => {
|
|
122
|
+
const { data, loading } = useFetch(getUser.setParams({ userId }));
|
|
61
123
|
|
|
62
|
-
|
|
124
|
+
if (loading) return <p>Loading...</p>;
|
|
125
|
+
return <h1>{data?.name}</h1>;
|
|
126
|
+
};
|
|
127
|
+
```
|
|
63
128
|
|
|
64
|
-
##
|
|
129
|
+
## License
|
|
65
130
|
|
|
66
|
-
|
|
67
|
-
- #### [Docs](https://hyperfetch.bettertyped.com/docs/react/overview)
|
|
68
|
-
- #### [API](https://hyperfetch.bettertyped.com/api/)
|
|
69
|
-
- #### [NPM](https://www.npmjs.com/package/@hyper-fetch/firebase)
|
|
70
|
-
- #### [Guides](https://hyperfetch.bettertyped.com/guides/basic/setup)
|
|
131
|
+
[MIT](https://github.com/BetterTyped/hyper-fetch/blob/main/License.md)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Client } from "@hyper-fetch/core";
|
|
2
|
-
|
|
3
2
|
import type { FirestoreAdapterType, FirestoreQueryParams } from "adapter";
|
|
4
3
|
import { $limit, $orderBy, $where } from "constraints";
|
|
4
|
+
|
|
5
5
|
import type { Tea } from "../../../utils";
|
|
6
6
|
|
|
7
7
|
export const constraintsSharedTestCases = (client: Client<Error, FirestoreAdapterType>) => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Client } from "@hyper-fetch/core";
|
|
2
|
-
|
|
3
2
|
import type { FirebaseAdapter } from "adapter";
|
|
4
|
-
|
|
3
|
+
|
|
5
4
|
import { testLifecycleEvents } from "../../../../shared/request-events.shared";
|
|
5
|
+
import type { Tea } from "../../../../utils";
|
|
6
6
|
|
|
7
7
|
export const deleteDocTestSuite = (adapterFunction: () => ReturnType<typeof FirebaseAdapter>) => {
|
|
8
8
|
describe("deleteDoc", () => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Client } from "@hyper-fetch/core";
|
|
2
|
-
|
|
3
2
|
import type { FirebaseAdapter } from "adapter";
|
|
4
|
-
|
|
3
|
+
|
|
5
4
|
import { testLifecycleEvents } from "../../../../shared/request-events.shared";
|
|
5
|
+
import type { Tea } from "../../../../utils";
|
|
6
6
|
|
|
7
7
|
export const getDocTestSuite = (adapterFunction: () => ReturnType<typeof FirebaseAdapter>) => {
|
|
8
8
|
describe("getDoc", () => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Client } from "@hyper-fetch/core";
|
|
2
|
-
|
|
3
2
|
import type { FirebaseAdapter } from "adapter";
|
|
4
|
-
|
|
3
|
+
|
|
5
4
|
import { testLifecycleEvents } from "../../../../shared/request-events.shared";
|
|
5
|
+
import type { Tea } from "../../../../utils";
|
|
6
6
|
|
|
7
7
|
export const getDocsTestSuite = (adapterFunction: () => ReturnType<typeof FirebaseAdapter>) => {
|
|
8
8
|
describe("getDocs", () => {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Client } from "@hyper-fetch/core";
|
|
2
2
|
import { Socket } from "@hyper-fetch/sockets";
|
|
3
|
-
import waitForExpect from "wait-for-expect";
|
|
4
|
-
|
|
5
3
|
import type { FirebaseAdapterTypes, FirebaseSocketAdapterTypes } from "adapter";
|
|
6
4
|
import { $where } from "constraints";
|
|
5
|
+
import waitForExpect from "wait-for-expect";
|
|
6
|
+
|
|
7
7
|
import type { Tea } from "../../../../utils";
|
|
8
8
|
|
|
9
9
|
export const onSnapshotTestSuite = (
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Client } from "@hyper-fetch/core";
|
|
2
|
-
|
|
3
|
-
import type { Tea } from "../../../../utils";
|
|
4
2
|
import type { FirebaseAdapter } from "adapter";
|
|
3
|
+
|
|
5
4
|
import { testLifecycleEvents } from "../../../../shared/request-events.shared";
|
|
5
|
+
import type { Tea } from "../../../../utils";
|
|
6
6
|
|
|
7
7
|
export const setDocTestSuite = (adapterFunction: () => ReturnType<typeof FirebaseAdapter>) => {
|
|
8
8
|
describe("setDoc", () => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Client } from "@hyper-fetch/core";
|
|
2
|
-
|
|
3
2
|
import type { FirebaseAdapter } from "adapter";
|
|
4
|
-
|
|
3
|
+
|
|
5
4
|
import { testLifecycleEvents } from "../../../../shared/request-events.shared";
|
|
5
|
+
import type { Tea } from "../../../../utils";
|
|
6
6
|
|
|
7
7
|
export const updateDocTestSuite = (adapterFunction: () => ReturnType<typeof FirebaseAdapter>) => {
|
|
8
8
|
describe("updateDoc", () => {
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import type { FirebaseAdapter, FirebaseAdapterTypes, FirebaseSocketAdapterTypes } from "adapter";
|
|
2
|
+
|
|
2
3
|
import { addDocTestSuite } from "./methods/add-doc.test.suite";
|
|
3
|
-
import { onSnapshotTestSuite } from "./methods/on-snapshot.test.suite";
|
|
4
4
|
import { deleteDocTestSuite } from "./methods/delete-doc.test.suite";
|
|
5
5
|
import { getDocTestSuite } from "./methods/get-doc.test.suite";
|
|
6
6
|
import { getDocsTestSuite } from "./methods/get-docs.test.suite";
|
|
7
|
+
import { onSnapshotTestSuite } from "./methods/on-snapshot.test.suite";
|
|
7
8
|
import { setDocTestSuite } from "./methods/set-doc.test.suite";
|
|
8
9
|
import { updateDocTestSuite } from "./methods/update-doc.test.suite";
|
|
9
10
|
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
* @vitest-environment node
|
|
3
3
|
*/
|
|
4
4
|
import { Client } from "@hyper-fetch/core";
|
|
5
|
-
|
|
6
5
|
import { FirebaseAdapter } from "adapter";
|
|
7
|
-
|
|
6
|
+
|
|
8
7
|
import { seedFirestoreDatabaseBrowser, deleteCollectionForBrowser } from "../../../utils";
|
|
8
|
+
import { firestoreDbBrowser } from "../../../utils/browser/initialize.firestore.browser";
|
|
9
9
|
import { constraintsSharedTestCases } from "../shared/constraints.shared.tests";
|
|
10
10
|
|
|
11
11
|
describe("Firestore Browser [ Constraints ]", () => {
|
|
@@ -3,10 +3,11 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import { FirebaseAdapter } from "adapter";
|
|
6
|
-
|
|
6
|
+
|
|
7
7
|
import { deleteCollectionForBrowser } from "../../../utils/browser/clean.browser";
|
|
8
|
-
import { methodsSharedTestCases } from "../shared/methods.shared.tests";
|
|
9
8
|
import { firestoreDbBrowser } from "../../../utils/browser/initialize.firestore.browser";
|
|
9
|
+
import { seedFirestoreDatabaseBrowser } from "../../../utils/browser/seed.browser";
|
|
10
|
+
import { methodsSharedTestCases } from "../shared/methods.shared.tests";
|
|
10
11
|
|
|
11
12
|
describe("Firestore Browser [ Methods ]", () => {
|
|
12
13
|
beforeEach(async () => {
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import { FirebaseAdapter, FirebaseSocketsAdapter } from "adapter";
|
|
6
|
+
|
|
6
7
|
import { deleteCollectionForBrowser, seedFirestoreDatabaseBrowser } from "../../../utils";
|
|
7
8
|
import { firestoreDbBrowser } from "../../../utils/browser/initialize.firestore.browser";
|
|
8
9
|
import { socketsMethodsSharedTestCases } from "../shared/methods.shared.tests";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { FirebaseAdapter } from "adapter";
|
|
1
2
|
import { ref, set } from "firebase/database";
|
|
2
3
|
|
|
3
|
-
import { FirebaseAdapter } from "adapter";
|
|
4
4
|
import { realtimeDBBrowser, seedRealtimeDatabaseBrowser } from "../../../utils";
|
|
5
5
|
import { constraintsSharedTestCases } from "../shared/constraints.shared.tests";
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { FirebaseAdapter } from "adapter";
|
|
1
2
|
import { set, ref } from "firebase/database";
|
|
2
3
|
|
|
3
|
-
import { FirebaseAdapter } from "adapter";
|
|
4
4
|
import { realtimeDBBrowser } from "../../../utils";
|
|
5
5
|
import { seedRealtimeDatabaseBrowser } from "../../../utils/browser/seed.browser";
|
|
6
6
|
import { methodsSharedTestCases } from "../shared/methods.shared.tests";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { FirebaseAdapter, FirebaseSocketsAdapter } from "adapter";
|
|
2
|
+
|
|
1
3
|
import { realtimeDBBrowser, seedRealtimeDatabaseBrowser } from "../../../utils";
|
|
2
4
|
import { socketsMethodsSharedTestCases } from "../shared/methods.shared.tests";
|
|
3
|
-
import { FirebaseAdapter, FirebaseSocketsAdapter } from "adapter";
|
|
4
5
|
|
|
5
6
|
describe("Realtime Database Browser [Sockets]", () => {
|
|
6
7
|
socketsMethodsSharedTestCases(
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Client } from "@hyper-fetch/core";
|
|
2
|
-
|
|
3
|
-
import { $endAt, $limitToFirst, $orderByChild, $startAt } from "constraints";
|
|
4
2
|
import type { FirebaseAdapter } from "adapter";
|
|
3
|
+
import { $endAt, $limitToFirst, $orderByChild, $startAt } from "constraints";
|
|
4
|
+
|
|
5
5
|
import type { Tea } from "../../../utils";
|
|
6
6
|
|
|
7
7
|
export const constraintsSharedTestCases = (adapterFunction: () => ReturnType<typeof FirebaseAdapter>) => {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { Client } from "@hyper-fetch/core";
|
|
1
2
|
/* eslint-disable max-params */
|
|
2
3
|
import { Socket } from "@hyper-fetch/sockets";
|
|
3
|
-
import {
|
|
4
|
+
import type { FirebaseAdapterTypes, FirebaseDBTypes, FirebaseSocketAdapterTypes } from "adapter";
|
|
4
5
|
import waitForExpect from "wait-for-expect";
|
|
5
6
|
|
|
6
|
-
import type { FirebaseAdapterTypes, FirebaseDBTypes, FirebaseSocketAdapterTypes } from "adapter";
|
|
7
7
|
import type { Tea } from "../../../../utils";
|
|
8
8
|
|
|
9
9
|
export const onValueTestSuite = (
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
/* eslint-disable max-params */
|
|
2
2
|
import type { FirebaseAdapter, FirebaseAdapterTypes, FirebaseDBTypes, FirebaseSocketAdapterTypes } from "adapter";
|
|
3
|
-
|
|
4
|
-
import { onValueTestSuite } from "./methods/on-value.test.suite";
|
|
3
|
+
|
|
5
4
|
import { getTestSuite } from "./methods/get.test.suite";
|
|
5
|
+
import { onValueTestSuite } from "./methods/on-value.test.suite";
|
|
6
|
+
import { pushTestSuite } from "./methods/push.test.suite";
|
|
7
|
+
import { removeTestSuite } from "./methods/remove.test.suite";
|
|
6
8
|
import { setTestSuite } from "./methods/set.test.suite";
|
|
7
9
|
import { updateTestSuite } from "./methods/update.test.suite";
|
|
8
|
-
import { removeTestSuite } from "./methods/remove.test.suite";
|
|
9
10
|
|
|
10
11
|
export const methodsSharedTestCases = (adapterFunction: () => ReturnType<typeof FirebaseAdapter>) => {
|
|
11
12
|
getTestSuite(adapterFunction);
|
package/__tests__/tsconfig.json
CHANGED
|
@@ -1,21 +1,11 @@
|
|
|
1
1
|
{
|
|
2
|
+
"extends": "../tsconfig.json",
|
|
2
3
|
"compilerOptions": {
|
|
3
|
-
"target": "esnext",
|
|
4
|
-
"module": "esnext",
|
|
5
|
-
"moduleResolution": "bundler",
|
|
6
|
-
"lib": ["dom", "dom.iterable", "ESNext"],
|
|
7
|
-
"strict": true,
|
|
8
4
|
"noEmit": true,
|
|
9
|
-
"skipLibCheck": true,
|
|
10
|
-
"esModuleInterop": true,
|
|
11
|
-
"allowSyntheticDefaultImports": true,
|
|
12
|
-
"resolveJsonModule": true,
|
|
13
|
-
"isolatedModules": true,
|
|
14
5
|
"noUnusedLocals": false,
|
|
15
6
|
"noUnusedParameters": false,
|
|
16
|
-
"types": ["vitest/globals", "@types/node"]
|
|
17
|
-
"baseUrl": "../src",
|
|
18
|
-
"paths": {}
|
|
7
|
+
"types": ["vitest/globals", "@types/node"]
|
|
19
8
|
},
|
|
20
|
-
"include": ["**/*.ts", "**/*.tsx", "../../../global.d.ts", "../../../vitest.d.ts"]
|
|
9
|
+
"include": ["**/*.ts", "**/*.tsx", "../../../global.d.ts", "../../../vitest.d.ts"],
|
|
10
|
+
"exclude": ["node_modules"]
|
|
21
11
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { AbortController } from "abortcontroller-polyfill/dist/cjs-ponyfill";
|
|
1
2
|
/// <reference types="vitest/globals" />
|
|
2
3
|
import { setImmediate } from "timers";
|
|
3
|
-
import { AbortController } from "abortcontroller-polyfill/dist/cjs-ponyfill";
|
|
4
4
|
|
|
5
5
|
globalThis.setImmediate = setImmediate;
|
|
6
6
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adapter.d.ts","sourceRoot":"","sources":["../../src/adapter/adapter.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"adapter.d.ts","sourceRoot":"","sources":["../../src/adapter/adapter.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,oBAAoB,EAAgD,MAAM,SAAS,CAAC;AAMnH,eAAO,MAAM,eAAe,GAAI,CAAC,SAAS,eAAe,EAAE,UAAU,CAAC,KAAG,oBAAoB,CAAC,CAAC,CA0D9F,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adapter.sockets.d.ts","sourceRoot":"","sources":["../../src/adapter/adapter.sockets.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"adapter.sockets.d.ts","sourceRoot":"","sources":["../../src/adapter/adapter.sockets.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,0BAA0B,EAAE,MAAM,eAAe,CAAC;AAMjF,eAAO,MAAM,sBAAsB,GAAI,CAAC,SAAS,eAAe,EAAE,UAAU,CAAC,KAAG,0BAA0B,CAAC,CAAC,CAQ3G,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Database } from 'firebase/database';
|
|
2
|
-
import { Firestore } from 'firebase/firestore';
|
|
3
1
|
import { Adapter, Request, Client } from '@hyper-fetch/core';
|
|
4
2
|
import { RealtimeDbAdapterType, FirestoreAdapterType, RealtimeSocketAdapterType, FirestoreSocketAdapterType, RealtimeDBQueryParams, RealtimeDBMethodsUnion, FirestoreMethodsUnion, FirestoreQueryParams } from '../index';
|
|
3
|
+
import { Database } from 'firebase/database';
|
|
4
|
+
import { Firestore } from 'firebase/firestore';
|
|
5
5
|
export type FirebaseDBTypes = Database | Firestore;
|
|
6
6
|
export type FirebaseAdapterTypes<T> = T extends Database ? RealtimeDbAdapterType : FirestoreAdapterType;
|
|
7
7
|
export type FirebaseSocketAdapterTypes<T> = T extends Firestore ? FirestoreSocketAdapterType : RealtimeSocketAdapterType;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adapter.base.types.d.ts","sourceRoot":"","sources":["../../../src/adapter/types/adapter.base.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"adapter.base.types.d.ts","sourceRoot":"","sources":["../../../src/adapter/types/adapter.base.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAClE,OAAO,KAAK,EACV,qBAAqB,EACrB,oBAAoB,EACpB,yBAAyB,EACzB,0BAA0B,EAC1B,qBAAqB,EACrB,sBAAsB,EACtB,qBAAqB,EACrB,oBAAoB,EACrB,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAEpD,MAAM,MAAM,eAAe,GAAG,QAAQ,GAAG,SAAS,CAAC;AACnD,MAAM,MAAM,oBAAoB,CAAC,CAAC,IAAI,CAAC,SAAS,QAAQ,GAAG,qBAAqB,GAAG,oBAAoB,CAAC;AACxG,MAAM,MAAM,0BAA0B,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAC3D,0BAA0B,GAC1B,yBAAyB,CAAC;AAE9B,MAAM,MAAM,sBAAsB,GAAG,OAAO,CAC1C,GAAG,EACH,GAAG,EACH,qBAAqB,EACrB,GAAG,EACH,GAAG,EACH,MAAM,CAAC,GAAG,EAAE,OAAO,CAAC,GAAG,EAAE,sBAAsB,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,EACrE,GAAG,EACH,GAAG,EACH,GAAG,CACJ,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG,OAAO,CACxC,GAAG,EACH,GAAG,EACH,oBAAoB,EACpB,GAAG,EACH,GAAG,EACH,MAAM,CAAC,GAAG,EAAE,OAAO,CAAC,GAAG,EAAE,qBAAqB,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,EACpE,GAAG,EACH,GAAG,EACH,GAAG,CACJ,CAAC;AAEF,MAAM,MAAM,mBAAmB,CAAC,CAAC,IAAI,CAAC,SAAS,QAAQ,GAAG,sBAAsB,GAAG,oBAAoB,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { DocumentData } from '@firebase/firestore';
|
|
1
2
|
import { Adapter } from '@hyper-fetch/core';
|
|
2
|
-
import { Unsubscribe as FirestoreUnsubscribe, CollectionReference, DocumentReference, DocumentSnapshot, QuerySnapshot } from 'firebase/firestore';
|
|
3
3
|
import { SocketAdapter } from '@hyper-fetch/sockets';
|
|
4
|
-
import { DocumentData } from '@firebase/firestore';
|
|
5
4
|
import { FirestoreConstraintsUnion, FirestorePermittedMethods, PermittedConstraints, SharedQueryConstraints } from '../../constraints';
|
|
5
|
+
import { Unsubscribe as FirestoreUnsubscribe, CollectionReference, DocumentReference, DocumentSnapshot, QuerySnapshot } from 'firebase/firestore';
|
|
6
6
|
export type FirestoreSocketAdapterType = SocketAdapter<FirestoreOnSnapshotExtra, undefined, {
|
|
7
7
|
groupByChangeType?: boolean;
|
|
8
8
|
} & FirestoreQueryParams>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adapter.firestore.types.d.ts","sourceRoot":"","sources":["../../../src/adapter/types/adapter.firestore.types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"adapter.firestore.types.d.ts","sourceRoot":"","sources":["../../../src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from '@hyper-fetch/core';
|
|
2
|
-
import { DatabaseReference, DataSnapshot } from 'firebase/database';
|
|
3
2
|
import { SocketAdapter } from '@hyper-fetch/sockets';
|
|
4
3
|
import { PermittedConstraints, RealtimeConstraintsUnion, RealtimePermittedMethods, SharedQueryConstraints } from '../../constraints';
|
|
4
|
+
import { DatabaseReference, DataSnapshot } from 'firebase/database';
|
|
5
5
|
export type RealtimeSocketAdapterType = SocketAdapter<RealtimeDbOnValueMethodExtra, undefined, {
|
|
6
6
|
onlyOnce?: boolean;
|
|
7
7
|
} & RealtimeDBQueryParams>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adapter.realtime.types.d.ts","sourceRoot":"","sources":["../../../src/adapter/types/adapter.realtime.types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"adapter.realtime.types.d.ts","sourceRoot":"","sources":["../../../src/adapter/types/adapter.realtime.types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,KAAK,EACV,oBAAoB,EACpB,wBAAwB,EACxB,wBAAwB,EACxB,sBAAsB,EACvB,MAAM,aAAa,CAAC;AACrB,OAAO,KAAK,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEzE,MAAM,MAAM,yBAAyB,GAAG,aAAa,CACnD,4BAA4B,EAC5B,SAAS,EACT;IAAE,QAAQ,CAAC,EAAE,OAAO,CAAA;CAAE,GAAG,qBAAqB,CAC/C,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAC7B,OAAO,CACL,+BAA+B,EAC/B,KAAK,EACL,kBAAkB,EAClB,wBAAwB,EACxB,qBAAqB,EACrB,qBAAqB,CACtB,GACD,OAAO,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;CACnH,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Firestore } from 'firebase/firestore';
|
|
2
1
|
import { getAdapterBindings } from '@hyper-fetch/core';
|
|
3
2
|
import { FirestoreMethodsUnion } from '../adapter/types';
|
|
4
3
|
import { FirestoreConstraintsUnion, FirestorePermittedMethods, PermittedConstraints, SharedQueryConstraints } from '../constraints';
|
|
4
|
+
import { Firestore } from 'firebase/firestore';
|
|
5
5
|
type DataType = {
|
|
6
6
|
constraints?: PermittedConstraints<FirestorePermittedMethods, FirestoreConstraintsUnion | SharedQueryConstraints>[];
|
|
7
7
|
payload?: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"firestore.methods.d.ts","sourceRoot":"","sources":["../../src/firestore/firestore.methods.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"firestore.methods.d.ts","sourceRoot":"","sources":["../../src/firestore/firestore.methods.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AAC3D,OAAO,KAAK,EACV,yBAAyB,EACzB,yBAAyB,EACzB,oBAAoB,EACpB,sBAAsB,EACvB,MAAM,aAAa,CAAC;AAErB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAMpD,KAAK,QAAQ,GAAG;IACd,WAAW,CAAC,EAAE,oBAAoB,CAAC,yBAAyB,EAAE,yBAAyB,GAAG,sBAAsB,CAAC,EAAE,CAAC;IACpH,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC/B,CAAC;AAEF,eAAO,MAAM,0BAA0B,GAAI,sGASxC;IACD,QAAQ,EAAE,SAAS,CAAC;IACpB,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,EAAE,OAAO,CAAC,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC;IACvE,OAAO,EAAE,OAAO,CAAC,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;IACnE,eAAe,EAAE,OAAO,CAAC,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC;IACnF,cAAc,EAAE,OAAO,CAAC,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC;IACjF,YAAY,EAAE,OAAO,CAAC,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC;IAC7E,aAAa,EAAE,OAAO,CAAC,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC;CAChF,KAAG,CAAC,CAAC,UAAU,EAAE,qBAAqB,EAAE,IAAI,EAAE,QAAQ,KAAK,OAAO,CAAC,IAAI,CAAC,CAgExE,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Firestore } from 'firebase/firestore';
|
|
2
1
|
import { FirestoreSocketAdapterType } from '../adapter';
|
|
2
|
+
import { Firestore } from 'firebase/firestore';
|
|
3
3
|
export declare const firestoreSockets: (database: Firestore) => FirestoreSocketAdapterType;
|
|
4
4
|
//# sourceMappingURL=firestore.sockets.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"firestore.sockets.d.ts","sourceRoot":"","sources":["../../src/firestore/firestore.sockets.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"firestore.sockets.d.ts","sourceRoot":"","sources":["../../src/firestore/firestore.sockets.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAkD,0BAA0B,EAAE,MAAM,SAAS,CAAC;AAC1G,OAAO,KAAK,EAAE,SAAS,EAAiB,MAAM,oBAAoB,CAAC;AASnE,eAAO,MAAM,gBAAgB,GAAI,UAAU,SAAS,KAAG,0BAqFtD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constraints.utils.d.ts","sourceRoot":"","sources":["../../../src/firestore/utils/constraints.utils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"constraints.utils.d.ts","sourceRoot":"","sources":["../../../src/firestore/utils/constraints.utils.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAC;AAI7D,eAAO,MAAM,aAAa,GAAI,kBAAkB,yBAAyB,qRAiCxE,CAAC"}
|