@cedarjs/web 0.1.0 → 0.1.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.
@@ -1,12 +1,13 @@
1
1
  import React from 'react';
2
- import type { ApolloCache, ApolloClientOptions, ApolloLink, HttpOptions, InMemoryCacheConfig, setLogVerbosity } from '@apollo/client';
2
+ import type { ApolloClientOptions, ApolloLink, HttpOptions, InMemoryCacheConfig, setLogVerbosity } from '@apollo/client';
3
+ import { InMemoryCache } from '@apollo/client-react-streaming';
3
4
  import type { UseAuth } from '@cedarjs/auth';
4
5
  import './typeOverride.js';
5
6
  import type { RedwoodApolloLink, RedwoodApolloLinkFactory, RedwoodApolloLinkName, RedwoodApolloLinks } from './links.js';
6
7
  export type ApolloClientCacheConfig = InMemoryCacheConfig;
7
8
  export type { RedwoodApolloLink, RedwoodApolloLinkFactory, RedwoodApolloLinkName, RedwoodApolloLinks, };
8
9
  export type GraphQLClientConfigProp = Omit<ApolloClientOptions<unknown>, 'cache' | 'link'> & {
9
- cache?: ApolloCache<unknown>;
10
+ cache?: InMemoryCache;
10
11
  /**
11
12
  * Configuration for Apollo Client's `InMemoryCache`.
12
13
  * See https://www.apollographql.com/docs/react/caching/cache-configuration/.
@@ -1 +1 @@
1
- {"version":3,"file":"suspense.d.ts","sourceRoot":"","sources":["../../src/apollo/suspense.tsx"],"names":[],"mappings":"AASA,OAAO,KAAqB,MAAM,OAAO,CAAA;AAEzC,OAAO,KAAK,EACV,WAAW,EACX,mBAAmB,EACnB,UAAU,EACV,WAAW,EACX,mBAAmB,EACnB,eAAe,EAChB,MAAM,gBAAgB,CAAA;AAiBvB,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AAG5C,OAAO,mBAAmB,CAAA;AAS1B,OAAO,KAAK,EACV,iBAAiB,EACjB,wBAAwB,EACxB,qBAAqB,EACrB,kBAAkB,EACnB,MAAM,YAAY,CAAA;AASnB,MAAM,MAAM,uBAAuB,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,mBAAmB,CAAA;AAEzD,YAAY,EACV,iBAAiB,EACjB,wBAAwB,EACxB,qBAAqB,EACrB,kBAAkB,GACnB,CAAA;AAED,MAAM,MAAM,uBAAuB,GAAG,IAAI,CACxC,mBAAmB,CAAC,OAAO,CAAC,EAC5B,OAAO,GAAG,MAAM,CACjB,GAAG;IACF,KAAK,CAAC,EAAE,aAAa,CAAA;IACrB;;;OAGG;IACH,WAAW,CAAC,EAAE,uBAAuB,CAAA;IACrC;;;;;;;;;;;OAWG;IACH,cAAc,CAAC,EAAE,WAAW,CAAA;IAC5B;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,IAAI,CAAC,EAAE,UAAU,GAAG,wBAAwB,CAAA;CAC7C,CAAA;AAkFD,eAAO,MAAM,qBAAqB,EAAE,KAAK,CAAC,iBAAiB,CAAC;IAC1D,mBAAmB,CAAC,EAAE,uBAAuB,CAAA;IAC7C,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,QAAQ,CAAC,EAAE,UAAU,CAAC,OAAO,eAAe,CAAC,CAAA;IAC7C,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAC1B,CAoCA,CAAA"}
@@ -1,12 +1,13 @@
1
1
  import React from 'react';
2
- import type { ApolloCache, ApolloClientOptions, ApolloLink, HttpOptions, InMemoryCacheConfig, setLogVerbosity } from '@apollo/client';
2
+ import type { ApolloClientOptions, ApolloLink, HttpOptions, InMemoryCacheConfig, setLogVerbosity } from '@apollo/client';
3
+ import { InMemoryCache } from '@apollo/client-react-streaming';
3
4
  import type { UseAuth } from '@cedarjs/auth';
4
5
  import './typeOverride.js';
5
6
  import type { RedwoodApolloLink, RedwoodApolloLinkFactory, RedwoodApolloLinkName, RedwoodApolloLinks } from './links.js';
6
7
  export type ApolloClientCacheConfig = InMemoryCacheConfig;
7
8
  export type { RedwoodApolloLink, RedwoodApolloLinkFactory, RedwoodApolloLinkName, RedwoodApolloLinks, };
8
9
  export type GraphQLClientConfigProp = Omit<ApolloClientOptions<unknown>, 'cache' | 'link'> & {
9
- cache?: ApolloCache<unknown>;
10
+ cache?: InMemoryCache;
10
11
  /**
11
12
  * Configuration for Apollo Client's `InMemoryCache`.
12
13
  * See https://www.apollographql.com/docs/react/caching/cache-configuration/.
@@ -1 +1 @@
1
- {"version":3,"file":"suspense.d.ts","sourceRoot":"","sources":["../../../src/apollo/suspense.tsx"],"names":[],"mappings":"AASA,OAAO,KAAqB,MAAM,OAAO,CAAA;AAEzC,OAAO,KAAK,EACV,WAAW,EACX,mBAAmB,EACnB,UAAU,EACV,WAAW,EACX,mBAAmB,EACnB,eAAe,EAChB,MAAM,gBAAgB,CAAA;AAiBvB,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AAG5C,OAAO,mBAAmB,CAAA;AAS1B,OAAO,KAAK,EACV,iBAAiB,EACjB,wBAAwB,EACxB,qBAAqB,EACrB,kBAAkB,EACnB,MAAM,YAAY,CAAA;AASnB,MAAM,MAAM,uBAAuB,GAAG,mBAAmB,CAAA;AAEzD,YAAY,EACV,iBAAiB,EACjB,wBAAwB,EACxB,qBAAqB,EACrB,kBAAkB,GACnB,CAAA;AAED,MAAM,MAAM,uBAAuB,GAAG,IAAI,CACxC,mBAAmB,CAAC,OAAO,CAAC,EAC5B,OAAO,GAAG,MAAM,CACjB,GAAG;IACF,KAAK,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,CAAA;IAC5B;;;OAGG;IACH,WAAW,CAAC,EAAE,uBAAuB,CAAA;IACrC;;;;;;;;;;;OAWG;IACH,cAAc,CAAC,EAAE,WAAW,CAAA;IAC5B;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,IAAI,CAAC,EAAE,UAAU,GAAG,wBAAwB,CAAA;CAC7C,CAAA;AAkFD,eAAO,MAAM,qBAAqB,EAAE,KAAK,CAAC,iBAAiB,CAAC;IAC1D,mBAAmB,CAAC,EAAE,uBAAuB,CAAA;IAC7C,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB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AU,CAAC,OAAO,eAAe,CAAC,CAAA;IAC7C,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAC1B,CAoCA,CAAA"}
@@ -109,7 +109,7 @@ function wrapConsoleMethod(name) {
109
109
  })(invariant || (invariant = {}));
110
110
 
111
111
  // ../../node_modules/@apollo/client/version.js
112
- var version = "3.11.1";
112
+ var version = "3.13.8";
113
113
 
114
114
  // ../../node_modules/@apollo/client/utilities/globals/maybe.js
115
115
  function maybe(thunk) {
@@ -1913,7 +1913,7 @@ function validateOperation(operation) {
1913
1913
  for (var _i = 0, _a2 = Object.keys(operation); _i < _a2.length; _i++) {
1914
1914
  var key = _a2[_i];
1915
1915
  if (OPERATION_FIELDS.indexOf(key) < 0) {
1916
- throw newInvariantError(43, key);
1916
+ throw newInvariantError(46, key);
1917
1917
  }
1918
1918
  }
1919
1919
  return operation;
@@ -2007,7 +2007,7 @@ var ApolloLink = (
2007
2007
  ApolloLink2.concat = function(first, second) {
2008
2008
  var firstLink = toLink(first);
2009
2009
  if (isTerminating(firstLink)) {
2010
- globalThis.__DEV__ !== false && invariant2.warn(35, firstLink);
2010
+ globalThis.__DEV__ !== false && invariant2.warn(38, firstLink);
2011
2011
  return firstLink;
2012
2012
  }
2013
2013
  var nextLink = toLink(second);
@@ -2034,7 +2034,7 @@ var ApolloLink = (
2034
2034
  return ApolloLink2.concat(this, next);
2035
2035
  };
2036
2036
  ApolloLink2.prototype.request = function(operation, forward) {
2037
- throw newInvariantError(36);
2037
+ throw newInvariantError(39);
2038
2038
  };
2039
2039
  ApolloLink2.prototype.onError = function(error, observer) {
2040
2040
  if (observer && observer.error) {
@@ -2105,7 +2105,7 @@ var serializeFetchParameter = function(p, label) {
2105
2105
  try {
2106
2106
  serialized = JSON.stringify(p);
2107
2107
  } catch (e) {
2108
- var parseError = newInvariantError(39, label, e.message);
2108
+ var parseError = newInvariantError(42, label, e.message);
2109
2109
  parseError.parseError = e;
2110
2110
  throw parseError;
2111
2111
  }
@@ -2217,20 +2217,20 @@ function selectHttpOptionsAndBodyInternal(operation, printer) {
2217
2217
  }
2218
2218
  function removeDuplicateHeaders(headers, preserveHeaderCase) {
2219
2219
  if (!preserveHeaderCase) {
2220
- var normalizedHeaders_1 = /* @__PURE__ */ Object.create(null);
2220
+ var normalizedHeaders_1 = {};
2221
2221
  Object.keys(Object(headers)).forEach(function(name) {
2222
2222
  normalizedHeaders_1[name.toLowerCase()] = headers[name];
2223
2223
  });
2224
2224
  return normalizedHeaders_1;
2225
2225
  }
2226
- var headerData = /* @__PURE__ */ Object.create(null);
2226
+ var headerData = {};
2227
2227
  Object.keys(Object(headers)).forEach(function(name) {
2228
2228
  headerData[name.toLowerCase()] = {
2229
2229
  originalName: name,
2230
2230
  value: headers[name]
2231
2231
  };
2232
2232
  });
2233
- var normalizedHeaders = /* @__PURE__ */ Object.create(null);
2233
+ var normalizedHeaders = {};
2234
2234
  Object.keys(headerData).forEach(function(name) {
2235
2235
  normalizedHeaders[headerData[name].originalName] = headerData[name].value;
2236
2236
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cedarjs/web",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/cedarjs/cedar.git",
@@ -141,10 +141,10 @@
141
141
  "test:watch": "vitest watch"
142
142
  },
143
143
  "dependencies": {
144
- "@apollo/client": "3.11.1",
144
+ "@apollo/client": "3.13.8",
145
145
  "@babel/runtime-corejs3": "7.27.1",
146
- "@cedarjs/auth": "0.1.0",
147
- "@cedarjs/server-store": "0.1.0",
146
+ "@cedarjs/auth": "0.1.1",
147
+ "@cedarjs/server-store": "0.1.1",
148
148
  "@whatwg-node/fetch": "0.9.21",
149
149
  "apollo-upload-client": "18.0.1",
150
150
  "cookie": "0.7.2",
@@ -158,14 +158,14 @@
158
158
  "ts-toolbelt": "9.6.0"
159
159
  },
160
160
  "devDependencies": {
161
- "@apollo/client-react-streaming": "0.10.0",
162
- "@arethetypeswrong/cli": "0.16.4",
161
+ "@apollo/client-react-streaming": "0.12.2",
162
+ "@arethetypeswrong/cli": "0.18.1",
163
163
  "@babel/cli": "7.27.2",
164
164
  "@babel/core": "^7.26.10",
165
165
  "@babel/plugin-transform-runtime": "7.27.1",
166
166
  "@babel/runtime": "7.27.1",
167
- "@cedarjs/framework-tools": "0.1.0",
168
- "@cedarjs/internal": "0.1.0",
167
+ "@cedarjs/framework-tools": "0.1.1",
168
+ "@cedarjs/internal": "0.1.1",
169
169
  "@rollup/plugin-babel": "6.0.4",
170
170
  "@testing-library/jest-dom": "6.5.0",
171
171
  "@testing-library/react": "14.3.1",
@@ -174,7 +174,7 @@
174
174
  "@types/react-dom": "^18.2.19",
175
175
  "concurrently": "8.2.2",
176
176
  "nodemon": "3.1.9",
177
- "publint": "0.3.11",
177
+ "publint": "0.3.12",
178
178
  "react": "18.3.1",
179
179
  "react-dom": "18.3.1",
180
180
  "tstyche": "3.0.0",
@@ -189,5 +189,5 @@
189
189
  "publishConfig": {
190
190
  "access": "public"
191
191
  },
192
- "gitHead": "d0ad667311853ab79b34d52da6eeeb42a155fdbb"
192
+ "gitHead": "87e486de4e0bced95a0441f3bbe4977508b161e9"
193
193
  }