Skip to content

Commit

Permalink
Add 8.1.1 changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
255kb committed Apr 30, 2024
1 parent 9be1e48 commit 905ed7b
Show file tree
Hide file tree
Showing 4 changed files with 105 additions and 3 deletions.
2 changes: 1 addition & 1 deletion components/footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ const Footer: FunctionComponent<{
</li>
<li className='mb-2'>
{/* Do not use <Link>, as routes with a dot inside get rewritten without trailing slash */}
<a href='/releases/8.1.0/' className='text-reset'>
<a href='/releases/8.1.1/' className='text-reset'>
Releases
</a>
</li>
Expand Down
2 changes: 1 addition & 1 deletion components/nav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ const Nav: FunctionComponent = function () {
Blog
</Link>
<a
href='/releases/8.1.0/'
href='/releases/8.1.1/'
className={`dropdown-item ${
router.pathname === '/releases' ||
router.pathname === '/releases/[version]'
Expand Down
102 changes: 102 additions & 0 deletions content/releases/8.1.1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
---
meta:
title: Mockoon release v8.1.1
description: Discover Mockoon applications new v8.1.1 release with an improved logs view, new admin API features, new CLI flags, and serverless options, TLS and environment variables support, and more.
date: '2024-04-30'
---

## Patch 8.1.1 fixes the following issues

Since allowing opening multiple environments at once in v8.1.0, two bugs were fixed:

- Files couldn't be opened anymore on macOS. (Issue [#1379](https://github.com/mockoon/mockoon/issues/1379))
- The same environment file could be opened multiple times. (Issue [#1381](https://github.com/mockoon/mockoon/issues/1381))

---

## v8.1.1 release notes

Welcome to this new release of Mockoon. It brings new exciting features: **improved logs view**, **new admin API features**, **new CLI flags**, and serverless options, **environment variables support for the TLS settings**. Read on to learn more about this release.

---

## Our sponsors

[![GitHub](https://mockoon.com/images/sponsors/github.png)](https://github.blog/2023-04-12-github-accelerator-our-first-cohort-and-whats-next/)
[![Localazy](https://mockoon.com/images/sponsors/localazy.png)](https://localazy.com/register?ref=a9CiDC61gOac-azO)

Mockoon is an open-source project built by volunteer maintainers. If you like our application, please consider sponsoring us and join all the [Sponsors and Backers](https://github.com/mockoon/mockoon/blob/main/backers.md) who helped this project over time!

[![sponsor button](https://mockoon.com/images/sponsor-btn-250.png?)](https://github.com/sponsors/mockoon)

---

## Logs view improvements

For this release, the desktop application's **Logs view** has been improved. It now includes a search bar to filter logs by URL, method, status code, query, or timestamp:

![logs view with search bar](/images/releases/8.1.0/filter-logs-by-url.png)

(Issue [#1109](https://github.com/mockoon/mockoon/issues/1109))

We also added proper **code editors** for the **request and response bodies** in the logs view. They will now display the content with proper formatting and syntax highlighting, and show eventual errors for the JSON format. As a side effect, the bodies are now searchable:

![logs view with code editors](/images/releases/8.1.0/code-editors-logs-view.png)

(Issues [#368](https://github.com/mockoon/mockoon/issues/368) and [#137](https://github.com/mockoon/mockoon/issues/137))

Last modification, the **"Last log" link** displayed under the response body now shows when the request or response JSON was malformed:

![logs view with malformed JSON](/images/releases/8.1.0/malformed-json-response-link.png)

## Admin API

Since the introduction of the admin API in the [previous release](https://mockoon.com/releases/8.0.0/), we added multiple new features:

- The [admin API can now be **deactivated**](https://mockoon.com/docs/latest/admin-api/overview/#disable-the-admin-api) when running your mock with the CLI or the serverless library. (Issue [#1371](https://github.com/mockoon/mockoon/issues/1371))
- You can now [reset and update the global variables](https://mockoon.com/docs/latest/admin-api/global-variables/) using the `/mockoon-admin/global-vars` endpoint. (Issue [#1354](https://github.com/mockoon/mockoon/issues/1354))
- The environment variables can be updated using the `/mockoon-admin/env-vars` endpoint. (Issue [#1372](https://github.com/mockoon/mockoon/issues/1372))
- The [transaction logs](https://mockoon.com/docs/latest/admin-api/transaction-logs/) of a running mock server can be fetched using the `/mockoon-admin/logs` endpoint. (Issue [#632](https://github.com/mockoon/mockoon/issues/632))
- The [data buckets can be regenerated](https://mockoon.com/docs/latest/admin-api/data-buckets/) without having to reset the full server state using the `/mockoon-admin/data-buckets` endpoint. (Issue [#1373](https://github.com/mockoon/mockoon/issues/1373))

Head to the [documentation](https://mockoon.com/docs/latest/admin-api/overview) to learn more about the admin API.

## New CLI flags and serverless options

We added **new flags** to the CLI to allow you to:

- `--disable-admin-api` to deactivate the admin API. (Issue [#1371](https://github.com/mockoon/mockoon/issues/1371))
- `--disable-tls` to override the TLS settings and disable it when running in your CI server. (Issue [#668](https://github.com/mockoon/mockoon/issues/668))
- `--max-transaction-logs` to set the number of logs kept in memory for retrieval via the admin API. (Issue [#632](https://github.com/mockoon/mockoon/issues/632))

[Similar options](https://github.com/mockoon/mockoon/tree/main/packages/serverless#options) have been added to the serverless library.

## TLS and environment variables

**Templating** is now supported in the **TLS configuration**, allowing you to use environment variables in the certificate paths and password fields.

![TLS configuration with environment variables](/images/releases/8.1.0/tls-env-variables.png)

(Issue [#1371](https://github.com/mockoon/mockoon/issues/1371))

## Improvements

You can now open **multiple environments** at once in the desktop application:

![open file dialog showing multiple files being selected](/images/releases/8.1.0/open-multiple-environments.png)
(Issue [#1187](https://github.com/mockoon/mockoon/issues/1187))

## Fixes

- The PATCH method wasn't working in the callbacks. This is now fixed. (Issue [#1364](https://github.com/mockoon/mockoon/issues/1364))
- Fixed a bug were the application could reconnect to the sync server with a previous token after switching to a different account. (Issue [#1369](https://github.com/mockoon/mockoon/issues/1369))

## Chores

We updated the libraries and applications dependencies to their latest versions to fix some reported vulnerabilities.

### Thank you

A big thank you to the following people who helped to make Mockoon better:

- [@sakshi4321](https://github.com/sakshi4321): Global vars in admin API. (Issue [#1354](https://github.com/mockoon/mockoon/issues/1354))
2 changes: 1 addition & 1 deletion firebase.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
},
{
"source": "/releases{,/}",
"destination": "/releases/8.1.0/",
"destination": "/releases/8.1.1/",
"type": 302
},
{
Expand Down

0 comments on commit 905ed7b

Please sign in to comment.