Skip to content

Releases: indexdata/foliojs

v1.2.0

Choose a tag to compare

@MikeTaylor MikeTaylor released this 11 Aug 14:00
  • The sample script bin/folio-port-ldp-queries.js does not depend on the external uuid package, which haemorrhages new major versions every few picoseconds. Instead it uses randomUUID from the built-in crypto package.
  • Update many dependencies to patch vulnerabilities.

v1.1.0

Choose a tag to compare

@MikeTaylor MikeTaylor released this 27 Sep 10:37
  • Provide access to old-style authentication token (as session.getToken()) and new-style session cookie (as session.getSessionCookie()). Document these new session methods, with notes on why they should not be used. Fixes #2.
  • Re-authentication timeout is configurable using the FOLIOJS_SESSION_TIMEOUT environment variable. Fixes #3.
  • If the FOLIOJS_OLD_AUTH environment variable is set, authentication is limited to old-style (session token). Fixes #4.

v1.0.0

Choose a tag to compare

@MikeTaylor MikeTaylor released this 02 Sep 10:56
  • BREAKING: session.close() is introduced, and must be called when a session is no longer needed, otherwise the program will not terminate.
  • Use new-style cookie-based authentication when available, instead of old X-Okapi-Token authentication, refreshing the token after half of its TTL has elapsed.
  • Add logging category for authentication/reauthentication.
  • Internally, use an HTTPError exception class.

v0.0.2

Choose a tag to compare

@MikeTaylor MikeTaylor released this 11 Aug 15:40
  • When the response to authn/login lacks an Okapi token in its body (which happens sometimes but I don't know under what circumstances), the token is copied there from the x-okapi-token header. As a result, login works against such services.

v0.0.1

Choose a tag to compare

@MikeTaylor MikeTaylor released this 28 Jul 12:41
  • New library created from scratch.