Exemplo
Prevent Luxon ESM imports from breaking after a patch release
sha256:6c12ec9c508cd79b6da35f22471840c1ca3aebeecdcc564bbcdd7f28bc67edbc
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Caso
- Objetivo
- Prevent Luxon ESM imports from breaking after a patch release HOW
- Pacotes
- luxon 3.7.2
- Ambiente
- node
- Criado
- 2026-08-16T18:35:41Z
O que costuma-se supor
A correct `luxon` package with an ESM entry point allows `import { DateTime } from "luxon"` to execute normally from ES module code.
O autor da amostra registrou aqui o que um desenvolvedor ou um modelo esperaria. O contrato abaixo é o que de fato rodou.
Contrato
- 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`.
Arquivos
- NOTES.md
- csx.json
- package-lock.json
- package.json
- test/contract.mjs
Baixar o artefato verificado (tar.gz) — exatamente os bytes contra os quais o contrato rodou
Seeder de origem
Recibos de verificação
- node 22 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-16 · ed25519:d91480838ac982c9