This release contains a couple of breaking changes, thus the version bump to 5.0. See the upgrade guide for the full details and steps for quickly updating your code to work with Biip 5.0.
Breaking changes
Gtin.prefixfor GTIN-8 is of a newGS18Prefixtype (PR: #403)- The "GS1 Web URIs" classes and methods added in 4.0 have all been renamed to stay in sync with the specification which has rebranded to "GS1 Digital Link URIs". (PR: #396)
- GS1 Application Identifier aliases in GS1 Digital Link URIs are no longer supported, as recommended by the specification. (PR: #396)
See the upgrade guide for full details.
Changes
- A new attribute
Gtin.item_referenceshas been added to theGtinclass. It is set for GTIN-8/12/13/14, as well as company-wide RCNs and geographical RCNs where the regional RCN rules describe what part of the payload is an item reference. (Fixes: #401, PR: #406, #408)
Fixes
- Add support for GS1-8 Prefixes.
Gtin.prefixis now a new typeGS18Prefixfor GTIN-8s, and correctly maps GTIN-8 prefixes to the right GS1 organizations. Together with this fix,Gtin.company_prefixis no longer wrongly set for GTIN-8. (Fixes: #398, PR: #403)
Updates
- Update GS1 Prefix database. No changes.
- Update GS1 Company Prefix database.
- Update GS1 Application Identifier database. No changes.