包详细信息

feathers-client

feathersjs1.3kMIT不推荐使用2.4.0

Feathers v3 is out and this module has moved to @feathersjs/client. See https://docs.feathersjs.com/migrating.html for more information.

A module that consolidates Feathers client modules for REST (jQuery, Request, Superagent) and Websocket (Socket.io, Primus) connections

feathers, feathers-plugin, batch, rest

自述文件

feathers-client

Greenkeeper badge

Build Status Code Climate Test Coverage Dependency Status Download Status Slack Status

Sauce Test Status

A client for Feathers services supporting many different transport libraries.

About

While Feathers and its modules can be used on the client with an NPM compatible module loader like Browserify, Webpack or StealJS, feathers-client consolidates a standard set of client plugins into a single distributable that can be used standalone in the browser or with other module loaders (like RequireJS) that don't support NPM. The following modules are included:

In the browser a client that connects to the local server via websockets can be initialized like this:

<script type="text/javascript" src="/socket.io/socket.io.js"></script>
<script type="text/javascript" src="//cdn.rawgit.com/feathersjs/feathers-client/v1.1.0/dist/feathers.js"></script>
<script type="text/javascript">
  var socket = io();
  var client = feathers()
    .configure(feathers.hooks())
    .configure(feathers.socketio(socket));
  var todoService = client.service('todos');

  todoService.on('created', function(todo) {
    console.log('Someone created a todo', todo);
  });

  todoService.create({
    description: 'Todo from client'
  });
</script>

For the full documentation see the Feathers documentation.

License

Copyright (c) 2015 Feathers contributors

Licensed under the MIT license.

更新日志

Change Log

v2.3.0 (2017-07-04)

Full Changelog

Closed issues:

  • An in-range update of socket.io-client is breaking the build 🚨 #181
  • Drop socket.io #177
  • Providing client connection metadata for service event filtering purpose #172
  • Support offline mode #29

Merged pull requests:

v2.2.0 (2017-04-25)

Full Changelog

Merged pull requests:

v2.1.0 (2017-04-18)

Full Changelog

Closed issues:

  • implementation of feathers client in angular-2 #135

Merged pull requests:

v2.0.0 (2017-04-11)

Full Changelog

Closed issues:

  • Bundled feathers.js - Socket Authentication with Local Strategy Always Times Out #155

Merged pull requests:

v2.0.0-pre.2 (2017-03-08)

Full Changelog

Closed issues:

  • Authentication should be removed #136

Merged pull requests:

v2.0.0-pre.1 (2017-01-11)

Full Changelog

Closed issues:

  • Socket.io timeout does nothing when there is JWT token available #129

Merged pull requests:

v1.9.0 (2016-12-31)

Full Changelog

Closed issues:

  • Typings don't include configure method #130

Merged pull requests:

v1.8.0 (2016-11-26)

Full Changelog

Closed issues:

  • How to get hooks socketio etc from feathers object #118
  • send back to server additional fields in 'params' besides 'query' #115

Merged pull requests:

v1.7.2 (2016-11-08)

Full Changelog

Merged pull requests:

v1.7.1 (2016-11-02)

Full Changelog

Closed issues:

  • Bower: Version mismatch #104

Merged pull requests:

v1.7.0 (2016-11-02)

Full Changelog

Closed issues:

  • How to access feathers-client #102
  • Set up Saucelabs #97

Merged pull requests:

v1.6.2 (2016-10-22)

Full Changelog

Closed issues:

  • Browser Support #96
  • How to destroy feathers and socketio client? #95
  • Use tests from feathers-commons #26

Merged pull requests:

v1.6.1 (2016-09-15)

Full Changelog

Closed issues:

  • documentation on how to build client #87

Merged pull requests:

v1.6.0 (2016-09-09)

Full Changelog

Closed issues:

  • How to declare the app in a static way? #86
  • feathers client and requireJS #85
  • SocketIO timeout based on service #84

Merged pull requests:

v1.5.3 (2016-08-31)

Full Changelog

Closed issues:

  • Use of feathers-client with es6 (JSPM) #78

Merged pull requests:

v1.5.2 (2016-08-12)

Full Changelog

Closed issues:

  • [Question] Large client-side bundle filesize when requiring feathers client #71

Merged pull requests:

v1.5.1 (2016-07-14)

Full Changelog

Merged pull requests:

v1.5.0 (2016-07-05)

Full Changelog

Closed issues:

  • Refresh browser #68

v1.4.1 (2016-06-27)

Full Changelog

v1.4.0 (2016-06-24)

Full Changelog

Closed issues:

  • feathers.min.js? #64
  • Facebook login #62

Merged pull requests:

v1.3.2 (2016-06-09)

Full Changelog

Merged pull requests:

v1.3.1 (2016-06-04)

Full Changelog

Merged pull requests:

v1.3.0 (2016-05-30)

Full Changelog

Merged pull requests:

v1.2.1 (2016-05-19)

Full Changelog

Closed issues:

  • Feathers-client not return correct error object. #44

Merged pull requests:

  • Lock versions for Greenkeeper to make a PR for every release #50 (daffl)
  • Update babel-plugin-add-module-exports to version 0.2.0 🚀 #46 (greenkeeperio-bot)

v1.2.0 (2016-04-29)

Full Changelog

Closed issues:

  • Socket.io timeouts? #42
  • Add batch support #4

Merged pull requests:

v1.1.0 (2016-04-03)

Full Changelog

Merged pull requests:

v1.0.0 (2016-03-14)

Full Changelog

Merged pull requests:

  • Use a gcc version that can build bcrypt #30 (daffl)

v1.0.0-pre.3 (2016-03-14)

Full Changelog

v1.0.0-pre.2 (2016-03-04)

Full Changelog

Closed issues:

  • Can't get $regex to work in find function with feathers-nedb in the background #28
  • feathers.fetch is undefined #27
  • Add documentation for using in React Native #10

v0.5.3 (2016-02-12)

Full Changelog

v1.0.0-pre.1 (2016-02-11)

Full Changelog

v0.5.2 (2016-02-09)

Full Changelog

Merged pull requests:

v0.5.1 (2016-01-15)

Full Changelog

Closed issues:

  • REST base.js missing ${options.base} leads to broken relative url #21
  • Add hook support #20
  • $sort does not work for find() #19

Merged pull requests:

v0.5.0 (2016-01-05)

Full Changelog

Closed issues:

  • how to use in typescript #17

Merged pull requests:

v0.4.0 (2015-12-11)

Full Changelog

Fixed bugs:

  • Importing in ES6 is broken #14

Closed issues:

  • .babelrc messes with react-native #15

v0.3.3 (2015-11-27)

Full Changelog

Closed issues:

  • npm package is broken. #12

Merged pull requests:

v0.3.2 (2015-11-26)

Full Changelog

Closed issues:

  • Update lodash #11

v0.3.1 (2015-11-26)

Full Changelog

Closed issues:

  • Working with can-connect #8

v0.3.0 (2015-11-15)

Full Changelog

Closed issues:

  • Use Promises #7

Merged pull requests:

  • Migration to ES6 and using Promises #9 (daffl)

v0.2.1 (2015-10-06)

Full Changelog

Merged pull requests:

  • Make client depend on feathers-commons, remove arguments.js #6 (daffl)

v0.2.0 (2015-07-18)

Full Changelog

v0.1.3 (2015-07-06)

Full Changelog

Merged pull requests:

v0.1.2 (2015-06-22)

Full Changelog

Closed issues:

  • Publish to NPM and Bower #1

v0.1.1 (2015-06-21)

Full Changelog

v0.0.1 (2015-06-21)

Full Changelog

v0.1.0 (2015-06-06)

* This Change Log was automatically generated by github_changelog_generator