Repository navigation
Commit 65d23eb
authored
fix(v10/elysia): Set SDK metadata on the options passed to init (#25486)
Backport of: #24521
## Differences to the original PR
- `packages/elysia/test/sdk.test.ts`: dropped the updated `detects bun
runtime when Bun is defined` assertions — that test (and its
`vi.stubGlobal`/`vi.unstubAllGlobals` setup) doesn't exist on v10. The
Node-runtime regression test (`passes Elysia SDK metadata to initNode`)
is backported and fails without the fix.
<!-- junior-request-attribution:start -->
via Junior system actor `junior`.
<!-- junior-request-attribution:end -->
<!-- junior-session-footer:start -->
<!--
junior-conversation-id:agent-dispatch%3Adispatch_bd63706ff178f2ce5dfeca498c2ed352
-->
--
[View Junior
Session](https://junior-prod.sentry.dev/conversations/agent-dispatch%3Adispatch_bd63706ff178f2ce5dfeca498c2ed352)
[[Sentry]](https://sentry.sentry.io/explore/conversations/agent-dispatch%3Adispatch_bd63706ff178f2ce5dfeca498c2ed352/?project=4510944073809921)
<!-- junior-session-footer:end -->
Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com>1 parent b5b9467 commit 65d23eb
4 files changed
Lines changed: 21 additions & 19 deletions
File tree
- dev-packages/e2e-tests/test-applications
- elysia-bun/tests
- elysia-node/tests
- packages/elysia
- src
- test
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
8 | 7 | | |
9 | 8 | | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | 9 | | |
20 | 10 | | |
21 | 11 | | |
| |||
34 | 24 | | |
35 | 25 | | |
36 | 26 | | |
37 | | - | |
| 27 | + | |
38 | 28 | | |
39 | 29 | | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
44 | 42 | | |
45 | 43 | | |
46 | 44 | | |
| |||
114 | 112 | | |
115 | 113 | | |
116 | 114 | | |
117 | | - | |
118 | 115 | | |
119 | | - | |
120 | | - | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
| |||
0 commit comments