@carvajalconsultants/headstart 1.0.0 → 1.0.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/README.md CHANGED
@@ -49,7 +49,7 @@ const preset: GraphileConfig.Preset = {
49
49
 
50
50
  ```
51
51
  // app/api.ts
52
- import { createGraphQLRouteHandler } from "@carvajalconsultants/headstart";
52
+ import { createGraphQLRouteHandler } from "@carvajalconsultants/headstart/server";
53
53
  import { pgl } from "../pgl";
54
54
 
55
55
  export default createGraphQLRouteHandler(pgl);
@@ -60,7 +60,8 @@ export default createGraphQLRouteHandler(pgl);
60
60
  ```
61
61
  // app/graphql/serverProvider.tsx
62
62
  import { Client, Provider } from "urql";
63
- import { grafastExchange, ssr } from "@carvajalconsultants/headstart";
63
+ import { grafastExchange } from "@carvajalconsultants/headstart/server";
64
+ import { ssr } from "@carvajalconsultants/headstart/client";
64
65
  import { pgl } from "../../pgl";
65
66
 
66
67
  /**
@@ -78,7 +79,7 @@ export const client = new Client({
78
79
 
79
80
  ```
80
81
  // app/serverRouter.tsx
81
- import { ssr } from "@carvajalconsultants/headstart";
82
+ import { ssr } from "@carvajalconsultants/headstart/client";
82
83
  import { createRouter as createTanStackRouter } from "@tanstack/react-router";
83
84
  import { Provider } from "urql";
84
85
  import { client } from "./graphql/serverProvider";
@@ -125,7 +126,7 @@ export default createStartHandler({
125
126
 
126
127
  ```
127
128
  // app/clientRouter.tsx
128
- import { ssr } from "@carvajalconsultants/headstart";
129
+ import { ssr } from "@carvajalconsultants/headstart/client";
129
130
  import { createRouter as createTanStackRouter } from "@tanstack/react-router";
130
131
  import { Provider } from "urql";
131
132
  import { client } from "./graphql/clientProvider";
package/package.json CHANGED
@@ -1,14 +1,17 @@
1
1
  {
2
2
  "name": "@carvajalconsultants/headstart",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Library to assist in integrating PostGraphile with Tanstack Start and URQL.",
5
5
  "license": "MIT",
6
6
  "author": "Miguel Carvajal <omar@carvajalonline.com>",
7
7
  "repository": "github:carvajalconsultants/headstart",
8
8
  "type": "module",
9
- "main": "src/index.ts",
9
+ "main": "server.ts",
10
10
  "files": [
11
- "src"
11
+ "client.ts",
12
+ "grafastExchange.ts",
13
+ "graphQLRouteHandler.ts",
14
+ "server.ts"
12
15
  ],
13
16
  "scripts": {
14
17
  "lint": "biome check --write"
@@ -1,3 +1,2 @@
1
1
  export * from "./graphQLRouteHandler";
2
2
  export * from "./grafastExchange";
3
- export * from "./ssrExchange";
File without changes
File without changes