Skip to content

Commit

Permalink
[TASK] Remove compatibility with JobRouter < 2022.1
Browse files Browse the repository at this point in the history
Related: #2
  • Loading branch information
brotkrueml committed Dec 11, 2022
1 parent 739f333 commit 02b9c89
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 15 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

### Removed
- Compatibility with PHP < 8.1
- Compatibility with JobRouter® < 2022.1

## [1.4.0] - 2022-08-21

### Added
Expand Down
7 changes: 7 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ to `Semantic Versioning <https://semver.org/spec/v2.0.0.html>`_.
`Unreleased <https://github.com/brotkrueml/jobrouter-client/compare/v1.4.0...HEAD>`_
----------------------------------------------------------------------------------------

Removed
^^^^^^^


* Compatibility with PHP < 8.1
* Compatibility with JobRouter® < 2022.1

`1.4.0 <https://github.com/brotkrueml/jobrouter-client/compare/v1.3.0...v1.4.0>`_ - 2022-08-21
--------------------------------------------------------------------------------------------------

Expand Down
7 changes: 0 additions & 7 deletions src/Mapper/RouteContentTypeMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,7 @@ final class RouteContentTypeMapper
'application/fileuploads/.+?' => '',
'application/jobarchive/archives/.+?/documents/.+?' => '',
'application/sessions' => '',
'application/sessions/.+?' => '',
'application/steps/.+?/lock' => '',
// @deprecated, only available in JobRouter 4.2
'configuration/sessions/.+?' => '',
'designer/process/.+?/.+?/data/.+?' => '',
'designer/process/.+?/.+?/dialogscripts/:dialog/:id' => '',
'designer/process/.+?/.+?/functions/.+?' => '',
Expand All @@ -45,8 +42,6 @@ final class RouteContentTypeMapper
],
'PATCH' => [
'application/sessions' => '',
// @deprecated, only available in JobRouter 4.2
'application/sessions/.+?' => '',
],
'POST' => [
'application/documenthub' => self::CONTENT_TYPE_MULTIPART_FORMDATA,
Expand All @@ -69,8 +64,6 @@ final class RouteContentTypeMapper
'PUT' => [
'application/dashboards/.+?' => '',
'application/incidents/.+?' => self::CONTENT_TYPE_MULTIPART_FORMDATA,
// @deprecated, only available in JobRouter 4.2
'application/sessions/.+?' => '',
],
];

Expand Down
9 changes: 1 addition & 8 deletions tests/Unit/Mapper/routes.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Routes available in JobRouter 4.2-5.2 / 2022.1-2022.4
# Routes available in JobRouter 2022.1-2022.4
# Format: <route> <method> <expected content type>
/application/attachments/:workflowId/:dialogField GET -
/application/attachments/:workflowId/:id GET -
Expand Down Expand Up @@ -54,10 +54,6 @@
/application/sessions PATCH -
/application/sessions POST application/json
/application/sessions PUT application/json
/application/sessions/:resourceId DELETE -
/application/sessions/:sessionId GET -
/application/sessions/:sessionId PATCH -
/application/sessions/:sessionId PUT -
/application/steps POST application/json
/application/steps/:workflowId GET -
/application/steps/:workflowId PUT application/json
Expand Down Expand Up @@ -88,9 +84,6 @@
/configuration/languages GET -
/configuration/languages/:language/:title GET -
/configuration/sessions GET -
/configuration/sessions/:sessionId DELETE -
/configuration/sessions/:sessionId GET -
/configuration/sessions/:sessionId PUT application/json
/configuration/settings GET -
/configuration/settings/:settingName GET -
/configuration/settings/:settingName PUT application/json
Expand Down

0 comments on commit 02b9c89

Please sign in to comment.