Adventures in Nodeland logo

Adventures in Nodeland

Subscribe
Archives
July 27, 2021

Pino@7.0.0-rc.1 and -rc.2 and other Adventures in Nodeland - Issue #20

Hi Folks, this week I’m in the mountains with my family :)! I’ve been a bit late in preparing everything for this issue that sum up last week… I hope you will like it nevertheless! There might be a lighter issue next week.. we’ll see!7

Pino

We finally released the first (and second) release candidates of Pino v7. It includes a new transport system built on top of worker threads. Check it out!

Release v7.0.0-rc.1 · pinojs/pino · GitHub
Release v7.0.0-rc.1 · pinojs/pino · GitHub
🌲 super fast, all natural json logger 🌲. Contribute to pinojs/pino development by creating an account on GitHub.
github.com
Release v7.0.0-rc.1 · pinojs/pino · GitHub
Release v7.0.0-rc.1 · pinojs/pino · GitHub
🌲 super fast, all natural json logger 🌲. Contribute to pinojs/pino development by creating an account on GitHub.
github.com

As I said we also released pino@7.0.0-rc.2 because… we found a bad bug that would make your “demo” processes not work. I ended up extending on-exit-leak-free to hook into beforeExit as well as exit. Read up if you are curious:

Make sure that the main thread stays alive to process stdout. by mcollina · Pull Request #1075 · pinojs/pino · GitHub
Make sure that the main thread stays alive to process stdout. by mcollina · Pull Request #1075 · pinojs/pino · GitHub
This is achieved by hooking into beforeExit in on-exit-leak-free. At that point the event loop is still running so we can catch the most basic exit scenarios. However this would not work if we use process.exit(0) to exit the main thread. Fix #1074
github.com
Make sure that the main thread stays alive to process stdout. by mcollina · Pull Request #1075 · pinojs/pino · GitHub
Make sure that the main thread stays alive to process stdout. by mcollina · Pull Request #1075 · pinojs/pino · GitHub
This is achieved by hooking into beforeExit in on-exit-leak-free. At that point the event loop is still running so we can catch the most basic exit scenarios. However this would not work if we use process.exit(0) to exit the main thread. Fix #1074
github.com

Undici

Last week I spent some time tracking a mysterious bug that increased the time taken to run my tests by 10 seconds. It turns out it was an uncleared timer in case of an error. I’m really glad I was able to solve this nasty bug:

always clear the connectTimeout by mcollina · Pull Request #896 · nodejs/undici · GitHub
always clear the connectTimeout by mcollina · Pull Request #896 · nodejs/undici · GitHub
I have seen the close of my processes being severely delayed by this. I’m not sure how to test this though.
github.com
always clear the connectTimeout by mcollina · Pull Request #896 · nodejs/undici · GitHub
always clear the connectTimeout by mcollina · Pull Request #896 · nodejs/undici · GitHub
I have seen the close of my processes being severely delayed by this. I’m not sure how to test this though.
github.com

News

I really like Vite and the speed of development it brings to frontend dev… guess what will happen when Bryce combine it with Elevently?

Eleventy plus Vite = elite | BryceWray.com
Eleventy plus Vite = elite | BryceWray.com
In the last few days, I’ve had the pleasure of seeing just how well two of today’s hottest names in web development work together. I speak, of course, of the Eleventy static site generator (SSG) and the Vite front end development tool.
www.brycewray.com

Would you like to transform Markdown? This article sparkled my curiosity and I wanted to build a new static web site generator!

Transforming Markdown with Remark & Rehype
Transforming Markdown with Remark & Rehype
Image Credit: The Transformers: The Movie, Hasbro My blog, like a lot of JAMstack content, is written in Markdown. I’ve written about how I’ve used MDX as a parser to give my Markdown extra power.
www.ryanfiller.com

My friends at NodeSource have just released the SaaS version of N|Solid! Wow, this was a very big change for them! Check it out:

Announcing N|Solid SaaS!
Share We are very excited to announce a SaaS option for our customers. N|Solid SaaS!
nodesource.com

Chief Software Architect

I got promoted to Chief Software Architect. I’m not sure how this will change things long term, but I’m hiring a Node.js Core Engineer for my team. If you are interested, check out https://grnh.se/5c39f3d43us.

Thanks

Here from the mountains I can only reflect and be thankful for everything the Node.js and JavaScript communities brought to my life. Thank to you all.

Don't miss what's next. Subscribe to Adventures in Nodeland:
GitHub X YouTube LinkedIn