Releases: FormulasQuestion/moodle-qtype_formulas
v6.0.2 (20250506)
- bugfix: fix problem with subsequent comments in variable definitions
v6.0.1 (20250504)
- improvement: also accept numeric strings in places where numbers are expected
v6.0.0
Note: Great care has been taken to make sure that this new version – despite the numerous changes and
improvements – is fully backwards compatible with prior versions, i. e. all questions created
in earlier versions will still work. Note, however, that questions including the new features
listed below can no longer be imported to Moodle systems using a 5.x.x version of the Formulas
question plugin.
We have done extensive testing. However, we recommend you not to update the plugin while you have
pending attempts at important exams.
Changes, Improvements, Bugfixes
-
complete rewrite of the parsing / evaluation engine
-
new feature: access to grading variables and student answers in part feedback
-
new feature: allow use of strings in ternary expressions; no more obligation to use pick() for this
-
new feature: allow string concatenation with + operator; no more obligation to use join() for this
-
new feature: access individual chars of a string, as one can do with list elements
-
new feature: allow negative indices to access chars or list elements "from the end"
-
new feature: allow use of variables for the range delimiters and step size in for loop
-
new feature: allow == comparison of strings
-
new feature: possibility to use escaped quotes inside string
-
new feature: allow to use single quote as string delimiter
-
new feature: strings can include line breaks and hence span multiple lines
-
new feature: mixed lists are now possible, i. e. lists including numbers and strings
-
new feature: lists may now be nested
-
new feature: allow use of ranges and elements side-by-side in a list, e. g. [1:10, 12]
-
new feature: shuffle() can now be used in global/local variables as well
-
new feature: allow usage of pi or π instead of pi() in expressions; pi() is still valid
-
new feature: warn teacher when using ^ in model answer
-
new feature: MathJax preview of student input and units
-
new feature: students can now use lg() for common logarithm and lb() for binary logarithm
-
new feature: precise error reporting, indicating what happened and where (if possible)
-
improvement: allow better duplicate check during restore, following fix of MDL-83541
-
improvement: show answer type in Bootstrap tooltip rather than own method
-
improvement: variable instantiation check (in edit form) can handle empty model answers better now
-
bugfix: no more loss of images when moving question between categories
-
bugfix: no more inconsistency errors when reviewing old attempts
-
internal: assure full compatibility with Moodle 5.0
-
internal: added extensive automated tests to bring code coverage > 90%
-
internal: no more use of eval() in the code
-
internal: all Javascript is now in AMD modules
-
internal: fixed all codesniffer errors and most warnings, except for legacy code
v5.3.6 (20250429)
- fixed a problem where restoring old backups could lead to duplicates
v5.3.5 (20250317)
- improvement: avoid possible precision problem with ncr()
- improvement: implement changes made necessary by the fix for MDL-83541
- internal: add unit tests for backup and restore
- internal: drop support for upcoming Moodle 5.0
Note: This is the final regular version for the 5.x branch. It is compatible with Moodle 3.9 to Moodle 4.5. No updates are planned. Further development is done in the main branch, starting with version 6.0.0. While this version might still work with Moodle 5.0, no tests have been done to make sure it does.
v5.3.4.post0 (20241007)
- internal: explicitly list Moodle 4.5 as supported in version.php
Please note: this is the last version with support for Moodle < 4.1 and PHP < 8.0.
v5.3.4 (20241007)
- assure compatibility with new Moodle 4.5 (LTS)
Please note: this is the last version with support for Moodle < 4.1 and PHP < 8.0.
v5.3.3 (20240420)
- assure compatibility with Moodle 4.4 and PHP 8.3
- bugfix: solve problem with "Save and continue" on edit form and PHP 8.2
- bugfix: disable simple mode for grading criterion if it failed validation
- bugfix: solve problem with < char and instantiation check
- bugfix: correct some messages and texts
- internal: rename behat step to avoid conflicts with other plugins during tests
- internal: update CI
- internal: add code coverage to CI chain
Please note: this is (probably) the last version with support for Moodle < 4.1 and PHP < 8.0.
v5.3.2 (2023111700)
- bugfix: also improve robustness against risky grading variables
- internal: additional tests
v5.3.1 (2023111600)
- bugfix: make sure risky grading criterion cannot break question
- bugfix: make sure grading does not lead to invalid question state
- revert workaround from 5.2.2 (TinyMCE too small), as bug was fixed upstream
- internal: improvements to some tests
- internal: update GitHub actions