Skip to content

Latest commit

 

History

History
49 lines (31 loc) · 1.23 KB

CHANGELOG.md

File metadata and controls

49 lines (31 loc) · 1.23 KB

历史版本

1.0.12 (2019-03-18)

  • xhr.responseText为空时, 返回 -> { httpStatus }
  • emptyStr -> allowEmptyString

1.0.4 (2019-03-18)

  • 移除 restful API -> /{books_id}/{article_id}
  • emptyStr -> allowEmptyString

1.0.0 (2019-03-10)

  • wya-fetch -> @wya/http
  • ajaxFn -> createHTTPClient
  • 所有的错误状态都会进入catch
  • 除onProgress, 其他hook参数均接受对象, 参考文档

0.3.0 (2018-08-07)

  • ajaxFn 只接收 defaultOptions

0.2.0 (2018-08-06)

  • 增加APIemptyStr
  • 增加APIrestful
  • 增加APIasync
  • 去除APIsetCb

0.1.12 (2018-01-23)

  • 增加APIonBefore, 类型func, 返回值必须是Promise; async/await去兼容RN/AsyncStorage返回是Promise的情况;即(opts) => Promise
  • 增加APIonAfter, 类型func, 返回值必须是Promise;

0.1.8 (2018-01-23)

  • requestType添加选项'form-data:json',form-data形式传递的数据再包装成 data: JSON.stringify(data)

0.1.5 (2018-01-22)

  • 处理Android Native, '' -> undefined, 后者undefined更加友好;
  • 添加主动取消xhr.__ABORTED__ = true

0.1.3 (2018-01-15)

  • 使用XMLHttpRequest取代fetch, 方便跨域

0.1.0 (2018-01-02)

  • 添加仓库