@quiltt/react 3.7.4 → 3.8.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,28 @@
1
1
  # @quiltt/react
2
2
 
3
+ ## 3.8.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#300](https://github.com/quiltt/quiltt-js/pull/300) [`a359810`](https://github.com/quiltt/quiltt-js/commit/a3598104565b4428beef9de37f85211e9caf465b) Thanks [@zubairaziz](https://github.com/zubairaziz)! - Make @quiltt/react-native ESM only
8
+
9
+ - Updated dependencies [[`a359810`](https://github.com/quiltt/quiltt-js/commit/a3598104565b4428beef9de37f85211e9caf465b)]:
10
+ - @quiltt/core@3.8.1
11
+
12
+ ## 3.8.0
13
+
14
+ ### Minor Changes
15
+
16
+ - [#298](https://github.com/quiltt/quiltt-js/pull/298) [`134b294`](https://github.com/quiltt/quiltt-js/commit/134b294019c3bdbccc1f4b5cf9af38d43ea5b3ac) Thanks [@zubairaziz](https://github.com/zubairaziz)! - - Update dependencies
17
+ - Update expo-react-native implementation
18
+ - Reorganize test files
19
+ - Fix security vulnerabilities
20
+
21
+ ### Patch Changes
22
+
23
+ - Updated dependencies [[`134b294`](https://github.com/quiltt/quiltt-js/commit/134b294019c3bdbccc1f4b5cf9af38d43ea5b3ac)]:
24
+ - @quiltt/core@3.8.0
25
+
3
26
  ## 3.7.4
4
27
 
5
28
  ### Patch Changes
@@ -1,11 +1,10 @@
1
- 'use strict';
2
1
  'use client';
3
2
  import require$$0, { useCallback, useEffect } from 'react';
4
3
  import { JsonWebTokenParse, QuilttClient, InMemoryCache as InMemoryCache$1 } from '@quiltt/core';
5
4
  import './useQuilttSettings-client-DU_Qfc8X.js';
6
5
  import './useSession-client-CG5lGS9F.js';
7
6
  import { jsx } from 'react/jsx-runtime';
8
- import { u as useQuilttSession } from './useQuilttSession-client-TRaUyBXB.js';
7
+ import { u as useQuilttSession } from './useQuilttSession-client-xfxBGnbt.js';
9
8
 
10
9
  function _mergeNamespaces(n, m) {
11
10
  m.forEach(function (e) {
@@ -129,7 +128,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
129
128
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
130
129
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
131
130
  PERFORMANCE OF THIS SOFTWARE.
132
- ***************************************************************************** */ /* global Reflect, Promise, SuppressedError, Symbol */ var extendStatics = function(d, b) {
131
+ ***************************************************************************** */ /* global Reflect, Promise, SuppressedError, Symbol, Iterator */ var extendStatics = function(d, b) {
133
132
  extendStatics = Object.setPrototypeOf || ({
134
133
  __proto__: []
135
134
  }) instanceof Array && function(d, b) {
@@ -201,12 +200,8 @@ function __generator(thisArg, body) {
201
200
  },
202
201
  trys: [],
203
202
  ops: []
204
- }, f, y, t, g;
205
- return g = {
206
- next: verb(0),
207
- "throw": verb(1),
208
- "return": verb(2)
209
- }, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
203
+ }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
204
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() {
210
205
  return this;
211
206
  }), g;
212
207
  function verb(n) {
@@ -6951,6 +6946,10 @@ function supportsResultCaching(store) {
6951
6946
  return !!(store instanceof EntityStore && store.group.caching);
6952
6947
  }
6953
6948
 
6949
+ function getDefaultExportFromCjs (x) {
6950
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
6951
+ }
6952
+
6954
6953
  function shallowCopy(value) {
6955
6954
  if (isNonNullObject(value)) {
6956
6955
  return isArray(value) ? value.slice(0) : __assign({
@@ -12594,18 +12593,23 @@ if (globalThis.__DEV__ !== false) {
12594
12593
 
12595
12594
  setVerbosity(globalThis.__DEV__ !== false ? "log" : "silent");
12596
12595
 
12597
- function getDefaultExportFromCjs (x) {
12598
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
12599
- }
12596
+ var rehackt;
12597
+ var hasRequiredRehackt;
12600
12598
 
12601
- var rehackt = require$$0;
12599
+ function requireRehackt () {
12600
+ if (hasRequiredRehackt) return rehackt;
12601
+ hasRequiredRehackt = 1;
12602
+ rehackt = require$$0;
12603
+ return rehackt;
12604
+ }
12602
12605
 
12603
- var index = /*@__PURE__*/getDefaultExportFromCjs(rehackt);
12606
+ var rehacktExports = requireRehackt();
12607
+ var index = /*@__PURE__*/getDefaultExportFromCjs(rehacktExports);
12604
12608
 
12605
12609
  var React = /*#__PURE__*/_mergeNamespaces({
12606
12610
  __proto__: null,
12607
12611
  default: index
12608
- }, [rehackt]);
12612
+ }, [rehacktExports]);
12609
12613
 
12610
12614
  // To make sure Apollo Client doesn't create more than one React context
12611
12615
  // (which can lead to problems like having an Apollo Client instance added
@@ -12614,10 +12618,10 @@ var React = /*#__PURE__*/_mergeNamespaces({
12614
12618
  var contextKey = canUseSymbol ? Symbol.for("__APOLLO_CONTEXT__") : "__APOLLO_CONTEXT__";
12615
12619
  function getApolloContext() {
12616
12620
  invariant("createContext" in React, 45);
12617
- var context = rehackt.createContext[contextKey];
12621
+ var context = rehacktExports.createContext[contextKey];
12618
12622
  if (!context) {
12619
- Object.defineProperty(rehackt.createContext, contextKey, {
12620
- value: context = rehackt.createContext({}),
12623
+ Object.defineProperty(rehacktExports.createContext, contextKey, {
12624
+ value: context = rehacktExports.createContext({}),
12621
12625
  enumerable: false,
12622
12626
  writable: false,
12623
12627
  configurable: true
@@ -12630,8 +12634,8 @@ function getApolloContext() {
12630
12634
  var ApolloProvider = function(_a) {
12631
12635
  var client = _a.client, children = _a.children;
12632
12636
  var ApolloContext = getApolloContext();
12633
- var parentContext = rehackt.useContext(ApolloContext);
12634
- var context = rehackt.useMemo(function() {
12637
+ var parentContext = rehacktExports.useContext(ApolloContext);
12638
+ var context = rehacktExports.useMemo(function() {
12635
12639
  return __assign(__assign({}, parentContext), {
12636
12640
  client: client || parentContext.client
12637
12641
  });
@@ -12640,7 +12644,7 @@ var ApolloProvider = function(_a) {
12640
12644
  client
12641
12645
  ]);
12642
12646
  invariant(context.client, 46);
12643
- return rehackt.createElement(ApolloContext.Provider, {
12647
+ return rehacktExports.createElement(ApolloContext.Provider, {
12644
12648
  value: context
12645
12649
  }, children);
12646
12650
  };
@@ -12660,7 +12664,7 @@ var ApolloProvider = function(_a) {
12660
12664
  * @since 3.0.0
12661
12665
  * @returns The `ApolloClient` instance being used by the application.
12662
12666
  */ function useApolloClient(override) {
12663
- var context = rehackt.useContext(getApolloContext());
12667
+ var context = rehacktExports.useContext(getApolloContext());
12664
12668
  var client = override || context.client;
12665
12669
  invariant(!!client, 49);
12666
12670
  return client;
package/dist/index.js CHANGED
@@ -1,11 +1,11 @@
1
1
  export * from '@quiltt/core';
2
2
  export { u as useEventListener } from './useEventListener-client-DVM5xwKY.js';
3
3
  export { u as useIsomorphicLayoutEffect } from './useIsomorphicLayoutEffect-client-DeTHOKz1.js';
4
- import { Q as QuilttAuthProvider } from './QuilttAuthProvider-client-D-lSeXpV.js';
5
- export { G as GraphQLClient, c as useAuthenticateSession, b as useIdentifySession, a as useImportSession, d as useRevokeSession } from './QuilttAuthProvider-client-D-lSeXpV.js';
6
- export { u as useQuilttClient } from './useQuilttClient-client-CGMZPnRI.js';
7
- import { u as useQuilttConnector } from './useQuilttConnector-client-DO0CdRV1.js';
8
- export { u as useQuilttSession } from './useQuilttSession-client-TRaUyBXB.js';
4
+ import { Q as QuilttAuthProvider } from './QuilttAuthProvider-client-Cp30Hh8M.js';
5
+ export { G as GraphQLClient, c as useAuthenticateSession, b as useIdentifySession, a as useImportSession, d as useRevokeSession } from './QuilttAuthProvider-client-Cp30Hh8M.js';
6
+ export { u as useQuilttClient } from './useQuilttClient-client-DFuCXCBx.js';
7
+ import { u as useQuilttConnector } from './useQuilttConnector-client-65x8U9Mn.js';
8
+ export { u as useQuilttSession } from './useQuilttSession-client-xfxBGnbt.js';
9
9
  export { Q as QuilttSettings, u as useQuilttSettings } from './useQuilttSettings-client-DU_Qfc8X.js';
10
10
  export { u as useSession } from './useSession-client-CG5lGS9F.js';
11
11
  export { u as useStorage } from './useStorage-client-B3keU-oI.js';
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { u as useApolloClient } from './QuilttAuthProvider-client-D-lSeXpV.js';
2
+ import { u as useApolloClient } from './QuilttAuthProvider-client-Cp30Hh8M.js';
3
3
 
4
4
  const useQuilttClient = useApolloClient;
5
5
 
@@ -1,11 +1,11 @@
1
1
  'use client';
2
2
  import { useState, useEffect, useCallback } from 'react';
3
3
  import { cdnBase } from '@quiltt/core';
4
- import { u as useQuilttSession } from './useQuilttSession-client-TRaUyBXB.js';
4
+ import { u as useQuilttSession } from './useQuilttSession-client-xfxBGnbt.js';
5
5
  import { u as useScript } from './useScript-client-Cx5nb9RW.js';
6
6
 
7
7
  // Generated by genversion.
8
- const version = '3.7.4';
8
+ const version = '3.8.1';
9
9
 
10
10
  const useQuilttConnector = (connectorId, options)=>{
11
11
  const status = useScript(`${cdnBase}/v1/connector.js?agent=react-${version}`);
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
  import { useCallback } from 'react';
3
3
  import { AuthAPI } from '@quiltt/core';
4
- import { a as useImportSession, b as useIdentifySession, c as useAuthenticateSession, d as useRevokeSession } from './QuilttAuthProvider-client-D-lSeXpV.js';
4
+ import { a as useImportSession, b as useIdentifySession, c as useAuthenticateSession, d as useRevokeSession } from './QuilttAuthProvider-client-Cp30Hh8M.js';
5
5
  import { u as useQuilttSettings } from './useQuilttSettings-client-DU_Qfc8X.js';
6
6
  import { u as useSession } from './useSession-client-CG5lGS9F.js';
7
7
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quiltt/react",
3
- "version": "3.7.4",
3
+ "version": "3.8.1",
4
4
  "description": "React components and hooks for Quiltt Connector",
5
5
  "keywords": [
6
6
  "quiltt",
@@ -28,8 +28,6 @@
28
28
  "types": "./dist/index.d.ts"
29
29
  }
30
30
  },
31
- "main": "./dist/index.js",
32
- "module": "./dist/index.js",
33
31
  "types": "./dist/index.d.ts",
34
32
  "files": [
35
33
  "dist/**",
@@ -37,23 +35,23 @@
37
35
  "CHANGELOG.md"
38
36
  ],
39
37
  "dependencies": {
40
- "@quiltt/core": "3.7.4"
38
+ "@quiltt/core": "3.8.1"
41
39
  },
42
40
  "devDependencies": {
43
41
  "@apollo/client": "3.9.11",
44
- "@biomejs/biome": "1.8.3",
45
- "@types/node": "22.4.1",
46
- "@types/react": "18.3.3",
47
- "@types/react-dom": "18.3.0",
48
- "bunchee": "5.3.2",
42
+ "@biomejs/biome": "1.9.4",
43
+ "@types/node": "22.9.0",
44
+ "@types/react": "18.3.12",
45
+ "@types/react-dom": "18.3.1",
46
+ "bunchee": "5.6.1",
49
47
  "react": "18.3.1",
50
48
  "react-dom": "18.3.1",
51
49
  "rimraf": "6.0.1",
52
- "typescript": "5.5.4"
50
+ "typescript": "5.6.3"
53
51
  },
54
52
  "peerDependencies": {
55
- "react": "^16.8.0 || ^17.0.0 || ^18.0.0",
56
- "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0"
53
+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
54
+ "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
57
55
  },
58
56
  "publishConfig": {
59
57
  "access": "public"
@@ -63,7 +61,7 @@
63
61
  "build": "pnpm run addVersion && bunchee",
64
62
  "clean": "rimraf .turbo dist",
65
63
  "dev": "bunchee --watch",
66
- "lint": "TIMING=1 biome check src/ --fix",
64
+ "lint": "TIMING=1 biome check src/ tests/ --fix",
67
65
  "typecheck": "tsc --project tsconfig.json --noEmit"
68
66
  }
69
67
  }
package/src/version.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  // Generated by genversion.
2
- export const version = '3.7.4'
2
+ export const version = '3.8.1'