From 4811e5b543929886fc30c24809c3ed0112a3e579 Mon Sep 17 00:00:00 2001 From: Tyson Andre Date: Thu, 13 Oct 2022 20:53:14 -0400 Subject: [PATCH 1/2] Release simdjson 2.1.0 --- package.xml | 6 +++--- php_simdjson.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.xml b/package.xml index cf4c761..8f2e891 100644 --- a/package.xml +++ b/package.xml @@ -18,10 +18,10 @@ yes --> - 2022-10-12 + 2022-10-14 - 2.1.0dev - 2.1.0dev + 2.1.0 + 2.1.0 stable diff --git a/php_simdjson.h b/php_simdjson.h index cf09b63..548c666 100644 --- a/php_simdjson.h +++ b/php_simdjson.h @@ -17,7 +17,7 @@ extern zend_module_entry simdjson_module_entry; #define phpext_simdjson_ptr &simdjson_module_entry -#define PHP_SIMDJSON_VERSION "2.1.0dev" +#define PHP_SIMDJSON_VERSION "2.1.0" #define SIMDJSON_SUPPORT_URL "https://github.com/crazyxman/simdjson_php" #define SIMDJSON_PARSE_FAIL 0 #define SIMDJSON_PARSE_SUCCESS 1 From ad454b74fba70baed7ad29583af69a8ace9109ba Mon Sep 17 00:00:00 2001 From: Tyson Andre Date: Thu, 13 Oct 2022 21:04:11 -0400 Subject: [PATCH 2/2] [skip ci] Document changes to exceptions in README.md --- README.md | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index dcb87b9..bf65efb 100644 --- a/README.md +++ b/README.md @@ -106,11 +106,13 @@ var_dump($res) //int(5) ```php getCode(). + * This can be compared against the `SIMDJSON_ERR_*` constants. + * + * Before simdjson 2.1.0, a regular RuntimeException with an error code of 0 was thrown. + */ +class SimdJsonException extends RuntimeException { +} ``` ## Edge cases