Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Oct 24 17:01

    depfu[bot] on update

    (compare)

  • Oct 24 17:01

    papandreou on master

    Update eslint to version 8.1.0 Merge pull request #835 from un… (compare)

  • Oct 24 17:01
    papandreou closed #835
  • Oct 24 08:50
    depfu[bot] closed #830
  • Oct 24 08:50

    depfu[bot] on update

    (compare)

  • Oct 24 08:50
    depfu[bot] commented #830
  • Oct 24 08:50
    depfu[bot] labeled #835
  • Oct 24 08:50
    depfu[bot] opened #835
  • Oct 24 07:46

    depfu[bot] on update

    Update eslint to version 8.1.0 (compare)

  • Oct 22 20:01

    depfu[bot] on update

    (compare)

  • Oct 22 20:01

    papandreou on master

    Update hyperlink to version 5.0… Merge pull request #834 from un… (compare)

  • Oct 22 20:01
    papandreou closed #834
  • Oct 22 19:55
    depfu[bot] labeled #834
  • Oct 22 19:55
    depfu[bot] opened #834
  • Oct 22 18:50

    depfu[bot] on update

    Update hyperlink to version 5.0… (compare)

  • Oct 22 11:10
    depfu[bot] synchronize #832
  • Oct 22 11:10

    depfu[bot] on update

    Update jest to version 27.3.1 (compare)

  • Oct 22 10:16
    depfu[bot] edited #832
  • Oct 22 10:16

    depfu[bot] on update

    (compare)

  • Oct 22 10:16

    papandreou on master

    Update karma to version 6.3.5 Merge pull request #833 from un… (compare)

Gustav Nikolaj
@gustavnikolaj
I don't think you should get depressed as much as just reinforced in your goals about having a working dev setup without a bundler.
All of these problems come from people building "neat tools that work great", and people trying to "make it easy for junior developers".
I'll stop before I loose the grip :D
Andreas Lind
@papandreou
Yeah, I know you're one of the good guys :heart:
Sune Simonsen
@sunesimonsen
You see my motivation for making a new platform even if it is a totally stupid mission 😝
Sune Simonsen
@sunesimonsen
I'm lazy loading here but Rollup figures out how to hash the sub bundles and everything if I include this plugin.
Gustav Nikolaj
@gustavnikolaj
@sunesimonsen My only complaint with the direction of your approach is that it feels a bit "platformy" for my taste :) It's all or nothing. I think that sets a really high bar, but on the other hand, I also understand that it does have benefits. It allows you to tailor the experience much more and to be much more helpful in general.
That dynamic-import-variable approach seems to be roughly equivalent to what webpack supports. What I need is probably best explained with glob syntax: src/**/*.story.js
Sune Simonsen
@sunesimonsen
I know, if we need to advance we need to throw out all of the shit that drag us down. We have build large applications at one where we basically build everything, it is very possible to make make something new.
Gustav Nikolaj
@gustavnikolaj
It is and sometimes you should. I just don't know if I need a component library to go with my state management :sweat_smile: ;-)
But don't listen to me. I should have told you how keen I am following your work rather than point out the one thing I'm skeptical about :) <3
Sune Simonsen
@sunesimonsen
But all parts but the view and the components can be used with preact or react
You don’t need to use the component library.
They are not tied together
The component library needs the store and the view
Gustav Nikolaj
@gustavnikolaj
I'll have to give it a spin soon. I know I've been saying so for a while, but it's been a while since I have been at a computer outside work :D
I get it - it makes sense. It's only in that because it's easier to keep it part of the same mono-repo when you play around with it :)
@sunesimonsen what's the stability status of https://github.com/sunesimonsen/stylewars ? Is it used anywhere in production yet?
Sune Simonsen
@sunesimonsen
stylewars isn’t used in production yet, but it is insanely simple and well tested so I don’t think it would cause you problems.
It would be nice to have a babel plugin to optimize the css inside the bundles
I question your statement about not wanting a state management library for you component library. First of all you do get a weak state management library from react. But I think it opens a lot of possibilities to have a state management as the core of the platform, it changes the way you can interact with everything.
But I'm not expecting you to jump on this, it is not ready yet and I know it is a lot of drastic ideas.
Sune Simonsen
@sunesimonsen

That dynamic-import-variable approach seems to be roughly equivalent to what webpack supports. What I need is probably best explained with glob syntax: src/**/*.story.js

You can't do that in plain ES6, you need to produce a valid URL.

Some of the benefits of having the store would be to have a drawer component expose show and hide actions as an example. Then you can just dispatch them from somewhere else. You don't need to prop drill or connect anything.
Peter Müller
@Munter
Any recommendations for an LRU cache that is backed by redis? I can't find a single one in my npm searches that adheres to the LRU interface and has enough usage that I want to bet my production server on it
Andreas Lind
@papandreou
The easiest way to accomplish that is to configure redis itself with the allkeys-lru or volatile-lru eviction strategy and maxmemory.
Then you can use any redis client (I recommend ioredis).
Peter Müller
@Munter
Sounds good. I'll try that.
Andreas Lind
@papandreou
Peter Müller
@Munter
image.png
I love making performance improvements :)
That's the addition of a cache layer in front of Prismic for our website
Andreas Lind
@papandreou
:heart_eyes_cat:
Gustav Nikolaj
@gustavnikolaj
Hi guys :) Thought I'd break the silence here before we get to the two full calendar months of no action on the channel... What S3 client should one use on node.js these days? I haven't had much luck with the official one, but all the other popular ones I find seem to be abandoned and broken on recent node versions :)
Sune Simonsen
@sunesimonsen
I think Zendesk is using the official @aws-sdk/client-s3, but I also remember it to be pretty bad.
Gustav Nikolaj
@gustavnikolaj
The newer one (the scoped package named one) is much better than the old one (package name aws-sdk). Unfortunately that newer one doesn't seem to work with our non-aws s3 implementation from our storage vendor :(
The old one is like 60 megabytes of actual javascript code, and it adds 5 seconds of startup time to my server when run on my development machine :D
Sune Simonsen
@sunesimonsen
haha :joy:
There goes the micro service :sweat:
If there is even such a thing.
Andreas Lind
@papandreou
I think it depends on whether you're planning to use advanced features such as pre-signed POST urls, request signing etc.
Gustav Nikolaj
@gustavnikolaj
I need to have multipart uploads, and that's pretty much it :) It's just for uploading a heapdump once in a while
Peter Müller
@Munter
Don't dump Heap ;)
Gustav Nikolaj
@gustavnikolaj
10hi :)
Andreas Lind
@papandreou
:smirk_cat:
Then a super minimal client should be fine, maybe just an HTTP client :)
Gustav Nikolaj
@gustavnikolaj
I found this alternative client, from another s3 compatible storage vendor, which seems to work fine :) https://www.npmjs.com/package/minio
@papandreou yeah, I was considering doing that, but the files are big enough that I'm going to need to split them into multiple requests, so it's a bit more involved than just using an http agent :)
Andreas Lind
@papandreou
Are they really too big to be streamed?
IDK if the HTTP-based api supports PUT with Content-Range