@quiltt/core 4.4.0 → 4.5.1

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,21 @@
1
1
  # @quiltt/core
2
2
 
3
+ ## 4.5.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#389](https://github.com/quiltt/quiltt-js/pull/389) [`a6a2a7e`](https://github.com/quiltt/quiltt-js/commit/a6a2a7ea94c7204a69b53f191ee738bcdc520a10) Thanks [@zubairaziz](https://github.com/zubairaziz)! - Upgrade React versions across all projects
8
+
9
+ ## 4.5.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [#386](https://github.com/quiltt/quiltt-js/pull/386) [`0bf706c`](https://github.com/quiltt/quiltt-js/commit/0bf706ce2ad926304d6eac739ee58971736f913e) Thanks [@zubairaziz](https://github.com/zubairaziz)! - Update platform webview props
14
+
15
+ ### Patch Changes
16
+
17
+ - [#380](https://github.com/quiltt/quiltt-js/pull/380) [`31cd190`](https://github.com/quiltt/quiltt-js/commit/31cd1902618ebc2314d42dd7aca81b3ab94068ea) Thanks [@sirwolfgang](https://github.com/sirwolfgang)! - Improve useQuilttResolvable error messaging
18
+
3
19
  ## 4.4.0
4
20
 
5
21
  ### Minor Changes
package/README.md CHANGED
@@ -5,26 +5,28 @@
5
5
 
6
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
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.
8
+ This package is used by both [`@quiltt/react`](../react#readme) and [`@quiltt/react-native`](../react-native#readme). If you bundle it separately, we recommend keeping versions in sync to avoid issues with mismatched dependencies.
9
+
10
+ For general project information and contributing guidelines, see the [main repository README](../../README.md).
9
11
 
10
12
  ## Install
11
13
 
12
14
  With `npm`:
13
15
 
14
16
  ```shell
15
- $ npm install @quiltt/core
17
+ npm install @quiltt/core
16
18
  ```
17
19
 
18
20
  With `yarn`:
19
21
 
20
22
  ```shell
21
- $ yarn add @quiltt/core
23
+ yarn add @quiltt/core
22
24
  ```
23
25
 
24
26
  With `pnpm`:
25
27
 
26
28
  ```shell
27
- $ pnpm add @quiltt/core
29
+ pnpm add @quiltt/core
28
30
  ```
29
31
 
30
32
  ## Auth API Client
@@ -90,4 +92,9 @@ This project is licensed under the terms of the MIT license. See the [LICENSE](L
90
92
 
91
93
  ## Contributing
92
94
 
93
- For information on how to contribute to this project, please refer to the [CONTRIBUTING.md](CONTRIBUTING.md) file.
95
+ For information on how to contribute to this project, please refer to the [repository contributing guidelines](../../CONTRIBUTING.md).
96
+
97
+ ## Related Packages
98
+
99
+ - [`@quiltt/react`](../react#readme) - React components and hooks
100
+ - [`@quiltt/react-native`](../react-native#readme) - React Native and Expo components
@@ -5,7 +5,7 @@ import { createConsumer } from '@rails/actioncable';
5
5
  import { print } from 'graphql';
6
6
 
7
7
  var name = "@quiltt/core";
8
- var version$1 = "4.4.0";
8
+ var version$1 = "4.5.1";
9
9
 
10
10
  const QUILTT_API_INSECURE = (()=>{
11
11
  try {
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-12s-CoOidlX2.js';
4
- export { L as LocalStorage, M as MemoryStorage, O as Observable, g as Storage, c as cdnBase, f as endpointWebsockets } from './SubscriptionLink-12s-CoOidlX2.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-12s-B8qxyDXC.js';
4
+ export { L as LocalStorage, M as MemoryStorage, O as Observable, g as Storage, c as cdnBase, f as endpointWebsockets } from './SubscriptionLink-12s-B8qxyDXC.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';
@@ -52,16 +52,25 @@ const BatchHttpLink = new BatchHttpLink$1({
52
52
 
53
53
  const ErrorLink = onError(({ graphQLErrors, networkError })=>{
54
54
  if (graphQLErrors) {
55
- graphQLErrors.forEach(({ message, locations, path })=>{
56
- console.log(`[GraphQL error]: Message: ${message}, Location: ${locations}, Path: ${path}`);
55
+ graphQLErrors.forEach(({ message, path, extensions })=>{
56
+ const formattedPath = Array.isArray(path) ? path.join('.') : path ?? 'N/A';
57
+ const parts = [
58
+ `[Quiltt][GraphQL Error]: ${message}`,
59
+ `Path: ${formattedPath}`
60
+ ];
61
+ if (extensions) {
62
+ if (extensions.code) parts.push(`Code: ${extensions.code}`);
63
+ if (extensions.errorId) parts.push(`Error ID: ${extensions.errorId}`);
64
+ }
65
+ console.warn(parts.join(' | '));
57
66
  });
58
67
  }
59
68
  if (networkError) {
60
69
  if (networkError.statusCode === 401) {
61
- console.warn('[Authentication error]:', networkError);
70
+ console.warn('[Quiltt][Authentication Error]:', networkError);
62
71
  GlobalStorage.set('session', null);
63
72
  } else {
64
- console.warn('[Network error]:', networkError);
73
+ console.warn('[Quiltt][Network Error]:', networkError);
65
74
  }
66
75
  }
67
76
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quiltt/core",
3
- "version": "4.4.0",
3
+ "version": "4.5.1",
4
4
  "description": "Javascript API client and utilities for Quiltt",
5
5
  "keywords": [
6
6
  "quiltt",
@@ -40,13 +40,13 @@
40
40
  "graphql-ruby-client": "^1.14.5"
41
41
  },
42
42
  "devDependencies": {
43
- "@biomejs/biome": "2.2.4",
44
- "@types/node": "22.18.6",
43
+ "@biomejs/biome": "2.3.8",
44
+ "@types/node": "22.19.2",
45
45
  "@types/rails__actioncable": "6.1.11",
46
- "@types/react": "18.3.23",
47
- "bunchee": "6.6.0",
48
- "rimraf": "6.0.1",
49
- "typescript": "5.9.2"
46
+ "@types/react": "19.2.7",
47
+ "bunchee": "6.6.2",
48
+ "rimraf": "6.1.2",
49
+ "typescript": "5.9.3"
50
50
  },
51
51
  "tags": [
52
52
  "quiltt"
@@ -5,17 +5,25 @@ import { GlobalStorage } from '@/storage'
5
5
 
6
6
  export const ErrorLink = onError(({ graphQLErrors, networkError }) => {
7
7
  if (graphQLErrors) {
8
- graphQLErrors.forEach(({ message, locations, path }) => {
9
- console.log(`[GraphQL error]: Message: ${message}, Location: ${locations}, Path: ${path}`)
8
+ graphQLErrors.forEach(({ message, path, extensions }) => {
9
+ const formattedPath = Array.isArray(path) ? path.join('.') : (path ?? 'N/A')
10
+ const parts = [`[Quiltt][GraphQL Error]: ${message}`, `Path: ${formattedPath}`]
11
+
12
+ if (extensions) {
13
+ if (extensions.code) parts.push(`Code: ${extensions.code}`)
14
+ if (extensions.errorId) parts.push(`Error ID: ${extensions.errorId}`)
15
+ }
16
+
17
+ console.warn(parts.join(' | '))
10
18
  })
11
19
  }
12
20
 
13
21
  if (networkError) {
14
22
  if ((networkError as ServerError).statusCode === 401) {
15
- console.warn('[Authentication error]:', networkError)
23
+ console.warn('[Quiltt][Authentication Error]:', networkError)
16
24
  GlobalStorage.set('session', null)
17
25
  } else {
18
- console.warn('[Network error]:', networkError)
26
+ console.warn('[Quiltt][Network Error]:', networkError)
19
27
  }
20
28
  }
21
29
  })
@@ -35,7 +35,7 @@ export class ConnectorsAPI {
35
35
  token: string,
36
36
  connectorId: string,
37
37
  term: string,
38
- signal?: AbortSignal,
38
+ signal?: AbortSignal
39
39
  ) => {
40
40
  const params = new URLSearchParams()
41
41
  params.append('term', term)
@@ -46,7 +46,7 @@ export class ConnectorsAPI {
46
46
  method: 'GET',
47
47
  signal,
48
48
  ...this.config(token),
49
- },
49
+ }
50
50
  )
51
51
  return response
52
52
  }
@@ -63,7 +63,7 @@ export class ConnectorsAPI {
63
63
  token: string,
64
64
  connectorId: string,
65
65
  providerId: { plaid?: string; mock?: string; mx?: string; finicity?: string; akoya?: string },
66
- signal?: AbortSignal,
66
+ signal?: AbortSignal
67
67
  ) => {
68
68
  const params = new URLSearchParams()
69
69
 
@@ -78,7 +78,7 @@ export class ConnectorsAPI {
78
78
  method: 'GET',
79
79
  signal,
80
80
  ...this.config(token),
81
- },
81
+ }
82
82
  )
83
83
  return response
84
84
  }