Nathan Hunzaker nhunzaker

Organizations

@vigetlabs @sift
nhunzaker commented on pull request vigetlabs/microcosm#66
@nhunzaker

I'm torn on that too; the balance of magic and difficulty. We could definitely hold on to it, in either case I like the new internal mechanics better.

nhunzaker commented on pull request vigetlabs/microcosm#66
@nhunzaker

This conditionally allows stores that implement the "special" methods to continue to work. In Microcosm 10.0.0 I will remove them (and we'll add a …

@nhunzaker
@nhunzaker
  • @nhunzaker 295e744
    Use string interpolation to stringify action
nhunzaker commented on pull request vigetlabs/microcosm#66
@nhunzaker

Pretty branchy, but we'll cut it down when we can make breaking changes...

nhunzaker opened pull request vigetlabs/microcosm#66
@nhunzaker
Lifecycle actions
3 commits with 104 additions and 135 deletions
@nhunzaker
@nhunzaker
  • @nhunzaker fca4f5d
    Make transactions even simpler
@nhunzaker
@nhunzaker
  • @nhunzaker 2dbf9ff
    Do not blacklist strict mode and bump babel staging
nhunzaker closed pull request vigetlabs/microcosm#65
@nhunzaker
A plugin can be a simple function
@nhunzaker
nhunzaker merged pull request vigetlabs/microcosm#64
@nhunzaker
Stores can have a diversity of registration methods.
6 commits with 36 additions and 3 deletions
@nhunzaker
@nhunzaker
@nhunzaker
@nhunzaker
nhunzaker commented on pull request vigetlabs/microcosm#64
@nhunzaker

@ltk Removed stores as functions. We'll cross that bridge when we get there.

@nhunzaker
  • @nhunzaker 18bd7be
    Remove stores as functions until future work
nhunzaker commented on pull request vigetlabs/microcosm#64
@nhunzaker

@ltk Oh I forgot! One final note. Plugins can now be functions, so there would be a similar pattern there. In any case, let's add lifecycle actions…

nhunzaker commented on pull request vigetlabs/microcosm#64
@nhunzaker

@ltk Fair point. Stores as functions is a design decision for future work. I'll remove it out of the context of this PR so that we can evaluate it …

@nhunzaker
nhunzaker merged pull request vigetlabs/microcosm#63
@nhunzaker
Keep stores as 2D arrays
1 commit with 32 additions and 40 deletions
nhunzaker commented on pull request vigetlabs/microcosm#64
@nhunzaker

@ltk Ooo debate time. The idea was to allow Stores to act like switches that can turn on and off values. For example: function TrafficLight() { return

@nhunzaker
  • @nhunzaker 62584ab
    Make the plugin format validator very clear
nhunzaker commented on pull request vigetlabs/microcosm#65
@nhunzaker

This is dev build only, so we could also do: A Microcosm plugin should be a function following the signature function(app, options, next) or an obj…

nhunzaker commented on pull request vigetlabs/microcosm#65
@nhunzaker

(updated)