Skip to content
TwitterDiscordGitHub

Changelog

  • Updating README.md
  • Adding {{#indicators}} block
  • Changing the error text
  • Updating README.md
  • Adding support for HTTP methods OPTIONS and TRACE
  • Updating README.md
  • Changed syntax to {{#request}}
  • Added interval for sending requests
  • Changed error handling
  • Bug fixes
  • Updating README.md
  • Integration with DOMPurify, which will increase the security of using the module by preventing XSS attacks. To enable, the sanitize property was added
  • Adding the disallowedTags property
  • Correction of text errors
  • Updating README.md
  • Updating package.json
  • Major rework of error handling in the code
  • Bug fixes
  • Returning a comment when a request fails
  • Adding the allowedContentTypes property
  • Fixing rejected status
  • Improving security
  • Adding more error messages, reworking old ones
  • Bug fix
  • Fix loading multiple nodes from server
  • Integration with JSON5. Now, objects can be written in HTML just like in vanilla js
  • A bug with additional nodes has been fixed when you do not specify the request object in the element
  • The .runtime file has been updated
  • Comments have been added to the file hmpl.js
  • Update package data
  • Fixing error
  • Update package data
  • Standardization of errors
  • Fixing a headers error in RequestInit
  • Adding auto generation for body in HMPLRequestInit
  • String parsing has been reworked
  • Adding context
  • Added memoization functionality.
  • Replaced isRepeatable with repeat.
  • Fixed bug: replaced a reply to a Comment when the default response is not fulfilled (200-299).
  • Added an options object to the compile function.
  • Replaced mode with boolean variable isRepeatable.
  • Updated mode handling in the request:
    • Introduced validation for req.mode to allow only “one” or “all” values.
    • Added a check to ensure req.isRepeatable is defined and is a boolean value.
    • Defaulted req.isRepeatable to true if not specified, with modeAttr set to “all” for repeatable requests and “one” otherwise.
  • Clarified MODE error message regarding AFTER.
  • Updated version from 2.1.0 to 2.1.1.
  • Updated URL from https://github.com/hmpljs/hmpl to https://github.com/hmpl-lang/hmpl.
  • Removed the period from the hmpl header description.
  • Updated Readme.md file.
  • Updated hmpl-js script tag to specify version 2.0.0.
  • Updated Readme.md file.
  • Changed after attribute in <request> from click:.getHTML to click:.getTitle.
  • Modified templateFn usage to directly append elementObj.response to bodyEl.
  • Changed from HMPLResponse to HMPLInstance.
  • Changed from HMPLResponse to HMPLInstance in templateObject.
  • Changed from HMPLResponse to HMPLTemplateObject.
  • Updated version from 1.0.5 to 1.0.6.
  • Updated version from 1.0.4 to 1.0.5.
  • Updated Readme.md file.
  • Updated hmpl-js script tag version from 1.0.2 to 1.0.3.
  • Changed wrapper.appendChild(value) to wrapper.appendChild(value.content.firstElementChild).
  • Updated installation instructions to reference hmpl-js version 1.0.3.
  • Updated version from 1.0.2 to 1.0.3.
  • Updated hmpl-js script tag version from 1.0.1 to 1.0.2.
  • Updated installation instructions to reference hmpl-js version 1.0.2.
  • Changed condition from checking if (!optionsId) to if (optionsId).
  • Updated installation instructions to reference hmpl-js version 1.0.1.
  • Updated version from 1.0.0 to 1.0.1.