Prerelease v6.0.0-gimli.0
Pre-release
Pre-release
Summary
Mostly cleanup of the repository to make it more in line with our JavaScript.SDK repository:
- Updated typescript.build version, and copied over build setup (package.json, eslint, mocha, tsconfig)
- Fixed the documentation linter errors that appeared (have not gone through all the code)
- Copied over the workflow, they might have already been identical.
I also removed some really old leftover code inUnconverted, if we want it back - we can get it from the history.
The real goal of the work was to add a few type predicates for use in the SDK - to not always have to rely on instanceof as that has bit me before. Also I needed a nice way to check if something was a specific concept, so a kind of factory function was added here so we can use it all over the SDK.
Added
- Type predicates
isEquatableandisGuid - Some factory methods
createIsConceptAs...to create type predicates for concepts. - Some more specs for ConceptAs around equality checking.
Fixed
- The information in package.json for the packages (repo, contributors, ...)
Guid.emptynow returns a new instance each time, to prevent any sneaky tampering with it.
Removed
- The
typeGuardfunction. We used it barely in this code, and it didn't make it nicer to read. ConceptAs.isConceptwas removed, and replaced with anisConceptfunction that is not exported in the index. It serves no real to others.