summaryrefslogtreecommitdiff
path: root/www/wiki/vendor/param-processor/param-processor/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'www/wiki/vendor/param-processor/param-processor/README.md')
-rw-r--r--www/wiki/vendor/param-processor/param-processor/README.md80
1 files changed, 70 insertions, 10 deletions
diff --git a/www/wiki/vendor/param-processor/param-processor/README.md b/www/wiki/vendor/param-processor/param-processor/README.md
index 753b299f..c3ec4ebf 100644
--- a/www/wiki/vendor/param-processor/param-processor/README.md
+++ b/www/wiki/vendor/param-processor/param-processor/README.md
@@ -172,7 +172,7 @@ The requires fields currently are: name and message
<li>minlength: int or false</li>
<li>maxlength: int or false</li>
<li>regex: string</li>
- <ul>
+ </ul>
</td>
</tr>
<tr>
@@ -190,7 +190,7 @@ The requires fields currently are: name and message
<li>upperbound: int, float or false</li>
<li>range: [lowerbound, upperbound]</li>
<li>withinrange: [float $point, float $deviation]</li>
- <ul>
+ </ul>
</td>
</tr>
<tr>
@@ -214,7 +214,7 @@ The requires fields currently are: name and message
<li>defaultunit: string</li>
<li>lowerbound: int, float or false</li>
<li>upperbound: int, float or false</li>
- <ul>
+ </ul>
</td>
</tr>
</table>
@@ -284,12 +284,6 @@ $processor->setFunctionParams(
);
```
-## Tests
-
-This library comes with a set up PHPUnit tests that cover all non-trivial code. You can run these
-tests using the PHPUnit configuration file found in the root directory. The tests can also be run
-via TravisCI, as a TravisCI configuration file is also provided in the root directory.
-
## Contributing
* [File an issue](https://github.com/JeroenDeDauw/ParamProcessor/issues)
@@ -297,12 +291,76 @@ via TravisCI, as a TravisCI configuration file is also provided in the root dire
## Authors
-ParamProcessor has been written by [Jeroen De Dauw](https://github.com/JeroenDeDauw) to
+ParamProcessor has been written by [Jeroen De Dauw](https://www.entropywins.wtf/) to
support the [Maps](https://github.com/JeroenDeDauw/Maps) and
[Semantic MediaWiki](https://semantic-mediawiki.org/) projects.
## Release notes
+### 1.10.0 (2019-08-03)
+
+* Removed `DimensionParam`
+* Fixed bug in parsing of parameters of type `dimension`
+
+### 1.9.0 (2019-08-03)
+
+* Added `ParamDefinitionFactory::newDefinitionsFromArrays`
+
+### 1.8.0 (2019-08-03)
+
+* Removed `ParamDefinitionFactory::getComponentForType`
+* Added `ParamDefinitionFactory` constructor
+* Added `ParameterTypes` constructor
+* Added `ParameterTypes::addType`
+* Added `ParameterTypes::newCoreTypes`
+* Added `ProcessingResult::getParameterArray`
+
+### 1.7.0 (2019-08-02)
+
+* Added `ParameterTypes` public constants: `BOOLEAN`, `FLOAT`, `INTEGER`, `STRING`, `DIMENSION`
+* Deprecated `ParamDefinition::getCleanDefinitions` in favour of `ParamDefinitionFactory`
+* Deprecated `ParamDefinition::setDefault` in favour of constructor parameter
+* Deprecated `Processor::getParameterValues` in favour of `processParameters` and `ProcessingResult`
+* Deprecated `Processor::getErrors` in favour of `processParameters` and `ProcessingResult`
+* Deprecated `Processor::getErrorMessages` in favour of `processParameters` and `ProcessingResult`
+* Deprecated `Processor::hasErrors` in favour of `processParameters` and `ProcessingResult`
+* Deprecated `Processor::hasFatalError` in favour of `processParameters` and `ProcessingResult`
+* Deprecated parameter dependencies
+ * Deprecated `ParamDefinition::hasDependency`
+ * Deprecated `ParamDefinition::addDependencies`
+ * Deprecated `ParamDefinition::getDependencies`
+ * Deprecated `dependencies` key in `ParamDefinition::setArrayValues` parameter
+ * Deprecated `TopologicalSort`
+ * Deprecated `TSNode`
+* Deprecated extending `ParamDefinition`
+* Deprecated `StringParam`
+* Deprecated `DimensionParam`
+* Deprecated `ParamDefinition::setArrayValues`
+* Deprecated `ParamDefinition::$acceptOverriding`
+* Deprecated `ParamDefinition::$accumulateParameterErrors`
+* Deprecated `Param::$accumulateParameterErrors`
+* Deprecated `Settings`
+* Deprecated `Options::setRawStringInputs`
+* Deprecated `Options::isStringlyTyped`
+
+### 1.6.1 (2019-07-28)
+
+* Fixed message defaulting bug in `ParamDefinition`
+
+### 1.6.0 (2019-07-28)
+
+* Added `Processor::setParameterDefinitions`
+* Deprecated second parameter of `Processor::setParameters` in favour of `setParameterDefinitions`
+* Deprecated second parameter of `Processor::setFunctionParams` in favour of `setParameterDefinitions`
+* Deprecated second parameter of `ParamDefinitionFactory::newDefinitionFromArray`
+* Deprecated return value of `ParamDefinitionFactory::registerType`
+* Deprecated `ParamDefinitionFactory::registerGlobals`
+* Deprecated `typed-parser` key in parameter type definitions
+
+### 1.5.0 (2019-07-28)
+
+* Improved code comments and added extra type checks
+
### 1.4.2 (2018-11-26)
* Fixed defaulting behaviour of list parameters
@@ -315,6 +373,8 @@ support the [Maps](https://github.com/JeroenDeDauw/Maps) and
* Dropped support for PHP older than 7.1
* Added `ParameterTypes` to allow gradual migration away from the now deprecated `$wgParamDefinitions`
+* Deprecated `$wgParamDefinitions`
+* Deprecated `$egValidatorSettings`
### 1.3.4 (2018-05-05)