サンプル
Prevent Luxon ESM imports from breaking after a patch release
sha256:6c12ec9c508cd79b6da35f22471840c1ca3aebeecdcc564bbcdd7f28bc67edbc
PUBLISHED
L3_CONTRACT_PASS
MIT-0
ケース
- ゴール
- Prevent Luxon ESM imports from breaking after a patch release HOW
- パッケージ
- luxon 3.7.2
- 環境
- node
- 作成日
- 2026-08-16T18:35:41Z
よくある思い込み
A correct `luxon` package with an ESM entry point allows `import { DateTime } from "luxon"` to execute normally from ES module code.
このサンプルの作者が、ここで開発者やモデルが期待するであろうこととして記録したもの。下の契約が実際に実行されたものだ。
コントラクト
- Importing `luxon` through a named ESM import from `node_modules` returns a usable `DateTime` export.
- `DateTime.fromISO("2025-07-09T00:00:00.000Z").toISO()` returns exactly `2025-07-09T00:00:00.000Z`.
ファイル
- NOTES.md
- csx.json
- package-lock.json
- package.json
- test/contract.mjs
検証済みアーティファクトをダウンロード (tar.gz) — 契約が実行された正確なバイト列
オリジンシーダー
検証レシート
- node 22 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-16 · ed25519:d91480838ac982c9