From 1dd81e27201bcf2673c647e4542a45ffca368359 Mon Sep 17 00:00:00 2001
From: Mark Johnson <mark@techpivot.net>
Date: Sat, 5 Mar 2016 12:49:31 -0800
Subject: [PATCH 1/8] Minor readme update.

---
 README.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/README.md b/README.md
index 818d4d6..2c2d857 100644
--- a/README.md
+++ b/README.md
@@ -12,7 +12,7 @@ maintain parity with the [phpv8/v8js](https://github.com/phpv8/v8js) library.
 
 
 ### Installation
-Include the `phpv8/v8js-stubs` repository into the **require-dev** section of your `composer.json` as follows:
+Include the `phpv8/v8js-stubs` repository in the **require-dev** section of your `composer.json` as follows:
 
   ```json
     "require-dev": {

From 45e427a607a215a0cd5bd8ecff648b6faa6f5257 Mon Sep 17 00:00:00 2001
From: Mark Johnson <mark@techpivot.net>
Date: Sat, 5 Mar 2016 13:06:21 -0800
Subject: [PATCH 2/8] API update and version bump for 0.5.0.

---
 README.md    |  2 +-
 src/V8Js.php | 13 +++++++++++++
 2 files changed, 14 insertions(+), 1 deletion(-)

diff --git a/README.md b/README.md
index 2c2d857..012b9a9 100644
--- a/README.md
+++ b/README.md
@@ -16,6 +16,6 @@ Include the `phpv8/v8js-stubs` repository in the **require-dev** section of your
 
   ```json
     "require-dev": {
-        "phpv8/v8js-stubs": "~0.4"
+        "phpv8/v8js-stubs": "~0.5"
     }
   ```
\ No newline at end of file
diff --git a/src/V8Js.php b/src/V8Js.php
index 2427486..89d2f75 100644
--- a/src/V8Js.php
+++ b/src/V8Js.php
@@ -134,4 +134,17 @@ public static function registerExtension($extension_name, $code, array $dependen
      */
     public static function getExtensions()
     {}
+
+    /**
+     * Creates a custom V8 heap snapshot with the provided JavaScript source embedded.
+     * Snapshots are supported by V8 4.3.7 and higher.  For older versions of V8 this
+     * extension doesn't provide this method.
+     *
+     * @since 0.5.0
+     * @param string $embed_source
+     *
+     * @return string|false
+     */
+    public static function createSnapshot($embed_source)
+    {}
 }

From 5335b804f3dc6a0448d9fec4230138ffe736392e Mon Sep 17 00:00:00 2001
From: Mark Johnson <mark@techpivot.net>
Date: Sat, 5 Mar 2016 14:09:14 -0800
Subject: [PATCH 3/8] API update for 0.5

---
 src/V8Js.php | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/V8Js.php b/src/V8Js.php
index 89d2f75..da4b81f 100644
--- a/src/V8Js.php
+++ b/src/V8Js.php
@@ -15,8 +15,9 @@ class V8Js
      * @param array  $variables
      * @param array  $extensions
      * @param bool   $report_uncaught_exceptions
+     * @param string $snapshot_blob
      */
-    public function __construct($object_name = 'PHP', array $variables = null, array $extensions = null, $report_uncaught_exceptions = true)
+    public function __construct($object_name = 'PHP', array $variables = null, array $extensions = null, $report_uncaught_exceptions = true, $snapshot_blob = null)
     {}
 
     /**

From 5c3b4471308c76091acaadecc7776f580958747a Mon Sep 17 00:00:00 2001
From: Mark Johnson <mark@techpivot.net>
Date: Sat, 5 Mar 2016 17:52:39 -0800
Subject: [PATCH 4/8] Typo in description.

---
 composer.json | 2 +-
 composer.lock | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/composer.json b/composer.json
index 489919c..7a6e848 100644
--- a/composer.json
+++ b/composer.json
@@ -1,6 +1,6 @@
 {
     "name": "phpv8/v8js-stubs",
-    "description": "IDE stubs vor V8Js PHP extension",
+    "description": "IDE stubs for V8Js PHP extension",
     "license": "MIT",
     "require": {
         "php": ">=5.3.3"
diff --git a/composer.lock b/composer.lock
index 4bfe83c..f9c8b6b 100644
--- a/composer.lock
+++ b/composer.lock
@@ -4,7 +4,7 @@
         "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
         "This file is @generated automatically"
     ],
-    "hash": "d857fc598c2b5b6f35be493bed0bff04",
+    "hash": "543096bb20adfc0f8278e18f4bb772e1",
     "content-hash": "0e277bee0a949cbc07032649e25c7cd3",
     "packages": [],
     "packages-dev": [],

From a4647c2252e9669333e227fe070bc497a1a1b506 Mon Sep 17 00:00:00 2001
From: Mark Johnson <mark@techpivot.net>
Date: Thu, 31 Mar 2016 18:11:07 -0700
Subject: [PATCH 5/8] API updates to include: setAverageObjectSize() as well as
 default array values.

---
 src/V8Js.php | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/src/V8Js.php b/src/V8Js.php
index da4b81f..03af9e9 100644
--- a/src/V8Js.php
+++ b/src/V8Js.php
@@ -17,7 +17,7 @@ class V8Js
      * @param bool   $report_uncaught_exceptions
      * @param string $snapshot_blob
      */
-    public function __construct($object_name = 'PHP', array $variables = null, array $extensions = null, $report_uncaught_exceptions = true, $snapshot_blob = null)
+    public function __construct($object_name = 'PHP', array $variables = [], array $extensions = [], $report_uncaught_exceptions = true, $snapshot_blob = null)
     {}
 
     /**
@@ -99,6 +99,16 @@ public function setTimeLimit($limit)
     public function setMemoryLimit($limit)
     {}
 
+    /**
+     * Set the average object size (in bytes) for this V8Js object.
+     * V8's "amount of external memory" is adjusted by this value for every exported object.  V8 triggers a garbage
+     * collection once this totals to 192 MB.
+     *
+     * @param int $average_object_size
+     */
+    public function setAverageObjectSize($average_object_size)
+    {}
+
     /**
      * Returns uncaught pending exception or null if there is no pending exception.
      *

From 9a02a30fda209754ab2638753bbfe1a708c29ab1 Mon Sep 17 00:00:00 2001
From: Mark Johnson <mark@techpivot.net>
Date: Thu, 31 Mar 2016 18:11:35 -0700
Subject: [PATCH 6/8] Default for 0.6

---
 README.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/README.md b/README.md
index 012b9a9..fd87acf 100644
--- a/README.md
+++ b/README.md
@@ -16,6 +16,6 @@ Include the `phpv8/v8js-stubs` repository in the **require-dev** section of your
 
   ```json
     "require-dev": {
-        "phpv8/v8js-stubs": "~0.5"
+        "phpv8/v8js-stubs": "~0.6"
     }
   ```
\ No newline at end of file

From f2d649e92bbd79f6ba903c5be3c2b129d3acfecc Mon Sep 17 00:00:00 2001
From: Mark Johnson <mark@techpivot.net>
Date: Sat, 28 Jan 2017 09:48:26 -0800
Subject: [PATCH 7/8] Version bump

---
 README.md     | 2 +-
 composer.lock | 1 -
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/README.md b/README.md
index fd87acf..8b19a78 100644
--- a/README.md
+++ b/README.md
@@ -16,6 +16,6 @@ Include the `phpv8/v8js-stubs` repository in the **require-dev** section of your
 
   ```json
     "require-dev": {
-        "phpv8/v8js-stubs": "~0.6"
+        "phpv8/v8js-stubs": "^0.6.3"
     }
   ```
\ No newline at end of file
diff --git a/composer.lock b/composer.lock
index f9c8b6b..f891d87 100644
--- a/composer.lock
+++ b/composer.lock
@@ -4,7 +4,6 @@
         "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
         "This file is @generated automatically"
     ],
-    "hash": "543096bb20adfc0f8278e18f4bb772e1",
     "content-hash": "0e277bee0a949cbc07032649e25c7cd3",
     "packages": [],
     "packages-dev": [],

From e1f644fff9cbf6fe9c11825e12dbc902d807f167 Mon Sep 17 00:00:00 2001
From: Mark Johnson <mark@techpivot.net>
Date: Sat, 28 Jan 2017 09:50:17 -0800
Subject: [PATCH 8/8] Version bump

---
 README.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/README.md b/README.md
index 8b19a78..e8460d1 100644
--- a/README.md
+++ b/README.md
@@ -16,6 +16,6 @@ Include the `phpv8/v8js-stubs` repository in the **require-dev** section of your
 
   ```json
     "require-dev": {
-        "phpv8/v8js-stubs": "^0.6.3"
+        "phpv8/v8js-stubs": "^0.6.4"
     }
   ```
\ No newline at end of file
