星期二 03 下午 九月 3o 2024
Two new libraries from Sindre Sorhus
#546 — September 3, 2024
Together with
Prisma 5.19.0, Now with ‘Typed SQL’ — Prisma is a popular declaratively-driven ORM in the Node.js / TypeScript world and its new version makes it possible to write raw SQL queries in a type-safe way.
Nikolas Burk
Node v22.8.0 (Current) Released — This landed just before we hit ‘send’! :-) The enhancements are minor, but there are a few, including a new API for enabling on-disk code caching of modules (rather than using the NODE_COMPILE_CACHE
env var) and a way to set required thresholds for code coverage measurements.
Rafael Gonzaga
Front-End System Design — Learn to create scalable, efficient user interfaces in this extensive video course by Evgennii Ray. Explore the box model, browser rendering, DOM manipulation, state management, performance and much more.
Frontend Masters sponsor
Multithreaded Programming in Node.js using Atomics — Worker threads enable you to write multi-threaded Node apps, but sharing resources across them can quickly become tricky. Atomics can help you avoid some of the pain.
Pavel Romanov
▶ Talking Deno 2 with Ryan Dahl — A chat with Deno creator Ryan Dahl (originally Node’s creator too) about the forthcoming Deno 2.0, its new features, and how it seamlessly integrates with popular frameworks like Next.js. Ryan shares insights on the motivations behind Deno’s creation, its emphasis on simplicity and security, and offers his take on the evolving JavaScript ecosystem.
Syntax․fm
How to Deploy Node to AWS Lambda with OpenTofu and GitHub Actions — Someone on Hacker News joked that this is how to deploy a Node.js app enterprise-style. A lot of tooling is involved, but this is the reality for many developers, and Meysam walks through the steps.
Meysam Azad
▶ Behind the Scenes: The Making of VS Code — A detailed conversation with two of the principal engineers who work on the engineering team of the popular Electron-powered editor.
Holland, Rieken and Pasero (Microsoft)
Why Playwright is Less Flaky Than Selenium — “Playwright is so fast that it forces you to write UI tests correctly on day one. Selenium isn’t.”
Justin Searls
Developer’s Guide to Heroku Dynos — Which dynos should you use, and how many? (TLDR: Don’t use Perf-M!)
Judoscale sponsor
📄 How I Created a 3.78MB Docker Image for a JavaScript Service – A rather unorthodox approach, however. Shenzilong
📄 How Sentry Uses Mutation Testing on its JavaScript SDKs Lukas Stracke (Sentry)
📄 How to Handle Errors in Next.js for Node with the App Router Antonello Zanini
📄 Is Wasp the JavaScript Answer to Django for Web Development? Sam Jakshtis (Wasp)
🛠 Code & Tools
yocto-spinner: Tiny Terminal Spinner — Fresh from the one-man module powerhouse that is Sindre Sorhus comes a new project: a tiny, as simple-as-possible terminal spinner/progress control. (‘Yocto’ is a metric prefix that sits below nano, pico, femto, atto, and even zepto..)
Sindre Sorhus
google-spreadsheet: Google Sheets API Wrapper for Node — Work with Google’s online spreadsheet from Node, whether at the cell, row, worksheet or document level. Supports numerous auth options and you can export sheets for download too. GitHub repo.
Theo Ephraim
Light My Request: Fake HTTP Injection Library — Injects a fake HTTP request/response into a Node HTTP server for simulating server logic, writing tests, or debugging. Doesn’t use a socket connection so can be run against an inactive server (server not in listen mode).
Fastify
multicast-stream: Create a Multicast Stream Multiple Consumers Can Use Independently — We get two new libraries from Sindre this week. This one is a multicast stream that lets multiple consumers independently read the same data.
Sindre Sorhus
Path-to-RegExp 8.0 – Turn path strings (e.g. /user/:name
) into regular expressions.
Mongoose 8.6 – Popular MongoDB object modeling library.
LogTape 0.5 – No-dependency logging lib for Deno, Node, Bun & browsers.
Wasp 0.14.1 – Wasp is a Rails-like framework using Node, React & Prisma.
Discord.js 14.16 – Official library for interacting with Discord’s API.
NVM Desktop 3.4 – Desktop UI for Node Version Manager.
zx 8.1.5 – Google’s tool for better Node shell scripting.
hyperid 3.3 – Fast unique ID generation library.
Pino 9.4 – Fast JSON-oriented logger.
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
#546 — 2024 年 9 月 3 日
连同
[](https:// nodeweekly.com/link/159188/0a4070b383)
Prisma 5.19.0,现在带有“类型化 SQL” — [Prisma](https://nodeweekly.com/link/ 159190/0a4070b383)是 Node.js / TypeScript 世界中流行的声明式驱动的 ORM,其新版本使得在类型安全的方式。
尼古拉斯·伯克
Node v22.8.0(当前)已发布 — 这在我们点击“发送”之前落地! :-) 增强功能虽小,但还是有一些,包括用于启用模块磁盘代码缓存的新 API(而不是使用“NODE_COMPILE_CACHE”环境变量)以及设置代码覆盖率测量所需阈值的方法。
拉斐尔冈萨加
前端系统设计 — 在 Evgennii Ray 的这个内容丰富的视频课程中学习如何创建可扩展、高效的用户界面。探索盒模型、浏览器渲染、DOM 操作、状态管理、性能等等。
前端大师赞助商
使用 Atomics 在 Node.js 中进行多线程编程 — [工作线程](https://nodeweekly.com/link/159193/ 0a4070b383)使您能够编写多线程 Node 应用程序,但在它们之间共享资源很快就会变得很棘手。 原子可以帮助您避免一些痛苦。
帕维尔·罗曼诺夫
▶ 与 Ryan Dahl 谈论 Deno 2 — 与 Deno 创建者 Ryan Dahl (最初也是 Node 的创建者) 讨论即将推出的版本Deno 2.0、它的新功能以及它如何与 Next.js 等流行框架无缝集成。 Ryan 分享了对 Deno 创作背后的动机、其对简单性和安全性的重视的见解,并提出了他对不断发展的 JavaScript 生态系统的看法。
语法․fm
如何使用 OpenTofu 和 GitHub Actions 将 Node 部署到 AWS Lambda — Hacker News 上有人开玩笑说这就是部署 Node 的方法.js 应用程序企业风格。这涉及到很多工具,但这对许多开发人员来说都是现实,Meysam 逐步介绍了这些步骤。
梅萨姆·阿扎德
▶ 幕后花絮:VS Code 的制作 — 与工程团队的两位主要工程师的详细对话流行的 Electron 编辑器的作者。
Holland、Rieken 和 Pasero(微软)
为什么 Playwright 比 Selenium 更稳定 — “Playwright 速度如此之快,以至于它迫使你在第一天就正确编写 UI 测试。硒则不然。”
贾斯汀·西尔斯
Heroku Dynos 开发人员指南 — 您应该使用哪种 dynos,以及多少个? (TLDR:不要使用 Perf-M!)
柔道赞助商
📄 我如何为 JavaScript 服务创建 3.78MB Docker 镜像 – 然而,这是一种相当非正统的方法。神子龙
📄 Sentry 如何在其 JavaScript SDK 上使用变异测试 Lukas Stracke (Sentry)
📄 如何使用 App Router 处理 Node 的 Next.js 中的错误 Antonello Zanini
📄 Wasp 是 Django Web 开发的 JavaScript 答案吗? Sam Jakshtis (Wasp)
🛠 代码和工具
yocto-spinner: Tiny Terminal Spinner — 刚从单人模块巨头 Sindre Sorhus 推出了一个新项目:一个微小的、尽可能简单的终端旋转器/进度控制。 (“Yocto”是一个公制前缀,位于 nano、pico、femto、atto 甚至 zepto 之下..)
辛德·索尔胡斯
google-spreadsheet: Google Sheets API Wrapper for Node — 从 Node 处理 Google 的在线电子表格,无论是在单元格、行、工作表或文档级别。支持多种身份验证选项,您也可以导出工作表以供下载。 GitHub 存储库。
西奥·艾法莲
Light My Request: Fake HTTP Injection Library — 将伪造的 HTTP 请求/响应注入 Node HTTP 服务器,用于模拟服务器逻辑、编写测试,或调试。不使用套接字连接,因此可以针对非活动服务器(服务器不处于侦听模式)运行。
快速化
multicast-stream:创建多个消费者可以独立使用的多播流 — 本周我们从 Sindre 获得两个新库。这是一种多播流,可以让多个消费者独立读取相同的数据。
辛德·索尔胡斯
Path-to-RegExp 8.0 – 将路径字符串(例如“/user/:name”)转换为正则表达式。
Mongoose 8.6 – 流行的 MongoDB 对象建模库。
LogTape 0.5 – 用于 Deno、Node、Bun 和浏览器的无依赖性日志记录库。
Wasp 0.14.1 – Wasp 是一个使用 Node 的类似 Rails 的框架, React 和 Prisma。
Discord.js 14.16 – 用于与 Discord 的 API 交互的官方库。
NVM Desktop 3.4 – Node Version Manager 的桌面 UI。
zx 8.1.5 – Google 用于更好地编写 Node shell 脚本的工具。
hyperid 3.3 – 快速唯一 ID 生成库。
Pino 9.4 – 快速的面向 JSON 的记录器。
有我们的链接吗? 回复并告诉我们。我们无法包含所有内容,但我们会查看您发送的所有内容。 谢谢!
赞助: 发送电子邮件至“<kristina@cooperpress.com>”了解详细信息。
由库珀出版社有限公司出版
费尔菲尔德企业中心, 劳斯, LN11 0LS, 英国
发布者