These are chat archives for ractivejs/ractive

18th
Feb 2018
Cerem Cem ASLAN
@ceremcem
Feb 18 2018 02:00
hello everyone
Chris Reeves
@evs-chris
Feb 18 2018 02:10
👋
Cerem Cem ASLAN
@ceremcem
Feb 18 2018 02:24
I'm trying to pass a decorator to a component and here is my initial attempt: http://jsfiddle.net/ceremcem/exp7h6pv/1/
...where even passing a simple style attribute is failed... what might I be doing wrong?
Paul Maly
@PaulMaly_twitter
Feb 18 2018 09:11
@evs-chris Are string expressions not supported in computed props anymore?
Unexpected identifier
SyntaxError: Unexpected identifier
    at new Function (<anonymous>)
    at fromComputationString (/.../node_modules/ractive/ractive.js:5358:11)
    at createFunctionFromString (/.../node_modules/ractive/ractive.js:8527:9)
    at getComputationSignature
    computed: {
        fullName: '${firstName} ${lastName}'
    }
edge
Chris Reeves
@evs-chris
Feb 18 2018 14:45
@ceremcem you have to tell ractive what attributes your component wants to own vs pass through in the extra attributes template, which in this case is just an empty array
Chris Reeves
@evs-chris
Feb 18 2018 14:50
if you throw in a + " " + it'll work e.g. '${firstNAme} + " " + ${lastName}'
Paul Maly
@PaulMaly_twitter
Feb 18 2018 16:06
Ok, thanks!
Chris Reeves
@evs-chris
Feb 18 2018 22:36
I'm about to break edge by merging #3141... any objections?
mostly it's just the stringy version of computations and computations that have a . in the keypath that will break
the other stuff is new features that shouldn't affect existing code
this plus one more thing I have in progress will become 0.10, and hopefully fairly soon
Joseph
@fskreuz
Feb 18 2018 22:45
LGTM :thumbsup:
Chris Reeves
@evs-chris
Feb 18 2018 22:47
@fskreuz quick question... are you getting npm publish notifications now every time travis publishes?
Joseph
@fskreuz
Feb 18 2018 22:47
Hmm... I don't remember such notifs.
Chris Reeves
@evs-chris
Feb 18 2018 22:48
also npm downloads jumped from 20k/mo to 147k/mo, so that's weird
may just be me because my account is what travis uses to publish
Joseph
@fskreuz
Feb 18 2018 22:51
re: downloads, maybe that's a question for @MartinKolarik . I'm wondering if npm CDNs and these new "code playgrounds" is the cause. I've also seen some advanced plunkr-like playgrounds recently that are like full environments, npm included.
Buuut! If they're organic downloads, :tada:
Martin Kolárik
@MartinKolarik
Feb 18 2018 22:54
jsDelivr shouldn't cause more than a few downloads as we have multiple layers of caching + persistent storage for individual files
unpkg probably causes more downloads but it should still be no more than 1/day I think
maybe a little more, but hundreds per month at most
Chris Reeves
@evs-chris
Feb 18 2018 22:57
I figure there's maybe 1000 cdn/misc bot downloads every time a new version gets published