@graphql-hive/gateway 2.0.3 → 2.1.0-alpha-cb5e4f3ee67b8ef054f1fcf581125aaa3019f6bb

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/CHANGELOG.md CHANGED
@@ -1,5 +1,63 @@
1
1
  # @graphql-hive/gateway
2
2
 
3
+ ## 2.1.0-alpha-cb5e4f3ee67b8ef054f1fcf581125aaa3019f6bb
4
+ ### Minor Changes
5
+
6
+
7
+
8
+ - [#1458](https://github.com/graphql-hive/gateway/pull/1458) [`cb5e4f3`](https://github.com/graphql-hive/gateway/commit/cb5e4f3ee67b8ef054f1fcf581125aaa3019f6bb) Thanks [@ardatan](https://github.com/ardatan)! - New directive `@pubsubPublish` to publish the payload to the pubsub engine directly
9
+
10
+
11
+ ```graphql
12
+ extend schema
13
+ @link(
14
+ url: "https://specs.apollo.dev/federation/v2.6"
15
+ import: ["@key", "@composeDirective"]
16
+ )
17
+ @link(
18
+ url: "https://the-guild.dev/mesh/v1.0"
19
+ import: ["@pubsubOperation", "@pubsubPublish"]
20
+ )
21
+ @composeDirective(name: "@pubsubOperation")
22
+ @composeDirective(name: "@pubsubPublish")
23
+
24
+ directive @pubsubOperation(
25
+ pubsubTopic: String!
26
+ filterBy: String
27
+ result: String
28
+ ) on FIELD_DEFINITION
29
+
30
+ directive @pubsubPublish(pubsubTopic: String!) on FIELD_DEFINITION
31
+
32
+ type Query {
33
+ hello: String!
34
+ }
35
+ type Product @key(fields: "id") {
36
+ id: ID!
37
+ name: String!
38
+ price: Float!
39
+ }
40
+
41
+ type Mutation {
42
+ createProduct(name: String!, price: Float!): Product!
43
+ @pubsubPublish(pubsubTopic: "new_product")
44
+ }
45
+
46
+ type Subscription {
47
+ newProductSubgraph: Product!
48
+ @pubsubOperation(pubsubTopic: "new_product")
49
+ }
50
+ ```
51
+
52
+ ### Patch Changes
53
+
54
+ - Updated dependencies [[`cb5e4f3`](https://github.com/graphql-hive/gateway/commit/cb5e4f3ee67b8ef054f1fcf581125aaa3019f6bb)]:
55
+ - @graphql-hive/gateway-runtime@2.1.0-alpha-cb5e4f3ee67b8ef054f1fcf581125aaa3019f6bb
56
+ - @graphql-hive/plugin-aws-sigv4@2.0.3-alpha-cb5e4f3ee67b8ef054f1fcf581125aaa3019f6bb
57
+ - @graphql-mesh/hmac-upstream-signature@2.0.1
58
+ - @graphql-hive/plugin-opentelemetry@1.0.4-alpha-cb5e4f3ee67b8ef054f1fcf581125aaa3019f6bb
59
+ - @graphql-mesh/plugin-prometheus@2.0.4-alpha-cb5e4f3ee67b8ef054f1fcf581125aaa3019f6bb
60
+
3
61
  ## 2.0.3
4
62
  ### Patch Changes
5
63
 
package/dist/bin.cjs CHANGED
@@ -28,7 +28,7 @@ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
28
28
 
29
29
  var module__default = /*#__PURE__*/_interopDefault(module$1);
30
30
 
31
- globalThis.__VERSION__ = '2.0.3';
31
+ globalThis.__VERSION__ = '2.1.0-alpha-cb5e4f3ee67b8ef054f1fcf581125aaa3019f6bb';
32
32
  module__default.default.register("@graphql-hive/importer/hooks", {
33
33
  parentURL: (
34
34
  // @ts-ignore bob will complain when bundling for cjs
package/dist/bin.js CHANGED
@@ -22,7 +22,7 @@ import '@graphql-tools/code-file-loader';
22
22
  import '@graphql-tools/graphql-file-loader';
23
23
  import '@graphql-tools/load';
24
24
 
25
- globalThis.__VERSION__ = '2.0.3';
25
+ globalThis.__VERSION__ = '2.1.0-alpha-cb5e4f3ee67b8ef054f1fcf581125aaa3019f6bb';
26
26
  module.register("@graphql-hive/importer/hooks", {
27
27
  parentURL: (
28
28
  // @ts-ignore bob will complain when bundling for cjs
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-hive/gateway",
3
- "version": "2.0.3",
3
+ "version": "2.1.0-alpha-cb5e4f3ee67b8ef054f1fcf581125aaa3019f6bb",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",
@@ -83,11 +83,11 @@
83
83
  "@escape.tech/graphql-armor-block-field-suggestions": "^3.0.0",
84
84
  "@escape.tech/graphql-armor-max-depth": "^2.4.2",
85
85
  "@escape.tech/graphql-armor-max-tokens": "^2.5.0",
86
- "@graphql-hive/gateway-runtime": "^2.0.3",
86
+ "@graphql-hive/gateway-runtime": "2.1.0-alpha-cb5e4f3ee67b8ef054f1fcf581125aaa3019f6bb",
87
87
  "@graphql-hive/importer": "^2.0.0",
88
88
  "@graphql-hive/logger": "^1.0.2",
89
- "@graphql-hive/plugin-aws-sigv4": "^2.0.2",
90
- "@graphql-hive/plugin-opentelemetry": "^1.0.3",
89
+ "@graphql-hive/plugin-aws-sigv4": "2.0.3-alpha-cb5e4f3ee67b8ef054f1fcf581125aaa3019f6bb",
90
+ "@graphql-hive/plugin-opentelemetry": "1.0.4-alpha-cb5e4f3ee67b8ef054f1fcf581125aaa3019f6bb",
91
91
  "@graphql-hive/pubsub": "^2.1.0",
92
92
  "@graphql-mesh/cache-cfw-kv": "^0.105.11",
93
93
  "@graphql-mesh/cache-localforage": "^0.105.12",
@@ -98,7 +98,7 @@
98
98
  "@graphql-mesh/plugin-http-cache": "^0.105.12",
99
99
  "@graphql-mesh/plugin-jit": "^0.2.11",
100
100
  "@graphql-mesh/plugin-jwt-auth": "^2.0.2",
101
- "@graphql-mesh/plugin-prometheus": "^2.0.3",
101
+ "@graphql-mesh/plugin-prometheus": "2.0.4-alpha-cb5e4f3ee67b8ef054f1fcf581125aaa3019f6bb",
102
102
  "@graphql-mesh/plugin-rate-limit": "^0.104.11",
103
103
  "@graphql-mesh/plugin-snapshot": "^0.104.11",
104
104
  "@graphql-mesh/transport-http": "^1.0.2",