@openapi-typescript-infra/service 6.10.1 → 6.10.2
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 +8 -2
- package/.github/workflows/codeql-analysis.yml +0 -77
- package/.github/workflows/nodejs.yml +0 -62
- package/.trunk/configs/.markdownlint.yaml +0 -10
- package/.trunk/configs/.yamllint.yaml +0 -10
- package/.trunk/trunk.yaml +0 -35
- package/.yarn/patches/confit-npm-3.0.0-eade8c7ce1.patch +0 -52
- package/.yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs +0 -541
- package/.yarn/releases/yarn-3.2.3.cjs +0 -783
- package/.yarnrc.yml +0 -7
- package/CHANGELOG.md +0 -525
- package/SECURITY.md +0 -12
- package/__tests__/config.test.ts +0 -53
- package/__tests__/fake-serv/api/fake-serv.yaml +0 -48
- package/__tests__/fake-serv/config/config.json +0 -13
- package/__tests__/fake-serv/src/handlers/hello.ts +0 -17
- package/__tests__/fake-serv/src/index.ts +0 -36
- package/__tests__/fake-serv/src/routes/error.ts +0 -16
- package/__tests__/fake-serv/src/routes/index.ts +0 -19
- package/__tests__/fake-serv/src/routes/other/world.ts +0 -7
- package/__tests__/fake-serv.test.ts +0 -119
- package/__tests__/vitest.test-setup.ts +0 -15
- package/src/bin/start-service.ts +0 -32
- package/src/bootstrap.ts +0 -160
- package/src/config/index.ts +0 -124
- package/src/config/schema.ts +0 -70
- package/src/config/shortstops.ts +0 -155
- package/src/config/validation.ts +0 -23
- package/src/development/port-finder.ts +0 -67
- package/src/development/repl.ts +0 -131
- package/src/env.ts +0 -29
- package/src/error.ts +0 -47
- package/src/express-app/app.ts +0 -438
- package/src/express-app/index.ts +0 -3
- package/src/express-app/internal-server.ts +0 -43
- package/src/express-app/modules.ts +0 -10
- package/src/express-app/route-loader.ts +0 -40
- package/src/express-app/types.ts +0 -32
- package/src/hook.ts +0 -36
- package/src/index.ts +0 -9
- package/src/openapi.ts +0 -184
- package/src/telemetry/DummyExporter.ts +0 -17
- package/src/telemetry/hook-modules.ts +0 -8
- package/src/telemetry/index.ts +0 -168
- package/src/telemetry/instrumentations.ts +0 -103
- package/src/telemetry/requestLogger.ts +0 -267
- package/src/tsx.d.ts +0 -1
- package/src/types.ts +0 -223
package/.yarnrc.yml
DELETED
package/CHANGELOG.md
DELETED
|
@@ -1,525 +0,0 @@
|
|
|
1
|
-
## [4.10.2](https://github.com/openapi-typescript-infra/service/compare/v4.10.1...v4.10.2) (2023-11-26)
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
### Bug Fixes
|
|
5
|
-
|
|
6
|
-
* **openapi:** allow partial config ([b8d6898](https://github.com/openapi-typescript-infra/service/commit/b8d68980e41df2b94c5bc62c6e9e4da1f3e5b97a))
|
|
7
|
-
|
|
8
|
-
## [4.10.1](https://github.com/openapi-typescript-infra/service/compare/v4.10.0...v4.10.1) (2023-11-26)
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
### Bug Fixes
|
|
12
|
-
|
|
13
|
-
* **schema:** add missing schema change ([878fda5](https://github.com/openapi-typescript-infra/service/commit/878fda554544a9dfbb01e4677e20018c144416d0))
|
|
14
|
-
|
|
15
|
-
# [4.10.0](https://github.com/openapi-typescript-infra/service/compare/v4.9.1...v4.10.0) (2023-11-26)
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
### Features
|
|
19
|
-
|
|
20
|
-
* **openapi:** allow config file options for openapi, validateResponses in test ([d28d9bd](https://github.com/openapi-typescript-infra/service/commit/d28d9bdc01a852cf3e1ab429e521a1dade8bf4b3))
|
|
21
|
-
|
|
22
|
-
## [4.9.1](https://github.com/openapi-typescript-infra/service/compare/v4.9.0...v4.9.1) (2023-11-25)
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
### Bug Fixes
|
|
26
|
-
|
|
27
|
-
* **make:** update typia make to play nice with dependencies ([dbdae34](https://github.com/openapi-typescript-infra/service/commit/dbdae34f6e8a9e59d5e7374fa4f19d72b0019911))
|
|
28
|
-
|
|
29
|
-
# [4.9.0](https://github.com/openapi-typescript-infra/service/compare/v4.8.7...v4.9.0) (2023-11-23)
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
### Features
|
|
33
|
-
|
|
34
|
-
* **ip:** log ip and session id ([a8f280f](https://github.com/openapi-typescript-infra/service/commit/a8f280fa8499b9eccd267eef945c57e2c9422cd6))
|
|
35
|
-
|
|
36
|
-
## [4.8.7](https://github.com/openapi-typescript-infra/service/compare/v4.8.6...v4.8.7) (2023-11-20)
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
### Bug Fixes
|
|
40
|
-
|
|
41
|
-
* **make:** another indent fix ([28120f9](https://github.com/openapi-typescript-infra/service/commit/28120f999bd92ec93791fb9116999f7557dbc05b))
|
|
42
|
-
|
|
43
|
-
## [4.8.6](https://github.com/openapi-typescript-infra/service/compare/v4.8.5...v4.8.6) (2023-11-20)
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
### Bug Fixes
|
|
47
|
-
|
|
48
|
-
* **make:** fix tabs ([a67d33a](https://github.com/openapi-typescript-infra/service/commit/a67d33abbe7bf2f98f3fafea4d9dab6b835ab86d))
|
|
49
|
-
|
|
50
|
-
## [4.8.5](https://github.com/openapi-typescript-infra/service/compare/v4.8.4...v4.8.5) (2023-11-20)
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
### Bug Fixes
|
|
54
|
-
|
|
55
|
-
* **typia:** use a local copy instead of npx ([3f1f3eb](https://github.com/openapi-typescript-infra/service/commit/3f1f3eb04a25ea00b333fb89b21c4953d694478f))
|
|
56
|
-
|
|
57
|
-
## [4.8.4](https://github.com/openapi-typescript-infra/service/compare/v4.8.3...v4.8.4) (2023-11-20)
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
### Bug Fixes
|
|
61
|
-
|
|
62
|
-
* **make:** don't remove dir if we didn't make it ([ae06a6b](https://github.com/openapi-typescript-infra/service/commit/ae06a6bb7c64d5a922fc9baaf9f491fe214cb86e))
|
|
63
|
-
|
|
64
|
-
## [4.8.3](https://github.com/openapi-typescript-infra/service/compare/v4.8.2...v4.8.3) (2023-11-17)
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
### Bug Fixes
|
|
68
|
-
|
|
69
|
-
* **types:** allow partial openapi options to be provided ([e639e02](https://github.com/openapi-typescript-infra/service/commit/e639e02e53cae959e0e3aeadcab9e58fa5c171d6))
|
|
70
|
-
|
|
71
|
-
## [4.8.2](https://github.com/openapi-typescript-infra/service/compare/v4.8.1...v4.8.2) (2023-11-16)
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
### Bug Fixes
|
|
75
|
-
|
|
76
|
-
* **make:** use yarn to run prettier ([a8b436d](https://github.com/openapi-typescript-infra/service/commit/a8b436d2d100df34021f529451c32ddb7e05bf60))
|
|
77
|
-
|
|
78
|
-
## [4.8.1](https://github.com/openapi-typescript-infra/service/compare/v4.8.0...v4.8.1) (2023-11-11)
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
### Bug Fixes
|
|
82
|
-
|
|
83
|
-
* **regex:** throw on badly formatted regex ([75030fd](https://github.com/openapi-typescript-infra/service/commit/75030fd4f16ffadb728d596dd4855445489d7929))
|
|
84
|
-
|
|
85
|
-
# [4.8.0](https://github.com/openapi-typescript-infra/service/compare/v4.7.0...v4.8.0) (2023-11-11)
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
### Features
|
|
89
|
-
|
|
90
|
-
* **config:** allow additional shortstop handlers to be inserted before configuration is loaded ([8fd3991](https://github.com/openapi-typescript-infra/service/commit/8fd39919ebd38ae45e198177bf10a9a741c0a000))
|
|
91
|
-
|
|
92
|
-
# [4.7.0](https://github.com/openapi-typescript-infra/service/compare/v4.6.3...v4.7.0) (2023-11-06)
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
### Features
|
|
96
|
-
|
|
97
|
-
* **log:** do not log 'pre' request log unless configured to do so ([3f1c77f](https://github.com/openapi-typescript-infra/service/commit/3f1c77f64cbd39ee5a85f1a4df53e682d08e968f))
|
|
98
|
-
|
|
99
|
-
## [4.6.3](https://github.com/openapi-typescript-infra/service/compare/v4.6.2...v4.6.3) (2023-11-05)
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
### Bug Fixes
|
|
103
|
-
|
|
104
|
-
* **logging:** clean up logging config ([8f11e49](https://github.com/openapi-typescript-infra/service/commit/8f11e495c49c53365f5d7d01cab85a9003868734))
|
|
105
|
-
|
|
106
|
-
## [4.6.2](https://github.com/openapi-typescript-infra/service/compare/v4.6.1...v4.6.2) (2023-11-01)
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
### Bug Fixes
|
|
110
|
-
|
|
111
|
-
* **trust:** allow trust proxy to be set to true ([d62ebff](https://github.com/openapi-typescript-infra/service/commit/d62ebffefb9a169ad4be7672273404a495a35a7a))
|
|
112
|
-
|
|
113
|
-
## [4.6.1](https://github.com/openapi-typescript-infra/service/compare/v4.6.0...v4.6.1) (2023-10-31)
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
### Bug Fixes
|
|
117
|
-
|
|
118
|
-
* **metrics:** fixup the path when not available ([b2b8ee1](https://github.com/openapi-typescript-infra/service/commit/b2b8ee118af6e71dcf6c506163aa38231be6172f))
|
|
119
|
-
|
|
120
|
-
# [4.6.0](https://github.com/openapi-typescript-infra/service/compare/v4.5.4...v4.6.0) (2023-10-31)
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
### Features
|
|
124
|
-
|
|
125
|
-
* **metrics:** expose per-path per-status per-method express metrics ([2dde8b3](https://github.com/openapi-typescript-infra/service/commit/2dde8b3beb5b147dcbe48607e39950ec3b13cfef))
|
|
126
|
-
|
|
127
|
-
## [4.5.4](https://github.com/openapi-typescript-infra/service/compare/v4.5.3...v4.5.4) (2023-10-22)
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
### Bug Fixes
|
|
131
|
-
|
|
132
|
-
* **deps:** get latest confit ([156d883](https://github.com/openapi-typescript-infra/service/commit/156d88354e17c5913b79df9300de23b3184220d5))
|
|
133
|
-
|
|
134
|
-
## [4.5.3](https://github.com/openapi-typescript-infra/service/compare/v4.5.2...v4.5.3) (2023-10-20)
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
### Bug Fixes
|
|
138
|
-
|
|
139
|
-
* **deps:** get new confit for updated formatters ([d411d80](https://github.com/openapi-typescript-infra/service/commit/d411d808b7106ffac25464f09988ccedfc62b3c5))
|
|
140
|
-
|
|
141
|
-
## [4.5.2](https://github.com/openapi-typescript-infra/service/compare/v4.5.1...v4.5.2) (2023-10-20)
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
### Bug Fixes
|
|
145
|
-
|
|
146
|
-
* **make:** only build db when migrations change ([0bee073](https://github.com/openapi-typescript-infra/service/commit/0bee0737c84d8053f62e340f64715c1e2c4f69b3))
|
|
147
|
-
|
|
148
|
-
## [4.5.1](https://github.com/openapi-typescript-infra/service/compare/v4.5.0...v4.5.1) (2023-10-19)
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
### Bug Fixes
|
|
152
|
-
|
|
153
|
-
* **config:** remove unused config ([263d084](https://github.com/openapi-typescript-infra/service/commit/263d0841ca630760ddff2f746f73870c4d8eddee))
|
|
154
|
-
|
|
155
|
-
# [4.5.0](https://github.com/openapi-typescript-infra/service/compare/v4.4.0...v4.5.0) (2023-10-19)
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
### Features
|
|
159
|
-
|
|
160
|
-
* **config:** expose helpers for configuration validation ([4659807](https://github.com/openapi-typescript-infra/service/commit/46598073015ac36c83f9872d986345af1e6b4f28))
|
|
161
|
-
|
|
162
|
-
# [4.4.0](https://github.com/openapi-typescript-infra/service/compare/v4.3.4...v4.4.0) (2023-10-19)
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
### Bug Fixes
|
|
166
|
-
|
|
167
|
-
* **confit:** get latest confit and fix issue with tls keys from config ([20cab44](https://github.com/openapi-typescript-infra/service/commit/20cab443fa60b0f6ce6bad7037cba593437d9e3a))
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
### Features
|
|
171
|
-
|
|
172
|
-
* **config:** remove config schema generation, it's not ready yet ([9db5c98](https://github.com/openapi-typescript-infra/service/commit/9db5c981efdb3ed1dbe36acf02817a7f11fdbdd9))
|
|
173
|
-
|
|
174
|
-
## [4.3.4](https://github.com/openapi-typescript-infra/service/compare/v4.3.3...v4.3.4) (2023-10-19)
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
### Bug Fixes
|
|
178
|
-
|
|
179
|
-
* **openapi:** spec is in a prop of loader result ([818f204](https://github.com/openapi-typescript-infra/service/commit/818f2045e84eb1069ed729e445d974372f8e7e97))
|
|
180
|
-
|
|
181
|
-
## [4.3.3](https://github.com/openapi-typescript-infra/service/compare/v4.3.2...v4.3.3) (2023-10-19)
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
### Bug Fixes
|
|
185
|
-
|
|
186
|
-
* **openapi:** move openapi url to match swagger UI ([2b19d1a](https://github.com/openapi-typescript-infra/service/commit/2b19d1a3817973fa1c013c8f4f2d23e663241c3a))
|
|
187
|
-
|
|
188
|
-
## [4.3.2](https://github.com/openapi-typescript-infra/service/compare/v4.3.1...v4.3.2) (2023-10-19)
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
### Bug Fixes
|
|
192
|
-
|
|
193
|
-
* **make:** point to generate schema script properly ([2c3c824](https://github.com/openapi-typescript-infra/service/commit/2c3c824e08837d1323f7e09a745ca6bb39ea3b8f))
|
|
194
|
-
|
|
195
|
-
## [4.3.1](https://github.com/openapi-typescript-infra/service/compare/v4.3.0...v4.3.1) (2023-10-19)
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
### Bug Fixes
|
|
199
|
-
|
|
200
|
-
* **make:** use more compatible awk function ([fa9adda](https://github.com/openapi-typescript-infra/service/commit/fa9addab9be8a56e5ec99d8d6e9c436b1faccc40))
|
|
201
|
-
|
|
202
|
-
# [4.3.0](https://github.com/openapi-typescript-infra/service/compare/v4.2.0...v4.3.0) (2023-10-19)
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
### Bug Fixes
|
|
206
|
-
|
|
207
|
-
* **yarn:** update lockfile ([24b492b](https://github.com/openapi-typescript-infra/service/commit/24b492b4c8780a361b8187ce6e002c94d862fb27))
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
### Features
|
|
211
|
-
|
|
212
|
-
* **config:** add support for generating config schema validation ([a5c9c3f](https://github.com/openapi-typescript-infra/service/commit/a5c9c3f65bfc2798a97a4ffe960ffd88df9f9115))
|
|
213
|
-
|
|
214
|
-
# [4.2.0](https://github.com/openapi-typescript-infra/service/compare/v4.1.1...v4.2.0) (2023-10-18)
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
### Features
|
|
218
|
-
|
|
219
|
-
* **env:** support staging environments ([60baaa3](https://github.com/openapi-typescript-infra/service/commit/60baaa3e15c8a04ae10644d889c329558fb01aa8))
|
|
220
|
-
|
|
221
|
-
## [4.1.1](https://github.com/openapi-typescript-infra/service/compare/v4.1.0...v4.1.1) (2023-10-18)
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
### Bug Fixes
|
|
225
|
-
|
|
226
|
-
* **version:** add version info to service metadata ([d5c7efa](https://github.com/openapi-typescript-infra/service/commit/d5c7efa77b9b56b7702df778b1b1ebaea7c623fc))
|
|
227
|
-
|
|
228
|
-
# [4.1.0](https://github.com/openapi-typescript-infra/service/compare/v4.0.0...v4.1.0) (2023-10-18)
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
### Features
|
|
232
|
-
|
|
233
|
-
* **openapi:** expose API spec on internal server port ([ea33b95](https://github.com/openapi-typescript-infra/service/commit/ea33b9594ef891765c2be7fdf85fc0c53d3337cd))
|
|
234
|
-
|
|
235
|
-
# [4.0.0](https://github.com/openapi-typescript-infra/service/compare/v3.0.3...v4.0.0) (2023-10-18)
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
### Features
|
|
239
|
-
|
|
240
|
-
* **config:** expose raw configuration schema ([fae719d](https://github.com/openapi-typescript-infra/service/commit/fae719de5a73084c0580058bc59b59a74861f66f))
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
### BREAKING CHANGES
|
|
244
|
-
|
|
245
|
-
* **config:** No more config.get, just access config directly
|
|
246
|
-
|
|
247
|
-
## [3.0.3](https://github.com/openapi-typescript-infra/service/compare/v3.0.2...v3.0.3) (2023-10-18)
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
### Bug Fixes
|
|
251
|
-
|
|
252
|
-
* **types:** simplify ServiceRouter by removing config arg ([8f1e334](https://github.com/openapi-typescript-infra/service/commit/8f1e334a45b6f8bed5b6c7f1e61136522e7faef9))
|
|
253
|
-
|
|
254
|
-
## [3.0.2](https://github.com/openapi-typescript-infra/service/compare/v3.0.1...v3.0.2) (2023-10-18)
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
### Bug Fixes
|
|
258
|
-
|
|
259
|
-
* **types:** distribute the pain of typed config across all the types ([46bdd6b](https://github.com/openapi-typescript-infra/service/commit/46bdd6bc49c97fa4fb7bba38afa56480c178fa6b))
|
|
260
|
-
* **types:** rework all the types to be significantly simpler ([8f05ab4](https://github.com/openapi-typescript-infra/service/commit/8f05ab41090c1eb81e1513daefd45451c6953b0a))
|
|
261
|
-
|
|
262
|
-
## [3.0.1](https://github.com/openapi-typescript-infra/service/compare/v3.0.0...v3.0.1) (2023-10-17)
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
### Bug Fixes
|
|
266
|
-
|
|
267
|
-
* **types:** config derives from base config ([664c0d9](https://github.com/openapi-typescript-infra/service/commit/664c0d9ef3024ea18d9a830860b56b3a4c0a4f7f))
|
|
268
|
-
|
|
269
|
-
# [3.0.0](https://github.com/openapi-typescript-infra/service/compare/v2.10.0...v3.0.0) (2023-10-17)
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
### Features
|
|
273
|
-
|
|
274
|
-
* **config:** move to a typed confit library ([9ff56b3](https://github.com/openapi-typescript-infra/service/commit/9ff56b3c666a0fa0f099f5a4d24365e6772ad83a))
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
### BREAKING CHANGES
|
|
278
|
-
|
|
279
|
-
* **config:** ServiceLocals now need a config schema
|
|
280
|
-
|
|
281
|
-
# [2.10.0](https://github.com/openapi-typescript-infra/service/compare/v2.9.2...v2.10.0) (2023-10-13)
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
### Bug Fixes
|
|
285
|
-
|
|
286
|
-
* **fetch:** use shared fetch instrumentation library ([75cd946](https://github.com/openapi-typescript-infra/service/commit/75cd9465a9306e80e64b756a071bba231d5a1270))
|
|
287
|
-
* **otel:** update opentelemetry deps that don't break ([8db35cb](https://github.com/openapi-typescript-infra/service/commit/8db35cbd2f41499e5b2c9474d61a529e5e9145c6))
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
### Features
|
|
291
|
-
|
|
292
|
-
* **metrics:** add node metrics ([ca5ebca](https://github.com/openapi-typescript-infra/service/commit/ca5ebca604e77b05968f0338f4fe7622ee3de91e))
|
|
293
|
-
|
|
294
|
-
## [2.9.2](https://github.com/openapi-typescript-infra/service/compare/v2.9.1...v2.9.2) (2023-10-06)
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
### Bug Fixes
|
|
298
|
-
|
|
299
|
-
* **config:** proper root directory for file and other path shortstops ([7a1b5bb](https://github.com/openapi-typescript-infra/service/commit/7a1b5bb2e3a6bfb5d343ec41adaf56e1c2f9f874))
|
|
300
|
-
|
|
301
|
-
## [2.9.1](https://github.com/openapi-typescript-infra/service/compare/v2.9.0...v2.9.1) (2023-10-03)
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
### Bug Fixes
|
|
305
|
-
|
|
306
|
-
* **repl:** pass the app to the repl attachment function ([76d77de](https://github.com/openapi-typescript-infra/service/commit/76d77de2f77cf5fabacb12db295471f988cdc6d3))
|
|
307
|
-
|
|
308
|
-
# [2.9.0](https://github.com/openapi-typescript-infra/service/compare/v2.8.2...v2.9.0) (2023-10-03)
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
### Features
|
|
312
|
-
|
|
313
|
-
* **repl:** allow extra setup on REPL ([b4d0a92](https://github.com/openapi-typescript-infra/service/commit/b4d0a920de07c8717ecb623af6d6b5316394659e))
|
|
314
|
-
|
|
315
|
-
## [2.8.2](https://github.com/openapi-typescript-infra/service/compare/v2.8.1...v2.8.2) (2023-09-29)
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
### Bug Fixes
|
|
319
|
-
|
|
320
|
-
* **otlp:** add resource detectors ([04ee92d](https://github.com/openapi-typescript-infra/service/commit/04ee92de9c9df63dda56e8a000d803af6b7801c3))
|
|
321
|
-
|
|
322
|
-
## [2.8.1](https://github.com/openapi-typescript-infra/service/compare/v2.8.0...v2.8.1) (2023-09-29)
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
### Bug Fixes
|
|
326
|
-
|
|
327
|
-
* **log:** log actual metrics port ([63ba066](https://github.com/openapi-typescript-infra/service/commit/63ba0668116b700340f47981a6ca29b7926a3c6e))
|
|
328
|
-
|
|
329
|
-
# [2.8.0](https://github.com/openapi-typescript-infra/service/compare/v2.7.7...v2.8.0) (2023-09-29)
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
### Features
|
|
333
|
-
|
|
334
|
-
* **otlp:** rework OpenTelemetry integration to deal with limitations… ([#10](https://github.com/openapi-typescript-infra/service/issues/10)) ([5ce6e42](https://github.com/openapi-typescript-infra/service/commit/5ce6e42d76041142c23aec5cd5738173197e9613))
|
|
335
|
-
|
|
336
|
-
## [2.7.7](https://github.com/openapi-typescript-infra/service/compare/v2.7.6...v2.7.7) (2023-09-27)
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
### Bug Fixes
|
|
340
|
-
|
|
341
|
-
* **deps:** upgrade to avoid CVE-2022-24999 in qs ([fb85750](https://github.com/openapi-typescript-infra/service/commit/fb8575098ce876d71dd6898a8f70f0bf47e78b37))
|
|
342
|
-
|
|
343
|
-
## [2.7.6](https://github.com/openapi-typescript-infra/service/compare/v2.7.5...v2.7.6) (2023-09-24)
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
### Bug Fixes
|
|
347
|
-
|
|
348
|
-
* **openapi:** change filename of JSON spec for clarity ([3807027](https://github.com/openapi-typescript-infra/service/commit/3807027141073cefd8e3f29d692864b9b0007a07))
|
|
349
|
-
|
|
350
|
-
## [2.7.5](https://github.com/openapi-typescript-infra/service/compare/v2.7.4...v2.7.5) (2023-09-22)
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
### Bug Fixes
|
|
354
|
-
|
|
355
|
-
* **log:** use sync logging for tests ([832cdfb](https://github.com/openapi-typescript-infra/service/commit/832cdfb8cb6c99af42740a714cf7c06dc2523538))
|
|
356
|
-
|
|
357
|
-
## [2.7.4](https://github.com/openapi-typescript-infra/service/compare/v2.7.3...v2.7.4) (2023-09-19)
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
### Bug Fixes
|
|
361
|
-
|
|
362
|
-
* **types:** add raw types to utility type ([f607fba](https://github.com/openapi-typescript-infra/service/commit/f607fba897a76e88652472946f64d225da302c9e))
|
|
363
|
-
|
|
364
|
-
## [2.7.3](https://github.com/openapi-typescript-infra/service/compare/v2.7.2...v2.7.3) (2023-09-19)
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
### Bug Fixes
|
|
368
|
-
|
|
369
|
-
* **types:** add express type ([79de1d4](https://github.com/openapi-typescript-infra/service/commit/79de1d4ac107454cf08623c3d837f5cb84b18c4a))
|
|
370
|
-
|
|
371
|
-
## [2.7.2](https://github.com/openapi-typescript-infra/service/compare/v2.7.1...v2.7.2) (2023-09-19)
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
### Bug Fixes
|
|
375
|
-
|
|
376
|
-
* **types:** add a container type to make life easier ([a74ded1](https://github.com/openapi-typescript-infra/service/commit/a74ded1b784443375ee1e3fee32c60140759eb3a))
|
|
377
|
-
|
|
378
|
-
## [2.7.1](https://github.com/openapi-typescript-infra/service/compare/v2.7.0...v2.7.1) (2023-09-18)
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
### Bug Fixes
|
|
382
|
-
|
|
383
|
-
* **otlp:** dummy exporter needs to flush records ([8d6d1a3](https://github.com/openapi-typescript-infra/service/commit/8d6d1a3cd42531f4ad0f8678eec66dab1b9e45a0))
|
|
384
|
-
|
|
385
|
-
# [2.7.0](https://github.com/openapi-typescript-infra/service/compare/v2.6.7...v2.7.0) (2023-09-18)
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
### Features
|
|
389
|
-
|
|
390
|
-
* **otlp:** cleanup OTLP setup, though still sketchy ([5ee63ac](https://github.com/openapi-typescript-infra/service/commit/5ee63ac6d3d519fb8d6a9d321d0bf59991e7db40))
|
|
391
|
-
|
|
392
|
-
## [2.6.7](https://github.com/openapi-typescript-infra/service/compare/v2.6.6...v2.6.7) (2023-09-17)
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
### Bug Fixes
|
|
396
|
-
|
|
397
|
-
* **ts:** switch to tsc-alias ([4fd845d](https://github.com/openapi-typescript-infra/service/commit/4fd845dd5795aec14af2ea59aa97eb8a0b6aeef1))
|
|
398
|
-
|
|
399
|
-
## [2.6.6](https://github.com/openapi-typescript-infra/service/compare/v2.6.5...v2.6.6) (2023-09-17)
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
### Bug Fixes
|
|
403
|
-
|
|
404
|
-
* **ts:** automatically run tsconfig-replace-paths if it exists ([cf89107](https://github.com/openapi-typescript-infra/service/commit/cf89107065df3da5d920e8032bdf00feea0f64c1))
|
|
405
|
-
|
|
406
|
-
## [2.6.5](https://github.com/openapi-typescript-infra/service/compare/v2.6.4...v2.6.5) (2023-09-17)
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
### Bug Fixes
|
|
410
|
-
|
|
411
|
-
* **glob:** ignore spec, fixture and test files when loading routes ([350ccd6](https://github.com/openapi-typescript-infra/service/commit/350ccd66f439830ef976df02d312e4bae0ac567d))
|
|
412
|
-
|
|
413
|
-
## [2.6.4](https://github.com/openapi-typescript-infra/service/compare/v2.6.3...v2.6.4) (2023-09-17)
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
### Bug Fixes
|
|
417
|
-
|
|
418
|
-
* **make:** allow bundling of spec to deterministic path ([16ff04e](https://github.com/openapi-typescript-infra/service/commit/16ff04ee7c55868cf65f0b686ca99db416b78eff))
|
|
419
|
-
|
|
420
|
-
## [2.6.3](https://github.com/openapi-typescript-infra/service/compare/v2.6.2...v2.6.3) (2023-09-16)
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
### Bug Fixes
|
|
424
|
-
|
|
425
|
-
* **openapi:** use latest cli ([2cf2fa2](https://github.com/openapi-typescript-infra/service/commit/2cf2fa222b56ac607c1d9eed0313d6efcd1cf738))
|
|
426
|
-
|
|
427
|
-
## [2.6.2](https://github.com/openapi-typescript-infra/service/compare/v2.6.1...v2.6.2) (2023-09-16)
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
### Bug Fixes
|
|
431
|
-
|
|
432
|
-
* **openapi:** depend on all files in subdirs ([d4eaa2c](https://github.com/openapi-typescript-infra/service/commit/d4eaa2cdbaa791bb250f41ce6703c32f8c90b192))
|
|
433
|
-
|
|
434
|
-
## [2.6.1](https://github.com/openapi-typescript-infra/service/compare/v2.6.0...v2.6.1) (2023-09-16)
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
### Bug Fixes
|
|
438
|
-
|
|
439
|
-
* **openapi:** proper dependency for split spec files ([cc82772](https://github.com/openapi-typescript-infra/service/commit/cc827722939113faf5e03d7b5685dc38e6ceeb52))
|
|
440
|
-
|
|
441
|
-
# [2.6.0](https://github.com/openapi-typescript-infra/service/compare/v2.5.0...v2.6.0) (2023-09-16)
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
### Bug Fixes
|
|
445
|
-
|
|
446
|
-
* **openapi:** bundle the service definition before type generation ([18ba0b4](https://github.com/openapi-typescript-infra/service/commit/18ba0b48289d18fd12b35bdb0275efa0d7edafd4))
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
### Features
|
|
450
|
-
|
|
451
|
-
* **otlp:** update opentelemetry and other deps ([330e7d1](https://github.com/openapi-typescript-infra/service/commit/330e7d169a03dbeda873186012167834711d8923))
|
|
452
|
-
|
|
453
|
-
# [2.5.0](https://github.com/openapi-typescript-infra/service/compare/v2.4.1...v2.5.0) (2023-09-05)
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
### Features
|
|
457
|
-
|
|
458
|
-
* **port:** determine service port earlier - before service starts ([c593f27](https://github.com/openapi-typescript-infra/service/commit/c593f27dae20ea19fdd8f79611b16c2b179d7a4d))
|
|
459
|
-
|
|
460
|
-
## [2.4.1](https://github.com/openapi-typescript-infra/service/compare/v2.4.0...v2.4.1) (2023-09-04)
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
### Bug Fixes
|
|
464
|
-
|
|
465
|
-
* **server:** log proper port on startup ([7fa4ba5](https://github.com/openapi-typescript-infra/service/commit/7fa4ba59c38b8e534c80f061ef0f8660ac07ee09))
|
|
466
|
-
|
|
467
|
-
# [2.4.0](https://github.com/openapi-typescript-infra/service/compare/v2.3.0...v2.4.0) (2023-09-02)
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
### Features
|
|
471
|
-
|
|
472
|
-
* **lifecycle:** add a method pre-route loading to attach locals ([e20da8b](https://github.com/openapi-typescript-infra/service/commit/e20da8b13957436c149a4eeb0794a8560243c876))
|
|
473
|
-
|
|
474
|
-
# [2.3.0](https://github.com/openapi-typescript-infra/service/compare/v2.2.0...v2.3.0) (2023-09-01)
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
### Bug Fixes
|
|
478
|
-
|
|
479
|
-
* **ci:** update default permissions ([7d4b1ce](https://github.com/openapi-typescript-infra/service/commit/7d4b1ce383eb403706798599586fcf54ca533a50))
|
|
480
|
-
* **ci:** update semantic release job permissions ([5fe90c8](https://github.com/openapi-typescript-infra/service/commit/5fe90c893ea682c77b4d896b1964a9e4b7fe6624))
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
### Features
|
|
484
|
-
|
|
485
|
-
* **logs:** better startup logging including URL ([a3f7146](https://github.com/openapi-typescript-infra/service/commit/a3f7146d10cb530999fb027d9f9769343eda1039))
|
|
486
|
-
|
|
487
|
-
# [2.2.0](https://github.com/openapi-typescript-infra/service/compare/v2.1.0...v2.2.0) (2023-09-01)
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
### Features
|
|
491
|
-
|
|
492
|
-
* **config:** handle tilde for homedir in path and file shortstops ([3c4abdc](https://github.com/openapi-typescript-infra/service/commit/3c4abdc9bfa3657a5fe9cbeae4cb8f50e990e9df))
|
|
493
|
-
|
|
494
|
-
# [2.1.0](https://github.com/openapi-typescript-infra/service/compare/v2.0.2...v2.1.0) (2023-09-01)
|
|
495
|
-
|
|
496
|
-
### Features
|
|
497
|
-
|
|
498
|
-
- **tls:** allow TLS listeners, handle errors better ([005e79a](https://github.com/openapi-typescript-infra/service/commit/005e79a76cdc6fe2c73006f8931b0085bce4a895))
|
|
499
|
-
|
|
500
|
-
## [2.0.2](https://github.com/openapi-typescript-infra/service/compare/v2.0.1...v2.0.2) (2023-08-26)
|
|
501
|
-
|
|
502
|
-
### Bug Fixes
|
|
503
|
-
|
|
504
|
-
- **paths:** include tsconfig-paths during dev ([b1a5c14](https://github.com/openapi-typescript-infra/service/commit/b1a5c1450bc3736a397731602453473c6ad5df8f))
|
|
505
|
-
|
|
506
|
-
## [2.0.1](https://github.com/openapi-typescript-infra/service/compare/v2.0.0...v2.0.1) (2023-08-17)
|
|
507
|
-
|
|
508
|
-
### Bug Fixes
|
|
509
|
-
|
|
510
|
-
- **loading:** preserve paths in route loader ([878c94d](https://github.com/openapi-typescript-infra/service/commit/878c94d18486372dc0fe234aac343e6a73cae73e))
|
|
511
|
-
|
|
512
|
-
# [2.0.0](https://github.com/openapi-typescript-infra/service/compare/v1.2.2...v2.0.0) (2023-08-17)
|
|
513
|
-
|
|
514
|
-
### Bug Fixes
|
|
515
|
-
|
|
516
|
-
- **test:** move to vitest ([360c0ae](https://github.com/openapi-typescript-infra/service/commit/360c0ae8f4dfcf8ac0650980543340f97e72da5b))
|
|
517
|
-
|
|
518
|
-
### BREAKING CHANGES
|
|
519
|
-
|
|
520
|
-
- **test:** module loading mechanics have changed
|
|
521
|
-
|
|
522
|
-
# 1.0.0
|
|
523
|
-
|
|
524
|
-
- Migrated from @gas-buddy organization to openapi-typescript-infra
|
|
525
|
-
- Reworked some GB specific wording
|
package/SECURITY.md
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
# Security Policy
|
|
2
|
-
|
|
3
|
-
## Supported Versions
|
|
4
|
-
|
|
5
|
-
| Version | Supported |
|
|
6
|
-
| ------- | ------------------ |
|
|
7
|
-
| 11.0.x | :white_check_mark: |
|
|
8
|
-
| < 11.0 | :x: |
|
|
9
|
-
|
|
10
|
-
## Reporting a Vulnerability
|
|
11
|
-
|
|
12
|
-
File an issue win this repo and you can expect a response within 1 business day. @djMax is the primary contact.
|
package/__tests__/config.test.ts
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import os from 'os';
|
|
2
|
-
import path from 'path';
|
|
3
|
-
import { fileURLToPath } from 'url';
|
|
4
|
-
|
|
5
|
-
import { describe, expect, test } from 'vitest';
|
|
6
|
-
|
|
7
|
-
import type { ConfigurationSchema} from '../src/config/index.js';
|
|
8
|
-
import { insertConfigurationBefore, loadConfiguration } from '../src/config/index.js';
|
|
9
|
-
import { shortstops } from '../src/config/shortstops.js';
|
|
10
|
-
|
|
11
|
-
interface CustomConfig extends ConfigurationSchema {
|
|
12
|
-
google: string;
|
|
13
|
-
envswitchon: boolean;
|
|
14
|
-
envswitchoff: boolean;
|
|
15
|
-
servicetype: string;
|
|
16
|
-
oservicetype: string;
|
|
17
|
-
notservicetype: string;
|
|
18
|
-
bash_profile: string;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
describe('configuration loader', () => {
|
|
22
|
-
test('overrides and shortstops', async () => {
|
|
23
|
-
const __filename = fileURLToPath(import.meta.url);
|
|
24
|
-
const __dirname = path.dirname(__filename);
|
|
25
|
-
const rootDirectory = path.resolve(__dirname, './fake-serv');
|
|
26
|
-
const shortstopHandlers = shortstops({ name: 'fake-serv' }, path.join(rootDirectory, 'src'));
|
|
27
|
-
const config = await loadConfiguration<CustomConfig>({
|
|
28
|
-
configurationDirectories: [path.resolve(rootDirectory, './config')],
|
|
29
|
-
shortstopHandlers,
|
|
30
|
-
});
|
|
31
|
-
|
|
32
|
-
expect(config.logging?.level).toEqual('debug');
|
|
33
|
-
expect(config.google).toBeTruthy();
|
|
34
|
-
expect(config.google).not.toEqual('google.com');
|
|
35
|
-
|
|
36
|
-
expect(config.envswitchoff).toBeFalsy();
|
|
37
|
-
expect(config.envswitchon).toBeTruthy();
|
|
38
|
-
|
|
39
|
-
expect(config.servicetype).toBeTruthy();
|
|
40
|
-
expect(config.oservicetype).toBeTruthy();
|
|
41
|
-
expect(config.notservicetype).toBeFalsy();
|
|
42
|
-
|
|
43
|
-
expect(config.bash_profile).toEqual(path.join(os.homedir(), '.bash_profile'));
|
|
44
|
-
|
|
45
|
-
const orig = ['a', 'b', 'd'];
|
|
46
|
-
const withC = insertConfigurationBefore(orig, 'c', 'd');
|
|
47
|
-
expect(withC).toEqual(['a', 'b', 'c', 'd']);
|
|
48
|
-
const withE = insertConfigurationBefore(orig, 'e', 'q');
|
|
49
|
-
expect(withE).toEqual(['a', 'b', 'd', 'e', 'q']);
|
|
50
|
-
expect(insertConfigurationBefore(undefined, 'a', 'b')).toEqual(['a', 'b']);
|
|
51
|
-
expect(insertConfigurationBefore([], 'a', 'b')).toEqual(['a', 'b']);
|
|
52
|
-
});
|
|
53
|
-
});
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
openapi: 3.0.0
|
|
2
|
-
info:
|
|
3
|
-
title: Fake Service
|
|
4
|
-
version: 1.0.0
|
|
5
|
-
paths:
|
|
6
|
-
/hello:
|
|
7
|
-
get:
|
|
8
|
-
description: Get a greeting
|
|
9
|
-
parameters:
|
|
10
|
-
- name: greeting
|
|
11
|
-
in: query
|
|
12
|
-
required: false
|
|
13
|
-
schema:
|
|
14
|
-
type: string
|
|
15
|
-
- name: number
|
|
16
|
-
in: query
|
|
17
|
-
required: false
|
|
18
|
-
schema:
|
|
19
|
-
type: number
|
|
20
|
-
- name: break_things
|
|
21
|
-
in: query
|
|
22
|
-
required: false
|
|
23
|
-
schema:
|
|
24
|
-
type: boolean
|
|
25
|
-
responses:
|
|
26
|
-
200:
|
|
27
|
-
description: We responded
|
|
28
|
-
content:
|
|
29
|
-
application/json:
|
|
30
|
-
schema:
|
|
31
|
-
type: object
|
|
32
|
-
properties:
|
|
33
|
-
greeting:
|
|
34
|
-
type: string
|
|
35
|
-
post:
|
|
36
|
-
description: Test body conversion
|
|
37
|
-
requestBody:
|
|
38
|
-
content:
|
|
39
|
-
application/json:
|
|
40
|
-
schema:
|
|
41
|
-
type: object
|
|
42
|
-
properties:
|
|
43
|
-
number:
|
|
44
|
-
type: number
|
|
45
|
-
required: true
|
|
46
|
-
responses:
|
|
47
|
-
204:
|
|
48
|
-
description: I heard you
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"logging": {
|
|
3
|
-
"level": "debug"
|
|
4
|
-
},
|
|
5
|
-
"google": "dns:google.com",
|
|
6
|
-
"bash_profile": "path:~/.bash_profile",
|
|
7
|
-
"envswitchoff": "env_switch:ENV_VAR_DOESNT_EXIST",
|
|
8
|
-
"envswitchon": "env_switch:!ENV_VAR_DOESNT_EXIST",
|
|
9
|
-
"servicetype": "servicetype:serv",
|
|
10
|
-
"oservicetype": "servicetype:internal",
|
|
11
|
-
"notservicetype": "servicetype:api",
|
|
12
|
-
"server": {}
|
|
13
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { ServiceHandler } from '../../../../src/index';
|
|
2
|
-
import { repl$ } from '../../../../src/index';
|
|
3
|
-
import type { FakeServLocals } from '../index';
|
|
4
|
-
|
|
5
|
-
export const get: ServiceHandler<FakeServLocals> = async (req, res) => {
|
|
6
|
-
res.json({ greeting: req.query.greeting || 'Hello World' });
|
|
7
|
-
};
|
|
8
|
-
|
|
9
|
-
export const post: ServiceHandler<FakeServLocals> = async (req, res) => {
|
|
10
|
-
res.sendStatus(204);
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
export function thisIsATest() {
|
|
14
|
-
return 'Yes, true';
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
repl$(thisIsATest);
|