@quiltt/core 4.2.1 → 4.2.3
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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @quiltt/core
|
|
2
2
|
|
|
3
|
+
## 4.2.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#355](https://github.com/quiltt/quiltt-js/pull/355) [`6d32f3e`](https://github.com/quiltt/quiltt-js/commit/6d32f3e40e7554c512ca63ef532d689d5485e10c) Thanks [@rubendinho](https://github.com/rubendinho)! - Improve error handling in React Native
|
|
8
|
+
|
|
9
|
+
## 4.2.2
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#352](https://github.com/quiltt/quiltt-js/pull/352) [`45b3b32`](https://github.com/quiltt/quiltt-js/commit/45b3b3270b69b95c9553e149e15870be4f43af3b) Thanks [@zubairaziz](https://github.com/zubairaziz)! - Fix useQuilttInstitutions export
|
|
14
|
+
|
|
3
15
|
## 4.2.1
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
[](https://badge.fury.io/js/@quiltt%2Fcore)
|
|
4
4
|
[](https://github.com/quiltt/quiltt-js/actions/workflows/ci.yml)
|
|
5
5
|
|
|
6
|
-
`@quiltt/core` provides essential
|
|
6
|
+
`@quiltt/core` provides essential primitives for building Javascript-based applications with Quiltt. It provides an Auth API client and modules for handling JSON Web Tokens (JWT), observables, storage management, timeouts, API handling, and Typescript types.
|
|
7
|
+
|
|
8
|
+
This package is used by both `@quiltt/react` and `@quiltt/react-native`. If you bundle it separately, we recommend keeping versions in sync to avoid issues with mismatched dependencies.
|
|
7
9
|
|
|
8
10
|
## Install
|
|
9
11
|
|
|
@@ -27,12 +29,14 @@ $ pnpm add @quiltt/core
|
|
|
27
29
|
|
|
28
30
|
## Auth API Client
|
|
29
31
|
|
|
32
|
+
The Auth API is used by the Quiltt Connector under the hood and can be used to perform basic operations on your Session tokens. Pull requests to extend the API to handle server-side authentication are welcome.
|
|
33
|
+
|
|
30
34
|
```ts
|
|
31
35
|
// Import Auth API client
|
|
32
36
|
import { AuthAPI } from '@quiltt/core'
|
|
33
37
|
|
|
34
38
|
// Set up client instance
|
|
35
|
-
const auth = new AuthAPI()
|
|
39
|
+
const auth = new AuthAPI('{CONNECTOR_ID}')
|
|
36
40
|
|
|
37
41
|
// Check if a Session token is valid
|
|
38
42
|
auth.ping('{SESSION_TOKEN}')
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ApolloLink, ApolloClient } from '@apollo/client/core/index.js';
|
|
2
2
|
export { gql } from '@apollo/client/core/index.js';
|
|
3
|
-
import { G as GlobalStorage, e as endpointGraphQL, v as version, d as debugging, S as SubscriptionLink, a as endpointAuth, b as endpointRest } from './SubscriptionLink-client-
|
|
4
|
-
export { L as LocalStorage, M as MemoryStorage, O as Observable, c as Storage, f as cdnBase, g as endpointWebsockets } from './SubscriptionLink-client-
|
|
3
|
+
import { G as GlobalStorage, e as endpointGraphQL, v as version, d as debugging, S as SubscriptionLink, a as endpointAuth, b as endpointRest } from './SubscriptionLink-client-BNmSIP63.js';
|
|
4
|
+
export { L as LocalStorage, M as MemoryStorage, O as Observable, c as Storage, f as cdnBase, g as endpointWebsockets } from './SubscriptionLink-client-BNmSIP63.js';
|
|
5
5
|
import { BatchHttpLink as BatchHttpLink$1 } from '@apollo/client/link/batch-http/index.js';
|
|
6
6
|
import crossfetch from 'cross-fetch';
|
|
7
7
|
import { onError } from '@apollo/client/link/error/index.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quiltt/core",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.3",
|
|
4
4
|
"description": "Javascript API client and utilities for Quiltt",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"quiltt",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@biomejs/biome": "1.9.4",
|
|
44
|
-
"@types/node": "22.
|
|
44
|
+
"@types/node": "22.18.1",
|
|
45
45
|
"@types/rails__actioncable": "6.1.11",
|
|
46
46
|
"@types/react": "18.3.20",
|
|
47
47
|
"bunchee": "6.3.4",
|