All notable changes to the "ts-edifact" library will be documented in this file.
- Applied fix for UNECELegacyMessageStructureParser provided by Stefan Partheym
- Fixed parsing issue of legacy UNECE directories due to an updated version of
htmlparser2
anddomhandler
- Fixed Jasmine test output to be reader-friendly again
- Replaced ts-lint for es-lint
- Applied updated styling guides enforced by es-lint to the codebase
- Updated dependency versions to the most-recent ones
- Removed
MoaType
enum as there are to many possible enum constants available to enumberate them all - Improved charset recognition while parsing the Edifact document. The
Reader
class will now update theParser
, which furthermore will update itsTokenizer
once the charset was parsed from the respectiveUNB
segment. - Replaced charset definition from the
Configuration
class and moved the logic to theTokenizer
class - Updated the
Parser
class to take aConfiguration
as construction argument and moved theValidator
definition to theConfiguration
class
- Fixed an issue on generating an object structure through the interchange builder class if multiple messages are present within the same document
- Fixed an issue with parsing complex segment/element definitions
- Removed node-fetch from the dependencies as it wasn't used
- Moved htmlparser2 lib and some of its dependencies from dependencies to dev-dependencies. Hope this allows to usage of the lib in other projects
- Added cache support for already generated segment- and element definition tables to the Reader class
- Fixed a segment definition generation issue for
TAX
segments, which due to its long name didn't end up in a propper definition - Added D01B GENRAL message structure and segment/element definition files
- Added CHANGELOG.md
- Added parser for generating necessary message-, segment- and element structure objects needed for validating Edifact documents
- Refactored segment and element objects to make use of a builder pattern and allow to easily load segment/element definitions from a target location
- Updated project structure to get rid of plenty of ESLint errors
- Added support for loading external Edifact message structure definition files on generating an Edifact interchange via the
InterchangeBuilder
class - Updated README
- Added test to reproduce validation issues of Edifact documents not having values for optional elements using a minimum length of 1 or greater, i.e. as
n1
is defined. - Fixed issue #2 caused by validator not checking whether components are optional or not
- Fixed an issue while parsing negative numerical values
- Added further segment and element definitions, such as
GID
,TMP
andRNG
and their corresponding comonent definitions.
- Changed module type from
es6
tocommonjs
due to import issues in a plugin this library should be used in - Added further DESADV message structure definition files
- Refactored segment- and element-definitions from .ts files to .json files to allow defining different versions
- Added some version specific INVOIC (D96A, D01B) message structure definitions
- Initial port of the
node-edifact
project to typescript