Skip to content
This repository has been archived by the owner on Mar 29, 2024. It is now read-only.

Commit

Permalink
Prepare 0.1.6 release
Browse files Browse the repository at this point in the history
  • Loading branch information
pinepain committed May 3, 2017
1 parent d63cf3d commit a0c388e
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 19 deletions.
25 changes: 8 additions & 17 deletions package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,32 +26,22 @@
<email>[email protected]</email>
<active>yes</active>
</lead>
<date>2017-04-30</date>
<time>20:34:47</time>
<date>2017-05-03</date>
<time>16:59:56</time>
<version>
<release>0.1.5</release>
<api>0.1.5</api>
<release>0.1.6</release>
<api>0.1.6</api>
</version>
<stability>
<release>stable</release>
<api>stable</api>
</stability>
<license uri="https://opensource.org/licenses/mit">The MIT License (MIT)</license>
<notes>
This release introduces separate representation for undefined value and fixes some bugs.
Please, see change list below for more details.

* - BC-breaking or potentially BC-breaking changes

Changes to public API and other important changes which may affect end-user:

- * Make V8\Isolate::ThrowException() method void;
- * Remove non-documented V8Isolate::ContextDisposedNotification();
- * Make V8\Value, V8\PrimitiveValue and V8\NameValue abstract;
- V8\Isolate time limit affects js runtime only;
- Introduce separate class for undefined value - V8UndefenedValue;
- Fix V8\Tempalte::Set() to do not accept non-primitive values;
- Remove all private properties from V8\Isolate;

- Enforce `Value()` method on all `V8\Primitive` values;
- Fix segfault when zero args passed to `V8\FunctionObject::NewInstance()`;
</notes>
<contents>
<dir name="/">
Expand Down Expand Up @@ -211,6 +201,7 @@
<file name="tests/V8FunctionObject.phpt" role="test" />
<file name="tests/V8FunctionObject_Call.phpt" role="test" />
<file name="tests/V8FunctionObject_Call_bad_args.phpt" role="test" />
<file name="tests/V8FunctionObject_NewInstance.phpt" role="test" />
<file name="tests/V8FunctionObject_constructor_behavior.phpt" role="test" />
<file name="tests/V8FunctionObject_die.phpt" role="test" />
<file name="tests/V8FunctionObject_die_different_isolates.phpt" role="test" />
Expand Down
4 changes: 2 additions & 2 deletions php_v8.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ extern zend_module_entry php_v8_module_entry;
#endif

#ifndef PHP_V8_VERSION
#define PHP_V8_VERSION "0.2.0"
#define PHP_V8_VERSION "0.1.6"
#endif

#ifndef PHP_V8_REVISION
#define PHP_V8_REVISION "dev"
#define PHP_V8_REVISION "release"
#endif


Expand Down
14 changes: 14 additions & 0 deletions scripts/refresh-package-xml.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,4 +105,18 @@
$new_package_filename = 'package.xml';
}

// Replace version:

$header = file_get_contents('php_v8.h');

if (!preg_match('/#define PHP_V8_VERSION "(.+)"/', $header, $matches)) {
throw new RuntimeException("Unable to get release version");
}

$version = $matches[1];

$package = preg_replace("/\<release\>\d+\.\d+.\d+.+\<\/release\>/", '<release>' . $version . '</release>', $package);
$package = preg_replace("/\<api\>\d+\.\d+.\d+.+\<\/api\>/", '<api>' . $version . '</api>', $package);


file_put_contents($new_package_filename, $package);

0 comments on commit a0c388e

Please sign in to comment.