|  | 
| 1 | 1 | # hive | 
| 2 | 2 | 
 | 
|  | 3 | +## 4.2.0 | 
|  | 4 | + | 
|  | 5 | +### Minor Changes | 
|  | 6 | + | 
|  | 7 | +- [#6378](https://github.com/graphql-hive/console/pull/6378) | 
|  | 8 | +  [`f14daa8`](https://github.com/graphql-hive/console/commit/f14daa89760149d6b1eb45d5351d73c4376b7418) | 
|  | 9 | +  Thanks [@jasonkuhrt](https://github.com/jasonkuhrt)! - You can now set HTTP headers in your | 
|  | 10 | +  [Laboratory Preflight Script](https://the-guild.dev/graphql/hive/docs/dashboard/laboratory/preflight-scripts). | 
|  | 11 | +  Every time you run a request from Laboratory, your preflight headers, if any, will be merged into | 
|  | 12 | +  the request before it is sent. | 
|  | 13 | + | 
|  | 14 | +  You achieve this by interacting with the | 
|  | 15 | +  [`Headers`](https://developer.mozilla.org/docs/web/api/headers) instance newly available at | 
|  | 16 | +  `lab.request.headers`. For example, this script would would add a `foo` header with the value | 
|  | 17 | +  `bar` to every Laboratory request. | 
|  | 18 | + | 
|  | 19 | +  ```ts | 
|  | 20 | +  lab.request.headers.set('foo', 'bar') | 
|  | 21 | +  ``` | 
|  | 22 | + | 
|  | 23 | +  A few notes about how headers are merged: | 
|  | 24 | + | 
|  | 25 | +  1. Unlike static headers, preflight headers do not receive environment variable substitutions on | 
|  | 26 | +     their values. | 
|  | 27 | +  2. Preflight headers take precedence, overwriting any same-named headers already in the Laboratory | 
|  | 28 | +     request. | 
|  | 29 | + | 
|  | 30 | +  Documentation for this new feature is available at | 
|  | 31 | +  https://the-guild.dev/graphql/hive/docs/dashboard/laboratory/preflight-scripts#http-headers. | 
|  | 32 | + | 
|  | 33 | +- [#6123](https://github.com/graphql-hive/console/pull/6123) | 
|  | 34 | +  [`abfd1b1`](https://github.com/graphql-hive/console/commit/abfd1b1ea9b6850683f31c152516d9e0d97d94aa) | 
|  | 35 | +  Thanks [@Intellicode](https://github.com/Intellicode)! - encode postgres variables and introduce | 
|  | 36 | +  optional password | 
|  | 37 | + | 
|  | 38 | +- [#6412](https://github.com/graphql-hive/console/pull/6412) | 
|  | 39 | +  [`f352bba`](https://github.com/graphql-hive/console/commit/f352bbac977902120527fbea2afb0b0b7dd253fb) | 
|  | 40 | +  Thanks [@Intellicode](https://github.com/Intellicode)! - Added a new environment variable | 
|  | 41 | +  `PROMETHEUS_METRICS_PORT` to control the promethus port of the policy service. The default value | 
|  | 42 | +  is `10254` (no action needed). | 
|  | 43 | + | 
|  | 44 | +### Patch Changes | 
|  | 45 | + | 
|  | 46 | +- [#6398](https://github.com/graphql-hive/console/pull/6398) | 
|  | 47 | +  [`0e4be14`](https://github.com/graphql-hive/console/commit/0e4be14256937f492efcb4a7dc97b59918274a2a) | 
|  | 48 | +  Thanks [@kamilkisiela](https://github.com/kamilkisiela)! - Remove the db leftovers related to | 
|  | 49 | +  activities (no longer a thing) | 
|  | 50 | + | 
|  | 51 | +- [#6374](https://github.com/graphql-hive/console/pull/6374) | 
|  | 52 | +  [`393ece7`](https://github.com/graphql-hive/console/commit/393ece7eab93ed0b7873e4428f78a5c27cf764fa) | 
|  | 53 | +  Thanks [@kamilkisiela](https://github.com/kamilkisiela)! - Adjust the Kafka message size | 
|  | 54 | +  estimation only when Kafka gives back `MESSAGE_TOO_LARGE` error | 
|  | 55 | + | 
|  | 56 | +- [#6358](https://github.com/graphql-hive/console/pull/6358) | 
|  | 57 | +  [`ab06518`](https://github.com/graphql-hive/console/commit/ab065182d89e6d7e4c90469d0bcaadacfa4c3b1e) | 
|  | 58 | +  Thanks [@jdolle](https://github.com/jdolle)! - Use sum instead of max of top request counts for | 
|  | 59 | +  breaking changes calculation | 
|  | 60 | + | 
| 3 | 61 | ## 4.1.0 | 
| 4 | 62 | 
 | 
| 5 | 63 | ### Minor Changes | 
|  | 
0 commit comments