Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependencies #2

Merged
merged 12 commits into from Oct 18, 2017
Merged

Update dependencies #2

merged 12 commits into from Oct 18, 2017

Conversation

ryota-ka
Copy link
Collaborator

@ryota-ka ryota-ka commented Oct 17, 2017

  • 時代が時代なのでさすがに typings やめた
    • DefinitedlyTyped から以下を追加
      • @types/ms
      • @types/ws
      • @types/node
  • 依存ライブラリのアップデート
    • ms (0.7.3 -> 2.0.0)
    • ws (1.1.1 -> 3.2.0)
    • rxjs (5.0.3 -> 5.4.3)
    • ramda (0.22.1 -> 0.25.0)
    • @types/ramda (0.0.2 -> 0.24.17)
  • TypeScript を 2.1 から 2.5 に上げた
  • 上記のアップデートに伴うコンパイルエラーの修正
    • そもそも実装おかしかったんじゃないのみたいな箇所もある

@ryota-ka ryota-ka requested a review from hiroqn October 17, 2017 17:54
created: is(Number),
creator: is(String)
});
export function isChannel(x: any): x is Channel {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

where が type predicate として振る舞わないので泣く泣くこうしている (isInstantMessage も同様)

@@ -53,7 +53,7 @@ export function updateChannel(key: string, project: (x: Channel) => Channel): Ac
}

export function deleteChannel(key: string): Action {
return curryDel(key);
return over(lensProp('channels'), curryDel(key));
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ここは元の実装がおかしかった疑惑がある.

@@ -78,7 +78,7 @@ export function makeSlackBotDriver(token: string, options?: makeBotDriverOptions
const pong$: O<Timestamp<{}>> = fromEvent(socket, 'pong')
.timestamp();

const pingOutput$ = ping$.mapTo(() => socket.ping(null, {}, true));
const pingOutput$ = ping$.mapTo(() => socket.ping(null, true, true));
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -1,4 +1,4 @@
import * as ms from 'ms';
import ms = require('ms');
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

かなしい

@@ -19,7 +22,7 @@ export class EventSource {
}

selectByChannelName(name: string): Observable<IncomingMessage<Channel>> {
return this._message$.mergeMap(({event, channels}) => {
return this._message$.filter<BothPS, ChanPS>((ps: BothPS): ps is ChanPS => isChannel(ps.event.channel)).mergeMap(({event, channels}) => {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

このあたりも今まで動いてたのが謎

Copy link
Owner

@hiroqn hiroqn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

最 of 高

@ryota-ka ryota-ka merged commit 5e73b16 into master Oct 18, 2017
@ryota-ka ryota-ka deleted the update-dependencies branch October 18, 2017 12:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants