Skip to content

Commit 89ed3c7

Browse files
chore(release): 0.4.0
Diff: 0.3.0...0.4.0
1 parent 5a8a75e commit 89ed3c7

15 files changed

Lines changed: 88 additions & 39 deletions

CHANGELOG.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
# [0.4.0](https://github.com/socketio/socket.io-admin-ui/compare/0.3.0...0.4.0) (2022-06-23)
2+
3+
4+
### Bug Fixes
5+
6+
* **ui:** properly set initial nav drawer state ([77ee068](https://github.com/socketio/socket.io-admin-ui/commit/77ee0683185aceababc4439a3a945e273d547944))
7+
8+
9+
### Features
10+
11+
* add page displaying all events ([481ef22](https://github.com/socketio/socket.io-admin-ui/commit/481ef22b3aff37b40b142a29cb78e116d6d1e8e9))
12+
* add production mode ([e0d91ca](https://github.com/socketio/socket.io-admin-ui/commit/e0d91cadb11205c5f2c686c239a50cb2eef9795d))
13+
* display sent and received events ([8542601](https://github.com/socketio/socket.io-admin-ui/commit/8542601b55022f6ca00b677b7d7c7664a326526f))
14+
* **ui:** add support for relative links ([fdec2ce](https://github.com/socketio/socket.io-admin-ui/commit/fdec2ce17bf7cad77a04e8eef42a26104b6a05b8))
15+
* **ui:** separate the namespace from the server URL ([5a8a75e](https://github.com/socketio/socket.io-admin-ui/commit/3d4aed972f16dad3dd847d61f4db5e6f55978c4b))
16+
17+
18+
119
# [0.3.0](https://github.com/socketio/socket.io-admin-ui/compare/0.2.0...0.3.0) (2022-05-03)
220

321

README.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
- [`readonly`](#readonly)
1414
- [`serverId`](#serverid)
1515
- [`store`](#store)
16+
- [`mode`](#mode)
1617
- [How it works](#how-it-works)
1718
- [License](#license)
1819

@@ -64,7 +65,7 @@ You should see the following modal:
6465

6566
![login modal screenshot](assets/login-modal.png)
6667

67-
Please enter the URL of your server, including the namespace (for example, `http://localhost:3000/admin` or `https://example.com/admin`) and the credentials, if applicable (see the `auth` option [below](#auth)).
68+
Please enter the URL of your server (for example, `http://localhost:3000` or `https://example.com`) and the credentials, if applicable (see the `auth` option [below](#auth)).
6869

6970
### Available options
7071

@@ -173,6 +174,24 @@ instrument(io, {
173174
});
174175
```
175176

177+
#### `mode`
178+
179+
Default value: `development`
180+
181+
In production mode, the server won't send all details about the socket instances and the rooms, thus reducing the memory footprint of the instrumentation.
182+
183+
```js
184+
instrument(io, {
185+
mode: "production"
186+
});
187+
```
188+
189+
The production mode can also be enabled with the NODE_ENV environment variable:
190+
191+
```
192+
NODE_ENV=production node index.js
193+
```
194+
176195
## How it works
177196

178197
You can check the details of the implementation in the [lib/index.ts](lib/index.ts) file.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@socket.io/admin-ui",
3-
"version": "0.3.0",
3+
"version": "0.4.0",
44
"description": "Admin UI for Socket.IO",
55
"files": [
66
"dist/",

ui/dist/css/app.4ba437f0.css

Lines changed: 0 additions & 1 deletion
This file was deleted.

ui/dist/css/app.6e3b9661.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ui/dist/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="/favicon.png"><title>Socket.IO Admin UI</title><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@mdi/font@latest/css/materialdesignicons.min.css"><link href="/css/app.4ba437f0.css" rel="preload" as="style"><link href="/css/chunk-vendors.9f55d012.css" rel="preload" as="style"><link href="/js/app.895ee6c7.js" rel="preload" as="script"><link href="/js/chunk-vendors.ad0a9e7f.js" rel="preload" as="script"><link href="/css/chunk-vendors.9f55d012.css" rel="stylesheet"><link href="/css/app.4ba437f0.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but Socket.IO Admin UI doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div><script src="/js/chunk-vendors.ad0a9e7f.js"></script><script src="/js/app.895ee6c7.js"></script></body></html>
1+
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="favicon.png"><title>Socket.IO Admin UI</title><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@mdi/font@latest/css/materialdesignicons.min.css"><link href="css/app.6e3b9661.css" rel="preload" as="style"><link href="css/chunk-vendors.9f55d012.css" rel="preload" as="style"><link href="js/app.37014115.js" rel="preload" as="script"><link href="js/chunk-vendors.587058a6.js" rel="preload" as="script"><link href="css/chunk-vendors.9f55d012.css" rel="stylesheet"><link href="css/app.6e3b9661.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but Socket.IO Admin UI doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div><script src="js/chunk-vendors.587058a6.js"></script><script src="js/app.37014115.js"></script></body></html>

ui/dist/js/app.37014115.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ui/dist/js/app.37014115.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ui/dist/js/app.895ee6c7.js

Lines changed: 0 additions & 2 deletions
This file was deleted.

ui/dist/js/app.895ee6c7.js.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)