This repository has been archived by the owner on Jun 7, 2019. It is now read-only.
Releases: cujojs/rest
Releases · cujojs/rest
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
v1.3.2
- fix to correctly url encode character codes 0-15, such as \n
- include requested URL on response object
- Update tested environments. Removing Firefox 3.6, Safari 5 and iOS 4.3 (no longer supported by SauceLabs). Adding Node 5, Node 4, Edge, Firefox 38 ESR, iOS 9.2, iOS 8.4 and Android 5.1.
v1.3.1
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
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
rest.js v1.1.1
- support for IE 11, Safari 7 and iOS 7 (no code changes required, now actively testing)
- Node specific configuration options via request.mixin. Particularly useful for https clients. Thanks @wwwdata
- basic support for Browserify. Note: Browserify is not yet a tested environment
v1.1.0
- bump when.js version to ~3, 2.x is no longer supported
- perfer
client.wrap()
toclient.chain()
,chain
is now deprecated - add HTTP specific methods to the promises returned from clients: .entity(), .status(), .headers(), .header(name)
- mime converters may return a promise. Thanks @phillipj
- removed 'rest/util/beget' favor Object.create