Repository navigation
Releases
Releases · WURFL/wurfl-microservice-client-nodejs
wurfl-microservice-client-nodejs v3.3.0
- 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
- 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
- Axios dependency upgraded to 0.29.0 to address Axios Cross-Site Request Forgery Vulnerability
wurfl-microservice-client-nodejs v3.1.0
- Deprecated method setRequestedCapabilities()
wurfl-microservice-client-nodejs v3.0.0
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
- added cache usage test
- modified example app
wurfl-microservice-client-nodejs v2.0.2
- Updated version number in:
- package.js
- getApiVersion
wurfl-microservice-client-nodejs v2.0.1
- this release updates some dependencies used by wmclient:
- unirest
- mocha