Skip to content

Commit

Permalink
Merge branch 'main' into delucis/feat/new-move-signature
Browse files Browse the repository at this point in the history
  • Loading branch information
delucis committed Oct 22, 2021
2 parents ce31e91 + 525c8f6 commit 4fecbec
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 3 deletions.
8 changes: 8 additions & 0 deletions docs/documentation/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
### v0.49.3

#### Bugfixes

* [[220823bb](https://github.com/boardgameio/boardgame.io/commit/220823bb)] Update gameover metadata when `undefined` ([#1023](https://github.com/boardgameio/boardgame.io/pull/1023))
* [[df6b7c40](https://github.com/boardgameio/boardgame.io/commit/df6b7c40)] include `chatMessages` property in React client types ([#1022](https://github.com/boardgameio/boardgame.io/pull/1022))


### v0.49.2

#### Features
Expand Down
2 changes: 1 addition & 1 deletion 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": "boardgame.io",
"version": "0.49.2",
"version": "0.49.3",
"description": "library for turn-based games",
"repository": "https://github.com/boardgameio/boardgame.io",
"scripts": {
Expand Down
1 change: 1 addition & 0 deletions src/client/react.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ type ExposedClientProps<G extends any = any> = Pick<
| 'matchID'
| 'matchData'
| 'sendChatMessage'
| 'chatMessages'
>;

export type BoardProps<G extends any = any> = ClientState<G> &
Expand Down
2 changes: 1 addition & 1 deletion src/master/master.ts
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ export class Master {
const { deltalog, ...stateWithoutDeltalog } = state;

let newMetadata: Server.MatchData | undefined;
if (metadata && !('gameover' in metadata)) {
if (metadata && metadata.gameover === undefined) {
newMetadata = {
...metadata,
updatedAt: Date.now(),
Expand Down

0 comments on commit 4fecbec

Please sign in to comment.