@forge/tunnel 0.0.0-experimental-d8cea00 → 0.0.0-experimental-c3d0263

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,14 +1,773 @@
1
1
  # @forge/tunnel
2
2
 
3
- ## 0.0.0-experimental-d8cea00
3
+ ## 0.0.0-experimental-c3d0263
4
+
5
+ ### Minor Changes
6
+
7
+ - cee5eea1: Observability improvements
8
+
9
+ ### Patch Changes
10
+
11
+ - ca79652: Improve observability
12
+ - Updated dependencies [cee5eea1]
13
+ - Updated dependencies [e95919f]
14
+ - Updated dependencies [56164fe]
15
+ - Updated dependencies [949bd40]
16
+ - Updated dependencies [ca79652]
17
+ - @forge/runtime@0.0.0-experimental-c3d0263
18
+ - @forge/csp@0.0.0-experimental-c3d0263
19
+ - @forge/cli-shared@0.0.0-experimental-c3d0263
20
+ - @forge/bundler@0.0.0-experimental-c3d0263
21
+
22
+ ## 1.6.0-next.9
23
+
24
+ ### Patch Changes
25
+
26
+ - @forge/cli-shared@2.3.0-next.8
27
+ - @forge/bundler@3.0.1-next.9
28
+
29
+ ## 1.6.0-next.8
30
+
31
+ ### Patch Changes
32
+
33
+ - ca79652: Improve observability
34
+ - Updated dependencies [ca79652]
35
+ - @forge/runtime@1.15.0-next.2
36
+ - @forge/cli-shared@2.3.0-next.7
37
+ - @forge/bundler@3.0.1-next.8
38
+
39
+ ## 1.6.0-next.7
40
+
41
+ ### Patch Changes
42
+
43
+ - Updated dependencies [e95919f]
44
+ - @forge/csp@1.10.0-next.1
45
+ - @forge/cli-shared@2.3.0-next.6
46
+ - @forge/bundler@3.0.1-next.7
47
+
48
+ ## 1.6.0-next.6
49
+
50
+ ### Patch Changes
51
+
52
+ - @forge/cli-shared@2.3.0-next.5
53
+ - @forge/bundler@3.0.1-next.6
54
+
55
+ ## 1.6.0-next.5
56
+
57
+ ### Patch Changes
58
+
59
+ - @forge/cli-shared@2.3.0-next.4
60
+ - @forge/bundler@3.0.1-next.5
61
+
62
+ ## 1.6.0-next.4
63
+
64
+ ### Minor Changes
65
+
66
+ - cee5eea: Observability improvements
67
+
68
+ ### Patch Changes
69
+
70
+ - Updated dependencies [cee5eea]
71
+ - @forge/runtime@1.15.0-next.1
72
+ - @forge/cli-shared@2.3.0-next.3
73
+ - @forge/bundler@3.0.1-next.4
74
+
75
+ ## 1.5.3-next.3
76
+
77
+ ### Patch Changes
78
+
79
+ - @forge/cli-shared@2.3.0-next.2
80
+ - @forge/bundler@3.0.1-next.3
81
+
82
+ ## 1.5.3-next.2
83
+
84
+ ### Patch Changes
85
+
86
+ - Updated dependencies [56164fe]
87
+ - @forge/csp@1.10.0-next.0
88
+ - @forge/runtime@1.14.1-next.0
89
+ - @forge/bundler@3.0.1-next.2
90
+
91
+ ## 1.5.3-next.1
92
+
93
+ ### Patch Changes
94
+
95
+ - @forge/cli-shared@2.3.0-next.1
96
+ - @forge/bundler@3.0.1-next.1
97
+
98
+ ## 1.5.3-next.0
99
+
100
+ ### Patch Changes
101
+
102
+ - Updated dependencies [949bd40]
103
+ - @forge/cli-shared@2.3.0-next.0
104
+ - @forge/bundler@3.0.1-next.0
105
+
106
+ ## 1.5.2
107
+
108
+ ### Patch Changes
109
+
110
+ - Updated dependencies [1f6cf08]
111
+ - Updated dependencies [f27cbfc]
112
+ - Updated dependencies [04fcd8c]
113
+ - Updated dependencies [3103a29]
114
+ - Updated dependencies [60fcb01]
115
+ - Updated dependencies [66f17fe]
116
+ - Updated dependencies [25bcf54]
117
+ - Updated dependencies [057cdfc]
118
+ - @forge/bundler@3.0.0
119
+ - @forge/runtime@1.14.0
120
+ - @forge/cli-shared@2.2.2
121
+
122
+ ## 1.5.2-next.11
123
+
124
+ ### Patch Changes
125
+
126
+ - Updated dependencies [04fcd8c7]
127
+ - @forge/bundler@3.0.0-next.10
128
+
129
+ ## 1.5.2-next.10
130
+
131
+ ### Patch Changes
132
+
133
+ - Updated dependencies [057cdfcc]
134
+ - @forge/bundler@3.0.0-next.9
135
+ - @forge/cli-shared@2.2.2-next.6
136
+
137
+ ## 1.5.2-next.9
138
+
139
+ ### Patch Changes
140
+
141
+ - @forge/cli-shared@2.2.2-next.5
142
+ - @forge/bundler@3.0.0-next.8
143
+
144
+ ## 1.5.2-next.8
145
+
146
+ ### Patch Changes
147
+
148
+ - Updated dependencies [3103a290]
149
+ - @forge/bundler@3.0.0-next.7
150
+ - @forge/cli-shared@2.2.2-next.4
151
+
152
+ ## 1.5.2-next.7
153
+
154
+ ### Patch Changes
155
+
156
+ - Updated dependencies [66f17fe]
157
+ - @forge/runtime@1.14.0-next.1
158
+
159
+ ## 1.5.2-next.6
160
+
161
+ ### Patch Changes
162
+
163
+ - Updated dependencies [60fcb01]
164
+ - @forge/bundler@3.0.0-next.6
165
+
166
+ ## 1.5.2-next.5
167
+
168
+ ### Patch Changes
169
+
170
+ - Updated dependencies [1f6cf083]
171
+ - @forge/bundler@2.1.0-next.5
172
+
173
+ ## 1.5.2-next.4
174
+
175
+ ### Patch Changes
176
+
177
+ - Updated dependencies [25bcf54e]
178
+ - @forge/runtime@1.14.0-next.0
179
+ - @forge/cli-shared@2.2.2-next.3
180
+ - @forge/bundler@2.0.1-next.4
181
+
182
+ ## 1.5.2-next.3
183
+
184
+ ### Patch Changes
185
+
186
+ - @forge/cli-shared@2.2.2-next.2
187
+ - @forge/bundler@2.0.1-next.3
188
+
189
+ ## 1.5.2-next.2
190
+
191
+ ### Patch Changes
192
+
193
+ - @forge/cli-shared@2.2.2-next.1
194
+ - @forge/bundler@2.0.1-next.2
195
+
196
+ ## 1.5.2-next.1
197
+
198
+ ### Patch Changes
199
+
200
+ - Updated dependencies [f27cbfc]
201
+ - @forge/bundler@2.0.1-next.1
202
+
203
+ ## 1.5.2-next.0
204
+
205
+ ### Patch Changes
206
+
207
+ - @forge/cli-shared@2.2.2-next.0
208
+ - @forge/bundler@2.0.1-next.0
209
+
210
+ ## 1.5.1
211
+
212
+ ### Patch Changes
213
+
214
+ - Updated dependencies [37f9898]
215
+ - Updated dependencies [037c31a5]
216
+ - Updated dependencies [7d0ef8b]
217
+ - @forge/bundler@2.0.0
218
+ - @forge/runtime@1.13.0
219
+ - @forge/cli-shared@2.2.1
220
+
221
+ ## 1.5.1-next.13
222
+
223
+ ### Patch Changes
224
+
225
+ - Updated dependencies [7d0ef8b]
226
+ - @forge/bundler@2.0.0-next.13
227
+
228
+ ## 1.5.1-next.12
229
+
230
+ ### Patch Changes
231
+
232
+ - @forge/cli-shared@2.2.1-next.9
233
+ - @forge/bundler@2.0.0-next.12
234
+
235
+ ## 1.5.1-next.11
236
+
237
+ ### Patch Changes
238
+
239
+ - Updated dependencies [37f9898]
240
+ - @forge/bundler@2.0.0-next.11
241
+
242
+ ## 1.5.1-next.10
243
+
244
+ ### Patch Changes
245
+
246
+ - @forge/bundler@2.0.0-next.10
247
+ - @forge/cli-shared@2.2.1-next.8
248
+
249
+ ## 1.5.1-next.9
250
+
251
+ ### Patch Changes
252
+
253
+ - Updated dependencies [037c31a]
254
+ - @forge/bundler@2.0.0-next.9
255
+ - @forge/runtime@1.13.0-next.1
256
+ - @forge/cli-shared@2.2.1-next.7
257
+
258
+ ## 1.5.1-next.8
259
+
260
+ ### Patch Changes
261
+
262
+ - @forge/bundler@1.1.1-next.8
263
+
264
+ ## 1.5.1-next.7
265
+
266
+ ### Patch Changes
267
+
268
+ - @forge/cli-shared@2.2.1-next.6
269
+ - @forge/bundler@1.1.1-next.7
270
+
271
+ ## 1.5.1-next.6
272
+
273
+ ### Patch Changes
274
+
275
+ - @forge/bundler@1.1.1-next.6
276
+
277
+ ## 1.5.1-next.5
278
+
279
+ ### Patch Changes
280
+
281
+ - @forge/cli-shared@2.2.1-next.5
282
+ - @forge/bundler@1.1.1-next.5
283
+
284
+ ## 1.5.1-next.4
285
+
286
+ ### Patch Changes
287
+
288
+ - @forge/bundler@1.1.1-next.4
289
+ - @forge/cli-shared@2.2.1-next.4
290
+
291
+ ## 1.5.1-next.3
292
+
293
+ ### Patch Changes
294
+
295
+ - @forge/cli-shared@2.2.1-next.3
296
+ - @forge/bundler@1.1.1-next.3
297
+
298
+ ## 1.5.1-next.2
299
+
300
+ ### Patch Changes
301
+
302
+ - @forge/bundler@1.1.1-next.2
303
+ - @forge/cli-shared@2.2.1-next.2
304
+
305
+ ## 1.5.1-next.1
306
+
307
+ ### Patch Changes
308
+
309
+ - @forge/runtime@1.12.1-next.0
310
+ - @forge/cli-shared@2.2.1-next.1
311
+ - @forge/bundler@1.1.1-next.1
312
+
313
+ ## 1.5.1-next.0
314
+
315
+ ### Patch Changes
316
+
317
+ - @forge/cli-shared@2.2.1-next.0
318
+ - @forge/bundler@1.1.1-next.0
319
+
320
+ ## 1.5.0
321
+
322
+ ### Minor Changes
323
+
324
+ - 1c196ff: Add support for external fetch client to reference remote
325
+ - 6abbbd0: Upgrade forge runtime to use node 14
326
+
327
+ ### Patch Changes
328
+
329
+ - Updated dependencies [1dba082]
330
+ - Updated dependencies [1c196ff]
331
+ - Updated dependencies [1dba082]
332
+ - Updated dependencies [8571c05]
333
+ - Updated dependencies [8c1de69]
334
+ - Updated dependencies [1dba082]
335
+ - Updated dependencies [1dba082]
336
+ - Updated dependencies [6abbbd0]
337
+ - Updated dependencies [1dba082]
338
+ - Updated dependencies [b63af27]
339
+ - @forge/bundler@1.1.0
340
+ - @forge/runtime@1.12.0
341
+ - @forge/csp@1.9.0
342
+ - @forge/cli-shared@2.2.0
343
+
344
+ ## 1.5.0-next.27
345
+
346
+ ### Patch Changes
347
+
348
+ - @forge/cli-shared@2.2.0-next.22
349
+ - @forge/bundler@1.1.0-next.25
350
+
351
+ ## 1.5.0-next.26
352
+
353
+ ### Patch Changes
354
+
355
+ - @forge/cli-shared@2.2.0-next.21
356
+ - @forge/bundler@1.1.0-next.24
357
+
358
+ ## 1.5.0-next.25
359
+
360
+ ### Patch Changes
361
+
362
+ - @forge/cli-shared@2.2.0-next.20
363
+ - @forge/bundler@1.1.0-next.23
364
+
365
+ ## 1.5.0-next.24
366
+
367
+ ### Minor Changes
368
+
369
+ - 1c196ff: Add support for external fetch client to reference remote
370
+
371
+ ### Patch Changes
372
+
373
+ - Updated dependencies [1c196ff]
374
+ - @forge/csp@1.9.0-next.1
375
+ - @forge/runtime@1.12.0-next.7
376
+ - @forge/cli-shared@2.2.0-next.19
377
+ - @forge/bundler@1.1.0-next.22
378
+
379
+ ## 1.5.0-next.23
380
+
381
+ ### Patch Changes
382
+
383
+ - Updated dependencies [8c1de69]
384
+ - @forge/runtime@1.12.0-next.6
385
+
386
+ ## 1.5.0-next.22
387
+
388
+ ### Minor Changes
389
+
390
+ - 6abbbd0: Upgrade forge runtime to use node 14
391
+
392
+ ### Patch Changes
393
+
394
+ - Updated dependencies [6abbbd0]
395
+ - @forge/runtime@1.12.0-next.5
396
+ - @forge/cli-shared@2.2.0-next.18
397
+ - @forge/bundler@1.1.0-next.21
398
+
399
+ ## 1.4.9-next.21
400
+
401
+ ### Patch Changes
402
+
403
+ - @forge/cli-shared@2.2.0-next.17
404
+ - @forge/bundler@1.1.0-next.20
405
+
406
+ ## 1.4.9-next.20
407
+
408
+ ### Patch Changes
409
+
410
+ - Updated dependencies [b63af27]
411
+ - @forge/cli-shared@2.2.0-next.16
412
+ - @forge/bundler@1.1.0-next.19
413
+
414
+ ## 1.4.9-next.19
415
+
416
+ ### Patch Changes
417
+
418
+ - @forge/cli-shared@2.1.6-next.15
419
+ - @forge/bundler@1.1.0-next.18
420
+
421
+ ## 1.4.9-next.18
422
+
423
+ ### Patch Changes
424
+
425
+ - @forge/cli-shared@2.1.6-next.14
426
+ - @forge/bundler@1.1.0-next.17
427
+
428
+ ## 1.4.9-next.17
429
+
430
+ ### Patch Changes
431
+
432
+ - @forge/cli-shared@2.1.6-next.13
433
+ - @forge/bundler@1.1.0-next.16
434
+
435
+ ## 1.4.9-next.16
436
+
437
+ ### Patch Changes
438
+
439
+ - @forge/bundler@1.1.0-next.15
440
+ - @forge/cli-shared@2.1.6-next.12
441
+
442
+ ## 1.4.9-next.15
443
+
444
+ ### Patch Changes
445
+
446
+ - @forge/cli-shared@2.1.6-next.11
447
+ - @forge/bundler@1.1.0-next.14
448
+
449
+ ## 1.4.9-next.14
450
+
451
+ ### Patch Changes
452
+
453
+ - @forge/cli-shared@2.1.6-next.10
454
+ - @forge/bundler@1.1.0-next.13
455
+
456
+ ## 1.4.9-next.13
457
+
458
+ ### Patch Changes
459
+
460
+ - @forge/cli-shared@2.1.6-next.9
461
+ - @forge/bundler@1.1.0-next.12
462
+
463
+ ## 1.4.9-next.12
464
+
465
+ ### Patch Changes
466
+
467
+ - Updated dependencies [8571c05]
468
+ - @forge/runtime@1.12.0-next.4
469
+ - @forge/bundler@1.1.0-next.11
470
+ - @forge/cli-shared@2.1.6-next.8
471
+
472
+ ## 1.4.9-next.11
473
+
474
+ ### Patch Changes
475
+
476
+ - @forge/cli-shared@2.1.6-next.7
477
+ - @forge/bundler@1.1.0-next.10
478
+
479
+ ## 1.4.9-next.10
480
+
481
+ ### Patch Changes
482
+
483
+ - @forge/cli-shared@2.1.6-next.6
484
+ - @forge/bundler@1.1.0-next.9
485
+
486
+ ## 1.4.9-next.9
487
+
488
+ ### Patch Changes
489
+
490
+ - @forge/bundler@1.1.0-next.8
491
+
492
+ ## 1.4.9-next.8
493
+
494
+ ### Patch Changes
495
+
496
+ - @forge/cli-shared@2.1.6-next.5
497
+ - @forge/bundler@1.1.0-next.7
498
+
499
+ ## 1.4.9-next.7
500
+
501
+ ### Patch Changes
502
+
503
+ - @forge/cli-shared@2.1.6-next.4
504
+ - @forge/bundler@1.1.0-next.6
505
+
506
+ ## 1.4.9-next.6
507
+
508
+ ### Patch Changes
509
+
510
+ - Updated dependencies [04e4152]
511
+ - @forge/csp@1.8.1-next.0
512
+ - @forge/runtime@1.12.0-next.3
513
+ - @forge/bundler@1.1.0-next.5
514
+
515
+ ## 1.4.9-next.5
516
+
517
+ ### Patch Changes
518
+
519
+ - Updated dependencies [348c663]
520
+ - @forge/bundler@1.1.0-next.4
521
+ - @forge/runtime@1.12.0-next.2
522
+
523
+ ## 1.4.9-next.4
524
+
525
+ ### Patch Changes
526
+
527
+ - @forge/cli-shared@2.1.6-next.3
528
+ - @forge/bundler@1.0.21-next.3
529
+
530
+ ## 1.4.9-next.3
531
+
532
+ ### Patch Changes
533
+
534
+ - Updated dependencies [1565b05]
535
+ - @forge/runtime@1.11.1-next.1
536
+ - @forge/cli-shared@2.1.6-next.2
537
+ - @forge/bundler@1.0.21-next.2
538
+
539
+ ## 1.4.9-next.2
540
+
541
+ ### Patch Changes
542
+
543
+ - Updated dependencies [7f249d0]
544
+ - @forge/runtime@1.11.1-next.0
545
+
546
+ ## 1.4.9-next.1
547
+
548
+ ### Patch Changes
549
+
550
+ - @forge/cli-shared@2.1.6-next.1
551
+ - @forge/bundler@1.0.21-next.1
552
+
553
+ ## 1.4.9-next.0
554
+
555
+ ### Patch Changes
556
+
557
+ - Updated dependencies [2338be5]
558
+ - @forge/cli-shared@2.1.6-next.0
559
+ - @forge/bundler@1.0.21-next.0
560
+
561
+ ## 1.4.8
562
+
563
+ ### Patch Changes
564
+
565
+ - Updated dependencies [091fe88]
566
+ - @forge/runtime@1.11.0
567
+ - @forge/bundler@1.0.20
568
+ - @forge/cli-shared@2.1.5
569
+
570
+ ## 1.4.8-next.13
571
+
572
+ ### Patch Changes
573
+
574
+ - @forge/cli-shared@2.1.5-next.10
575
+ - @forge/bundler@1.0.20-next.12
576
+
577
+ ## 1.4.8-next.12
578
+
579
+ ### Patch Changes
580
+
581
+ - @forge/cli-shared@2.1.5-next.9
582
+ - @forge/bundler@1.0.20-next.11
583
+
584
+ ## 1.4.8-next.11
585
+
586
+ ### Patch Changes
587
+
588
+ - @forge/cli-shared@2.1.5-next.8
589
+ - @forge/bundler@1.0.20-next.10
590
+
591
+ ## 1.4.8-next.10
592
+
593
+ ### Patch Changes
594
+
595
+ - @forge/cli-shared@2.1.5-next.7
596
+ - @forge/bundler@1.0.20-next.9
597
+
598
+ ## 1.4.8-next.9
599
+
600
+ ### Patch Changes
601
+
602
+ - @forge/cli-shared@2.1.5-next.6
603
+ - @forge/bundler@1.0.20-next.8
604
+
605
+ ## 1.4.8-next.8
606
+
607
+ ### Patch Changes
608
+
609
+ - Updated dependencies [091fe88]
610
+ - @forge/runtime@1.11.0-next.0
611
+
612
+ ## 1.4.8-next.7
613
+
614
+ ### Patch Changes
615
+
616
+ - @forge/bundler@1.0.20-next.7
617
+
618
+ ## 1.4.8-next.6
619
+
620
+ ### Patch Changes
621
+
622
+ - @forge/bundler@1.0.20-next.6
623
+ - @forge/cli-shared@2.1.5-next.5
624
+
625
+ ## 1.4.8-next.5
626
+
627
+ ### Patch Changes
628
+
629
+ - @forge/cli-shared@2.1.5-next.4
630
+ - @forge/bundler@1.0.20-next.5
631
+
632
+ ## 1.4.8-next.4
633
+
634
+ ### Patch Changes
635
+
636
+ - @forge/cli-shared@2.1.5-next.3
637
+ - @forge/bundler@1.0.20-next.4
638
+
639
+ ## 1.4.8-next.3
640
+
641
+ ### Patch Changes
642
+
643
+ - @forge/cli-shared@2.1.5-next.2
644
+ - @forge/bundler@1.0.20-next.3
645
+
646
+ ## 1.4.8-next.2
647
+
648
+ ### Patch Changes
649
+
650
+ - @forge/cli-shared@2.1.5-next.1
651
+ - @forge/bundler@1.0.20-next.2
652
+
653
+ ## 1.4.8-next.1
654
+
655
+ ### Patch Changes
656
+
657
+ - @forge/bundler@1.0.20-next.1
658
+
659
+ ## 1.4.8-next.0
660
+
661
+ ### Patch Changes
662
+
663
+ - @forge/cli-shared@2.1.5-next.0
664
+ - @forge/bundler@1.0.20-next.0
665
+
666
+ ## 1.4.7
667
+
668
+ ### Patch Changes
669
+
670
+ - Updated dependencies [53e3fda]
671
+ - @forge/runtime@1.10.0
672
+ - @forge/bundler@1.0.19
673
+ - @forge/cli-shared@2.1.4
674
+
675
+ ## 1.4.7-next.9
676
+
677
+ ### Patch Changes
678
+
679
+ - @forge/cli-shared@2.1.4-next.9
680
+ - @forge/bundler@1.0.19-next.9
681
+
682
+ ## 1.4.7-next.8
683
+
684
+ ### Patch Changes
685
+
686
+ - @forge/cli-shared@2.1.4-next.8
687
+ - @forge/bundler@1.0.19-next.8
688
+
689
+ ## 1.4.7-next.7
690
+
691
+ ### Patch Changes
692
+
693
+ - Updated dependencies [53e3fda]
694
+ - @forge/runtime@1.10.0-next.1
695
+ - @forge/cli-shared@2.1.4-next.7
696
+ - @forge/bundler@1.0.19-next.7
697
+
698
+ ## 1.4.7-next.6
699
+
700
+ ### Patch Changes
701
+
702
+ - @forge/cli-shared@2.1.4-next.6
703
+ - @forge/bundler@1.0.19-next.6
704
+
705
+ ## 1.4.7-next.5
706
+
707
+ ### Patch Changes
708
+
709
+ - @forge/bundler@1.0.19-next.5
710
+ - @forge/cli-shared@2.1.4-next.5
711
+
712
+ ## 1.4.7-next.4
713
+
714
+ ### Patch Changes
715
+
716
+ - @forge/cli-shared@2.1.4-next.4
717
+ - @forge/bundler@1.0.19-next.4
718
+
719
+ ## 1.4.7-next.3
720
+
721
+ ### Patch Changes
722
+
723
+ - @forge/bundler@1.0.19-next.3
724
+ - @forge/cli-shared@2.1.4-next.3
725
+
726
+ ## 1.4.7-next.2
727
+
728
+ ### Patch Changes
729
+
730
+ - @forge/cli-shared@2.1.4-next.2
731
+ - @forge/bundler@1.0.19-next.2
732
+
733
+ ## 1.4.7-next.1
734
+
735
+ ### Patch Changes
736
+
737
+ - @forge/cli-shared@2.1.4-next.1
738
+ - @forge/runtime@1.9.1-next.0
739
+ - @forge/bundler@1.0.19-next.1
740
+
741
+ ## 1.4.7-next.0
742
+
743
+ ### Patch Changes
744
+
745
+ - @forge/cli-shared@2.1.4-next.0
746
+ - @forge/bundler@1.0.19-next.0
747
+
748
+ ## 1.4.6
4
749
 
5
750
  ### Patch Changes
6
751
 
7
752
  - Updated dependencies [a26c26b]
8
753
  - Updated dependencies [962582f]
9
- - @forge/runtime@0.0.0-experimental-d8cea00
10
- - @forge/cli-shared@0.0.0-experimental-d8cea00
11
- - @forge/bundler@0.0.0-experimental-d8cea00
754
+ - @forge/runtime@1.9.0
755
+ - @forge/cli-shared@2.1.3
756
+ - @forge/bundler@1.0.18
757
+
758
+ ## 1.4.6-next.4
759
+
760
+ ### Patch Changes
761
+
762
+ - @forge/cli-shared@2.1.3-next.4
763
+ - @forge/bundler@1.0.18-next.4
764
+
765
+ ## 1.4.6-next.3
766
+
767
+ ### Patch Changes
768
+
769
+ - @forge/cli-shared@2.1.3-next.3
770
+ - @forge/bundler@1.0.18-next.3
12
771
 
13
772
  ## 1.4.6-next.2
14
773
 
@@ -1 +1 @@
1
- {"version":3,"file":"start-tunnel-command.d.ts","sourceRoot":"","sources":["../../../src/tunnelling/command/start-tunnel-command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,EAAQ,MAAM,mBAAmB,CAAC;AAChF,OAAO,EAAE,SAAS,EAAqB,MAAM,gBAAgB,CAAC;AAI9D,OAAO,EAAE,iBAAiB,EAA2C,MAAM,YAAY,CAAC;AACxF,OAAO,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,EAAsC,iBAAiB,EAAE,MAAM,UAAU,CAAC;AACjF,OAAO,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAEzE,MAAM,WAAW,kBAAkB;IACjC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,iBAAiB;IAChC,SAAS,EAAE,MAAM,CAAC;IAClB,iBAAiB,EAAE,iBAAiB,CAAC;IACrC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAC9B,eAAe,CAAC,WAAW,EAAE,aAAa,GAAG,OAAO,CAAC,IA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artTunnelCommand {
44
44
  var _a, _b;
45
45
  const resourcePortMap = JSON.parse((_a = process.env.RESOURCE_PORT_MAP) !== null && _a !== void 0 ? _a : '{}');
46
46
  const resourceDetails = await this.configFile.getResources();
47
- const { permissions = {} } = await this.configFile.readConfig();
47
+ const { permissions = {}, remotes = [] } = await this.configFile.readConfig();
48
48
  const cspReporterPort = parseInt((_b = process.env.CSP_REPORTER_PORT) !== null && _b !== void 0 ? _b : '4000', 10);
49
49
  if (resourceDetails.length === 0)
50
50
  return [];
@@ -53,7 +53,8 @@ class StartTunnelCommand {
53
53
  return await Promise.all(resourceDetails.map(async (rd) => {
54
54
  const { key } = rd;
55
55
  const port = resourcePortMap[key];
56
- this.tunnelServers[key] = new servers_1.ResourceTunnelServer(Object.assign(Object.assign({}, rd), { port, logger: this.logger, cspReporterServerPort: cspReporterPort, permissions }));
56
+ this.tunnelServers[key] = new servers_1.ResourceTunnelServer(Object.assign(Object.assign({}, rd), { port, logger: this.logger, cspReporterServerPort: cspReporterPort, permissions,
57
+ remotes }));
57
58
  await this.tunnelServers[key].start();
58
59
  return {
59
60
  resourceKey: key,
@@ -27,8 +27,8 @@ class LocalDevelopmentServer {
27
27
  }).filter((item) => typeof item === 'string')) !== null && _f !== void 0 ? _f : undefined;
28
28
  request._meta = Object.assign(Object.assign({}, request._meta), { fetchAllowList: allowList });
29
29
  try {
30
- const body = await this.invocationService.invoke(request.handler, request);
31
- res.json(body);
30
+ const invokeResults = await this.invocationService.invoke(request.handler, request);
31
+ res.json(invokeResults);
32
32
  }
33
33
  catch (error) {
34
34
  try {
@@ -1,11 +1,12 @@
1
1
  import { Resource, Logger } from '@forge/cli-shared';
2
2
  import { Express } from 'express';
3
- import type { Permissions } from '@forge/manifest';
3
+ import type { Permissions, Remotes } from '@forge/manifest';
4
4
  export interface ResourceTunnelServerArgs extends Resource {
5
5
  port: number;
6
6
  logger: Logger;
7
7
  permissions: Permissions;
8
8
  cspReporterServerPort: number;
9
+ remotes: Remotes;
9
10
  }
10
11
  export declare class ResourceTunnelServer {
11
12
  private readonly port;
@@ -17,8 +18,25 @@ export declare class ResourceTunnelServer {
17
18
  private readonly proxy;
18
19
  private socket;
19
20
  private cspReporterServerPort;
20
- constructor({ port, key, path, tunnel, permissions, logger, cspReporterServerPort }: ResourceTunnelServerArgs);
21
+ constructor({ port, key, path, tunnel, permissions, remotes, logger, cspReporterServerPort }: ResourceTunnelServerArgs);
21
22
  getApp(): Express;
23
+ static transformPermissionsWithRemotes(permissions: Permissions, remotes: Remotes): {
24
+ external: {
25
+ fetch: {
26
+ client: string[] | undefined;
27
+ backend?: import("@forge/manifest/out/schema/manifest").Backend | undefined;
28
+ };
29
+ fonts?: import("@forge/manifest/out/schema/manifest").Fonts | undefined;
30
+ frames?: import("@forge/manifest/out/schema/manifest").Frames | undefined;
31
+ navigation?: import("@forge/manifest/out/schema/manifest").Navigation | undefined;
32
+ images?: import("@forge/manifest/out/schema/manifest").Images | undefined;
33
+ media?: import("@forge/manifest/out/schema/manifest").Media | undefined;
34
+ scripts?: import("@forge/manifest/out/schema/manifest").Scripts1 | undefined;
35
+ styles?: import("@forge/manifest/out/schema/manifest").Styles1 | undefined;
36
+ };
37
+ scopes?: import("@forge/manifest/out/schema/manifest").Scopes | undefined;
38
+ content?: import("@forge/manifest/out/schema/manifest").Content1 | undefined;
39
+ };
22
40
  start(): Promise<void>;
23
41
  stop(): Promise<void>;
24
42
  private logFileServed;
@@ -1 +1 @@
1
- {"version":3,"file":"resource-tunnel-server.d.ts","sourceRoot":"","sources":["../../../src/tunnelling/servers/resource-tunnel-server.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAMR,MAAM,EAGP,MAAM,mBAAmB,CAAC;AAC3B,OAAgB,EAAE,OAAO,EAAqB,MAAM,SAAS,CAAC;AAM9D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEnD,MAAM,WAAW,wBAAyB,SAAQ,QAAQ;IACxD,IAAI,EAAE,MA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
15
  class ResourceTunnelServer {
16
- constructor({ port, key, path, tunnel, permissions, logger, cspReporterServerPort }) {
16
+ constructor({ port, key, path, tunnel, permissions, remotes, logger, cspReporterServerPort }) {
17
17
  this.getCspHeader = (existingCsp) => new csp_1.CSPInjectionService()
18
18
  .getInjectableCSP(existingCsp, cli_shared_1.getEnvironment(cli_shared_1.CDNEnvironments), `http://localhost:${this.cspReporterServerPort}`)
19
19
  .join('; ');
@@ -23,14 +23,14 @@ class ResourceTunnelServer {
23
23
  this.injectIframeResizerScript = (htmlContent) => new cli_shared_1.IframeResizerScriptService().injectIframeResizer(htmlContent, () => {
24
24
  throw new Error('Malformed HTML document');
25
25
  });
26
- this.getCustomUIResourceMiddleware = (permissions) => express_mung_1.write((body, _, __, res) => {
26
+ this.getCustomUIResourceMiddleware = (permissions, remotes) => express_mung_1.write((body, _, __, res) => {
27
27
  const contentType = res.getHeaders()['content-type'];
28
28
  if (!contentType.startsWith('text/html'))
29
29
  return body;
30
30
  res.removeHeader('content-length');
31
31
  const htmlContentWithIframeResizerScript = this.injectIframeResizerScript(body);
32
32
  const htmlContentWithBridgeScript = this.injectGlobalBridgeScript(htmlContentWithIframeResizerScript);
33
- const cspDetails = new csp_1.CSPProcessingService({ info: () => { } }).getCspDetails(htmlContentWithBridgeScript, permissions);
33
+ const cspDetails = new csp_1.CSPProcessingService({ info: () => { } }).getCspDetails(htmlContentWithBridgeScript, ResourceTunnelServer.transformPermissionsWithRemotes(permissions, remotes));
34
34
  res.setHeader('Content-Security-Policy', this.getCspHeader(cspDetails));
35
35
  return htmlContentWithBridgeScript;
36
36
  });
@@ -40,7 +40,7 @@ class ResourceTunnelServer {
40
40
  this.logger = logger;
41
41
  this.cspReporterServerPort = cspReporterServerPort;
42
42
  this.app = express_1.default();
43
- this.app.use(this.getCustomUIResourceMiddleware(permissions));
43
+ this.app.use(this.getCustomUIResourceMiddleware(permissions, remotes));
44
44
  if (tunnel) {
45
45
  const { port: tunnelPort } = tunnel;
46
46
  this.proxy = http_proxy_middleware_1.createProxyMiddleware({
@@ -76,6 +76,16 @@ class ResourceTunnelServer {
76
76
  getApp() {
77
77
  return this.app;
78
78
  }
79
+ static transformPermissionsWithRemotes(permissions, remotes) {
80
+ var _a, _b, _c, _d, _e;
81
+ const client = (_d = (_c = (_b = (_a = permissions.external) === null || _a === void 0 ? void 0 : _a.fetch) === null || _b === void 0 ? void 0 : _b.client) === null || _c === void 0 ? void 0 : _c.map((item) => {
82
+ var _a;
83
+ if (typeof item === 'string')
84
+ return item;
85
+ return (_a = remotes === null || remotes === void 0 ? void 0 : remotes.find((remote) => remote.key === item.remote)) === null || _a === void 0 ? void 0 : _a.baseUrl;
86
+ }).filter((item) => typeof item === 'string')) !== null && _d !== void 0 ? _d : undefined;
87
+ return Object.assign(Object.assign({}, permissions), { external: Object.assign(Object.assign({}, permissions.external), { fetch: Object.assign(Object.assign({}, (_e = permissions.external) === null || _e === void 0 ? void 0 : _e.fetch), { client }) }) });
88
+ }
79
89
  async start() {
80
90
  return new Promise((resolve) => {
81
91
  this.server = this.app.listen(this.port, resolve);
@@ -1 +1 @@
1
- {"version":3,"file":"local-invocation-service.d.ts","sourceRoot":"","sources":["../../../src/tunnelling/services/local-invocation-service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAI/C,OAAO,EACL,mBAAmB,EACnB,SAAS,EAIV,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,UAAU,EAAE,MAAM,EAAyB,MAAM,mBAAmB,CAAC;AAE9E,qBAAa,sBAAuB,YAAW,iBAAiB;IAE5D,OAAO,CAAC,QAAQ,CAAC,UAAU;IAC3B,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,SAAS;gBAFT,UAAU,EAAE,UAAU,EACtB,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,SAAS;IAG1B,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,mBAAmB,GAAG,OAAO,CAAC,GAAG,CAAC;CA+CjF"}
1
+ {"version":3,"file":"local-invocation-service.d.ts","sourceRoot":"","sources":["../../../src/tunnelling/services/local-invocation-service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAI/C,OAAO,EACL,mBAAmB,EACnB,SAAS,EAIV,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,UAAU,EAAE,MAAM,EAAyB,MAAM,mBAAmB,CAAC;AAG9E,qBAAa,sBAAuB,YAAW,iBAAiB;IAE5D,OAAO,CAAC,QAAQ,CAAC,UAAU;IAC3B,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,SAAS;gBAFT,UAAU,EAAE,UAAU,EACtB,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,SAAS;IAG1B,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,mBAAmB,GAAG,OAAO,CAAC,GAAG,CAAC;CAsDjF"}
@@ -8,6 +8,7 @@ const v4_1 = tslib_1.__importDefault(require("uuid/v4"));
8
8
  const runtime_1 = require("@forge/runtime");
9
9
  const cli_shared_1 = require("@forge/cli-shared");
10
10
  const interactors_1 = require("../command/interactors");
11
+ const feature_flag_1 = require("@forge/runtime/out/feature-flag");
11
12
  class LocalInvocationService {
12
13
  constructor(configFile, logger, inspector) {
13
14
  this.configFile = configFile;
@@ -43,13 +44,17 @@ class LocalInvocationService {
43
44
  ctx: { requestId, traceId: requestId, timeout: interactors_1.INVOCATION_TIMEOUT }
44
45
  });
45
46
  const invocationLimits = runtime_1.perInvocationLimitsTrackerFactory(xenInvocationRequest);
46
- const { body } = await runtime_1.invoke({
47
+ const { body, metrics } = await runtime_1.invoke({
47
48
  sandbox,
48
49
  xenInvocationRequest,
49
50
  invocationLimits,
50
51
  inspector: inspect ? this.inspector : undefined
51
52
  });
52
- return body;
53
+ const reportMetrics = xenInvocationRequest.isFeatureFlagEnabled(feature_flag_1.XEN_RUNTIME_SHOULD_REPORT_METRICS);
54
+ if (reportMetrics && metrics) {
55
+ this.logger.debug(`Metrics: ${JSON.stringify(metrics, null, 2)}`);
56
+ }
57
+ return reportMetrics ? { body, metrics } : body;
53
58
  }
54
59
  }
55
60
  exports.LocalInvocationService = LocalInvocationService;
@@ -5,9 +5,15 @@ interface LambdaError {
5
5
  errorMessage: string;
6
6
  stack: string[];
7
7
  serviceKey?: string;
8
+ metrics?: {
9
+ [key: string]: any;
10
+ }[];
8
11
  }
9
12
  interface InvokeFunctionErrors extends Error {
10
13
  serviceKey?: string;
14
+ metrics?: {
15
+ [key: string]: any;
16
+ }[];
11
17
  }
12
18
  export declare const toLambdaError: (error: InvokeFunctionErrors) => LambdaError;
13
19
  export declare const getRequestId: (request: any, value?: string) => string;
@@ -1 +1 @@
1
- {"version":3,"file":"invocation-utils.d.ts","sourceRoot":"","sources":["../../../src/tunnelling/util/invocation-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,0BAA0B,EAK3B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5C,UAAU,WAAW;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,UAAU,oBAAqB,SAAQ,KAAK;IAC1C,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,eAAO,MAAM,aAAa,UAAW,oBAAoB,KAAG,WAO3D,CAAC;AAEF,eAAO,MAAM,YAAY,YAAa,GAAG,qBAAsB,MAU9D,CAAC;AAEF,eAAO,MAAM,gBAAgB,YAAa,MAAM,WAAW,GAAG,KAAG,MAGhE,CAAC;AAMF,eAAO,MAAM,eAAe,QAAO,MAOlC,CAAC;AAEF,eAAO,MAAM,gBAAgB,UAAW,UAAU,KAAG,MAUpD,CAAC;AAEF,eAAO,MAAM,WAAW,UAAW,MAAM,KAAG,0BAY3C,CAAC"}
1
+ {"version":3,"file":"invocation-utils.d.ts","sourceRoot":"","sources":["../../../src/tunnelling/util/invocation-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,0BAA0B,EAK3B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5C,UAAU,WAAW;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,EAAE,CAAC;CACpC;AAED,UAAU,oBAAqB,SAAQ,KAAK;IAC1C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,EAAE,CAAC;CACpC;AAED,eAAO,MAAM,aAAa,UAAW,oBAAoB,KAAG,WAQ3D,CAAC;AAEF,eAAO,MAAM,YAAY,YAAa,GAAG,qBAAsB,MAU9D,CAAC;AAEF,eAAO,MAAM,gBAAgB,YAAa,MAAM,WAAW,GAAG,KAAG,MAGhE,CAAC;AAMF,eAAO,MAAM,eAAe,QAAO,MAOlC,CAAC;AAEF,eAAO,MAAM,gBAAgB,UAAW,UAAU,KAAG,MAUpD,CAAC;AAEF,eAAO,MAAM,WAAW,UAAW,MAAM,KAAG,0BAY3C,CAAC"}
@@ -7,7 +7,8 @@ exports.toLambdaError = (error) => {
7
7
  errorMessage: error.message,
8
8
  errorType: error.name,
9
9
  stack: (error.stack || '').split('\n'),
10
- serviceKey: error.serviceKey
10
+ serviceKey: error.serviceKey,
11
+ metrics: error.metrics
11
12
  };
12
13
  };
13
14
  exports.getRequestId = (request, value = 'unknown') => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forge/tunnel",
3
- "version": "0.0.0-experimental-d8cea00",
3
+ "version": "0.0.0-experimental-c3d0263",
4
4
  "description": "Tunnel functionality for Forge CLI",
5
5
  "author": "Atlassian",
6
6
  "license": "UNLICENSED",
@@ -16,11 +16,11 @@
16
16
  "postbuild": "chmod +x out/*.js"
17
17
  },
18
18
  "dependencies": {
19
- "@forge/bundler": "0.0.0-experimental-d8cea00",
20
- "@forge/cli-shared": "0.0.0-experimental-d8cea00",
21
- "@forge/csp": "^1.8.0",
19
+ "@forge/bundler": "0.0.0-experimental-c3d0263",
20
+ "@forge/cli-shared": "0.0.0-experimental-c3d0263",
21
+ "@forge/csp": "^0.0.0-experimental-c3d0263",
22
22
  "@forge/isolated-vm": "3.3.10",
23
- "@forge/runtime": "0.0.0-experimental-d8cea00",
23
+ "@forge/runtime": "0.0.0-experimental-c3d0263",
24
24
  "express": "^4.17.1",
25
25
  "express-mung": "^0.5.1",
26
26
  "http-proxy-middleware": "^1.0.6",
@@ -31,7 +31,7 @@
31
31
  "uuid": "^3.4.0"
32
32
  },
33
33
  "devDependencies": {
34
- "@forge/manifest": "^0.0.0-experimental-d8cea00",
34
+ "@forge/manifest": "^0.0.0-experimental-c3d0263",
35
35
  "@types/express": "^4.17.2",
36
36
  "@types/express-mung": "^0.5.2",
37
37
  "@types/jest": "^26.0.0",
@@ -40,7 +40,7 @@
40
40
  "@types/supertest": "^2.0.10",
41
41
  "@types/tmp": "^0.1.0",
42
42
  "@types/uuid": "^3.4.7",
43
- "node-fetch": "^2.6.1",
43
+ "node-fetch": "2.6.1",
44
44
  "supertest": "^6.1.3"
45
45
  },
46
46
  "optionalDependencies": {