Tags: bogini/rest
Tags
Release v2.0.0 - MAJOR: Drop hard when.js dependency in favor of ES6 Promise API. See https://github.com/cujojs/when/blob/master/docs/es6-promise-shim.md to use when.js as an ES6 Promise polyfill. - MAJOR: AMD modules are no longer supported. curl.js users can use the cjsm11 loader, see https://github.com/cujojs/curl#api-at-a-glance - Moved path token param replacement from the clients into the `rest/interceptor/params` interceptor, which is also deprecated. The behavior will no longer be applied automatically in the client. Using the `rest/interceptor/template` interceptor is far more powerful and preferred. - Fixed an issue preventing uri template exploded values from expanding correctly. - Update tested environments: - Android 5.1, 4.4 and 4.3 - Chrome latest - Edge latest - Firefox latest, 45 ESR, 38 ESR - Node 0.10, 4, 6 - IE 11 - iOS 8 and 9 - Safari 8 and 9 - Removed old IE XDomainRequest client and xhr and xdr interceptors - mime interceptor no longer sets Content-Type on requests without an entity
Release v1.3.0
- response.follow() for easy traversal of hypermedia APIs
- application/hal mime converter supports templated URLs, and resource.requestFor('relationship', request)
- full URI Template (rfc6570) support in rest/util/uriTemplate
- section aware URI encoding in rest/util/uriEncoder
- best fit MIME type resolution, including by suffix (i.e. '+json'). Parsed MIME type provided to converters
- installation via jspm and loader support for System.js
- support for Android 4.0-5.0 (no code changes required, now actively testing)
- support for Safari 8, iOS 8.0 and 8.1 (no code changes required, now actively testing)
- raw configuration objects are retained by interceptors, config objects are no longer begotten
- transient timeouts via config.transient on rest/interceptor/timeout, allows retry interceptor to wrap timeout
- extend JSON converter for custom reviver and replacers
- request.mixin properties attempt setting before before and after opening the request. Some browsers (IE) are sensitive to when the properties are set.
- wire.js rest factory interceptors now wire configuration objects
- normalize responses for linked and embedded resources from application/hal mime converter to always be a ResponsePromise
Release v1.2.0 - deprecated rest/interceptor/entity: instead use response.entity() - deprecated and removed wire.js reference resolves 'client!' and 'resource!', instead use the 'rest/wire' factory - deprecated and removed Dojo store support - separate browser and node main modules, browser consumers should switch their main module from 'rest/rest' to 'rest/browser'. This allows tools such as browerify and webpack to more intelligently reason about the module structure. - Multipart requests for browsers that support FormData (sorry IE 6-9). Thanks @mjackson - mixin property support in defaultRequest interceptor. Thanks @jiangtyd - allow location interceptor to be applied based on the status code. Thanks @phillipj - better support for file:// URL via the XHR client
PreviousNext