Skip to content

Releases: hed-standard/hed-javascript

hed-validator v3.13.2

05 Jan 22:39
v3.13.2
Compare
Choose a tag to compare

This release deprecates BidsEventFile and BidsTabularFile in favor of the isTimelineFile property on their parent class, BidsTsvFile. A true value for isTimelineFile corresponds to the previous usage of BidsEventFile, while a false value corresponds to BidsTabularFile.

A bug was also fixed in the handling of sidecar parsing errors. The validation now stops immediately upon encountering parsing errors, instead of attempting to validate (invalid) ParsedHedString objects. This should also fix several reports of HED errors without useful messages in bids-validator, such as https://github.com/bids-standard/bids-validator/pull/1869#issuecomment-1865993337.

Full Changelog: v3.13.1...v3.13.2

hed-validator v3.13.1

21 Dec 18:42
v3.13.1
Compare
Choose a tag to compare

This is a patch release to deal with a bug in version 3.13.0. We have added a new hasHedData() method on the BidsFile class hierarchy as the only supported way to determine if a file has HED data. All previous methods of detection, including those involving checking the object's fields directly, are immediately unsupported. They were never considered by us to be part of the stable external API, but rather package-internal.

Full Changelog: v3.13.0...v3.13.1

hed-validator v3.13.0

15 Dec 23:41
v3.13.0
Compare
Choose a tag to compare

Version 3.13.0 of the HED JavaScript validator introduces support for validating curly braces in sidecar data, as described in the HED specification.

Several aspects of the code layout were reconfigured:

  • The BIDS validation and type modules have been refactored into folders based on file format.
  • BidsData and its unused fields have been deleted.
  • The string parsing code folder has been moved to the top level.
  • The data underlying the BIDS tests has been moved to a separate data module.

Other smaller changes include:

  • Bounds are no longer included in error messages.
  • Sidecar keys and TSV line numbers are included in some error messages where appropriate.
  • Internal errors during BIDS data validation now produce an error instead of a warning.
  • The BidsTsvFile constructor (and its subclasses) now accept an unparsed string as the TSV file data, and this is now the preferred API.
  • ParsedHedString and the subclasses of ParsedHedSubstring can now be pretty-printed using the format method.

Improvements were also made to the documentation, including an initial working version of an online documentation.

What's Changed

New Contributors

Full Changelog: v3.12.0...v3.13.0

hed-validator v3.12.0

16 Aug 20:42
v3.12.0
Compare
Choose a tag to compare

The only new feature in this release is support for validating HED data in non-event BIDS TSV files and sidecars (pending changes to bids-validator).

What's Changed

Full Changelog: v3.11.0...v3.12.0

hed-validator v3.11.0

21 Jul 16:40
v3.11.0
Compare
Choose a tag to compare

The primary new feature in v3.11.0 is validation of definitions based on their BIDS dataset context. To coincide with this change, the interfaces of the (deprecated) functions validateHedEvent and validateHedString were modified to allow for passing an object with the configuration options as the last parameter with the configuration options. The newest version of the SCORE library schema, v1.1.0, has been bundled with this release.

This release also sees the initial steps toward formal documentation of the validator, which makes up the bulk of the changelog below. The documentation is not yet ready for release.

What's Changed

  • Bump semver from 7.3.5 to 7.5.2 by @dependabot in #107
  • Initial setup for readthedocs documentation by @VisLab in #108
  • Added a requirement for typescript by @VisLab in #109
  • Added a nodejs tool requirement to readthedocs configuration by @VisLab in #111
  • Added os to build configuration for readthedocs by @VisLab in #112
  • Fixed nodejs version in build configuration for readthedocs by @VisLab in #113
  • Removed the image option from the build configuration by @VisLab in #114
  • Modified the Python install requirements for readthedocs by @VisLab in #115
  • Bump tough-cookie from 4.1.2 to 4.1.3 by @dependabot in #110
  • Bump word-wrap from 1.2.3 to 1.2.4 by @dependabot in #116
  • Implement definition-related validation in BIDS by @happy5214 in #106

Full Changelog: v3.10.0...v3.11.0

hed-validator v3.10.0

28 Jun 17:06
v3.10.0
Compare
Choose a tag to compare

New to this release:

  • Segregated HED 2 code.
  • Improved tag conversion.
  • Added support for partnered schemas.
  • Implemented support for Inset tags.
  • Added warning for a BIDS categorical column value not found in sidecar (moved from bids-validator).
  • Fixed fallback schema implementation.

What's Changed

Full Changelog: v3.9.0...v3.10.0

hed-validator v3.9.0

28 Apr 17:17
v3.9.0
Compare
Choose a tag to compare

New to this release:

  • Support for Onset and Offset validation.
  • Switched to ES modules.
  • Started to link issues to HED 3 error codes.

What's Changed

Full Changelog: v3.8.0...v3.9.0

hed-validator v3.8.0

22 Jun 15:01
v3.8.0
Compare
Choose a tag to compare

Highlights of this release include initial support for library schemas and a rewrite of the string parser. Several legacy APIs were also deprecated, and they will be removed in v4.0.0.

What's Changed

Full Changelog: v3.7.1...v3.8.0

Bugs

This and earlier versions of hed-validator do not support versions 8.2.0 or above of the HED standard schema due to a change in schema properties. Please upgrade to version 3.9.0 of hed-validator or use versions 8.0.0-8.1.0 of the HED standard schema with this version.