#547 — September 10, 2024
Together with
Express.js 5.0 Released; Sort Of — After a long period of seeming to merely be on life support, work on Express picked up significantly earlier this year with a big plan to push ‘Express forward.’ The first fruit of this process is now beginning to appear with v5.0. Node 18 is now the minimum support version, there are error handling improvements, improvements to the project’s tooling, the introduction of a Threat Model, and updates to many of its dependencies.
Wesley Todd
💡 We say sort of because there’s no official release post yet, and over on the npm registry, 5.0 is still tagged as next
, so take that into account when installing it.
WorkOS: The Modern Identity Platform for B2B SaaS — WorkOS is a modern identity platform for B2B SaaS, offering flexible and easy-to-use APIs to integrate SSO, SCIM, and RBAC in minutes instead of months. It’s trusted by hundreds of high-growth startups such as Perplexity, Vercel, Drata, and Webflow.
WorkOS sponsor
IN BRIEF:
TypeScript 5.6 has been released with full support for iterator helpers, support for arbitrary module identifiers, a --noUncheckedSideEffectImports
to import modules without importing any values from them, and better handling of CommonJS vs ES modules in Node.
Cloudflare Workers has greatly improved its npm package support. The popular serverless platform now supports a lot more Node.js APIs.
pg-boss is a popular Postgres-based background job system for Node and the folks at Wasp interviewed its maintainer who shared more details on why it exists, how it works, and why pg-boss v10.0 is worth a look.
setImmediate()
vs setTimeout()
— setImmediate
is considered deprecated in the browser space, but its different behavior still has a role to play in Node.
Trevor Lasn
Set Up a $4/mo Hetzner VM to Skip the ‘Serverless Tax’? — For many use cases, it can be cheaper and more convenient to spin up a cheap server than go serverless.
Shipixen
Integrating Slonik with Express.js — Slonik is a type-safe Node Postgres client that lets you build SQL queries in a composable way.
Gajus Kuizinas
📄 How to Create a Weekly Google Analytics Report That Posts to Slack Paul Scanlon
📄 Securing Node Apps from Supply Chain Attacks Leonardo Zanivan (Auth0)
📄 Implementing Filtered Semantic Search Using pgvector and JavaScript Team Timescale
📄 How to Detect Broken Links with Playwright Stefan Judis (Checkly)
🛠 Code & Tools
Jimp 1.6: Image Processing in Node without Native Dependencies — Most image libraries, such as the powerful Sharp, lean on external libraries to do the heavy lifting, but Jimp can handle BMPs, GIFs, JPEGs, PNGs, and TIFFs on its own for blurring, color adjustments, resizing, rotation, etc. GitHub repo.
jimp Contributors
💡 Being pure JavaScript, Jimp can also be used in the browser.
Cut Code Review Time and Bugs in Half with AI — Supercharge your entire team with AI-driven contextual feedback. Supports all languages.
CodeRabbit sponsor
jsdiff 7.0: A JavaScript Text Diffing Implementation — Can compare strings for differences in various ways including creating patches. There’s an online demo.
Kevin Decker
Rockpack 4.4: An Alternative React App Builder — Akin to Create React App, the goal is to get project setup time as low as possible, but Rockpack holds different opinions around how far to take things and packs in a lot of ideas including server side rendering, linting, and testing. GitHub repo.
Alex Sergey
node-html-to-image 5.0: Generate Images from HTML — Wraps around Puppeteer, but also lets you use Handlebars for added logic in your HTML.
Yvonnick Frin
create-fastify 5.0 – Rapidly generate a Fastify project. You don’t even need to install it first. You can use npm init fastify app_name_here
.
file-type 19.5 – Detect the file type of a file, stream, or data. Now with WebVTT support.
better-sqlite 11.3 – A neat way to use SQLite from Node. Now with SQLite 3.46.1.
Faker 9.0 – Generate large amounts of fake data. Upgrade guide.
pnpm 9.10 – The fast, efficiency-focused package manager.
ESLint 9.10 – Now with types included.
ini 5.0 – npm’s INI file parser/serializer.
Got a link for us? Reply and tell us. We can’t include everything but we’ll look at anything you send. Thanks!
Sponsorship: Email [kristina@cooperpress.com](mailto:kristina@cooperpress.com)
for details.
Published by Cooper Press Ltd.
Fairfield Enterprise Centre, Louth, LN11 0LS, United Kingdom
#547 — 2024 年 9 月 10 日
连同
[](https://nodeweekly. com/link/159508/0a4070b383)
Express.js 5.0 发布;排序 — 经过很长一段时间似乎只是依靠生命维持,Express 的工作在今年早些时候显着回升,[a big]计划推动“Express 前进”。](https://nodeweekly.com/link/159510/0a4070b383) 这个过程的第一个成果现在开始在 v5.0 中出现。 Node 18 现在是最低支持版本,有错误处理改进、项目工具改进、威胁模型 的引入,以及许多内容的更新它的依赖项。
韦斯利·托德
💡 我们说“某种程度上”是因为还没有正式发布的帖子,并且在 npm 注册表上,5.0 仍然被标记为“next”,所以安装时要考虑到这一点。
WorkOS:B2B SaaS 的现代身份平台 — WorkOS 是 B2B SaaS 的现代身份平台,提供灵活且易于使用的功能API 可在几分钟(而不是几个月)内集成 SSO、SCIM 和 RBAC。它受到 Perplexity、Vercel、Drata 和 Webflow 等数百家高增长初创公司的信任。
WorkOS赞助商
简而言之:
TypeScript 5.6 已发布 完全支持迭代器助手、支持任意模块标识符、--noUncheckedSideEffectImports
来导入模块而不导入任何值它们,以及在 Node 中更好地处理 CommonJS 与 ES 模块。
Cloudflare Workers 极大地改进了其 npm 包支持。 流行的无服务器平台现在支持更多的 Node.js API。
pg-boss 是一个流行的基于 Postgres 的后台作业系统,适用于 Node 和 Wasp 的人们[采访了它的维护者](https://nodeweekly.com /link/159517/0a4070b383)谁分享了更多关于它为什么存在、它如何工作以及为什么 pg-boss v10.0 值得一看的细节。
setImmediate()
与 setTimeout()
— setImmediate
已[被认为已弃用](https://nodeweekly .com/link/159520/0a4070b383)在浏览器领域中,但其不同的行为在 Node.js 中仍然发挥着作用。
特雷弗·拉森
设置 4 美元/月的 Hetzner 虚拟机以跳过“无服务器税”? — 对于许多用例来说,它可以更便宜、更多启动廉价服务器比无服务器更方便。
希皮克森
将 Slonik 与 Express.js 集成 — Slonik 是一种类型-安全的 Node Postgres 客户端,可让您以可组合的方式构建 SQL 查询。
加尤斯·库伊兹纳斯
📄 如何创建发布到 Slack 的每周 Google Analytics 报告 Paul Scanlon
📄 保护节点应用程序免受供应链攻击 Leonardo Zanivan (Auth0)
📄 使用 pgvector 和 JavaScript 实现过滤语义搜索 团队时间表
📄 如何与 Playwright 检测失效链接 Stefan Judis (Checkly)
🛠 代码和工具
Jimp 1.6:没有本机依赖项的 Node 中的图像处理 — 大多数图像库,例如强大的 [Sharp](https ://nodeweekly.com/link/159529/0a4070b383),依靠外部库来完成繁重的工作,但 Jimp 可以自行处理 BMP、GIF、JPEG、PNG 和 TIFF,以进行模糊、颜色调整、调整大小、旋转等 GitHub 存储库
jimp 贡献者
💡 作为纯 JavaScript,Jimp 也可以在浏览器中使用。
利用 AI 将代码审查时间和错误减少一半 — 通过 AI 驱动的上下文反馈为整个团队提供支持。支持所有语言。
码兔赞助商
jsdiff 7.0:JavaScript 文本比较实现 — 可以通过各种方式比较字符串的差异,包括创建补丁。有一个在线演示。
凯文·德克尔
Rockpack 4.4:另一种 React App Builder — 类似于 Create React App,目标是将项目设置时间设置为尽可能低,但 Rockpack 对于要走多远持有不同的意见,并包含许多想法,包括服务器端渲染、linting 和测试。 GitHub 存储库。
亚历克斯·谢尔盖
node-html-to-image 5.0: 从 HTML 生成图像 — 围绕 Puppeteer,但也允许您使用 Handlebars 来添加逻辑您的 HTML。
伊冯尼克·弗林
create-fastify 5.0 – 快速生成 Fastify 项目。您甚至不需要先安装它。您可以使用“npm init fastify app_name_here”。
file-type 19.5 – 检测文件、流或数据的文件类型。现已支持 WebVTT。
better-sqlite 11.3 – 从 Node.js 使用 SQLite 的巧妙方法。现在使用 SQLite 3.46.1。
pnpm 9.10 – 快速、注重效率的包管理器。
ESLint 9.10 – 现在包含类型。*
ini 5.0 – npm 的 INI 文件解析器/序列化器。
有我们的链接吗? 回复并告诉我们。我们无法包含所有内容,但我们会查看您发送的所有内容。 谢谢!
赞助: 发送电子邮件至“<kristina@cooperpress.com>”了解详细信息。
由库珀出版社有限公司出版
费尔菲尔德企业中心, 劳斯, LN11 0LS, 英国
发布者