@cedarjs/web 0.7.1 → 0.7.2-next.49
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.
|
@@ -71,7 +71,7 @@ var setPrototypeOf = _a === void 0 ? function(obj, proto) {
|
|
|
71
71
|
} : _a;
|
|
72
72
|
var InvariantError = (
|
|
73
73
|
/** @class */
|
|
74
|
-
function(_super) {
|
|
74
|
+
(function(_super) {
|
|
75
75
|
__extends(InvariantError2, _super);
|
|
76
76
|
function InvariantError2(message) {
|
|
77
77
|
if (message === void 0) {
|
|
@@ -84,7 +84,7 @@ var InvariantError = (
|
|
|
84
84
|
return _this;
|
|
85
85
|
}
|
|
86
86
|
return InvariantError2;
|
|
87
|
-
}(Error)
|
|
87
|
+
})(Error)
|
|
88
88
|
);
|
|
89
89
|
function invariant(condition, message) {
|
|
90
90
|
if (!condition) {
|
|
@@ -1507,7 +1507,7 @@ function onNotify(subscription, type, value) {
|
|
|
1507
1507
|
}
|
|
1508
1508
|
notifySubscription(subscription, type, value);
|
|
1509
1509
|
}
|
|
1510
|
-
var Subscription = /* @__PURE__ */ function() {
|
|
1510
|
+
var Subscription = /* @__PURE__ */ (function() {
|
|
1511
1511
|
function Subscription2(observer, subscriber) {
|
|
1512
1512
|
this._cleanup = void 0;
|
|
1513
1513
|
this._observer = observer;
|
|
@@ -1535,8 +1535,8 @@ var Subscription = /* @__PURE__ */ function() {
|
|
|
1535
1535
|
}
|
|
1536
1536
|
}]);
|
|
1537
1537
|
return Subscription2;
|
|
1538
|
-
}();
|
|
1539
|
-
var SubscriptionObserver = /* @__PURE__ */ function() {
|
|
1538
|
+
})();
|
|
1539
|
+
var SubscriptionObserver = /* @__PURE__ */ (function() {
|
|
1540
1540
|
function SubscriptionObserver2(subscription) {
|
|
1541
1541
|
this._subscription = subscription;
|
|
1542
1542
|
}
|
|
@@ -1557,8 +1557,8 @@ var SubscriptionObserver = /* @__PURE__ */ function() {
|
|
|
1557
1557
|
}
|
|
1558
1558
|
}]);
|
|
1559
1559
|
return SubscriptionObserver2;
|
|
1560
|
-
}();
|
|
1561
|
-
var Observable = /* @__PURE__ */ function() {
|
|
1560
|
+
})();
|
|
1561
|
+
var Observable = /* @__PURE__ */ (function() {
|
|
1562
1562
|
function Observable2(subscriber) {
|
|
1563
1563
|
if (!(this instanceof Observable2)) throw new TypeError("Observable cannot be called as a function");
|
|
1564
1564
|
if (typeof subscriber !== "function") throw new TypeError("Observable initializer must be a function");
|
|
@@ -1832,7 +1832,7 @@ var Observable = /* @__PURE__ */ function() {
|
|
|
1832
1832
|
}
|
|
1833
1833
|
}]);
|
|
1834
1834
|
return Observable2;
|
|
1835
|
-
}();
|
|
1835
|
+
})();
|
|
1836
1836
|
if (hasSymbols()) {
|
|
1837
1837
|
Object.defineProperty(Observable, Symbol("extensions"), {
|
|
1838
1838
|
value: {
|
|
@@ -1969,7 +1969,7 @@ function isTerminating(link) {
|
|
|
1969
1969
|
}
|
|
1970
1970
|
var ApolloLink = (
|
|
1971
1971
|
/** @class */
|
|
1972
|
-
function() {
|
|
1972
|
+
(function() {
|
|
1973
1973
|
function ApolloLink2(request) {
|
|
1974
1974
|
if (request)
|
|
1975
1975
|
this.request = request;
|
|
@@ -2048,7 +2048,7 @@ var ApolloLink = (
|
|
|
2048
2048
|
return this;
|
|
2049
2049
|
};
|
|
2050
2050
|
return ApolloLink2;
|
|
2051
|
-
}()
|
|
2051
|
+
})()
|
|
2052
2052
|
);
|
|
2053
2053
|
|
|
2054
2054
|
// ../../node_modules/@apollo/client/link/http/createSignalIfSupported.js
|
|
@@ -40,9 +40,9 @@ import_vitest.vi.mock("@apollo/client/react/hooks/hooks.cjs", () => {
|
|
|
40
40
|
(0, import_dev.loadDevMessages)();
|
|
41
41
|
(0, import_dev.loadErrorMessages)();
|
|
42
42
|
});
|
|
43
|
-
const mockedUseBgQuery = () => {
|
|
43
|
+
const mockedUseBgQuery = (() => {
|
|
44
44
|
return ["mocked-query-ref", { refetch: import_vitest.vi.fn(), fetchMore: import_vitest.vi.fn() }];
|
|
45
|
-
};
|
|
45
|
+
});
|
|
46
46
|
const mockedQueryHook = () => ({ data: {} });
|
|
47
47
|
(0, import_vitest.test)("Renders a static Success component", () => {
|
|
48
48
|
const TestCell = (0, import_createSuspendingCell.createSuspendingCell)({
|
|
@@ -68,9 +68,9 @@ import_vitest.vi.mock("@apollo/client/react/hooks/hooks.cjs", () => {
|
|
|
68
68
|
QUERY: "query TestQuery { answer }",
|
|
69
69
|
Success: ({ answer }) => /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement("dl", null, /* @__PURE__ */ import_react.default.createElement("dt", null, "What's the meaning of life?"), /* @__PURE__ */ import_react.default.createElement("dd", null, answer)))
|
|
70
70
|
});
|
|
71
|
-
const myUseQueryHook = () => {
|
|
71
|
+
const myUseQueryHook = (() => {
|
|
72
72
|
return { data: { answer: 42 } };
|
|
73
|
-
};
|
|
73
|
+
});
|
|
74
74
|
(0, import_react2.render)(
|
|
75
75
|
/* @__PURE__ */ import_react.default.createElement(
|
|
76
76
|
import_GraphQLHooksProvider.GraphQLHooksProvider,
|
|
@@ -91,14 +91,14 @@ import_vitest.vi.mock("@apollo/client/react/hooks/hooks.cjs", () => {
|
|
|
91
91
|
Empty: () => /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, "No users or posts"),
|
|
92
92
|
Success: ({ users, posts }) => /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement("div", null, users.length > 0 ? /* @__PURE__ */ import_react.default.createElement("ul", null, users.map(({ name }) => /* @__PURE__ */ import_react.default.createElement("li", { key: name }, name))) : "no users"), /* @__PURE__ */ import_react.default.createElement("div", null, posts.length > 0 ? /* @__PURE__ */ import_react.default.createElement("ul", null, posts.map(({ title }) => /* @__PURE__ */ import_react.default.createElement("li", { key: title }, title))) : "no posts"))
|
|
93
93
|
});
|
|
94
|
-
const myReadQueryHook = () => {
|
|
94
|
+
const myReadQueryHook = (() => {
|
|
95
95
|
return {
|
|
96
96
|
data: {
|
|
97
97
|
users: [],
|
|
98
98
|
posts: [{ title: "bazinga" }, { title: "kittens" }]
|
|
99
99
|
}
|
|
100
100
|
};
|
|
101
|
-
};
|
|
101
|
+
});
|
|
102
102
|
(0, import_react2.render)(
|
|
103
103
|
/* @__PURE__ */ import_react.default.createElement(
|
|
104
104
|
import_GraphQLHooksProvider.GraphQLHooksProvider,
|
|
@@ -17,9 +17,9 @@ describe("createSuspendingCell", () => {
|
|
|
17
17
|
loadDevMessages();
|
|
18
18
|
loadErrorMessages();
|
|
19
19
|
});
|
|
20
|
-
const mockedUseBgQuery = () => {
|
|
20
|
+
const mockedUseBgQuery = (() => {
|
|
21
21
|
return ["mocked-query-ref", { refetch: vi.fn(), fetchMore: vi.fn() }];
|
|
22
|
-
};
|
|
22
|
+
});
|
|
23
23
|
const mockedQueryHook = () => ({ data: {} });
|
|
24
24
|
test("Renders a static Success component", () => {
|
|
25
25
|
const TestCell = createSuspendingCell({
|
|
@@ -45,9 +45,9 @@ describe("createSuspendingCell", () => {
|
|
|
45
45
|
QUERY: "query TestQuery { answer }",
|
|
46
46
|
Success: ({ answer }) => /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("dl", null, /* @__PURE__ */ React.createElement("dt", null, "What's the meaning of life?"), /* @__PURE__ */ React.createElement("dd", null, answer)))
|
|
47
47
|
});
|
|
48
|
-
const myUseQueryHook = () => {
|
|
48
|
+
const myUseQueryHook = (() => {
|
|
49
49
|
return { data: { answer: 42 } };
|
|
50
|
-
};
|
|
50
|
+
});
|
|
51
51
|
render(
|
|
52
52
|
/* @__PURE__ */ React.createElement(
|
|
53
53
|
GraphQLHooksProvider,
|
|
@@ -68,14 +68,14 @@ describe("createSuspendingCell", () => {
|
|
|
68
68
|
Empty: () => /* @__PURE__ */ React.createElement(React.Fragment, null, "No users or posts"),
|
|
69
69
|
Success: ({ users, posts }) => /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("div", null, users.length > 0 ? /* @__PURE__ */ React.createElement("ul", null, users.map(({ name }) => /* @__PURE__ */ React.createElement("li", { key: name }, name))) : "no users"), /* @__PURE__ */ React.createElement("div", null, posts.length > 0 ? /* @__PURE__ */ React.createElement("ul", null, posts.map(({ title }) => /* @__PURE__ */ React.createElement("li", { key: title }, title))) : "no posts"))
|
|
70
70
|
});
|
|
71
|
-
const myReadQueryHook = () => {
|
|
71
|
+
const myReadQueryHook = (() => {
|
|
72
72
|
return {
|
|
73
73
|
data: {
|
|
74
74
|
users: [],
|
|
75
75
|
posts: [{ title: "bazinga" }, { title: "kittens" }]
|
|
76
76
|
}
|
|
77
77
|
};
|
|
78
|
-
};
|
|
78
|
+
});
|
|
79
79
|
render(
|
|
80
80
|
/* @__PURE__ */ React.createElement(
|
|
81
81
|
GraphQLHooksProvider,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cedarjs/web",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.2-next.49+eaf36e897",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/cedarjs/cedar.git",
|
|
@@ -145,8 +145,8 @@
|
|
|
145
145
|
"dependencies": {
|
|
146
146
|
"@apollo/client": "3.13.9",
|
|
147
147
|
"@babel/runtime-corejs3": "7.27.6",
|
|
148
|
-
"@cedarjs/auth": "0.7.
|
|
149
|
-
"@cedarjs/server-store": "0.7.
|
|
148
|
+
"@cedarjs/auth": "0.7.2-next.49+eaf36e897",
|
|
149
|
+
"@cedarjs/server-store": "0.7.2-next.49+eaf36e897",
|
|
150
150
|
"@dr.pogodin/react-helmet": "2.0.4",
|
|
151
151
|
"@whatwg-node/fetch": "0.9.21",
|
|
152
152
|
"apollo-upload-client": "18.0.1",
|
|
@@ -166,8 +166,8 @@
|
|
|
166
166
|
"@babel/core": "^7.26.10",
|
|
167
167
|
"@babel/plugin-transform-runtime": "7.27.4",
|
|
168
168
|
"@babel/runtime": "7.27.6",
|
|
169
|
-
"@cedarjs/framework-tools": "0.7.
|
|
170
|
-
"@cedarjs/internal": "0.7.
|
|
169
|
+
"@cedarjs/framework-tools": "0.7.2-next.49",
|
|
170
|
+
"@cedarjs/internal": "0.7.2-next.49+eaf36e897",
|
|
171
171
|
"@rollup/plugin-babel": "6.0.4",
|
|
172
172
|
"@testing-library/jest-dom": "6.5.0",
|
|
173
173
|
"@testing-library/react": "14.3.1",
|
|
@@ -180,7 +180,7 @@
|
|
|
180
180
|
"react": "18.3.1",
|
|
181
181
|
"react-dom": "18.3.1",
|
|
182
182
|
"tstyche": "3.0.0",
|
|
183
|
-
"tsx": "4.20.
|
|
183
|
+
"tsx": "4.20.4",
|
|
184
184
|
"typescript": "5.6.2",
|
|
185
185
|
"vitest": "3.2.4"
|
|
186
186
|
},
|
|
@@ -191,5 +191,5 @@
|
|
|
191
191
|
"publishConfig": {
|
|
192
192
|
"access": "public"
|
|
193
193
|
},
|
|
194
|
-
"gitHead": "
|
|
194
|
+
"gitHead": "eaf36e897609e775295faca150fe4a3b448841e3"
|
|
195
195
|
}
|