Skip to content

[JavaScript] Make JavaScript client work in both Node.js and browser#1922

Merged
wing328 merged 7 commits intoswagger-api:masterfrom
xhh:javascript-nodejs
Jan 20, 2016
Merged

[JavaScript] Make JavaScript client work in both Node.js and browser#1922
wing328 merged 7 commits intoswagger-api:masterfrom
xhh:javascript-nodejs

Conversation

@xhh
Copy link
Copy Markdown
Contributor

@xhh xhh commented Jan 19, 2016

  • Replace jQuery with SuperAgent which works in both Node.js and browser
  • Use UMD pattern (returnExports.js) to make the module exporting compatible
    with all major systems: AMD, Node.js (CommonJS) and browser
  • Implement support of header and form parameters. Closes [Javascript] header and form parameters are not used at all #1736
  • Move HTTP requesting code to ApiClient and allow customizing options
    in it, e.g. "basePath"
  • Update unit tests accordingly and add some tests for ApiClient

Also fixed occasional test failures for Java and Ruby clients.

xhh added 2 commits January 19, 2016 22:21
* Replace jQuery with SuperAgent which works in both Node.js and browser
* Use UMD pattern (returnExports.js) to make the module exporting compatible
  with all major systems: AMD, Node.js (CommonJS) and browser
* Implement support of header and form parameters. Closes #1736
* Move HTTP requesting code to `ApiClient` and allow customizing options
  in it, e.g. "basePath"
* Update unit tests accordingly and add some tests for `ApiClient`
wing328 added a commit that referenced this pull request Jan 20, 2016
[JavaScript] Make JavaScript client work in both Node.js and browser
@wing328 wing328 merged commit 9b8b1fb into swagger-api:master Jan 20, 2016
@xhh xhh deleted the javascript-nodejs branch February 26, 2016 09:58
@wing328
Copy link
Copy Markdown
Contributor

wing328 commented Feb 26, 2016

Upgrade note from 2.1.5 to 2.1.6

Starting from 2.1.6, JS API client will use superagent

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Javascript] header and form parameters are not used at all

2 participants