Skip to content

Commit

Permalink
prepare for the 4.0.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
1ma committed Jun 8, 2022
1 parent 1aec149 commit 99c3575
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
### [4.0.0] - 2022-06-09

* (Breaking Change) Bumped minimum version of PHP to 8.0
* (Breaking Change) Bumped minimum requirement of psr/container to ^2.0
* (Breaking Change) Bumped minimum requirement of opis/json-schema to ^2.0
* (Breaking Change) Removed ConcurrentServer class
* (Breaking Change) Made Server class final and their attributes private
* (Improvement) Made it possible to redefine the Validator through a PSR-11 container service, contributed by @FTI-Herbert
* (Improvement) Added `getMethods()` to the Server class, contributed by @FTI-Herbert

### [3.0.0] - 2020-12-24

* (Breaking Change) Raised minimum required version to PHP 7.3 and started to test lib for PHP 7.3, 7.4 and 8.0
Expand Down Expand Up @@ -45,6 +55,7 @@

* Initial pre-release

[4.0.0]: https://github.com/1ma/JsonRpc/compare/v3.0.0...v4.0.0
[3.0.0]: https://github.com/1ma/JsonRpc/compare/v2.1.3...v3.0.0
[2.1.3]: https://github.com/1ma/JsonRpc/compare/v2.1.2...v2.1.3
[2.1.2]: https://github.com/1ma/JsonRpc/compare/v2.1.1...v2.1.2
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2018-2021 Marcel Hernandez
Copyright (c) 2018-2022 Marcel Hernandez

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[![Build Status](https://github.com/1ma/JsonRpc/workflows/.github/workflows/phpunit.yml/badge.svg)](https://github.com/1ma/JsonRpc/actions)
[![Code Coverage](https://scrutinizer-ci.com/g/1ma/JsonRpc/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/1ma/JsonRpc/?branch=master)

A modern, object-oriented [JSON-RPC 2.0] server for PHP 7.3+ featuring JSON Schema integration and middlewaring.
A modern, object-oriented [JSON-RPC 2.0] server for PHP 8.0+ featuring JSON Schema integration and middlewaring.


# Table of Contents
Expand Down Expand Up @@ -179,7 +179,7 @@ $response = $server->run('{"jsonrpc":"2.0","method":"add","params":[2,3],"id":1}
## Custom Validation
Since version 3.1.0 you can override the Opis Validator through the container.
Since version 4.0.0 you can override the Opis Validator through the container.
This allows you to use custom Opis [filters], [formats] and [media types].
To do that simply define an `Opis\JsonSchema\Validator::class` service in the PSR-11 container
Expand All @@ -194,7 +194,7 @@ $formats = $validator->parser()->getFormatResolver();
$formats->register('integer', 'prime', new PrimeNumberFormat());
$psr11Container->set(Opis\JsonSchema\Validator::class, $validator);
$jsonServer = new Server($psr11Container);
$jsonServer = new UMA\JsonRpc\Server($psr11Container);
// ...
```
Expand Down

0 comments on commit 99c3575

Please sign in to comment.