From fe1c8b882a459d252d24b37a9c879755450e4cc9 Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 2 Jul 2021 19:13:18 +0900 Subject: [PATCH] Resolve #1 --- package-lock.json | 31 ++----------------------------- package.json | 1 - src/streaming.ts | 5 ++--- 3 files changed, 4 insertions(+), 33 deletions(-) diff --git a/package-lock.json b/package-lock.json index 9b956955b..f9363223e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,14 +1,13 @@ { "name": "misskey-js", - "version": "0.0.4", + "version": "0.0.5", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "misskey-js", - "version": "0.0.4", + "version": "0.0.5", "dependencies": { - "@vue/reactivity": "^3.1.2", "autobind-decorator": "^2.4.0", "eventemitter3": "^4.0.7", "reconnecting-websocket": "^4.4.0" @@ -1302,19 +1301,6 @@ "integrity": "sha512-37RSHht+gzzgYeobbG+KWryeAW8J33Nhr69cjTqSYymXVZEN9NbRYWoYlRtDhHKPVT1FyNKwaTPC1NynKZpzRA==", "dev": true }, - "node_modules/@vue/reactivity": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/@vue/reactivity/-/reactivity-3.1.2.tgz", - "integrity": "sha512-glJzJoN2xE7I2lRvwKM5u1BHRPTd1yc8iaf//Lai/78/uYAvE5DXp5HzWRFOwMlbRvMGJHIQjOqoxj87cDAaag==", - "dependencies": { - "@vue/shared": "3.1.2" - } - }, - "node_modules/@vue/shared": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/@vue/shared/-/shared-3.1.2.tgz", - "integrity": "sha512-EmH/poaDWBPJaPILXNI/1fvUbArJQmmTyVCwvvyDYDFnkPoTclAbHRAtyIvqfez7jybTDn077HTNILpxlsoWhg==" - }, "node_modules/abab": { "version": "2.0.5", "resolved": "https://registry.npmjs.org/abab/-/abab-2.0.5.tgz", @@ -7268,19 +7254,6 @@ "integrity": "sha512-37RSHht+gzzgYeobbG+KWryeAW8J33Nhr69cjTqSYymXVZEN9NbRYWoYlRtDhHKPVT1FyNKwaTPC1NynKZpzRA==", "dev": true }, - "@vue/reactivity": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/@vue/reactivity/-/reactivity-3.1.2.tgz", - "integrity": "sha512-glJzJoN2xE7I2lRvwKM5u1BHRPTd1yc8iaf//Lai/78/uYAvE5DXp5HzWRFOwMlbRvMGJHIQjOqoxj87cDAaag==", - "requires": { - "@vue/shared": "3.1.2" - } - }, - "@vue/shared": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/@vue/shared/-/shared-3.1.2.tgz", - "integrity": "sha512-EmH/poaDWBPJaPILXNI/1fvUbArJQmmTyVCwvvyDYDFnkPoTclAbHRAtyIvqfez7jybTDn077HTNILpxlsoWhg==" - }, "abab": { "version": "2.0.5", "resolved": "https://registry.npmjs.org/abab/-/abab-2.0.5.tgz", diff --git a/package.json b/package.json index 19e4c84dd..eafdc9cfa 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,6 @@ "built" ], "dependencies": { - "@vue/reactivity": "^3.1.2", "autobind-decorator": "^2.4.0", "eventemitter3": "^4.0.7", "reconnecting-websocket": "^4.4.0" diff --git a/src/streaming.ts b/src/streaming.ts index 26137d188..d8feb700b 100644 --- a/src/streaming.ts +++ b/src/streaming.ts @@ -2,7 +2,6 @@ import autobind from 'autobind-decorator'; import { EventEmitter } from 'eventemitter3'; import ReconnectingWebsocket from 'reconnecting-websocket'; import { stringify } from 'querystring'; -import { markRaw } from '@vue/reactivity'; import { BroadcasrEvents, Channels } from './streaming.types'; function urlQuery(obj: {}): string { @@ -72,7 +71,7 @@ export default class Stream extends EventEmitter { this.sharedConnectionPools.push(pool); } - const connection = markRaw(new SharedConnection(this, channel, pool, name)); + const connection = new SharedConnection(this, channel, pool, name); this.sharedConnections.push(connection); return connection; } @@ -89,7 +88,7 @@ export default class Stream extends EventEmitter { @autobind private connectToChannel(channel: C, params: Channels[C]['params']): NonSharedConnection { - const connection = markRaw(new NonSharedConnection(this, channel, this.genId(), params)); + const connection = new NonSharedConnection(this, channel, this.genId(), params); this.nonSharedConnections.push(connection); return connection; }