Skip to content
This repository was archived by the owner on Jul 6, 2025. It is now read-only.

Commit 9f3e1a4

Browse files
committed
Update deno mininum verion to 1.13
1 parent 29277cf commit 9f3e1a4

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

server/server.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,29 +35,29 @@ export class Server {
3535
try {
3636
// serve hmr ws
3737
if (pathname === '/_hmr') {
38-
const { websocket, response } = Deno.upgradeWebSocket(req)
38+
const { socket, response } = Deno.upgradeWebSocket(req)
3939
const watcher = aleph.createFSWatcher()
40-
websocket.addEventListener('open', () => {
41-
watcher.on('add', (mod: any) => websocket.send(JSON.stringify({ ...mod, type: 'add' })))
40+
socket.addEventListener('open', () => {
41+
watcher.on('add', (mod: any) => socket.send(JSON.stringify({ ...mod, type: 'add' })))
4242
watcher.on('remove', (specifier: string) => {
4343
watcher.removeAllListeners('modify-' + specifier)
44-
websocket.send(JSON.stringify({ type: 'remove', specifier }))
44+
socket.send(JSON.stringify({ type: 'remove', specifier }))
4545
})
4646
log.debug('hmr connected')
4747
})
48-
websocket.addEventListener('close', () => {
48+
socket.addEventListener('close', () => {
4949
aleph.removeFSWatcher(watcher)
5050
log.debug('hmr closed')
5151
})
52-
websocket.addEventListener('message', (e) => {
52+
socket.addEventListener('message', (e) => {
5353
if (util.isFilledString(e.data)) {
5454
try {
5555
const data = JSON.parse(e.data)
5656
if (data.type === 'hotAccept' && util.isFilledString(data.specifier)) {
5757
const mod = aleph.getModule(data.specifier)
5858
if (mod) {
5959
watcher.on(`modify-${mod.specifier}`, (data) => {
60-
websocket.send(JSON.stringify({
60+
socket.send(JSON.stringify({
6161
...data,
6262
type: 'update',
6363
specifier: mod.specifier,

shared/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
export const minDenoVersion = '1.12.0'
1+
export const minDenoVersion = '1.13.0'
22
export const defaultReactVersion = '17.0.2'

0 commit comments

Comments
 (0)