naystack 1.4.30 → 1.4.32

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,7 +1,7 @@
1
1
  export { GQLError } from './errors.mjs';
2
2
  export { initGraphQLServer } from './init.mjs';
3
3
  export { AuthorizedContext, Context } from './types.mjs';
4
- export { FieldLibrary, QueryLibrary, field, query } from './utils.mjs';
4
+ export { FieldLibrary, QueryLibrary, ResponseType, field, query } from './utils.mjs';
5
5
  import 'graphql/error';
6
6
  import '@apollo/server';
7
7
  import 'next/server';
@@ -1,7 +1,7 @@
1
1
  export { GQLError } from './errors.js';
2
2
  export { initGraphQLServer } from './init.js';
3
3
  export { AuthorizedContext, Context } from './types.js';
4
- export { FieldLibrary, QueryLibrary, field, query } from './utils.js';
4
+ export { FieldLibrary, QueryLibrary, ResponseType, field, query } from './utils.js';
5
5
  import 'graphql/error';
6
6
  import '@apollo/server';
7
7
  import 'next/server';
@@ -92,7 +92,7 @@ async function InjectorSuspensed({
92
92
  props
93
93
  }) {
94
94
  const data = await fetch();
95
- return /* @__PURE__ */ React.createElement(Component, { loading: false, ...props || {}, data });
95
+ return /* @__PURE__ */ React.createElement(import_react.Suspense, { fallback: /* @__PURE__ */ React.createElement(Component, { ...props || {}, loading: true }) }, /* @__PURE__ */ React.createElement(Component, { loading: false, ...props || {}, data }));
96
96
  }
97
97
  var { query: gqlQuery } = (0, import_client_integration_nextjs.registerApolloClient)(() => {
98
98
  return new import_client.ApolloClient({
@@ -71,7 +71,7 @@ async function InjectorSuspensed({
71
71
  props
72
72
  }) {
73
73
  const data = await fetch();
74
- return /* @__PURE__ */ React.createElement(Component, { loading: false, ...props || {}, data });
74
+ return /* @__PURE__ */ React.createElement(Suspense, { fallback: /* @__PURE__ */ React.createElement(Component, { ...props || {}, loading: true }) }, /* @__PURE__ */ React.createElement(Component, { loading: false, ...props || {}, data }));
75
75
  }
76
76
  var { query: gqlQuery } = registerApolloClient(() => {
77
77
  return new ApolloClient({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "naystack",
3
- "version": "1.4.30",
3
+ "version": "1.4.32",
4
4
  "description": "A stack built with Next + GraphQL + S3 + Auth",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",