タグ

ブックマーク / nodejs.org (81)

  • Node.js — Node v20.15.0 (LTS)

    2024-06-20, Version 20.15.0 'Iron' (LTS), @marco-ippolito test_runner: support test plans It is now possible to count the number of assertions and subtests that are expected to run within a test. If the number of assertions and subtests that run does not match the expected count, the test will fail. test('top level test', t => { t.plan(2); t.assert.ok('some relevant assertion here'); t.subtest('su

    Node.js — Node v20.15.0 (LTS)
    Shisama
    Shisama 2024/06/21
    node:testのplan()がv20でも使えるようになったの良い
  • Node.js — Node v22.2.0 (Current)

    2024-05-15, Version 22.2.0 (Current), @targos Notable Changes [fb85d38e80] - (SEMVER-MINOR) cli: allow running wasm in limited vmem with --disable-wasm-trap-handler (Joyee Cheung) #52766 [23a0d3339f] - doc: add pimterry to collaborators (Tim Perry) #52874 [7d7a762156] - (SEMVER-MINOR) fs: allow 'withFileTypes' to be used with globs (Aviv Keller) #52837 [8748dd6477] - (SEMVER-MINOR) inspector: intr

    Node.js — Node v22.2.0 (Current)
    Shisama
    Shisama 2024/05/20
    globに早速withFileTypesが追加された。assertの実行回数を検査するnode:testのplan()も便利そう。
  • Node.js — Diving into the Node.js Website Redesign

    By now you've noticed nodejs.org's fresh new look! We've taken great care in approaching this design with a nod to the past and look to the future. The site has many converging use cases, thousands of pages, and is a daily resource to many. The whole story had some dead ends and detours. But in the end it was a collective effort; coming to life with the contributions of over three dozen contributo

    Node.js — Diving into the Node.js Website Redesign
    Shisama
    Shisama 2024/03/27
  • Node.js — Node.js 21 is now available!

    We're excited to announce the release of Node.js 21! Highlights include updates of the V8 JavaScript engine to 11.8, stable fetch and WebStreams, a new experimental flag to flip module defaults (--experimental-default-type), a built-in WebSocket client, many updates to our test runner, and more! Node.js 21 will replace Node.js 20 as our ‘Current’ release line when Node.js 20 enters long-term suppo

    Node.js — Node.js 21 is now available!
    Shisama
    Shisama 2023/10/18
    Node.js v21リリース。fetchとWebStreamsが安定版に昇格、experimentalとしてWebSocketが追加、V8(JSエンジン)がアップデートしArray groupingなど使用可能に、test実行時にglobでファイルを指定可能に、デフォルトのモジュールシステムの切替
  • Node v20.6.0 (Current) | Node.js

    Notable changes built-in .env file support Starting from Node.js v20.6.0, Node.js supports .env files for configuring environment variables. Your configuration file should follow the INI file format, with each line containing a key-value pair for an environment variable. To initialize your Node.js application with predefined configurations, use the following CLI command: node --env-file=config.env

    Node v20.6.0 (Current) | Node.js
    Shisama
    Shisama 2023/09/05
    おー👏“built-in .env file support”
  • Node.js — Node v20.4.0 (Current)

    Notable Changes Mock Timers The new feature allows developers to write more reliable and predictable tests for time-dependent functionality. It includes MockTimers with the ability to mock setTimeout, setInterval from globals, node:timers, and node:timers/promises. The feature provides a simple API to advance time, enable specific timers, and release all timers. import assert from 'node:assert'; i

    Node.js — Node v20.4.0 (Current)
    Shisama
    Shisama 2023/07/12
    Node.jsにsetTimeoutなどタイマー関数をモックする機能の追加。 タイマーのモックを有効にする関数、時間を進める関数、モックを解放する関数などが追加されている。リソース解放漏れを防ぐStage 3のusing構文もサポートされた
  • Node.js — Node v20.1.0 (Current)

    Notable Changes [5e99598639] - assert: deprecate CallTracker (Moshe Atlow) #47740 [2d97c89c6f] - crypto: update root certificates to NSS 3.89 (Node.js GitHub Bot) #47659 [ce8820e292] - (SEMVER-MINOR) dns: expose getDefaultResultOrder (btea) #46973 [9d30f469aa] - doc: add KhafraDev to collaborators (Matthew Aitken) #47510 [439ea47a77] - (SEMVER-MINOR) fs: add recursive option to readdir and opendir

    Node.js — Node v20.1.0 (Current)
    Shisama
    Shisama 2023/05/09
    fs.readdirやopendirにrecursiveオプションが追加された
  • Node.js — Node v20.0.0 (Current)

    Notable Changes Permission Model Node.js now has an experimental feature called the Permission Model. It allows developers to restrict access to specific resources during program execution, such as file system operations, child process spawning, and worker thread creation. The API exists behind a flag --experimental-permission which when enabled will restrict access to all available permissions. B

    Node.js — Node v20.0.0 (Current)
    Shisama
    Shisama 2023/04/19
    DenoみたいなPermission modelが入った。--allow-fs-readや--allow-fs-writeを付けないとファイルの読み書きができなくなるオプション。これにより意図していないファイルアクセスを防ぐことができる。まだ実験的な機能。
  • Node.js — Node v18.16.0 (LTS)

    Notable changes Add initial support for single executable applications Compile a JavaScript file into a single executable application: $ echo 'console.log(`Hello, ${process.argv[2]}!`);' > hello.js $ cp $(command -v node) hello # On systems other than macOS: $ npx postject hello NODE_JS_CODE hello.js \ --sentinel-fuse NODE_JS_FUSE_fce680ab2cc467b6e072b8b5df1996b2 # On macOS: $ npx postject hello N

    Node.js — Node v18.16.0 (LTS)
    Shisama
    Shisama 2023/04/13
    JavaScriptを実行可能な単一バイナリにコンパイルするSingle Executable Applicationの機能がLTSにも入った!
  • Node.js — Node v18.15.0 (LTS)

    Notable Changes [63563f8a7a] - doc,lib,src,test: rename --test-coverage (Colin Ihrig) #46017 [28a775b32f] - test_runner: add initial code coverage support (Colin Ihrig) #46017 [4d50db14b3] - (SEMVER-MINOR) test_runner: add reporters (Moshe Atlow) #45712 [643545ab79] - (SEMVER-MINOR) fs: add statfs() functions (Colin Ihrig) #46358 [110ead9abb] - (SEMVER-MINOR) vm: expose cachedDataRejected for vm.c

    Node.js — Node v18.15.0 (LTS)
    Shisama
    Shisama 2023/03/08
    Node.is 本体のテストランナーにカバレッジを取るオプション --test-coverage が追加された
  • Node.js — Node v18.13.0 (LTS)

    Notable changes Add support for externally shared js builtins By default Node.js is built so that all dependencies are bundled into the Node.js binary itself. Some Node.js distributions prefer to manage dependencies externally. There are existing build options that allow dependencies with native code to be externalized. This commit adds additional options so that dependencies with JavaScript code

    Node.js — Node v18.13.0 (LTS)
    Shisama
    Shisama 2023/01/17
    node:testにモック機能が追加されている!
  • Node.js — Node v18.11.0 (Current)

    Notable changes watch mode (experimental) Running in 'watch' mode using node --watch restarts the process when an imported file is changed. Contributed by Moshe Atlow in #44366 Other notable changes fs: (SEMVER-MINOR) add FileHandle.prototype.readLines (Antoine du Hamel) #42590 http: (SEMVER-MINOR) add writeEarlyHints function to ServerResponse (Wing) #44180 http2: (SEMVER-MINOR) make early hints

    Node.js — Node v18.11.0 (Current)
    Shisama
    Shisama 2022/10/19
    Node.js 18.11.0リリース。エントリーポイントやimportしているモジュールのコードに変更があると自動でプロセスを再起動する watch モードを追加。--watch フラグや --watch-path フラグを付けて起動する。
  • Node.js — Bringing forward the End-of-Life Date for Node.js 16

    Changing the End-of-Life Date for Node.js 16 to September 11th, 2023 Summary We are moving the End-of-Life date of Node.js 16 by seven months to coincide with the end of support of OpenSSL 1.1.1 on September 11th, 2023. Why? When we put together Node.js 16 the hope was that we would be able to include OpenSSL 3. Unfortunately, the timing of the releases did not allow that to be possible, and we re

    Node.js — Bringing forward the End-of-Life Date for Node.js 16
    Shisama
    Shisama 2022/06/12
    Node.js v16のEOLの日付がOpenSSL 1.11のサポート終了にあわせて2024年4月から2023年9月11日に変更
  • Node.js — Node v18.1.0 (Current)

    Notable Changes [c46e7bbf69] - doc: add @kuriyosh to collaborators (Yoshiki Kurihara) #42824 [b0f7c4c8f9] - (SEMVER-MINOR) lib,src: implement WebAssembly Web API (Tobias Nießen) #42701 [78a860ae58] - (SEMVER-MINOR) test_runner: add initial CLI runner (Colin Ihrig) #42658 [bf9240ae8c] - (SEMVER-MINOR) worker: add hasRef() to MessagePort (Darshan Sen) #42849 Commits [4694f5bb96] - async_hooks: avoid

    Node.js — Node v18.1.0 (Current)
    Shisama
    Shisama 2022/05/04
    node --testを実行するとカレントディレクトリ内のテストファイルを探索して実行してくれるようになる。testという名前のディレクトリや`test`や`test-*`、`.test`などが名前に付いているファイルを対象にするっぽい
  • Node.js — Node v16.15.0 (LTS)

    Shisama
    Shisama 2022/04/28
    Node.js v16.x にも fetch() が入ったけど、v18と違って --experimental-fetch フラグが必要
  • Node.js — Node.js 18 is now available!

    We’re excited to announce that Node.js 18 was released today! Highlights include the update of the V8 JavaScript engine to 10.1, global fetch enabled by default, and a core test runner module. Initially, Node.js 18 will replace Node.js 17 as our ‘Current’ release line. As per the release schedule, Node.js 18 will be the 'Current' release for the next 6 months and then promoted to Long-term Support

    Node.js — Node.js 18 is now available!
    Shisama
    Shisama 2022/04/20
    Node.js v18 リリース。fetch()や Web Streams API、Blob、BroadcastChannel といったブラウザ互換のAPIの拡充。テストランナー node:test の追加。V8 10.1へのアップデートによるfindLast()などのJS APIの追加。などなど
  • Node.js — Node v17.8.0 (Current)

    Notable Changes [3bd0078457] - doc: add @ShogunPanda to collaborators (Shogun) #42362 [23354673be] - doc: deprecate string coercion in fs.write, fs.writeFileSync (Livia Medeiros) #42149 [da42ffb85e] - (SEMVER-MINOR) http: trace http client by perf_hooks (theanarkh) #42345 [84fd6e54b0] - deps: upgrade npm to 8.5.5 (npm team) #42382 [b60262ee9f] - deps: update undici to 4.15.1 (Michaël Zasso) #42246

    Node.js — Node v17.8.0 (Current)
    Shisama
    Shisama 2022/03/23
    perf_hooksでHTTPのRTTの計測ができるようになった
  • Node.js — Node v17.6.0 (Current)

    Notable Changes [6b88595142] - doc: deprecate notice for process methods (Yash Ladha) #41587 [77462b6083] - stream: revert map spec compliance (Benjamin Gruenbaum) #41931 [b968d89fc9] - build: remove broken x32 arch support (Ben Noordhuis) #41905 [ba639d052b] - (SEMVER-MINOR) esm: support https remotely and http locally under flag (Bradley Farias) #36328 [214d17650b] - (SEMVER-MINOR) fs: support c

    Node.js — Node v17.6.0 (Current)
    Shisama
    Shisama 2022/02/27
    HTTPS Imports がNode.js本体に入った! import { xxx } from 'https://foo.example/xxx.js'; のようにリモート上のESMのモジュールをロードできるようになる。まだ`--experimental-network-imports`フラグが必要。HTTPはループバックアドレスに限定され
  • Node.js — Node v17.5.0 (Current)

    Notable Changes Add fetch API Adds experimental support to the fetch API. This adds a --experimental-fetch flag that installs the fetch, Request, Response and Headers globals. [76a229c4ff] - (SEMVER-MINOR) lib: add fetch (Michaël Zasso) #41749 Add stream methods [1ae648567a] - (SEMVER-MINOR) stream: add iterator helper find (linkgoron) #41849 [62e1a68077] - (SEMVER-MINOR) stream: add toArray (Benj

    Node.js — Node v17.5.0 (Current)
    Shisama
    Shisama 2022/02/14
    fetch() が実装されたはじめての Node.js がリリースされた!JSON module がフラグなしで使えるように、stream に iterator helpers のメソッドがいくつか実装された
  • Node.js — Node v14.19.0 (LTS)

    Notable Changes Corepack Node.js now includes Corepack, a script that acts as a bridge between Node.js projects and the package managers they are intended to be used with during development. In practical terms, Corepack will let you use Yarn and pnpm without having to install them - just like what currently happens with npm, which is shipped in Node.js by default. Please head over to the Corepack

    Node.js — Node v14.19.0 (LTS)
    Shisama
    Shisama 2022/02/03
    パッケージマネージャー管理ツールであるCorepackがNode.js 14系にも入った