Hot on the heels of the last release less than two weeks ago comes version 2.2.0 with several handy new features and enhancements:
- Pass the
- Enforce an explicit document ID format for each document type as a regular expression via the
documentIdRegexPatternconstraint. For example, set the constraint to
/^contact-info\.[a-zA-Z0-9_-]+$/to ensure that new documents of the
contactInfotype always have an ID that starts with
contact-info, followed by a dot and an ID token.
- The test-helper module has been deprecated in favour of the newly-introduced test-fixture-maker module, which does a better job of isolating test cases from each other while providing all the same features. Refer to the Testing section of the README for help getting started with it. The test-helper module will be removed in the next major release of synctos (i.e. 3.0.0).
jsonStringifyhelper function now simply acts as an alias for
JSON.stringifywhen used in SG 2.0. The
jsonStringifyfunction continues to use a custom polyfill function for SG 1.x to maintain backward compatibility, however. In either case, the choice of which implementation to use is automatic and completely invisible to the user.
See the changelog for complete details.