- More updates to KnowledgePanel APIs
- Update KnowledgePanel API to comply to the latest Backend changes.
- Fix issue with
Nutriments
JSON conversion related to microgram units - Support password reset
- Add
page
,pageSize
andsortOption
inProductListQueryConfiguration
- Improve wrong username/password error messages in
Status
- Add ability to check whether a product attribute is marked as important in user's personal preferences
- Add ability to request the
product_name_languages
andingredients_text_languages
fields - Introduce
OpenFoodAPISettings
to improve API configuration support - Allow user agent to be passed via HTTP header
- Added
getProductImprovements
to the product model - Add missing
carbohydratesUnit
andfatUnit
fields in theNutriements
class - Fix alchohol tags in the
Nutriments
class - Fix write API for nutrient fields
- Fixed completely toJson and fromJson for the fields in multiple languages
- Fixed toJson and fromJson for the fields in multiple languages
- Added explicit parameter WithoutAdditives to replace ContainsAdditives (deprecated)
- Added new InvalidBarcodes class
- Simplified product search tests
- Added several nutrients
- Added ability to request and set multiple translated product fields at once (breaking change)
- Added support for product list queries
- Added PnnsGroup2 filter to ProductSearchQueryConfiguration, deprecated PnnsGroupQueryConfiguration
- Deprecated useless parameters OutputFormat and SearchSimple
- Added new feature to get the Ecoscore description in HTML
- Added comments to several classes and methods
product_name_de
,productNameEN
, ... are now deprecated. UseproductNameTranslated
instead- Added the
agribalyse
field inEcoscoreData
- Added support for the
missing_data_warning
field, to inform users that the ecoscore may be improved - Added support for user management
- Added dart-doc documentation
- Added suggestion for states, languages, labels, categories and more.
- Renamed SendImage imageUrl parameter to imageUri as it is an Uri (breaking change)
- New product preferences and matching classes for personalized search (thanks to monsieurtanuki)
- Added missing values for IngredientsAnalysisTags, and renamed some values to match API names (breaking change)
- Fixed image upload and added PACKAGING image type
- Added support for new fields (images URLs, vegan/vegetarian/from palm oil ingredients, categories, labels and packaging)
- Fixed test mode for addProductImage
- API method for searching products does not require a user being passed
- Migrated SDK to null safety
- Updated test instructions in README.md
- Improved Github Action validation
- Greatly improved code quality and readability
- fix additional issue with EcoScoreData JSON generation
- use Github action to test changes
- fix test output (avoid chatty tests)
- add support for OCR ingredients
- fix issue with images URLs
- Refactored tests to use the Open Food Facts test database (thanks to Mohamed Boussaid)
- Added packaging image type
- Allow setting the country code cc field
- Added countries and countries tags to Product (thanks to Mohamed Boussaid)
- Allow anonymous photo upload
- Fixed product JSON generation for Eco-Score data (thanks to Peter Tran-Jørgensen)
- Refactored Attribute & AttributeGroup
- Removed ProductFields.ECOSCORE_ALPHA as deprecated
- Added support for Ecoscore (thanks to Frédéric Julian)
- nullable product name hotfix
- product upload hotfix
- Extended micronutrients support (thanks to Ilia (Elliot) Tikhomirov)
- product attribute: lastModified
- Fixed save product. NULL values won't be sent.
- Fixed image upload
- Added AttributeGroups
- Fixed SearchResult
- Added userPreferences
- Product image upload fixed (Thanks to Peter Tran-Jørgensen)
- Added energyKcal and energyKcal100g
- Added EnvironmentImpactLevels
- Rewrote NutrientLevels
- Fixed typos in PnnsGroup2 ids
- Added allergens
- Introduced PNNS groups and PnnsGroup2 queries
- fixed Json product generation (additives, selectedImages)
- fixed servingQuantity issue introduced in 0.3.4
- selectedImages toJson implementation
- codebase improvements
- ingredient percentage parsing fixed
- dart:ui - dependencies removed
- search result decoding and parsing errors fixed
- Added documentation form version 0.3.0
- Updated README.md
- Support for more than 180 languages
- New query / search principle - ProductQueryConfiguration : In order to optimize the queries you can now set the return language and fields list through ProductQueryConfiguration (Default Behaviour)
- getProductRaw() is still available (Old Behaviour)
- expose robotoff and helper classes
- added robotoff support, new service methods: getProductInsights(), getRobotoffQuestionsForProduct(), getRandomRobotoffQuestion(), postInsightAnnotation(), getIngredientSpellingCorrection(),
- added images field
- added documentation.md
- added brandsTags to get brands as a list
- added serving size and nutriment serving sizes
- search products by tags
- search products with / without additives
- search products with keywords
- added support for Spanish
- nutrient levels added
- additives management implemented
- added Nutriscore to product
- bugfix: ingredientText language dependent
- nutriments management implemented
- get product image by field, size and language
- http: 0.12.0
- Bugfix: search result page - json parse error fixed (string vs. int)
- json_annotation: 3.0.0
- build_runner: 1.6.9
- json_serializable: 3.2.2
- Bugfix: ingredients percent json parse error fixed (string vs. int)
- getProduct() fixed null-pointer for non existing product.
- searchProducts() english URL now working. (-> world)
- getProduct() chooses a language dependent host (world, de, ..)
- Bugfix: getProduct() won't fail if no images are provided
- searchProducts() with language support
- Ingredients.dart more type safe (THX to dynamic)
- class SearchResult now visible
- service method searchProducts() implemented.
the test package dependency has been moved to flutter_test.
dependency version upgrade to:
- json_annotation: 2.0.0
- build_runner: 1.2.6
- json_serializable: 2.0.2
- getProduct() provides ingredients and images for a given language.
- getProductRaw() provides all data fields without preparation.
- set dependency versions as range
- upgrade of http 0.12.0
- upgrade of build_runner 1.0.0
- class Image changed to ProductImage for a easier namespace resolving.
- model of selected product images changed.
- Service saveProduct() can handle to add and to edit a product.
- Added traces to a product
initial version with these API services:
- add a new product
- add a new product image
- get an existing product