Connect to feathers and merge model data easier

@justinbmeyer justinbmeyer released this Jan 11, 2017 · 5 commits to master since this release

  • Added can-connect-feathers to ecosystem. Use it to make a seamless connection to a real-time FeathersJS socket or http service layer. It also helps make sessions, login and logout very easy.

    // make a connection
    connect([..., feathersSession, ...],{
      Map: Session,
      ...
    });
    
    // get the session
    Session.current
    
    // login
    new Session( ... ).save();
    
    // logout
    Session.current.destroy();
  • can-connect 1.1.0 - Adds can-connect/helpers/map-deep-merge module. This is used to merge data into DefineMap and DefineLists with minimal changes:

    var deepMapMerge = require("can-connect/helpers/map-deep-merge");
    
    deepMapMerge( classRoom, {
      id: 5,
      name: "math",
      students: [{id: 1, name: "ilya"}, {id: 2, name: "Justin"}],
      teacher: {name: "Ms. Ramiya"}
    });
  • can-connect 1.2.0 - Adds can-connect/can/merge/merge behavior. This makes a connection use mapDeepMerge. Use it if you have nested model data!

    var canMergeBehavior = require("can-connect/can/merge/merge");
    ClassRoom.connection = connect([ ..., canMergeBehavior, ...], {
      Map: ClassRoom,
      ...
    })
  • can-define 1.0.14 - Use async setters like:

    var Type = define.Constructor({
      prop: {
          value: 2,
          set: function(num, resolve){
              resolve( num * num );
          }
      }
    });
  • can-define 1.0.15 - list.sort() doesn't clone objects.

  • can-stache 3.0.18 - supports foo[bar].baz and foo[%index].

  • Added can-validate-legacy

Downloads

can-namespace stability release

@phillipskevin phillipskevin released this Dec 19, 2016 · 65 commits to master since this release

Changes

Dependency Updates

  • can-cid 1.0.0 (new)
  • can-namespace 1.0.0 (new)
  • can-types 1.0.1 (new)
  • can-component 3.0.3 -> 3.0.4
  • can-compute 3.0.4 -> 3.0.5
  • can-connect 1.0.14 -> 1.0.19
  • can-construct 3.0.4 -> 3.0.5
  • can-control 3.0.4 -> 3.0.5
  • can-define 1.0.5 -> 1.0.8
  • can-ejs 3.0.0 -> 3.0.3
  • can-event 3.0.1 -> 3.0.2
  • can-fixture 1.0.10 -> 1.0.11
  • can-list 3.0.1 -> 3.0.2
  • can-map 3.0.3 -> 3.0.4
  • can-mape-define 3.0.1 -> 3.0.2
  • can-observation 3.0.3 -> 3.0.5
  • can-route 3.0.5 -> 3.0.6
  • can-set 1.0.2 -> 1.0.3
  • can-simple-map 3.1.1 -> 3.1.2
  • can-stache 3.0.13 -> 3.0.16
  • can-stache-bindings 3.0.5 -> 3.0.6
  • can-util 3.0.13 -> 3.2.0
  • can-view-callbacks 3.0.2 -> 3.0.3
  • can-view-import 3.0.3 -> 3.0.4
  • can-view-live 3.0.4 -> 3.0.5
  • can-view-model 3.1.2 -> 3.1.3
  • can-view-nodelist 3.0.2 -> 3.0.4
  • can-view-parser 3.0.2 -> 3.0.4
  • can-view-scope 3.1.1 -> 3.1.2
  • can-view-target 3.0.4 -> 3.0.7

Downloads