Skip to content
This repository was archived by the owner on Jun 7, 2019. It is now read-only.

Commit 7709358

Browse files
committed
Drop AMD module support
CommonJS Modules are now the only supported format. Any loader that can load CommonJS Modules should be able to load rest.js. curl.js users can use the cjsm11 loader. Bundlers like Browserify and WebPack can also be used to consume rest.js
1 parent 4cf0771 commit 7709358

File tree

100 files changed

+3019
-3540
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

100 files changed

+3019
-3540
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ From source:
172172

173173
$ npm install
174174

175-
rest.js is designed to run in a browser environment, utilizing [AMD modules](https://github.com/amdjs/amdjs-api/wiki/AMD), or within [Node.js](http://nodejs.org/) as CommonJS modules. Any module loader capable of loading either AMD or CommonJS modules should be able to load rest.js. cujoJS [curl.js](https://github.com/cujojs/curl) is actively tested.
175+
rest.js is designed to run in a browser environment, utilizing a CommonJS Module loader, a transformer such as Browserify or WebPack, or within [Node.js](http://nodejs.org/). Any module loader capable of loading either CommonJS modules should be able to load rest.js. cujoJS [curl.js](https://github.com/cujojs/curl) is actively tested with the cjsm11 loader.
176176

177177
An ECMAScript 5 compatible environment is assumed. Older browsers, ::cough:: IE, that do not support ES5 natively can be shimmed. Any shim should work, although we test with cujoJS [poly.js](https://github.com/cujojs/poly)
178178

@@ -236,6 +236,7 @@ Change Log
236236

237237
.next
238238
- 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.
239+
- 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
239240
- 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.
240241
- Fixed an issue preventing uri template exploded values from expanding correctly.
241242
- Update tested environments:

0 commit comments

Comments
 (0)