houdini 2.0.0-next.22 → 2.0.0-next.24

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,3 +1,3 @@
1
- import type { serverAdapterFactory as createAdapter } from '../router/server';
1
+ import type { serverAdapterFactory as createAdapter } from '../router/server.js';
2
2
  export declare const endpoint: string;
3
3
  export declare let createServerAdapter: (args: Omit<Parameters<typeof createAdapter>[0], 'on_render' | 'manifest' | 'yoga' | 'schema' | 'graphqlEndpoint' | 'componentCache' | 'client' | 'config_file'>) => ReturnType<typeof createAdapter>;
package/build/cmd/init.js CHANGED
@@ -437,12 +437,12 @@ async function packageJSON(targetPath, frameworkInfo) {
437
437
  }
438
438
  packageJSON2.devDependencies = {
439
439
  ...packageJSON2.devDependencies,
440
- houdini: "^2.0.0-next.22"
440
+ houdini: "^2.0.0-next.24"
441
441
  };
442
442
  if (frameworkInfo.framework === "svelte" || frameworkInfo.framework === "kit") {
443
443
  packageJSON2.devDependencies = {
444
444
  ...packageJSON2.devDependencies,
445
- "houdini-svelte": "^3.0.0-next.23"
445
+ "houdini-svelte": "^3.0.0-next.25"
446
446
  };
447
447
  } else {
448
448
  throw new Error(`Unmanaged framework: "${JSON.stringify(frameworkInfo)}"`);
@@ -1,7 +1,7 @@
1
1
  import { type DatabaseSync } from 'node:sqlite';
2
2
  import * as conventions from '../router/conventions.js';
3
3
  import type { Config } from './config.js';
4
- import type { ProjectManifest } from './types';
4
+ import type { ProjectManifest } from './types.js';
5
5
  export type PluginSpec = {
6
6
  name: string;
7
7
  port: number;
@@ -195,8 +195,10 @@ export type ScalarSpec = {
195
195
  module?: string;
196
196
  default?: boolean;
197
197
  };
198
- export type HoudiniPluginConfig = {};
199
- export type HoudiniClientPluginConfig = {};
198
+ export interface HoudiniPluginConfig {
199
+ }
200
+ export interface HoudiniClientPluginConfig {
201
+ }
200
202
  export declare class Config {
201
203
  config_file: ConfigFile;
202
204
  filepath: string;
@@ -1,5 +1,5 @@
1
1
  import * as recast from 'recast';
2
- import type { TransformPage, Script } from './types';
2
+ import type { TransformPage, Script } from './types.js';
3
3
  type Identifier = recast.types.namedTypes.Identifier;
4
4
  export declare function ensure_imports(args: {
5
5
  script: Script;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "houdini",
3
- "version": "2.0.0-next.22",
3
+ "version": "2.0.0-next.24",
4
4
  "description": "The disappearing GraphQL clients",
5
5
  "keywords": [
6
6
  "typescript",
@@ -1,5 +1,5 @@
1
- import type { ConfigFile } from '../lib';
2
- import type { RouterManifest, RouterPageManifest } from './types';
1
+ import type { ConfigFile } from '../lib/index.js';
2
+ import type { RouterManifest, RouterPageManifest } from './types.js';
3
3
  type GraphQLVariables = Record<string, string | number | boolean | null> | null;
4
4
  export type RouteParam = {
5
5
  name: string;
@@ -4,7 +4,7 @@ import type { GraphQLSchema } from 'graphql';
4
4
  import { YogaServer, type YogaServerOptions as YogaConfig } from 'graphql-yoga';
5
5
  import type { ConfigFile } from '../lib/config.js';
6
6
  import type { HoudiniClient } from '../runtime/client.js';
7
- import type { RouterManifest, RouterPageManifest, YogaServerOptions } from './types';
7
+ import type { RouterManifest, RouterPageManifest, YogaServerOptions } from './types.js';
8
8
  export declare function _serverHandler<ComponentType = unknown>({ schema, server, client, production, manifest, graphqlEndpoint, on_render, componentCache, config_file, }: {
9
9
  schema?: GraphQLSchema | null;
10
10
  server?: Server<any, any>;
@@ -2,9 +2,9 @@ import { createServerAdapter } from "@whatwg-node/server";
2
2
  import {
3
3
  YogaServer
4
4
  } from "graphql-yoga";
5
- import { serialize as encodeCookie } from "./cookies";
6
- import { find_match } from "./match";
7
- import { get_session, handle_request, session_cookie_name } from "./session";
5
+ import { serialize as encodeCookie } from "./cookies.js";
6
+ import { find_match } from "./match.js";
7
+ import { get_session, handle_request, session_cookie_name } from "./session.js";
8
8
  function _serverHandler({
9
9
  schema,
10
10
  server,
@@ -1,4 +1,4 @@
1
- import type { ConfigFile } from '../lib';
1
+ import type { ConfigFile } from '../lib/index.js';
2
2
  type ServerHandlerArgs = {
3
3
  request: Request;
4
4
  config: ConfigFile;
@@ -1,5 +1,5 @@
1
- import { parse } from "./cookies";
2
- import { decode, encode, verify } from "./jwt";
1
+ import { parse } from "./cookies.js";
2
+ import { decode, encode, verify } from "./jwt.js";
3
3
  async function handle_request(args) {
4
4
  const plugin_config = args.config.router ?? {};
5
5
  const { pathname } = new URL(args.request.url);
@@ -1,12 +1,12 @@
1
1
  import type { createYoga } from 'graphql-yoga';
2
2
  import type { QueryArtifact } from '../runtime/types.js';
3
- import type { RouteParam } from './match';
3
+ import type { RouteParam } from './match.js';
4
4
  export type YogaServer = ReturnType<typeof createYoga>;
5
5
  export type YogaServerOptions = Parameters<typeof createYoga>[0];
6
6
  export type RouterManifest<_ComponentType> = {
7
7
  pages: Record<string, RouterPageManifest<_ComponentType>>;
8
8
  };
9
- export type { ServerAdapterFactory } from './server';
9
+ export type { ServerAdapterFactory } from './server.js';
10
10
  export type RouterPageManifest<_ComponentType> = {
11
11
  id: string;
12
12
  pattern: RegExp;
@@ -1,5 +1,5 @@
1
1
  import type { ConfigFile } from 'houdini';
2
- import type { HoudiniClient } from '.';
2
+ import type { HoudiniClient } from './index.js';
3
3
  import type { Layer } from './cache/storage.js';
4
4
  import { Writable } from './store.js';
5
5
  import type { DocumentArtifact, QueryResult, GraphQLObject, SubscriptionSpec, CachePolicies, GraphQLVariables } from './types.js';
@@ -1,5 +1,5 @@
1
1
  import type { Plugin as VitePlugin, HmrContext } from 'vite';
2
- import type { VitePluginContext } from '.';
2
+ import type { VitePluginContext } from './index.js';
3
3
  import { type CompilerProxy } from '../lib/index.js';
4
4
  /**
5
5
  * Houdini Vite HMR Plugin
@@ -1,5 +1,5 @@
1
1
  import type { Plugin as VitePlugin } from 'vite';
2
- import type { VitePluginContext } from '.';
2
+ import type { VitePluginContext } from './index.js';
3
3
  import type { CompilerProxy } from '../lib/index.js';
4
4
  export declare let compiler: CompilerProxy;
5
5
  export declare function houdini(ctx: VitePluginContext): VitePlugin;
@@ -1,5 +1,5 @@
1
1
  import type { PluginOption } from 'vite';
2
- import type { VitePluginContext } from '.';
2
+ import type { VitePluginContext } from './index.js';
3
3
  export declare function refresh_on_schema(ctx: VitePluginContext): PluginOption;
4
4
  export declare function poll_remote_schema(_ctx: VitePluginContext): PluginOption;
5
5
  export declare function watch_local_schema(_ctx: VitePluginContext): PluginOption;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "houdini",
3
- "version": "2.0.0-next.22",
3
+ "version": "2.0.0-next.24",
4
4
  "description": "The disappearing GraphQL clients",
5
5
  "keywords": [
6
6
  "typescript",
@@ -54,7 +54,7 @@
54
54
  "npx-import": "^1.1.3",
55
55
  "recast": "^0.23.1",
56
56
  "ws": "^8.18.0",
57
- "houdini-core": "^2.0.0-next.14"
57
+ "houdini-core": "^2.0.0-next.15"
58
58
  },
59
59
  "peerDependencies": {
60
60
  "graphql": ">=16",