diff --git a/MIGRATION.md b/MIGRATION.md index 0933e83..6b8a8b5 100644 --- a/MIGRATION.md +++ b/MIGRATION.md @@ -1,5 +1,9 @@ # Migration Guide +## From API version 2.1.1 to 2.1.2 + + * Minor breaking change: `help` strings from `/options` no longer substitute `%(default)s` and `%(choices)s` variables. Clients should do that by replacing the `default` and `domain` attributes before displaying them to the user. This is necessary for better localization support. + ## From API version 1.x to 2.x * `skipPostProcessing` parameter in `/task/new` and `/task/new/init` no longer processes 2D tiles via gdal2tiles.py. So the `orthophoto_tiles`, `dsm_tiles` and `dtm_tiles` directories are no longer being generated by NodeODM. Engines can provide such folders if needed and will be included in the output archive. With ODM you can now use the `--tiles` parameter to generate the tiles. diff --git a/libs/odmInfo.js b/libs/odmInfo.js index 4a08397..41eb881 100644 --- a/libs/odmInfo.js +++ b/libs/odmInfo.js @@ -141,11 +141,6 @@ module.exports = { if (domain.indexOf(value) === -1) domain.unshift(value); } - const choicesStr = Array.isArray(domain) ? domain.join(", ") : domain; - - help = help.replace(/\%\(choices\)s/g, choicesStr); - help = help.replace(/\%\(default\)s/g, value); - odmOptions.push({ name, type, value, domain, help }); diff --git a/package.json b/package.json index 7be9b3a..0682f66 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "NodeODM", - "version": "2.1.1", + "version": "2.1.2", "description": "REST API to access ODM", "main": "index.js", "scripts": {