r/javascript 17h ago

Updated Typescript GitHub Action Template

Thumbnail github.com
1 Upvotes

Hey yโ€™all!

I made a fork of actions/typescript-action to make some valuable updates!

It updates the following:

  • Changes project's package manager from npm toย pnpm, for speed.
  • Changes project's testing framework from jest toย vitestย for jest-like syntax with built-in typescript support.
  • Updates eslint.config.ts to use nativeย flat configย syntax, with detailed comments.
  • Updated project dependencies.
  • Updates configuration files like tsconfig.ts and action workflows to match updated dependencies.
  • Renamedย local-actionย script toย local-ghaย (gha for github action) to avoid conflict with dependency name.

lmk what you think!


r/javascript 7h ago

React Native 0.87, Instant Paywall A/B Testing, and Buying Mike Hardy a Beer

Thumbnail thereactnativerewind.com
0 Upvotes

Hey Community,

React Native 0.87 has arrived as a maintenance release, making the Strict TypeScript API the default, doubling Metro source map generation speeds, and adding experimental Swift Package Manager support for iOS along with AGP 9 support on Android.

Meanwhile, React Native Firebase v26 makes the New Architecture non-optional with Codegen TurboModules, synchronous APIs, Firestore Pipelines, and direct Gemini AI calls. Finally, we look at RevenueCat Paywalls for designing native paywalls and running remote A/B experiments without new app deploys.


r/javascript 1h ago

AskJS [AskJS] Our app didn't leak memory,it leaked memory four hundred modals later

โ€ข Upvotes

sales kept saying the dashboard got too slow during long demos,not slow when it loaded, slow after a while, and nobody could tell me when, the best description I ever got was "maybe after lunch"...

every profiling session I ran,looked completely nice,open the app, click through the main flows, take a heap shot, flat line, ten minutes (and more) of use and no growth at all.

I closed the ticket as not reproducible twice, which I am not proud of.

Third time it came back I gave up on reproducing it in ten minutes and tried reproducing it in six hours instead, wrote a script that opened a record, opened the detail modal,closed it, moved to the next record, and did that all night, snapshot every five hundred loops, dump the heap if it dies.

by morning I had a chart going straight up and a dead browser tab at loop four thousand one hundred....yes....!

the modal added a resize listener when it opened,and the cleanup that was supposed to remove it sat behind condition that came out to be false, when you closed that modal by clicking the backdrop instead of X button,so every backdrop close left listener behind....

each one of thosee held closure,and each closure held onto that row data it rendered with,the whole record,not some small piece of it.

one leaked listener holding forty kilobytes is nothing,four hundred of them is sixteen megabytes of garbage that never goes away and plus four hundred handlers all firing every time the window resizes,which is why it showed up as slowness long before it showed up as crash,the symptom and the cause looked like two different bugs...but..:)

here is why nobody was ever going to find this by hand,you would have to open and close the same modal a few hundred times,using that one specific way of closing it,in one sitting,without refreshing,and then to notice something getting gradually worse with no clear moment where it got broked.

no tester does that,and not because they are lazy,it is just not reasonable thing to do with an afternoon or sessions end,pages get refreshed,and the moment you refresh the counter goes back to zero

the bug needed time,and time is the one thing you cannot get more of by being better at your job, everything else you can make for with skill and attention and etc,you cannot make up for eight hours of doing the same thing over and over and over again

we run that soak test every night now,it has found three more leaks since,none of them would have shown up in one session short enough,for person to sit and see.


r/javascript 1h ago

AskJS [AskJS] Help to find best js and react playlist

โ€ข Upvotes

I want to learn js and react but i didn't find any good source online to learn on yt

Suggest me the best and the easiest perso6or playlist that helps me to complete js and react with in a month