Skip to content

Instantly share code, notes, and snippets.

View Himenon's full-sized avatar
😇
Working from home

K.Himeno Himenon

😇
Working from home
View GitHub Profile
@Himenon
Himenon / nodejs-v24.17.0-degrade.md
Created June 20, 2026 04:26
Node.js の2026年6月18日リリース(v24.17.0)のデグレ情報(Gemini調べ)

ここ1週間以内(2026年6月中旬)に作成された nodejs/node リポジトリのIssueを調査したところ、直近のリリースによって後方互換性が失われ、広く影響を及ぼしているAPIの回帰(リグレッション)の報告が2件見つかりました。証跡として以下のIssueを報告します。

1. http.Agent (Keep-Aliveソケット) の後方互換性喪失

最新のセキュリティリリース(v24.17.0等)において、HTTPリクエストのKeep-Alive時の挙動が変更されたことで、既存の主要なライブラリが壊れるという問題が報告されています。

  • Issue: #63989 http: node-fetch throws ERR_STREAM_PREMATURE_CLOSE on keep-alive socket closures after latest security releases
  • 起票日: 2026年6月19日
  • 影響を受けるバージョン: v24.17.0
  • 後方互換性が失われた証跡: Node.js v24.16.0までは正常に完了していたKeep-AliveによるHTTP通信が、v24.17.0にアップデートした途端に ERR_STREAM_PREMATURE_CLOSE(予期せぬストリームの切断)エラーで失敗するようになりました。原因はセキュリティパッチの http: fix response queue poisoning in http.Agent と推測されており、ソケット再利用のタイミングの挙動が変わったことで、node-fetch、gaxios、@google-cloud/storage などに依存するGoogle APIクライアントやFirebaseツールなどで広く通信エラーが発生しています。

'use server' / 'use client' とキャッシュの関係

Next.js のキャッシュは「サーバー側」と「クライアント側」の2層に分かれる。

ブラウザ('use client')
  └─ Router Cache
       ├─ 訪問済みページの RSC ペイロードをブラウザが保持する
       ├─ router.refresh() で破棄できる
 └─ revalidatePath / revalidateTag では破棄できない
@Himenon
Himenon / ghostty-config
Created December 25, 2025 00:46
PUBLIC: Ghostty config
# This is the configuration file for Ghostty.
#
# This template file has been automatically created at the following
# path since Ghostty couldn't find any existing config files on your system:
#
# /Users/kousei_himeno/Library/Application Support/com.mitchellh.ghostty/config
#
# The template does not set any default options, since Ghostty ships
# with sensible defaults for all options. Users should only need to set
# options that they want to change from the default.
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties":
{
"global":
{
"$ref": "#/definitions/global"
},
"profiles":
@Himenon
Himenon / @types-openapi-3.1.0.ts
Last active December 22, 2020 16:43
OpenAPI 3.1.0 type definition.
import { JSONSchema7 as JSONSchema } from "json-schema";
export type MapLike<K extends string, T> = {
[key in K]: T;
};
/**
* @see https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.1.0.md#serverVariableObject
*/
export interface ServerVariable {
const dataSet = [
{
title: "top",
uri: "/top",
description: "このwebサイトのTOPページ",
tags: ["website"],
},
{
title: "about",
uri: "/about",
@Himenon
Himenon / updateQueryStringParameter.ts
Created November 29, 2019 01:51
特定のqueryパラメーターを更新する関数
const updateQueryStringParameter = (key: string, value: string): void => {
const searchParams = new URLSearchParams(window.location.search);
const params = {};
searchParams.forEach((v, k) => {
params[k] = v;
});
if (value === "") {
delete params[key];
} else {
params[key] = value;
@Himenon
Himenon / clone-instance.ts
Created October 23, 2019 12:41
すでに生成されたインスタンスから、新しいインスタンスを生成するFunction
/**
* すでに生成されたインスタンスから、新しいインスタンスを生成する
* https://stackoverflow.com/questions/41474986/how-to-clone-a-javascript-es6-class-instance
* @param instance
*/
const cloneInstance = <T>(instance: T): T => Object.assign(Object.create(Object.getPrototypeOf(instance)), instance);
@Himenon
Himenon / github-action-event-json-types.d.ts
Created October 20, 2019 15:12
`event.json` of Github Action Interface.
declare module namespace {
export interface Comments {
href: string;
}
export interface Commits {
href: string;
}
{
"schemaVersion": 2,
"mediaType": "application/vnd.docker.distribution.manifest.v2+json",
"config": {
"mediaType": "application/vnd.docker.container.image.v1+json",
"size": 7753,
"digest": "sha256:451b716593e5f4b35826c8f869950135b925e74d0ed0a40b7c794b8a54ce9b39"
},
"layers": [
{