Adventures in Nodeland logo

Adventures in Nodeland

Subscribe
Archives
August 22, 2022

HTTP2/push is no more and other Adventures in Nodeland - Issue #73

Hi Everyone! Even if I worked only 4 days, last week was full of releases and interesting articles.

Fastify

  • Mercurius v10.1.0 and v8.13.1 fix the require of tiny-lru when using bundlers.
  • Fastify v4.5.0 is out with a fix and a new feature. We fixed the support for WebSockets when localhost have both IPv4 and IPv6 configured, and we added an option to disable the default request-id header. Fastify v4.5.1 makes sure preSerialization hooks are null by default. Fastify v4.5.2 sets the errorHandler of the root 404 handler before Fastify is ready to listen.
  • @fastify/type-provider-json-schema-to-ts v2.1.1 adds FastifyPluginAsyncJsonSchemaToTs and FastifyPluginCallbackJsonSchemaToTs.
  • light-my-request v5.5.0 make user-agent and content-type overwritable with undefined.
  • @fastify/http-proxy v8.2.2 fixes a problem when using parametric paths as a prefix.
  • @fastify/one-line-logger v1.0.0 is a Pino transport to log all lines as single, formatted lines.
  • light-my-request v5.5.1 set the default abort flag to false.

Pino

  • pino-pretty v9.0.1 adds some missing types.
  • pino-socket v7.1.0 adds support for the exponential backoff strategy.
  • pino v8.4.2 adds support for loading transports in pkg.
  • fast-redact v3.1.2 fixes a bug with overlapping wildcards.

Node.js

  • Undici v5.9.1 adds support for integrity in fetch() and fix several bugs.

News

Chrome 106 is removing HTTP/2 push! What can you do instead? Use 103 Early Hints! It’s

Always include a minimum reproduction whenever you open a new github issue. Don’t know what this is? Look no further:

wtf-is-a-minimum-reproduction
wtf-is-a-minimum-reproduction A minimum reproduction repository is a git repository that can be shared publicly (doesn’t expose private business logic), shows the problem you’re running into, and has the fewest dependencies installed possible.
minimum-reproduction.wtf

Watching the Supabase Twitter feed is pretty amazing, check out this in-depth analysis:

How to market to developers on Twitter: Learnings from 4 months of Supabase feed
How to market to developers on Twitter: Learnings from 4 months of Supabase feed
For months I couldn’t find a single account of a developer-focused company that did great dev marketing on social media. And then I saw @swyx mention Supabase Twitter account. Checked it out and they are crushing it.
www.developermarkepear.com
How to market to developers on Twitter: Learnings from 4 months of Supabase feed
How to market to developers on Twitter: Learnings from 4 months of Supabase feed
For months I couldn’t find a single account of a developer-focused company that did great dev marketing on social media. And then I saw @swyx mention Supabase Twitter account. Checked it out and they are crushing it.
www.developermarkepear.com

Pagination is hard. Check out a solution that works well even for extremely large tables:

Introducing FastPage: Faster offset pagination for Rails apps
Introducing FastPage: Faster offset pagination for Rails apps
We’d like to introduce FastPage, a new gem for ActiveRecord that applies the MySQL “deferred join” optimization to your offset/limit queries. Here is a slow pagination query in Rails:
planetscale.com

Learn from Liran Tal how to prepare coding presentations using Markdown:

Slidev 101: Coding presentations with Markdown | Snyk
As a developer advocate, I do a lot of public speaking to share my experience and educate fellow developers — which means I spend a lot of time building presentations. This can be a tedious process, especially when considering details such as color scheme, aesthetic visual placements, and storyline.
snyk.io
Don't miss what's next. Subscribe to Adventures in Nodeland:
GitHub X YouTube LinkedIn