diff --git a/CHANGELOG.md b/CHANGELOG.md index ed26c68..8fcbd92 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] ### Added +- Compatibility with JobRouter® 2022.3 - Compatibility with PHP 8.2 - Hide sensitive parameters in back traces for PHP versions >= 8.2 diff --git a/docs/changelog.rst b/docs/changelog.rst index 3297a9f..925423c 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -15,6 +15,7 @@ Added ^^^^^ +* Compatibility with JobRouter® 2022.3 * Compatibility with PHP 8.2 * Hide sensitive parameters in back traces for PHP versions >= 8.2 diff --git a/docs/installation.rst b/docs/installation.rst index 14845d4..eaecb71 100644 --- a/docs/installation.rst +++ b/docs/installation.rst @@ -32,7 +32,7 @@ JobRouter Client JobRouter® PHP ---------------- --------------------------- --------- 1.2 / 1.3 4.2 - 5.2 / 2022.1 - 2022.2 7.4 - 8.1 ---------------- --------------------------- --------- -1.4 4.2 - 5.2 / 2022.1 - 2022.2 7.4 - 8.2 +1.4 4.2 - 5.2 / 2022.1 - 2022.3 7.4 - 8.2 ================ =========================== ========= You can use, for example, JobRouter Client version 1.0 on JobRouter® version 5.2 diff --git a/src/Mapper/RouteContentTypeMapper.php b/src/Mapper/RouteContentTypeMapper.php index 2f8e81a..0d7e899 100644 --- a/src/Mapper/RouteContentTypeMapper.php +++ b/src/Mapper/RouteContentTypeMapper.php @@ -36,6 +36,12 @@ final class RouteContentTypeMapper 'application/steps/.+?/lock' => '', // @deprecated, only available in JobRouter 4.2 'configuration/sessions/.+?' => '', + 'designer/process/.+?/.+?/data/.+?' => '', + 'designer/process/.+?/.+?/dialogscripts/:dialog/:id' => '', + 'designer/process/.+?/.+?/functions/.+?' => '', + 'designer/process/.+?/.+?/phpfunctions/:id' => '', + 'designer/process/.+?/data/.+?' => '', + 'designer/process/.+?/functions/.+?' => '', ], 'PATCH' => [ 'application/sessions' => '', @@ -49,6 +55,16 @@ final class RouteContentTypeMapper 'application/jobarchive/archives/.+?/documents' => self::CONTENT_TYPE_MULTIPART_FORMDATA, 'application/jobarchive/archives/.+?/documents/.+?' => self::CONTENT_TYPE_MULTIPART_FORMDATA, 'application/jobarchive/archives/.+?/documents/.+?/clippedfiles' => self::CONTENT_TYPE_MULTIPART_FORMDATA, + 'designer/process/.+?/.+?/data' => self::CONTENT_TYPE_MULTIPART_FORMDATA, + 'designer/process/.+?/.+?/data/.+?' => self::CONTENT_TYPE_MULTIPART_FORMDATA, + 'designer/process/.+?/.+?/functions' => self::CONTENT_TYPE_MULTIPART_FORMDATA, + 'designer/process/.+?/.+?/functions/.+?' => self::CONTENT_TYPE_MULTIPART_FORMDATA, + 'designer/process/.+?/.+?/phpfunctions' => self::CONTENT_TYPE_MULTIPART_FORMDATA, + 'designer/process/.+?/.+?/phpfunctions/.+?' => self::CONTENT_TYPE_MULTIPART_FORMDATA, + 'designer/process/.+?/data' => self::CONTENT_TYPE_MULTIPART_FORMDATA, + 'designer/process/.+?/data/.+?' => self::CONTENT_TYPE_MULTIPART_FORMDATA, + 'designer/process/.+?/functions' => self::CONTENT_TYPE_MULTIPART_FORMDATA, + 'designer/process/.+?/functions/.+?' => self::CONTENT_TYPE_MULTIPART_FORMDATA, ], 'PUT' => [ 'application/dashboards/.+?' => '', diff --git a/tests/Unit/Mapper/routes.txt b/tests/Unit/Mapper/routes.txt index 06d1bc4..2ff1a5e 100644 --- a/tests/Unit/Mapper/routes.txt +++ b/tests/Unit/Mapper/routes.txt @@ -1,4 +1,4 @@ -# Routes available in JobRouter 4.2-5.2 / 2022.1 +# Routes available in JobRouter 4.2-5.2 / 2022.1-2022.3 # Format: /application/attachments/:workflowId/:dialogField GET - /application/attachments/:workflowId/:id GET - @@ -97,7 +97,41 @@ /configuration/settings/:settingNames PATCH application/json /configuration/users GET - /configuration/users/:username GET - +/designer/process/:processName/:version/data GET - +/designer/process/:processName/:version/data POST multipart/form-data +/designer/process/:processName/:version/data PUT application/json +/designer/process/:processName/:version/data/:encodedPath DELETE - +/designer/process/:processName/:version/data/:encodedPath GET - +/designer/process/:processName/:version/data/:encodedPath POST multipart/form-data +/designer/process/:processName/:version/dialogscripts GET - +/designer/process/:processName/:version/dialogscripts POST application/json +/designer/process/:processName/:version/dialogscripts/:dialog/:id DELETE - +/designer/process/:processName/:version/dialogscripts/:dialog/:id GET - +/designer/process/:processName/:version/dialogscripts/:dialog/:id POST application/json +/designer/process/:processName/:version/functions GET - +/designer/process/:processName/:version/functions POST multipart/form-data +/designer/process/:processName/:version/functions PUT application/json +/designer/process/:processName/:version/functions/:encodedPath DELETE - +/designer/process/:processName/:version/functions/:encodedPath GET - +/designer/process/:processName/:version/functions/:encodedPath POST multipart/form-data +/designer/process/:processName/:version/phpfunctions GET - +/designer/process/:processName/:version/phpfunctions POST multipart/form-data +/designer/process/:processName/:version/phpfunctions/:id DELETE - +/designer/process/:processName/:version/phpfunctions/:id GET - +/designer/process/:processName/:version/phpfunctions/:id POST multipart/form-data /designer/process/:processName/:version/processmessages POST application/json /designer/process/:processName/:version/processmessages/:processMessage PATCH application/json /designer/process/:processName/:version/processmessages/:processMessage PUT application/json +/designer/process/:processName/data GET - +/designer/process/:processName/data POST multipart/form-data +/designer/process/:processName/data PUT application/json +/designer/process/:processName/data/:encodedPath DELETE - +/designer/process/:processName/data/:encodedPath GET - +/designer/process/:processName/data/:encodedPath POST multipart/form-data +/designer/process/:processName/functions GET - +/designer/process/:processName/functions POST multipart/form-data +/designer/process/:processName/functions PUT application/json +/designer/process/:processName/functions/:encodedPath DELETE - +/designer/process/:processName/functions/:encodedPath GET - +/designer/process/:processName/functions/:encodedPath POST multipart/form-data /designer/systemactions GET -