Skip to content

Commit 50d89a7

Browse files
1 parent d08f8f2 commit 50d89a7

File tree

2 files changed

+55
-8
lines changed

2 files changed

+55
-8
lines changed

CHANGELOG.md

+54-7
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,57 @@
1-
# Releases
1+
# History
22

3-
- [0.2.0](#020-2022-10-11) (2022-10-11)
4-
- [0.1.1](#011-2022-09-14) (2022-09-14)
5-
- [0.1.0](#010-2022-09-12) (2022-09-12)
3+
| Version | Release date |
4+
| ------------------------ | -------------- |
5+
| [0.2.1](#021-2025-01-09) | January 2025 |
6+
| [0.2.0](#020-2022-10-11) | October 2022 |
7+
| [0.1.1](#011-2022-09-14) | September 2022 |
8+
| [0.1.0](#010-2022-09-12) | September 2022 |
69

7-
# [0.2.0](https://github.com/socketio/socket.io-deno/compare/0.1.1...0.2.0) (2022-10-11)
10+
# Release notes
11+
12+
## [0.2.1](https://github.com/socketio/socket.io-deno/compare/0.2.0...0.2.1) (2025-01-09)
13+
14+
### Bug Fixes
15+
16+
- check if websocket is open before writing
17+
([#22](https://github.com/socketio/socket.io-deno/issues/22))
18+
([d08f8f2](https://github.com/socketio/socket.io-deno/commit/d08f8f2152e06f95dd026eccc610c4c644bbde36))
19+
- make socket#nsp public
20+
([84d97be](https://github.com/socketio/socket.io-deno/commit/84d97be72cfd661e0ea20578149f7d527de6b39d))
21+
- use Deno.serve() instead of serve()
22+
([5a27581](https://github.com/socketio/socket.io-deno/commit/5a27581b00a6491d15530a6333b863b85694a36c))
23+
24+
BREAKING CHANGE :warning:
25+
26+
Please use `Deno.serve()` instead of `serve()`, which was removed in Deno v1.
27+
28+
Before:
29+
30+
```ts
31+
import { serve } from "https://deno.land/[email protected]/http/server.ts";
32+
import { Server } from "https://deno.land/x/[email protected]/mod.ts";
33+
34+
const io = new Server();
35+
36+
await serve(io.handler(), {
37+
port: 3000,
38+
});
39+
```
40+
41+
After:
42+
43+
```ts
44+
import { Server } from "https://deno.land/x/[email protected]/mod.ts";
45+
46+
const io = new Server();
47+
48+
Deno.serve({
49+
handler: io.handler(),
50+
port: 3000,
51+
});
52+
```
53+
54+
## [0.2.0](https://github.com/socketio/socket.io-deno/compare/0.1.1...0.2.0) (2022-10-11)
855

956
### Bug Fixes
1057

@@ -65,7 +112,7 @@ await serve(io.handler(), {
65112
});
66113
```
67114

68-
# [0.1.1](https://github.com/socketio/socket.io-deno/compare/0.1.0...0.1.1) (2022-09-14)
115+
## [0.1.1](https://github.com/socketio/socket.io-deno/compare/0.1.0...0.1.1) (2022-09-14)
69116

70117
### Bug Fixes
71118

@@ -78,6 +125,6 @@ await serve(io.handler(), {
78125
- send a "noop" packet when transport is already closed
79126
([3b1eb82](https://github.com/socketio/socket.io-deno/commit/3b1eb82d1e9e44660b43651dceb05b88bd1b5350))
80127

81-
# 0.1.0 (2022-09-12)
128+
## 0.1.0 (2022-09-12)
82129

83130
This is the first release of this library!

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Table of content:
2424
## Usage
2525

2626
```ts
27-
import { Server } from "https://deno.land/x/[email protected].0/mod.ts";
27+
import { Server } from "https://deno.land/x/[email protected].1/mod.ts";
2828

2929
const io = new Server();
3030

0 commit comments

Comments
 (0)