Skip to content

Releases: jamesseanwright/valimate

Sends Accept: text/html header when requesting markup from the configured URLs

Choose a tag to compare

@jamesseanwright jamesseanwright released this 06 Sep 16:47
  • Sends Accept: text/html header when requesting markup from the configured URLs, fixing /issues/13
  • Corrects error logging for failed markup requests

Specify configuration file location

Choose a tag to compare

@jamesseanwright jamesseanwright released this 26 Jan 11:21

Thanks to @bobdanilo for the PR!.

Programmatic Use

Choose a tag to compare

@jamesseanwright jamesseanwright released this 24 Nov 18:54

Valimate can also be imported into your Node.js scripts as a CommonJS module. It exposes the validate method, which takes the config as a parameter of the Object type. This returns a Promise which resolves once the URLs have been validated. A Boolean is passed through the chain that will be true if the markup is invalid, or false if it is valid.

See the README for example usage.

Better HTTP error handling

Choose a tag to compare

@jamesseanwright jamesseanwright released this 21 Nov 16:22
  • httpService._request handles errors surfaced by request
  • Unit tests to verify various branches of logic
  • eslint integration and resulting fixes

Locking down the version of request

Choose a tag to compare

@jamesseanwright jamesseanwright released this 17 Sep 14:05

Well done me!

Facepalm

Changes to the local app server contract and following redirects

Choose a tag to compare

@jamesseanwright jamesseanwright released this 17 Sep 13:52
  • HTTP requests are made using request so that HTTP redirects are honoured, plus it's more mature than my custom client
  • The localAppServer config parameter has been broken down into an object to support environment variable configuration. This is a breaking change, hence the new major release

Unpublished - see 2.0.1

Choose a tag to compare

@jamesseanwright jamesseanwright released this 17 Sep 13:48
2.0.0

Updated readme