@as-integrations/h3 2.0.0 → 2.0.3

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/dist/index.d.cts CHANGED
@@ -13,4 +13,5 @@ interface H3HandlerOptions<TContext extends BaseContext> {
13
13
  declare function startServerAndCreateH3Handler(server: ApolloServer<BaseContext>, options?: H3HandlerOptions<BaseContext>): EventHandler;
14
14
  declare function startServerAndCreateH3Handler<TContext extends BaseContext>(server: ApolloServer<TContext>, options: WithRequired<H3HandlerOptions<TContext>, 'context'>): EventHandler;
15
15
 
16
- export { type H3ContextFunctionArgument, type H3HandlerOptions, startServerAndCreateH3Handler };
16
+ export { startServerAndCreateH3Handler };
17
+ export type { H3ContextFunctionArgument, H3HandlerOptions };
package/dist/index.d.mts CHANGED
@@ -13,4 +13,5 @@ interface H3HandlerOptions<TContext extends BaseContext> {
13
13
  declare function startServerAndCreateH3Handler(server: ApolloServer<BaseContext>, options?: H3HandlerOptions<BaseContext>): EventHandler;
14
14
  declare function startServerAndCreateH3Handler<TContext extends BaseContext>(server: ApolloServer<TContext>, options: WithRequired<H3HandlerOptions<TContext>, 'context'>): EventHandler;
15
15
 
16
- export { type H3ContextFunctionArgument, type H3HandlerOptions, startServerAndCreateH3Handler };
16
+ export { startServerAndCreateH3Handler };
17
+ export type { H3ContextFunctionArgument, H3HandlerOptions };
package/dist/index.d.ts CHANGED
@@ -13,4 +13,5 @@ interface H3HandlerOptions<TContext extends BaseContext> {
13
13
  declare function startServerAndCreateH3Handler(server: ApolloServer<BaseContext>, options?: H3HandlerOptions<BaseContext>): EventHandler;
14
14
  declare function startServerAndCreateH3Handler<TContext extends BaseContext>(server: ApolloServer<TContext>, options: WithRequired<H3HandlerOptions<TContext>, 'context'>): EventHandler;
15
15
 
16
- export { type H3ContextFunctionArgument, type H3HandlerOptions, startServerAndCreateH3Handler };
16
+ export { startServerAndCreateH3Handler };
17
+ export type { H3ContextFunctionArgument, H3HandlerOptions };
@@ -27,4 +27,5 @@ declare function defineGraphqlWebSocket<P extends ConnectionInitMessage['payload
27
27
  */
28
28
  declare function defineGraphqlWebSocketHandler<P extends ConnectionInitMessage['payload'] = ConnectionInitMessage['payload'], E extends Record<PropertyKey, unknown> = Record<PropertyKey, never>>(options: ServerOptions<P, Extra & Partial<E>>): Promise<EventHandler<EventHandlerRequest, never>>;
29
29
 
30
- export { type Extra, defineGraphqlWebSocket, defineGraphqlWebSocketHandler };
30
+ export { defineGraphqlWebSocket, defineGraphqlWebSocketHandler };
31
+ export type { Extra };
@@ -27,4 +27,5 @@ declare function defineGraphqlWebSocket<P extends ConnectionInitMessage['payload
27
27
  */
28
28
  declare function defineGraphqlWebSocketHandler<P extends ConnectionInitMessage['payload'] = ConnectionInitMessage['payload'], E extends Record<PropertyKey, unknown> = Record<PropertyKey, never>>(options: ServerOptions<P, Extra & Partial<E>>): Promise<EventHandler<EventHandlerRequest, never>>;
29
29
 
30
- export { type Extra, defineGraphqlWebSocket, defineGraphqlWebSocketHandler };
30
+ export { defineGraphqlWebSocket, defineGraphqlWebSocketHandler };
31
+ export type { Extra };
@@ -27,4 +27,5 @@ declare function defineGraphqlWebSocket<P extends ConnectionInitMessage['payload
27
27
  */
28
28
  declare function defineGraphqlWebSocketHandler<P extends ConnectionInitMessage['payload'] = ConnectionInitMessage['payload'], E extends Record<PropertyKey, unknown> = Record<PropertyKey, never>>(options: ServerOptions<P, Extra & Partial<E>>): Promise<EventHandler<EventHandlerRequest, never>>;
29
29
 
30
- export { type Extra, defineGraphqlWebSocket, defineGraphqlWebSocketHandler };
30
+ export { defineGraphqlWebSocket, defineGraphqlWebSocketHandler };
31
+ export type { Extra };
package/package.json CHANGED
@@ -1,8 +1,11 @@
1
1
  {
2
2
  "name": "@as-integrations/h3",
3
- "version": "2.0.0",
3
+ "version": "2.0.3",
4
4
  "description": "An Apollo Server integration for use with h3 or Nuxt",
5
- "repository": "github:apollo-server-integrations/apollo-server-integration-h3",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "git+https://github.com/apollo-server-integrations/apollo-server-integration-h3.git"
8
+ },
6
9
  "license": "MIT",
7
10
  "sideEffects": false,
8
11
  "type": "module",
@@ -25,11 +28,11 @@
25
28
  "dist"
26
29
  ],
27
30
  "peerDependencies": {
28
- "@apollo/server": "^4.1.1",
29
- "h3": "^1.11.0",
31
+ "@apollo/server": "^4.1.1 || ^5.0.0",
32
+ "crossws": "^0.3.0",
30
33
  "graphql": "^16.0.0",
31
34
  "graphql-ws": "^5.0.0 || ^6.0.0",
32
- "crossws": "^0.3.0"
35
+ "h3": "^1.11.0"
33
36
  },
34
37
  "peerDependenciesMeta": {
35
38
  "graphql-ws": {
@@ -37,35 +40,35 @@
37
40
  }
38
41
  },
39
42
  "dependencies": {
40
- "@apollo/utils.withrequired": "^3.0.0"
43
+ "@apollo/utils.withrequired": "3.0.0"
41
44
  },
42
45
  "devDependencies": {
43
- "@apollo/server": "4.11.3",
44
- "@apollo/server-integration-testsuite": "4.11.3",
45
- "@graphql-tools/schema": "10.0.21",
46
- "@jest/globals": "29.7.0",
47
- "@typescript-eslint/parser": "8.26.0",
48
- "crossws": "0.3.4",
49
- "@vitest/coverage-v8": "3.0.7",
50
- "eslint": "9.21.0",
51
- "eslint-config-prettier": "10.0.2",
52
- "eslint-config-unjs": "0.4.2",
53
- "eslint-plugin-unused-imports": "4.1.4",
54
- "graphql": "16.10.0",
46
+ "@apollo/server": "5.3.0",
47
+ "@apollo/server-integration-testsuite": "5.3.0",
48
+ "@graphql-tools/schema": "10.0.31",
49
+ "@jest/globals": "30.2.0",
50
+ "@typescript-eslint/parser": "8.54.0",
51
+ "@vitest/coverage-v8": "4.0.18",
52
+ "commit-and-tag-version": "12.6.1",
53
+ "crossws": "0.3.5",
54
+ "eslint": "9.39.2",
55
+ "eslint-config-prettier": "10.1.8",
56
+ "eslint-config-unjs": "0.6.2",
57
+ "eslint-plugin-unused-imports": "4.3.0",
58
+ "graphql": "16.12.0",
55
59
  "graphql-subscriptions": "3.0.0",
56
- "graphql-ws": "6.0.4",
57
- "h3": "1.15.1",
58
- "jest": "29.7.0",
60
+ "graphql-ws": "6.0.7",
61
+ "h3": "1.15.5",
62
+ "jest": "30.2.0",
59
63
  "listhen": "1.9.0",
60
- "prettier": "3.5.3",
61
- "commit-and-tag-version": "12.5.0",
62
- "ts-jest": "29.2.6",
63
- "typescript": "5.8.2",
64
- "unbuild": "3.5.0",
65
- "vitest": "3.0.7"
64
+ "prettier": "3.8.1",
65
+ "ts-jest": "29.4.6",
66
+ "typescript": "5.9.3",
67
+ "unbuild": "3.6.1",
68
+ "vitest": "4.0.18"
66
69
  },
67
70
  "engines": {
68
- "node": "23.9.0"
71
+ "node": ">=20.0.0"
69
72
  },
70
73
  "scripts": {
71
74
  "dev:prepare": "unbuild --stub",