Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Sep 08 08:40
    papandreou commented #784
  • Sep 08 08:09
    pingvinen commented #784
  • Aug 22 05:39

    papandreou on master

    13.0.1 (compare)

  • Aug 22 05:39

    papandreou on v13.0.1

    (compare)

  • Aug 22 05:34

    papandreou on toSatisfyUndefinedProp

    (compare)

  • Aug 22 05:34

    papandreou on master

    Fix bug that caused expect({foo… Merge pull request #852 from un… (compare)

  • Aug 22 05:34
    papandreou closed #852
  • Aug 20 14:06
    papandreou assigned #852
  • Aug 20 14:06
    papandreou opened #852
  • Aug 20 14:05

    papandreou on toSatisfyUndefinedProp

    Fix bug that caused expect({foo… (compare)

  • Jul 09 14:26

    papandreou on master

    Fix CHANGELOG generation in pre… (compare)

  • Jun 05 12:09

    papandreou on master

    Unskip test that succeeds now w… (compare)

  • May 31 05:48
    papandreou synchronize #784
  • May 31 05:47

    papandreou on camelCase

    Sketch out some basic tests Slow, naive implementation of t… Support camel case syntax withi… and 16 more (compare)

  • May 31 05:41

    papandreou on master

    Fix typos in test descriptions (compare)

  • May 31 05:28
    papandreou synchronize #784
  • May 31 05:28

    papandreou on camelCase

    Clean (compare)

  • May 30 22:10
    papandreou synchronize #784
  • May 30 22:10

    papandreou on camelCase

    simplify (compare)

  • May 30 21:42
    papandreou synchronize #784
Sune Simonsen
@sunesimonsen
Gustav Nikolaj
@gustavnikolaj
At least it's consistent :D
That's not how I would expect it to work, but I must be mistaken :D
Sune Simonsen
@sunesimonsen
Haha no - that seems pretty broken
Also no focus styling :sweat_smile:
Sune Simonsen
@sunesimonsen

@gustavnikolaj haha I guess somebody fix the focus styling in the latest version of the TodoMVC styles https://dependable-example-todomvc.surge.sh/

Maybe they went a bit over the top :sweat_smile:

Gustav Nikolaj
@gustavnikolaj
That "v" / downwards caret button is very surprising to me
Sune Simonsen
@sunesimonsen
Yes that has been there all along
Gustav Nikolaj
@gustavnikolaj
I didn't notice it at all before, and I don't know why you would ever want it
:D
Sune Simonsen
@sunesimonsen
Mhh I think they broke backward compatibility a bit :-)
Nahh that was just me breaking things.
Peter Müller
@Munter
Are any of you planning on seeing some of the tour in the city tomorrow? I was thinking of finding some place near the city center and bring a camera, possibly have a beer
Peter Müller
@Munter
Looks like i won't be able to be in the city after all. I'll have to watch on TV like everyone else :)
Gustav Nikolaj
@gustavnikolaj
Hehe... I don't think you go to the city today. Either you are there already, or you'll not be able to get there :D
Peter Müller
@Munter
What's a good library to use to get stable cache keys from json objects?
Andreas Lind
@papandreou
You mean sort of like crc16(JSON.stringify(obj))?
But probably shouldn't care about the key definition order?
Peter Müller
@Munter
We might have keys in different order, and those should hash to the same if the values don't change
Andreas Lind
@papandreou
Yeah, was just making sure that I understood what the ask was :)
Andreas Lind
@papandreou
I took a quick stab at it, but it looks like it's hard to beat the naive approach of:
const crypto = require('crypto');
const canonicalJson = require('canonical-json');

function hashCanonicalJson(value) {
  return crypto.createHash('sha1').update(canonicalJson(value)).digest('hex');
}
Peter Müller
@Munter
I was thinking the same, but was a bit discouraged at the download numbers of the canonical-json package. Couldn't find a different one that seemed more agreed upon though
Andreas Lind
@papandreou
It has 38K weekly downloads? Doesn't seem insanely risky?
Peter Müller
@Munter
I just expected more people to use canonical json object :)
Andreas Lind
@papandreou
It's one of those problems that are fairly easy to solve, so there are probably 50 libraries in npm that do the same :)
I'd just pick one and move on. Doesn't seem like something worth overengineering, unless we're talking about very big objects.
Peter Müller
@Munter
Not really :)
Sune Simonsen
@sunesimonsen
10K Hackernews demo with @dependable https://github.com/sunesimonsen/dependable-example-hackernews
(Not completely done yet)
Andreas Lind
@papandreou
Fix bug that caused expect({foo: 123}, 'to satisfy', {foo: undefined}) to pass: unexpectedjs/unexpected#852 :grimacing:
Andreas Lind
@papandreou
Took the liberty of merging and releasing it since I didn't hear anything :innocent:
Sune Simonsen
@sunesimonsen
Yes sorry @papandreou and just feel free to do that :-)
Andreas Lind
@papandreou
I do, but always good to get some :eyes: on stuff :)
Sune Simonsen
@sunesimonsen
It looks fine - and we have many tests :-)
Andreas Lind
@papandreou
Haha, yes. That does help :)
Miroslav Nikolov
@moubi

Hello Guys.
Can you share what do you use/d for documenting component libraries and/or possibly design system? We consider using Storybook as a playground + Storybook Doc for writing markdown pages with more extensive documentation.

Looking at Docusaurus as well but what pushes me back is the Algolia search which requires your site to be public.

Peter Müller
@Munter
@moubi You don't need to use algolia for search in docosaurus
Miroslav Nikolov
@moubi
@Munter is there an alternative that comes out of the box?
Peter Müller
@Munter
There are plugins to use local search instead. https://docusaurus.io/community/resources#search
1 reply
Peter Müller
@Munter
Looks like I might actually make it to my first real-life conference since corona :D
Fronteers next week
Gustav Nikolaj
@gustavnikolaj
Woot! Is that still a thing? ;)
Great to see that they are starting up again.
Bram Stein
@bramstein
Nice! There's also the Fontstand conference the day after.
Peter Müller
@Munter
@gustavnikolaj @bramstein Looks like there are still tickets available. Join me on a quick trip :) https://fronteersconf.org/
Bram Stein
@bramstein
I've been trying to find babysitting so I can go to both conferences, but no luck :(
Gustav Nikolaj
@gustavnikolaj
I also think it would be a hard sell to my wife. :D Our youngest would be 6 weeks old by then ;)
Andreas Lind
@papandreou
Gustav: But they have a spectacular line-up of 6 speakers for me. These are the people who'll be stimulating my mind with thought-provoking talks.
Wife: No sale
Sune Simonsen
@sunesimonsen
:sweat_smile:
Peter Müller
@Munter
Have any of you used cls-hooked for keeping request context in an express app? I need something for being able to have a logger annotate every log entry with request metadata, datadog traceid etc
Gustav Nikolaj
@gustavnikolaj
I haven't used it no. Maybe this is just me being daft, but it's just an object that follows the GC life-cycle of whatever function you create it in, and then you can get it from a registry by a name, instead of passing it around. What am I missing? :)