Skip to content

Latest commit

 

History

History
257 lines (161 loc) · 7.66 KB

CHANGELOG.md

File metadata and controls

257 lines (161 loc) · 7.66 KB

v0.20.2

Features

  • [43ba0ff] allow optional redux enhancer (#139)
  • [dd6c110] Run endPhase event (analogue to endTurn) when game ends (#144)

Bugfixes

  • [8969433] Fix bug that was causing Random code to return the same numbers.

Breaking Changes

  • The Random API is different. There is no longer a Random package that you need to import. The API is attached to the ctx parameter that is passed to the moves. Take a look at http://boardgame.io/#/random for more details.

v0.20.1

Bugfixes

v0.20

Features

v0.19

Features

  • MongoDB connector
    • [eaa372f] add Mongo to package
    • [63c3cdf] mongo race condition checks
    • [65cefdf] allow setting Mongo location using MONGO_URI
    • [557b66c] add run() to Server
    • [2a85b40] replace lru-native with lru-cache
    • [003fe46] MongoDB connector

Breaking Changes

  • boardgame.io/server no longer has a default export, but returns Server and Mongo.
// v0.19
const Server = require('boardgame.io/server').Server;
// v0.18
const Server = require('boardgame.io/server');

v0.18.1

Bugfixes

[0c894bd] add react.js to rollup config

v0.18

Features

  • [4b90e84] decouple client from React

This adds a new package boardgame.io/react. Migrate all your calls from:

import { Client } from 'boardgame.io/client'

to:

import { Client } from 'boardgame.io/react'

boardgame.io/client exposes a raw JS client that isn't tied to any particular UI framework.

  • Random API:

    • [ebe7758] allow to throw multiple dice (#120)
    • [8c88b70] Simplify Random API (#119)
    • [45599e5] Server-side array shuffling. (#116)
    • [d296b36] Random API (#103)
  • [f510b69] onTurnBegin (#109)

Bugfixes

  • [6a010c8] Debug UI: fixes related to errors in arguments (#123)

v0.17.2

Features

  • [0572210] Exposing Client connection status to board. (#97)
  • [c2ea197] make db interface async (#86)
  • [9e507ce] exclude dependencies from package

Bugfixes

  • [a768f1f] remove entries from clientInfo and roomInfo on disconnect

v0.17.1

Features

  • [f23c5dd] Card and Deck (#74)
  • [a21c1dd] prevent endTurn when movesPerTurn have not been made

Bugfixes

  • [11e215e] fix bug that was using the wrong playerID when calculating playerView

v0.17.0

Features

  • [0758c7e] cascade endPhase
  • [cc7d44f] retire triggers and introduce onMove instead
  • [17e88ce] convert events whitelist to boolean options
  • [e315b9e] add ui to NPM package
  • [5b34c5d] remove pass event and make it a standard move
  • [f3da742] make playerID available in ctx
  • [cb09d9a] make turnOrder a globally configurable option

v0.16.8

Features

  • [a482469] ability to specify socket server

Bugfixes

  • [2ab3dfc] end turn automatically when game ends

v0.16.7

Bugfixes

  • [c65580d] Fix bug introduced in af3a7b5.

v0.16.6

Bugfixes

  • [af3a7b5] Only process move reducers (on the client) and nothing else when in multiplayer mode.

Buggy fix (fixed in 0.16.7).

Features

  • [2721ad4] Allow overriding db implementation in Server.

v0.16.5

Features

  • PlayerView.STRIP_SECRETS

v0.16.4

Bugfixes

  • endPhaseIf is called after each move (in addition to at the end of a turn).
  • gameID is namespaced on the server so that there are no clashes across game types.

Breaking Changes

  • props.game is now props.events (to avoid confusing it with the game object).
// OLD
onClick() {
  this.props.game.endTurn();
}

// NEW
onClick() {
  this.props.events.endTurn();
}

v0.16.3

Features

  • Multiple game types per server!

Breaking Changes

  • Server now accepts an array games, and no longer takes game and numPlayers.
const app = Server({
  games: [ TicTacToe, Chess ]
};

v0.16.2

Bugfixes

  • [a61ceca]: Log turn ends correctly (even when triggered automatically by endTurnIf)

Features

  • [9ce42b2]: Change color in GameLog based on the player that made the move.

v0.16.1

Bugfixes

  • [23d9726]: Fix bug that was causing log to be erased after flow.processMove.

Features

v0.16.0

Features

Breaking Changes

  • boardgame.io/game is now boardgame.io/core, and does not have a default export.
  • boardgame.io/client no longer has a default export.
// v0.16
import { Game } from 'boardgame.io/core'
import { Client } from 'boardgame.io/client'
// v0.15
import Game from 'boardgame.io/game'
import Client from 'boardgame.io/client'
  • victory is now endGameIf, and goes inside a flow section.
  • The semantics of endGameIf are subtly different. The game ends if the function returns anything at all.
  • ctx.winner is now ctx.gameover, and contains the return value of endGameIf.
  • props.endTurn is now props.game.endTurn.