@cedarjs/web 0.1.1-next.0 → 0.1.2-next.95
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/dist/apollo/suspense.d.ts +3 -2
- package/dist/apollo/suspense.d.ts.map +1 -1
- package/dist/cjs/apollo/suspense.d.ts +3 -2
- package/dist/cjs/apollo/suspense.d.ts.map +1 -1
- package/dist/cjs/bundled/apollo-upload-client.js +8 -8
- package/dist/cjs/graphql.d.ts +2 -3
- package/dist/cjs/graphql.d.ts.map +1 -1
- package/dist/graphql.d.ts +2 -3
- package/dist/graphql.d.ts.map +1 -1
- package/package.json +16 -16
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type {
|
|
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?:
|
|
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":"
|
|
1
|
+
{"version":3,"file":"suspense.d.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|
|
2
|
-
import type {
|
|
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?:
|
|
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":"
|
|
1
|
+
{"version":3,"file":"suspense.d.ts","sourceRoot":"","sources":["../../../src/apollo/suspense.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAqB,MAAM,OAAO,CAAA;AAEzC,OAAO,KAAK,EACV,mBAAmB,EACnB,UAAU,EACV,WAAW,EACX,mBAAmB,EACnB,eAAe,EAChB,MAAM,gBAAgB,CAAA;AAUvB,OAAO,EAEL,aAAa,EAEd,MAAM,gCAAgC,CAAA;AAGvC,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,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"}
|
|
@@ -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.
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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 =
|
|
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 =
|
|
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 =
|
|
2233
|
+
var normalizedHeaders = {};
|
|
2234
2234
|
Object.keys(headerData).forEach(function(name) {
|
|
2235
2235
|
normalizedHeaders[headerData[name].originalName] = headerData[name].value;
|
|
2236
2236
|
});
|
package/dist/cjs/graphql.d.ts
CHANGED
|
@@ -16,9 +16,8 @@ import { type DocumentNode } from 'graphql';
|
|
|
16
16
|
* `
|
|
17
17
|
* ```
|
|
18
18
|
*
|
|
19
|
-
* @param
|
|
20
|
-
*
|
|
21
|
-
* @returns {string} empty string if no operation name could be found
|
|
19
|
+
* @param document GraphQL query or mutation to get the operation name for
|
|
20
|
+
* @returns empty string if no operation name could be found
|
|
22
21
|
*/
|
|
23
22
|
export declare function getOperationName(document: DocumentNode): string;
|
|
24
23
|
//# sourceMappingURL=graphql.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graphql.d.ts","sourceRoot":"","sources":["../../src/graphql.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,YAAY,EAAE,MAAM,SAAS,CAAA;AAEjD
|
|
1
|
+
{"version":3,"file":"graphql.d.ts","sourceRoot":"","sources":["../../src/graphql.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,YAAY,EAAE,MAAM,SAAS,CAAA;AAEjD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,YAAY,UAWtD"}
|
package/dist/graphql.d.ts
CHANGED
|
@@ -16,9 +16,8 @@ import { type DocumentNode } from 'graphql';
|
|
|
16
16
|
* `
|
|
17
17
|
* ```
|
|
18
18
|
*
|
|
19
|
-
* @param
|
|
20
|
-
*
|
|
21
|
-
* @returns {string} empty string if no operation name could be found
|
|
19
|
+
* @param document GraphQL query or mutation to get the operation name for
|
|
20
|
+
* @returns empty string if no operation name could be found
|
|
22
21
|
*/
|
|
23
22
|
export declare function getOperationName(document: DocumentNode): string;
|
|
24
23
|
//# sourceMappingURL=graphql.d.ts.map
|
package/dist/graphql.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graphql.d.ts","sourceRoot":"","sources":["../src/graphql.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,YAAY,EAAE,MAAM,SAAS,CAAA;AAEjD
|
|
1
|
+
{"version":3,"file":"graphql.d.ts","sourceRoot":"","sources":["../src/graphql.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,YAAY,EAAE,MAAM,SAAS,CAAA;AAEjD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,YAAY,UAWtD"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cedarjs/web",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2-next.95+a711c9cda",
|
|
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.
|
|
145
|
-
"@babel/runtime-corejs3": "7.27.
|
|
146
|
-
"@cedarjs/auth": "0.1.
|
|
147
|
-
"@cedarjs/server-store": "0.1.
|
|
144
|
+
"@apollo/client": "3.13.8",
|
|
145
|
+
"@babel/runtime-corejs3": "7.27.6",
|
|
146
|
+
"@cedarjs/auth": "0.1.2-next.95+a711c9cda",
|
|
147
|
+
"@cedarjs/server-store": "0.1.2-next.95+a711c9cda",
|
|
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.
|
|
162
|
-
"@arethetypeswrong/cli": "0.
|
|
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
|
-
"@babel/plugin-transform-runtime": "7.27.
|
|
166
|
-
"@babel/runtime": "7.27.
|
|
167
|
-
"@cedarjs/framework-tools": "0.1.
|
|
168
|
-
"@cedarjs/internal": "0.1.
|
|
165
|
+
"@babel/plugin-transform-runtime": "7.27.4",
|
|
166
|
+
"@babel/runtime": "7.27.6",
|
|
167
|
+
"@cedarjs/framework-tools": "0.1.2-next.95",
|
|
168
|
+
"@cedarjs/internal": "0.1.2-next.95+a711c9cda",
|
|
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",
|
|
@@ -173,14 +173,14 @@
|
|
|
173
173
|
"@types/react": "^18.2.55",
|
|
174
174
|
"@types/react-dom": "^18.2.19",
|
|
175
175
|
"concurrently": "8.2.2",
|
|
176
|
-
"nodemon": "3.1.
|
|
177
|
-
"publint": "0.3.
|
|
176
|
+
"nodemon": "3.1.10",
|
|
177
|
+
"publint": "0.3.12",
|
|
178
178
|
"react": "18.3.1",
|
|
179
179
|
"react-dom": "18.3.1",
|
|
180
180
|
"tstyche": "3.0.0",
|
|
181
|
-
"tsx": "4.19.
|
|
181
|
+
"tsx": "4.19.4",
|
|
182
182
|
"typescript": "5.6.2",
|
|
183
|
-
"vitest": "2.
|
|
183
|
+
"vitest": "3.2.4"
|
|
184
184
|
},
|
|
185
185
|
"peerDependencies": {
|
|
186
186
|
"react": "18.3.1",
|
|
@@ -189,5 +189,5 @@
|
|
|
189
189
|
"publishConfig": {
|
|
190
190
|
"access": "public"
|
|
191
191
|
},
|
|
192
|
-
"gitHead": "
|
|
192
|
+
"gitHead": "a711c9cda09da9444fb0f6ff5d9dae804d6ba72b"
|
|
193
193
|
}
|