houdini-core 2.0.0-next.14 → 2.0.0-next.16

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "houdini-core",
3
- "version": "2.0.0-next.14",
3
+ "version": "2.0.0-next.16",
4
4
  "description": "The core GraphQL client for Houdini",
5
5
  "keywords": [
6
6
  "graphql",
@@ -21,12 +21,12 @@
21
21
  "minimatch": "^5.1.0"
22
22
  },
23
23
  "optionalDependencies": {
24
- "houdini-core-darwin-x64": "2.0.0-next.14",
25
- "houdini-core-darwin-arm64": "2.0.0-next.14",
26
- "houdini-core-linux-x64": "2.0.0-next.14",
27
- "houdini-core-linux-arm64": "2.0.0-next.14",
28
- "houdini-core-win32-x64": "2.0.0-next.14",
29
- "houdini-core-win32-arm64": "2.0.0-next.14"
24
+ "houdini-core-darwin-x64": "2.0.0-next.16",
25
+ "houdini-core-darwin-arm64": "2.0.0-next.16",
26
+ "houdini-core-linux-x64": "2.0.0-next.16",
27
+ "houdini-core-linux-arm64": "2.0.0-next.16",
28
+ "houdini-core-win32-x64": "2.0.0-next.16",
29
+ "houdini-core-win32-arm64": "2.0.0-next.16"
30
30
  },
31
31
  "bin": "bin/houdini-core",
32
32
  "files": [
package/postInstall.js CHANGED
@@ -5,7 +5,7 @@ const https = require('https')
5
5
  const child_process = require('child_process')
6
6
 
7
7
  // Adjust the version you want to install. You can also make this dynamic.
8
- const BINARY_DISTRIBUTION_VERSION = '2.0.0-next.14'
8
+ const BINARY_DISTRIBUTION_VERSION = '2.0.0-next.16'
9
9
 
10
10
  // Windows binaries end with .exe so we need to special case them.
11
11
  const binaryName = process.platform === 'win32' ? 'houdini-core.exe' : 'houdini-core'
package/runtime/cache.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { Cache } from 'houdini/runtime/cache'
2
2
 
3
- import { getCurrentConfig } from './config'
3
+ import { getCurrentConfig } from './config.js'
4
4
 
5
5
  export type { Cache }
6
6
  export default new Cache(getCurrentConfig())
package/runtime/client.ts CHANGED
@@ -10,9 +10,9 @@ import type {
10
10
  GraphQLVariables,
11
11
  } from 'houdini/runtime/types'
12
12
 
13
- import cacheRef from './cache'
14
- import { getCurrentConfig, localApiEndpoint } from './config'
15
- import type { FetchParamFn, ThrowOnErrorParams } from './plugins'
13
+ import cacheRef from './cache.js'
14
+ import { getCurrentConfig, localApiEndpoint } from './config.js'
15
+ import type { FetchParamFn, ThrowOnErrorParams } from './plugins/index.js'
16
16
  import {
17
17
  fetch as fetchPlugin,
18
18
  fetchParams as fetchParamsPlugin,
@@ -22,11 +22,11 @@ import {
22
22
  throwOnError as throwOnErrorPlugin,
23
23
  optimisticKeys,
24
24
  cachePolicy,
25
- } from './plugins'
26
- import pluginsFromPlugins from './plugins/injectedPlugins'
25
+ } from './plugins/index.js'
26
+ import pluginsFromPlugins from './plugins/injectedPlugins.js'
27
27
 
28
28
  // export the plugin constructors
29
- export { fetch, mutation, query, subscription } from './plugins'
29
+ export { fetch, mutation, query, subscription } from './plugins/index.js'
30
30
  export { DocumentStore, type ClientPlugin, type SendParams } from 'houdini/runtime/documentStore'
31
31
 
32
32
  export type HoudiniClientConstructorArgs = {
package/runtime/config.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import type { ConfigFile } from 'houdini'
2
2
 
3
- import config from './imports/config'
4
- import pluginConfigs from './imports/pluginConfig'
3
+ import config from './imports/config.js'
4
+ import pluginConfigs from './imports/pluginConfig.js'
5
5
 
6
6
  let mockConfig: ConfigFile | null = null
7
7
 
package/runtime/index.ts CHANGED
@@ -1,14 +1,14 @@
1
1
  import type { Cache as InternalCache } from 'houdini/runtime/cache'
2
2
 
3
- import _cache from './cache'
4
- import type { CacheTypeDef } from './generated'
5
- import { Cache } from './public'
3
+ import _cache from './cache.js'
4
+ import type { CacheTypeDef } from './generated.js'
5
+ import { Cache } from './public/index.js'
6
6
 
7
7
  export { CachePolicy, PendingValue } from 'houdini/runtime'
8
8
  export type { QueryArtifact, GraphQLVariables } from 'houdini/runtime'
9
9
 
10
- export * from './client'
11
- export { getCurrentConfig } from './config'
10
+ export * from './client.js'
11
+ export { getCurrentConfig } from './config.js'
12
12
 
13
13
  // this template tag gets removed by the preprocessor so it should never be invoked.
14
14
  // this function must return any so that we can assign it a type in a variable declaration (ie an inline store)
@@ -1 +1 @@
1
- {"type":"module"}
1
+ {"type":"module","main":"./index.ts"}
@@ -2,7 +2,7 @@ import { Cache } from 'houdini/runtime/cache'
2
2
  import type { ClientPlugin } from 'houdini/runtime/documentStore'
3
3
  import { ArtifactKind, CachePolicy, DataSource, type GraphQLObject } from 'houdini/runtime/types'
4
4
 
5
- import cache from '../cache'
5
+ import cache from '../cache.js'
6
6
 
7
7
  const serverSide = typeof globalThis.window === 'undefined'
8
8
 
@@ -2,7 +2,7 @@ import { deepEquals } from 'houdini/runtime'
2
2
  import type { Cache } from 'houdini/runtime/cache'
3
3
  import { type SubscriptionSpec, ArtifactKind, DataSource } from 'houdini/runtime/types'
4
4
 
5
- import { documentPlugin } from './utils'
5
+ import { documentPlugin } from './utils/index.js'
6
6
 
7
7
  // the purpose of the fragment plugin is to provide fine-reactivity for cache updates
8
8
  // there are no network requests that get sent. send() always returns the initial value
@@ -1,9 +1,9 @@
1
- export * from './fetch'
2
- export * from './cache'
3
- export * from './query'
4
- export * from './fragment'
5
- export * from './mutation'
6
- export * from './subscription'
7
- export * from './throwOnError'
8
- export * from './fetchParams'
9
- export { optimisticKeys } from './optimisticKeys'
1
+ export * from './fetch.js'
2
+ export * from './cache.js'
3
+ export * from './query.js'
4
+ export * from './fragment.js'
5
+ export * from './mutation.js'
6
+ export * from './subscription.js'
7
+ export * from './throwOnError.js'
8
+ export * from './fetchParams.js'
9
+ export { optimisticKeys } from './optimisticKeys.js'
@@ -3,7 +3,7 @@ import type { SubscriptionSpec } from 'houdini/runtime'
3
3
  import { ArtifactKind } from 'houdini/runtime'
4
4
  import type { Cache } from 'houdini/runtime/cache'
5
5
 
6
- import { documentPlugin } from './utils'
6
+ import { documentPlugin } from './utils/index.js'
7
7
 
8
8
  export const mutation = (cache: Cache) =>
9
9
  documentPlugin(ArtifactKind.Mutation, () => {
@@ -9,7 +9,7 @@ import type {
9
9
  } from 'houdini/runtime/types'
10
10
  import { ArtifactKind } from 'houdini/runtime/types'
11
11
 
12
- import configFile from '../imports/config'
12
+ import configFile from '../imports/config.js'
13
13
 
14
14
  // This plugin is responsible for coordinating requests that have optimistic keys.
15
15
  // When a mutation contains optimistically generated keys as inputs, we need to block
@@ -2,7 +2,7 @@ import type { RuntimeScalarPayload } from 'houdini'
2
2
  import type { Cache } from 'houdini/runtime/cache'
3
3
  import { type SubscriptionSpec, ArtifactKind, DataSource } from 'houdini/runtime/types'
4
4
 
5
- import { documentPlugin } from './utils'
5
+ import { documentPlugin } from './utils/index.js'
6
6
 
7
7
  export const query = (cache: Cache) =>
8
8
  documentPlugin(ArtifactKind.Query, () => {
@@ -2,7 +2,7 @@ import { deepEquals } from 'houdini/runtime'
2
2
  import type { ClientPluginContext } from 'houdini/runtime/documentStore'
3
3
  import { ArtifactKind, DataSource } from 'houdini/runtime/types'
4
4
 
5
- import { documentPlugin } from './utils'
5
+ import { documentPlugin } from './utils/index.js'
6
6
 
7
7
  export function subscription(factory: SubscriptionHandler) {
8
8
  return documentPlugin(ArtifactKind.Subscription, () => {
@@ -1 +1 @@
1
- export * from './documentPlugins'
1
+ export * from './documentPlugins.js'
@@ -2,9 +2,9 @@ import type { Cache as _Cache } from 'houdini/runtime/cache'
2
2
  import { marshalInputs } from 'houdini/runtime/scalars'
3
3
  import type { QueryArtifact } from 'houdini/runtime/types'
4
4
 
5
- import { getCurrentConfig } from '../config'
6
- import { ListCollection } from './list'
7
- import { Record } from './record'
5
+ import { getCurrentConfig } from '../config.js'
6
+ import { ListCollection } from './list.js'
7
+ import { Record } from './record.js'
8
8
  import type {
9
9
  ArgType,
10
10
  CacheTypeDef,
@@ -15,7 +15,7 @@ import type {
15
15
  TypeFieldNames,
16
16
  TypeNames,
17
17
  ValidLists,
18
- } from './types'
18
+ } from './types.js'
19
19
 
20
20
  export class Cache<Def extends CacheTypeDef> {
21
21
  _internal_unstable: _Cache
@@ -1 +1 @@
1
- export { Cache } from './cache'
1
+ export { Cache } from './cache.js'
@@ -1,9 +1,9 @@
1
1
  import type { GraphQLObject, SubscriptionSelection } from 'houdini/runtime'
2
2
  import type { ListCollection as _Collection } from 'houdini/runtime/cache/lists'
3
3
 
4
- import type { Cache } from './cache'
5
- import { Record } from './record'
6
- import type { CacheTypeDef, ListType, ValidLists, ListFilters } from './types'
4
+ import type { Cache } from './cache.js'
5
+ import { Record } from './record.js'
6
+ import type { CacheTypeDef, ListType, ValidLists, ListFilters } from './types.js'
7
7
 
8
8
  export class ListCollection<Def extends CacheTypeDef, ListName extends ValidLists<Def>> {
9
9
  #parentID: string | undefined
@@ -3,7 +3,7 @@ import { keyFieldsForType } from 'houdini/runtime'
3
3
  import type { FragmentArtifact, GraphQLObject } from 'houdini/runtime'
4
4
  import { rootID } from 'houdini/runtime/cache/stuff'
5
5
 
6
- import type { Cache } from './cache'
6
+ import type { Cache } from './cache.js'
7
7
  import type {
8
8
  ArgType,
9
9
  CacheTypeDef,
@@ -12,7 +12,7 @@ import type {
12
12
  FragmentVariables,
13
13
  TypeFieldNames,
14
14
  ValidTypes,
15
- } from './types'
15
+ } from './types.js'
16
16
 
17
17
  export class Record<Def extends CacheTypeDef, Type extends ValidTypes<Def>> {
18
18
  #id: string
@@ -1,4 +1,4 @@
1
- import type { Record } from './record'
1
+ import type { Record } from './record.js'
2
2
 
3
3
  export type CacheTypeDef = {
4
4
  types: {