From f327ea635bf48a1bc96a7d00b283eea530a8189d Mon Sep 17 00:00:00 2001
From: Ib Green <ibgreen@users.noreply.github.com>
Date: Thu, 1 Dec 2016 09:57:42 -0800
Subject: [PATCH] Correct React PropTypes usage for Layer and Effects props
 (#250)

* Correct React PropTypes usage for Layer and Effects props

* Bump version and CHANGELOG
---
 CHANGELOG.md        | 6 ++++++
 package.json        | 2 +-
 src/react/deckgl.js | 4 ++--
 3 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index ca5504df9d3..a57e02175be 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -22,6 +22,12 @@ Ref: http://keepachangelog.com/en/0.3.0/
 
 ### deck.gl v3
 
+#### [3.1.1] - 2016-12-1
+
+- FIX: ExtrudedChoroplethLayer64 - Now updates uniforms when props change
+- HOTFIX ScatterplotLayer: Fix instancePositions regression in 3.1.0
+- HOTFIX DeckGL: Fix PropType warning regression in 3.1.0 (layers/effects props)
+
 #### [3.1.0] - 2016-11-30
 
 - LineLayer: Support elevations (z coords on positions)
diff --git a/package.json b/package.json
index 0170a0c91e9..a6b819d3d71 100644
--- a/package.json
+++ b/package.json
@@ -2,7 +2,7 @@
   "name": "deck.gl",
   "description": "A suite of 3D-enabled data visualization overlays, suitable for react-map-gl",
   "license": "MIT",
-  "version": "3.1.0",
+  "version": "3.1.1",
   "keywords": [
     "webgl",
     "visualization",
diff --git a/src/react/deckgl.js b/src/react/deckgl.js
index e3b3ba1287b..f728ca45270 100644
--- a/src/react/deckgl.js
+++ b/src/react/deckgl.js
@@ -32,8 +32,8 @@ export default class DeckGL extends React.Component {
     id: PropTypes.string,
     width: PropTypes.number.isRequired,
     height: PropTypes.number.isRequired,
-    layers: PropTypes.arrayOf(Layer).isRequired,
-    effects: PropTypes.arrayOf(Effect),
+    layers: PropTypes.arrayOf(PropTypes.instanceOf(Layer)).isRequired,
+    effects: PropTypes.arrayOf(PropTypes.instanceOf(Effect)),
     gl: PropTypes.object,
     debug: PropTypes.bool,
     onWebGLInitialized: noop,