Skip to content

Releases

wurfl-microservice-client-nodejs v3.3.0

Choose a tag to compare

@silvio-terzi silvio-terzi released this 06 Nov 17:07
385f0be
  • No runtime dependencies: removed the unused unirest (and the deprecated request and form-data 0.2 it pulled in),
    replaced axios with the built-in fetch and lru-cache 4.1.1 with an internal LRU cache with the same API
  • Requires Node.js 18 or later
  • lookupRequest() also accepts a Fetch API Request (Bun, Deno, edge runtimes)
  • The HTTP timeout (10 seconds by default, setHTTPTimeout) now applies to every request; setHTTPTimeout no longer
    changes the global axios defaults of the application
  • Fixed: getAllDeviceMakes() never settled when the request failed
  • Fixed: the device makes and OS versions were downloaded again on every call instead of being cached
  • Fixed: checkData leaked into the global scope
  • Fixed: lookupDeviceID() failed with a TypeError ("Cannot read properties of null") when the device ID did not exist;
    it now rejects with an Error carrying the message returned by the server
  • Fixed: errors reported by the server were returned as if they were device data by lookupUserAgent() and
    lookupRequest(); they now reject with an Error carrying the server message, like lookupDeviceID(), and are never cached
  • Fixed: setRequestedCapabilities(), setRequestedStaticCapabilities() and setRequestedVirtualCapabilities() left
    results cached with the previous capability list in place; they now clear the caches
  • Added TypeScript types (index.d.ts)
  • Tests: WM_URL selects the WURFL Microservice for the live tests; new offline tests run against a stub server

wurfl-microservice-client-nodejs v3.2.2

Choose a tag to compare

@silvio-terzi silvio-terzi released this 19 Sep 08:40
304fbd5
  • Axios dependency upgraded to 1.12.2 to address Axios vulnerability to DoS attack through lack of data size check

wurfl-microservice-client-nodejs v3.2.0

Choose a tag to compare

@mbellomi mbellomi released this 14 Mar 14:21
5ccab64
  • Axios dependency upgraded to 0.29.0 to address Axios Cross-Site Request Forgery Vulnerability

wurfl-microservice-client-nodejs v3.1.0

Choose a tag to compare

@silvio-terzi silvio-terzi released this 29 Oct 13:05
cc6cffb
  • Deprecated method setRequestedCapabilities()

wurfl-microservice-client-nodejs v3.0.0

Choose a tag to compare

@andreacastello andreacastello released this 24 Mar 17:46
d4c5756

This version rewrites the WM client for node.js from the ground up.

  • callback usage has been removed
  • async/await approach is used internally
  • new client can be used with either async/await and Promises (see README)

This version is NOT compatible with older versions. Applications using version 2.1.0 or older will have to do some refactoring to use the new 3.0.0 client.

wurfl-microservice-client-nodejs v2.1.0

Choose a tag to compare

@andreacastello andreacastello released this 27 Oct 14:34
  • added cache usage test
  • modified example app

wurfl-microservice-client-nodejs v2.0.2

Choose a tag to compare

@andreacastello andreacastello released this 09 Nov 16:14
712341c
  • Updated version number in:
    • package.js
    • getApiVersion

wurfl-microservice-client-nodejs v2.0.1

Choose a tag to compare

@andreacastello andreacastello released this 08 Nov 14:43
4b5b295
  • this release updates some dependencies used by wmclient:
    • unirest
    • mocha