diff --git a/package.xml b/package.xml index 105db48..a1bfa83 100644 --- a/package.xml +++ b/package.xml @@ -16,11 +16,11 @@ stesie@php.net yes - 2017-08-01 - + 2017-11-26 + - 1.4.1 - 1.4.1 + 2.0.0 + 2.0.0 stable @@ -28,10 +28,36 @@ The MIT License (MIT) -- omit usage of deprecated V8 API (#311) -- fix build against V8 version 6.0 (#313) -- don't clean properties hash while it is iterated (#316) -- fix build against PHP 7.2 +Backward-incompatible changes +----------------------------- + +- normal script execution shares its context with modules now (like on Node.js) +- expose a "global" symbol that references the global scope (like on Node.js) +- modules may return arbitrary values (not just objects; now like on Node.js) +- pick up exports from "module.exports" also (like on Node.js) +- handle exceptions thrown in module loader/normaliser like in other PHP scopes called from JS + (i.e. by default terminate execution, optionally propagate to JS side) + +V8Js' modules vastly behave like Node.js modules now \o/ + +- php.ini option v8js.compat_php_exceptions has been removed + +Deprecations +------------ +- V8Js::registerExtension and V8Js::getExtensions are now deprecated, use snapshots instead +- likewise passing $extensions to V8Js::__construct +- V8Js::getPendingException and and V8Js::clearPendingException are deprecated, use try/catch +- likewise passing $report_uncaught_exceptions !== true to V8Js::__construct + +Improvements +------------ +- add documentation on heap snapshots + +Bugfixes +-------- + +- fix build on Windows with VS2017 (thanks @Jan-E) +- fix enumeration of methods on V8 6.3 @@ -59,9 +85,15 @@ + + + + + + @@ -84,17 +116,17 @@ - + - - + + - - - + + + @@ -123,11 +155,11 @@ + - @@ -197,29 +229,30 @@ + - + - + - - + + - + - - + + @@ -227,9 +260,9 @@ - - - + + + @@ -238,7 +271,7 @@ - + @@ -842,7 +875,7 @@ Correctly initialize V8's ICU component stable stable - 2017-08-01 + 2017-11-26 The MIT License (MIT) - omit usage of deprecated V8 API (#311) @@ -851,5 +884,49 @@ Correctly initialize V8's ICU component - fix build against PHP 7.2 + + + 2.0.0 + 2.0.0 + + + stable + stable + + 2017-11-26 + The MIT License (MIT) + +Backward-incompatible changes +----------------------------- + +- normal script execution shares its context with modules now (like on Node.js) +- expose a "global" symbol that references the global scope (like on Node.js) +- modules may return arbitrary values (not just objects; now like on Node.js) +- pick up exports from "module.exports" also (like on Node.js) +- handle exceptions thrown in module loader/normaliser like in other PHP scopes called from JS + (i.e. by default terminate execution, optionally propagate to JS side) + +V8Js' modules vastly behave like Node.js modules now \o/ + +- php.ini option v8js.compat_php_exceptions has been removed + +Deprecations +------------ +- V8Js::registerExtension and V8Js::getExtensions are now deprecated, use snapshots instead +- likewise passing $extensions to V8Js::__construct +- V8Js::getPendingException and and V8Js::clearPendingException are deprecated, use try/catch +- likewise passing $report_uncaught_exceptions !== true to V8Js::__construct + +Improvements +------------ +- add documentation on heap snapshots + +Bugfixes +-------- + +- fix build on Windows with VS2017 (thanks @Jan-E) +- fix enumeration of methods on V8 6.3 + + diff --git a/php_v8js_macros.h b/php_v8js_macros.h index c0a759a..79c2e6d 100644 --- a/php_v8js_macros.h +++ b/php_v8js_macros.h @@ -63,7 +63,7 @@ extern "C" { #endif /* V8Js Version */ -#define PHP_V8JS_VERSION "1.4.1" +#define PHP_V8JS_VERSION "2.0.0" /* Helper macros */ #define V8JS_GET_CLASS_NAME(var, obj) \