Skip to content

JHson.js v2.1.0 - New public functions! Massive code restructuring! Fixes!

Choose a tag to compare

@william-troup william-troup released this 07 Sep 23:42
· 64 commits to main since this release
bbf5f28

Public Functions:

  • Added "insertBefore()" support for "html()", which states if the HTML should be written before the first detected child (if the HTML is not to be cleared, defaults to false).
  • Added "generateUniqueMissingNames()" support for "json()", which states if the JSON should contain unique names for elements that don't contain them (defaults to false).

General Improvements:

  • Updated all of the NPM packages to the latest versions.
  • Moved from ES2016 to ES2020.
  • Added new rules to enforce stricter types across the code base.
  • Completely reorganized the files into separate folders, with some renames.
  • The GUIDs generated now used the "crypto.randomUUID()" instead of the custom-built one (this is now RFC4122-compliant).
  • Added some missing types.
  • Added an ignore path for ".DS_Store" files when packing the NuGet package.
  • Improved the way events are assigned.

Documentation:

  • Updates to the README files to make the features stand out.

Fixes:

  • Fixed some errors in the documentation headers for each file.
  • Fixed a fault that caused html() > write() to loop through the remaining keys once the main one has been found.
  • Fixed some errors in the documentation that stated the wrong defaults.