@quiltt/react 4.5.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,14 @@
1
1
  # @quiltt/react
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
+ - Updated dependencies [[`a6a2a7e`](https://github.com/quiltt/quiltt-js/commit/a6a2a7ea94c7204a69b53f191ee738bcdc520a10)]:
10
+ - @quiltt/core@4.5.1
11
+
3
12
  ## 4.5.0
4
13
 
5
14
  ### Minor Changes
package/README.md CHANGED
@@ -7,24 +7,26 @@
7
7
 
8
8
  See the guides [here](https://www.quiltt.dev/connector/sdks/react).
9
9
 
10
+ For general project information and contributing guidelines, see the [main repository README](../../README.md).
11
+
10
12
  ## Installation
11
13
 
12
14
  With `npm`:
13
15
 
14
16
  ```shell
15
- $ npm install @quiltt/react
17
+ npm install @quiltt/react
16
18
  ```
17
19
 
18
20
  With `yarn`:
19
21
 
20
22
  ```shell
21
- $ yarn add @quiltt/react
23
+ yarn add @quiltt/react
22
24
  ```
23
25
 
24
26
  With `pnpm`:
25
27
 
26
28
  ```shell
27
- $ pnpm add @quiltt/react
29
+ pnpm add @quiltt/react
28
30
  ```
29
31
 
30
32
  ## Core Modules and Types
@@ -204,4 +206,9 @@ This project is licensed under the terms of the MIT license. See the [LICENSE](L
204
206
 
205
207
  ## Contributing
206
208
 
207
- For information on how to contribute to this project, please refer to the [CONTRIBUTING.md](CONTRIBUTING.md) file.
209
+ For information on how to contribute to this project, please refer to the [repository contributing guidelines](../../CONTRIBUTING.md).
210
+
211
+ ## Related Packages
212
+
213
+ - [`@quiltt/core`](../core#readme) - Essential functionality and types
214
+ - [`@quiltt/react-native`](../react-native#readme) - React Native and Expo components
@@ -8,7 +8,7 @@ import 'use-debounce';
8
8
  import './QuilttProviderRender-12s-DtQtubjL.js';
9
9
  import { jsx } from 'react/jsx-runtime';
10
10
  import { ApolloProvider } from '@apollo/client/react/context/ApolloProvider.js';
11
- import { u as useQuilttSession } from './useQuilttSession-12s-D10t5Wfh.js';
11
+ import { u as useQuilttSession } from './useQuilttSession-12s-sRvULtJv.js';
12
12
 
13
13
  const useAuthenticateSession = (auth, setSession)=>{
14
14
  const authenticateSession = useCallback(async (payload, callbacks)=>{
@@ -166,7 +166,7 @@ const useRevokeSession = (auth, session, setSession)=>{
166
166
  */ const QuilttAuthProvider = ({ graphqlClient, token, children })=>{
167
167
  const { session, importSession } = useQuilttSession();
168
168
  const previousSessionRef = useRef(session);
169
- const previousTokenRef = useRef();
169
+ const previousTokenRef = useRef(undefined);
170
170
  // Memoize the client to avoid unnecessary re-renders
171
171
  const apolloClient = useMemo(()=>graphqlClient || new QuilttClient({
172
172
  cache: new InMemoryCache()
package/dist/index.js CHANGED
@@ -1,16 +1,16 @@
1
1
  export * from '@quiltt/core';
2
2
  import { jsx } from 'react/jsx-runtime';
3
3
  import { useRef, useEffect } from 'react';
4
- import { u as useQuilttConnector } from './useQuilttConnector-12s-7jon0A8C.js';
5
- import { u as useQuilttRenderGuard } from './useQuilttRenderGuard-12s-BbUitnF1.js';
6
- import { i as isDeepEqual, Q as QuilttAuthProvider } from './QuilttAuthProvider-12s-BCpwSX-3.js';
7
- export { b as useAuthenticateSession, a as useIdentifySession, u as useImportSession, c as useRevokeSession } from './QuilttAuthProvider-12s-BCpwSX-3.js';
4
+ import { u as useQuilttConnector } from './useQuilttConnector-12s-D8VedbrT.js';
5
+ import { u as useQuilttRenderGuard } from './useQuilttRenderGuard-12s-CsS2Ma6Q.js';
6
+ import { i as isDeepEqual, Q as QuilttAuthProvider } from './QuilttAuthProvider-12s-DE-ePRo_.js';
7
+ export { b as useAuthenticateSession, a as useIdentifySession, u as useImportSession, c as useRevokeSession } from './QuilttAuthProvider-12s-DE-ePRo_.js';
8
8
  export { u as useEventListener } from './useEventListener-12s-D_-6QIXa.js';
9
9
  export { u as useIsomorphicLayoutEffect } from './useIsomorphicLayoutEffect-12s-DeTHOKz1.js';
10
10
  export { u as useQuilttClient } from './useQuilttClient-12s-CAAUait1.js';
11
- export { u as useQuilttInstitutions } from './useQuilttInstitutions-12s-Ca5smTKo.js';
12
- export { u as useQuilttResolvable } from './useQuilttResolvable-12s-CNvWZe0V.js';
13
- export { u as useQuilttSession } from './useQuilttSession-12s-D10t5Wfh.js';
11
+ export { u as useQuilttInstitutions } from './useQuilttInstitutions-12s-DExzPnfb.js';
12
+ export { u as useQuilttResolvable } from './useQuilttResolvable-12s-C0BV3AvR.js';
13
+ export { u as useQuilttSession } from './useQuilttSession-12s-sRvULtJv.js';
14
14
  export { u as useQuilttSettings } from './useQuilttSettings-12s--rCJoNHD.js';
15
15
  export { u as useSession } from './useSession-12s-7GOn4sUn.js';
16
16
  export { u as useStorage } from './useStorage-12s-DHcq3Kuh.js';
@@ -1,11 +1,11 @@
1
1
  'use client';
2
2
  import { useState, useRef, useEffect, useCallback } from 'react';
3
3
  import { cdnBase } from '@quiltt/core';
4
- import { u as useQuilttSession } from './useQuilttSession-12s-D10t5Wfh.js';
4
+ import { u as useQuilttSession } from './useQuilttSession-12s-sRvULtJv.js';
5
5
  import { u as useScript } from './useScript-12s-JCgaTW9n.js';
6
- import { i as isDeepEqual } from './QuilttAuthProvider-12s-BCpwSX-3.js';
6
+ import { i as isDeepEqual } from './QuilttAuthProvider-12s-DE-ePRo_.js';
7
7
 
8
- var version = "4.5.0";
8
+ var version = "4.5.1";
9
9
 
10
10
  const useQuilttConnector = (connectorId, options)=>{
11
11
  const status = useScript(`${cdnBase}/v1/connector.js?agent=react-${version}`, {
@@ -2,7 +2,7 @@
2
2
  import { useMemo, useState, useRef, useEffect, useCallback } from 'react';
3
3
  import { ConnectorsAPI } from '@quiltt/core';
4
4
  import { useDebounce } from 'use-debounce';
5
- import { v as version } from './useQuilttConnector-12s-7jon0A8C.js';
5
+ import { v as version } from './useQuilttConnector-12s-D8VedbrT.js';
6
6
  import { u as useSession } from './useSession-12s-7GOn4sUn.js';
7
7
 
8
8
  const useQuilttInstitutions = (connectorId, onErrorCallback)=>{
@@ -21,8 +21,7 @@ import { Q as QuilttProviderRender } from './QuilttProviderRender-12s-DtQtubjL.j
21
21
  const hasWarnedRef = useRef(false);
22
22
  useEffect(()=>{
23
23
  // Only run in development mode and warn once per component instance
24
- // Support both Node.js (process.env) and Vite (import.meta.env) environments
25
- const isProduction = process.env.NODE_ENV === 'production' || typeof import.meta !== 'undefined' && import.meta.env?.PROD;
24
+ const isProduction = process.env.NODE_ENV === 'production';
26
25
  if (isProduction) return;
27
26
  if (isRenderingProvider && !hasWarnedRef.current) {
28
27
  hasWarnedRef.current = true;
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
  import { useMemo, useState, useRef, useEffect, useCallback } from 'react';
3
3
  import { ConnectorsAPI } from '@quiltt/core';
4
- import { v as version } from './useQuilttConnector-12s-7jon0A8C.js';
4
+ import { v as version } from './useQuilttConnector-12s-D8VedbrT.js';
5
5
  import { u as useSession } from './useSession-12s-7GOn4sUn.js';
6
6
 
7
7
  const useQuilttResolvable = (connectorId, onErrorCallback)=>{
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
  import { useMemo, useCallback } from 'react';
3
3
  import { AuthAPI } from '@quiltt/core';
4
- import { u as useImportSession, a as useIdentifySession, b as useAuthenticateSession, c as useRevokeSession } from './QuilttAuthProvider-12s-BCpwSX-3.js';
4
+ import { u as useImportSession, a as useIdentifySession, b as useAuthenticateSession, c as useRevokeSession } from './QuilttAuthProvider-12s-DE-ePRo_.js';
5
5
  import { u as useQuilttSettings } from './useQuilttSettings-12s--rCJoNHD.js';
6
6
  import { u as useSession } from './useSession-12s-7GOn4sUn.js';
7
7
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quiltt/react",
3
- "version": "4.5.0",
3
+ "version": "4.5.1",
4
4
  "description": "React Components and Hooks for Quiltt Connector",
5
5
  "keywords": [
6
6
  "quiltt",
@@ -36,18 +36,18 @@
36
36
  "dependencies": {
37
37
  "@apollo/client": "^3.14.0",
38
38
  "use-debounce": "^10.0.4",
39
- "@quiltt/core": "4.5.0"
39
+ "@quiltt/core": "4.5.1"
40
40
  },
41
41
  "devDependencies": {
42
- "@biomejs/biome": "2.2.4",
43
- "@types/node": "22.18.6",
44
- "@types/react": "18.3.23",
45
- "@types/react-dom": "18.3.7",
46
- "bunchee": "6.6.0",
47
- "react": "18.3.1",
48
- "react-dom": "18.3.1",
49
- "rimraf": "6.0.1",
50
- "typescript": "5.9.2"
42
+ "@biomejs/biome": "2.3.8",
43
+ "@types/node": "22.19.2",
44
+ "@types/react": "19.2.7",
45
+ "@types/react-dom": "19.2.3",
46
+ "bunchee": "6.6.2",
47
+ "react": "19.2.3",
48
+ "react-dom": "19.2.3",
49
+ "rimraf": "6.1.2",
50
+ "typescript": "5.9.3"
51
51
  },
52
52
  "peerDependencies": {
53
53
  "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
@@ -25,10 +25,7 @@ export const useQuilttRenderGuard = (componentName: string) => {
25
25
 
26
26
  useEffect(() => {
27
27
  // Only run in development mode and warn once per component instance
28
- // Support both Node.js (process.env) and Vite (import.meta.env) environments
29
- const isProduction =
30
- process.env.NODE_ENV === 'production' ||
31
- (typeof import.meta !== 'undefined' && (import.meta as any).env?.PROD)
28
+ const isProduction = process.env.NODE_ENV === 'production'
32
29
 
33
30
  if (isProduction) return
34
31
 
@@ -29,7 +29,7 @@ export const QuilttAuthProvider: FC<QuilttAuthProviderProps> = ({
29
29
  }) => {
30
30
  const { session, importSession } = useQuilttSession()
31
31
  const previousSessionRef = useRef(session)
32
- const previousTokenRef = useRef<string | undefined>()
32
+ const previousTokenRef = useRef<string | undefined>(undefined)
33
33
 
34
34
  // Memoize the client to avoid unnecessary re-renders
35
35
  const apolloClient = useMemo(