Skip to content

Commit 6defe10

Browse files
chore(release): update monorepo packages versions (#2468)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent a2a6d4e commit 6defe10

File tree

76 files changed

+549
-130
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+549
-130
lines changed

.changeset/@envelop_core-2430-dependencies.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/tough-ears-suffer.md

Lines changed: 0 additions & 87 deletions
This file was deleted.

packages/core/CHANGELOG.md

Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,106 @@
11
# @envelop/core
22

3+
## 5.2.0
4+
5+
### Minor Changes
6+
7+
- [#2430](https://github.com/n1ru4l/envelop/pull/2430)
8+
[`a107c89`](https://github.com/n1ru4l/envelop/commit/a107c896d7a7b1af7417ed0708be336db2ecbb54)
9+
Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - ## New `Instruments` API
10+
11+
Introducation of a new API allowing to instrument the graphql pipeline.
12+
13+
This new API differs from already existing Hooks by not having access to intup/output of phases.
14+
The goal of `Instruments` is to run allow running code before, after or araound the **whole
15+
process of a phase**, incuding plugins hooks executions.
16+
17+
The main use case of this new API is observability (monitoring, tracing, etc...).
18+
19+
### Basic usage
20+
21+
```ts
22+
import { envelop } from '@envelop/core'
23+
import Sentry from '@sentry/node'
24+
25+
const getEnveloped = envelop({
26+
plugins: [
27+
{
28+
instruments: {
29+
execute: ({ context }, wrapped) =>
30+
Sentry.startSpan({ name: 'Graphql Operation' }, async () => {
31+
try {
32+
await wrapped()
33+
} catch (err) {
34+
Sentry.captureException(err)
35+
}
36+
})
37+
}
38+
}
39+
]
40+
})
41+
```
42+
43+
### Mutliple instruments plugins
44+
45+
It is possilbe to have multiple instruments plugins (Prometheus and Sentry for example), they will
46+
be automatically composed by envelop in the same order than the plugin array (first is outtermost,
47+
last is inner most).
48+
49+
```ts
50+
import { useOpentelemetry } from '@envelop/opentelemetry'
51+
import { useSentry } from '@envelop/sentry'
52+
53+
const getEnveloped = envelop({
54+
plugins: [useSentry(), useOpentelemetry()]
55+
})
56+
```
57+
58+
```mermaid
59+
sequenceDiagram
60+
Sentry->>Opentelemetry: ;
61+
Opentelemetry->>Envelop: ;
62+
Envelop->>Opentelemetry: ;
63+
Opentelemetry->>Sentry: ;
64+
```
65+
66+
### Custom instruments ordering
67+
68+
If the default composition ordering doesn't suite your need, you can mannually compose
69+
instruments. This allows to have a different execution order of hooks and instruments.
70+
71+
```ts
72+
import { useOpentelemetry } from '@envelop/opentelemetry'
73+
import { composeInstruments, useSentry } from '@envelop/sentry'
74+
75+
const { instruments: sentryInstruments, ...sentryPlugin } = useSentry()
76+
const { instruments: otelInstruments, ...otelPlugin } = useOpentelemetry()
77+
const instruments = composeInstruments([otelInstruments, sentryInstruments])
78+
79+
const getEnveloped = envelop({
80+
plugins: [{ instruments }, sentryPlugin, otelPlugin]
81+
})
82+
```
83+
84+
```mermaid
85+
sequenceDiagram
86+
Opentelemetry->>Sentry: ;
87+
Sentry->>Envelop: ;
88+
Envelop->>Sentry: ;
89+
Sentry->>Opentelemetry: ;
90+
```
91+
92+
### Patch Changes
93+
94+
- [#2430](https://github.com/n1ru4l/envelop/pull/2430)
95+
[`a107c89`](https://github.com/n1ru4l/envelop/commit/a107c896d7a7b1af7417ed0708be336db2ecbb54)
96+
Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - dependencies updates:
97+
- Added dependency
98+
[`@envelop/instruments@workspace:^` ↗︎](https://www.npmjs.com/package/@envelop/instruments/v/workspace:^)
99+
(to `dependencies`)
100+
- Updated dependencies
101+
[[`a107c89`](https://github.com/n1ru4l/envelop/commit/a107c896d7a7b1af7417ed0708be336db2ecbb54)]:
102+
- @envelop/types@5.2.0
103+
3104
## 5.1.1
4105

5106
### Patch Changes

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@envelop/core",
3-
"version": "5.1.1",
3+
"version": "5.2.0",
44
"type": "module",
55
"repository": {
66
"type": "git",

packages/plugins/apollo-datasources/CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# @envelop/apollo-datasources
22

3+
## 5.1.0
4+
5+
### Patch Changes
6+
7+
- Updated dependencies
8+
[[`a107c89`](https://github.com/n1ru4l/envelop/commit/a107c896d7a7b1af7417ed0708be336db2ecbb54),
9+
[`a107c89`](https://github.com/n1ru4l/envelop/commit/a107c896d7a7b1af7417ed0708be336db2ecbb54)]:
10+
- @envelop/core@5.2.0
11+
312
## 5.0.1
413

514
### Patch Changes

packages/plugins/apollo-datasources/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@envelop/apollo-datasources",
3-
"version": "5.0.1",
3+
"version": "5.1.0",
44
"type": "module",
55
"repository": {
66
"type": "git",

packages/plugins/apollo-federation/CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# @envelop/apollo-federation
22

3+
## 6.1.0
4+
5+
### Patch Changes
6+
7+
- Updated dependencies
8+
[[`a107c89`](https://github.com/n1ru4l/envelop/commit/a107c896d7a7b1af7417ed0708be336db2ecbb54),
9+
[`a107c89`](https://github.com/n1ru4l/envelop/commit/a107c896d7a7b1af7417ed0708be336db2ecbb54)]:
10+
- @envelop/core@5.2.0
11+
312
## 6.0.1
413

514
### Patch Changes

packages/plugins/apollo-federation/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@envelop/apollo-federation",
3-
"version": "6.0.1",
3+
"version": "6.1.0",
44
"type": "module",
55
"repository": {
66
"type": "git",

packages/plugins/apollo-server-errors/CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# @envelop/apollo-server-errors
22

3+
## 7.1.0
4+
5+
### Patch Changes
6+
7+
- Updated dependencies
8+
[[`a107c89`](https://github.com/n1ru4l/envelop/commit/a107c896d7a7b1af7417ed0708be336db2ecbb54),
9+
[`a107c89`](https://github.com/n1ru4l/envelop/commit/a107c896d7a7b1af7417ed0708be336db2ecbb54)]:
10+
- @envelop/core@5.2.0
11+
312
## 7.0.1
413

514
### Patch Changes

packages/plugins/apollo-server-errors/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@envelop/apollo-server-errors",
3-
"version": "7.0.1",
3+
"version": "7.1.0",
44
"type": "module",
55
"repository": {
66
"type": "git",

packages/plugins/apollo-tracing/CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# @envelop/apollo-tracing
22

3+
## 7.1.0
4+
5+
### Patch Changes
6+
7+
- Updated dependencies
8+
[[`a107c89`](https://github.com/n1ru4l/envelop/commit/a107c896d7a7b1af7417ed0708be336db2ecbb54),
9+
[`a107c89`](https://github.com/n1ru4l/envelop/commit/a107c896d7a7b1af7417ed0708be336db2ecbb54)]:
10+
- @envelop/core@5.2.0
11+
- @envelop/types@5.2.0
12+
- @envelop/on-resolve@5.1.0
13+
314
## 7.0.1
415

516
### Patch Changes

packages/plugins/apollo-tracing/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@envelop/apollo-tracing",
3-
"version": "7.0.1",
3+
"version": "7.1.0",
44
"type": "module",
55
"repository": {
66
"type": "git",

packages/plugins/auth0/CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# @envelop/auth0
22

3+
## 7.1.0
4+
5+
### Patch Changes
6+
7+
- Updated dependencies
8+
[[`a107c89`](https://github.com/n1ru4l/envelop/commit/a107c896d7a7b1af7417ed0708be336db2ecbb54),
9+
[`a107c89`](https://github.com/n1ru4l/envelop/commit/a107c896d7a7b1af7417ed0708be336db2ecbb54)]:
10+
- @envelop/core@5.2.0
11+
312
## 7.0.1
413

514
### Patch Changes

packages/plugins/auth0/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@envelop/auth0",
3-
"version": "7.0.1",
3+
"version": "7.1.0",
44
"type": "module",
55
"repository": {
66
"type": "git",

packages/plugins/dataloader/CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# @envelop/dataloader
22

3+
## 7.1.0
4+
5+
### Patch Changes
6+
7+
- Updated dependencies
8+
[[`a107c89`](https://github.com/n1ru4l/envelop/commit/a107c896d7a7b1af7417ed0708be336db2ecbb54),
9+
[`a107c89`](https://github.com/n1ru4l/envelop/commit/a107c896d7a7b1af7417ed0708be336db2ecbb54)]:
10+
- @envelop/core@5.2.0
11+
312
## 7.0.1
413

514
### Patch Changes

packages/plugins/dataloader/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@envelop/dataloader",
3-
"version": "7.0.1",
3+
"version": "7.1.0",
44
"type": "module",
55
"repository": {
66
"type": "git",

packages/plugins/depth-limit/CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# @envelop/depth-limit
22

3+
## 5.1.0
4+
5+
### Patch Changes
6+
7+
- Updated dependencies
8+
[[`a107c89`](https://github.com/n1ru4l/envelop/commit/a107c896d7a7b1af7417ed0708be336db2ecbb54),
9+
[`a107c89`](https://github.com/n1ru4l/envelop/commit/a107c896d7a7b1af7417ed0708be336db2ecbb54)]:
10+
- @envelop/core@5.2.0
11+
312
## 5.0.1
413

514
### Patch Changes

packages/plugins/depth-limit/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@envelop/depth-limit",
3-
"version": "5.0.1",
3+
"version": "5.1.0",
44
"type": "module",
55
"repository": {
66
"type": "git",

packages/plugins/disable-introspection/CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# @envelop/disable-introspection
22

3+
## 7.1.0
4+
5+
### Patch Changes
6+
7+
- Updated dependencies
8+
[[`a107c89`](https://github.com/n1ru4l/envelop/commit/a107c896d7a7b1af7417ed0708be336db2ecbb54),
9+
[`a107c89`](https://github.com/n1ru4l/envelop/commit/a107c896d7a7b1af7417ed0708be336db2ecbb54)]:
10+
- @envelop/core@5.2.0
11+
312
## 7.0.1
413

514
### Patch Changes

packages/plugins/disable-introspection/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@envelop/disable-introspection",
3-
"version": "7.0.1",
3+
"version": "7.1.0",
44
"type": "module",
55
"repository": {
66
"type": "git",

0 commit comments

Comments
 (0)