Skip to content

Commit

Permalink
Merge branch 'release/v1.0.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
kobalab committed Dec 26, 2022
2 parents 03fb032 + bde28f5 commit df71136
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 6 deletions.
4 changes: 4 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
### v1.0.1 / 2022-12-26

- ゲーム停止時にコールバックが呼ばれないことがあるバグを修正

# v1.0.0 / 2022-11-11

- 正式版リリース
Expand Down
1 change: 0 additions & 1 deletion lib/game.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ module.exports = class Game {
}

stop(callback = ()=>{}) {
this._timeout_id = clearTimeout(this._timeout_id);
this._stop = callback;
}

Expand Down
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* @kobalab/majiang-core v1.0.0
* @kobalab/majiang-core v1.0.1
*
* Copyright(C) 2021 Satoshi Kobayashi
* Released under the MIT license
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kobalab/majiang-core",
"version": "1.0.0",
"version": "1.0.1",
"description": "麻雀基本ライブラリ",
"publishConfig": {
"access": "public"
Expand Down
1 change: 0 additions & 1 deletion test/game.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,6 @@ suite('Majiang.Game', ()=>{
test('停止すること', ()=>{
game.stop();
assert.ok(game._stop);
assert.ok(! game._timeout_id);
game._reply = [1,1,1,1];
game.next();
});
Expand Down

0 comments on commit df71136

Please sign in to comment.