Skip to content
This repository was archived by the owner on Aug 30, 2026. It is now read-only.

feat: add timezone utilities for Workers - #1

Closed
rdlabo wants to merge 1 commit into
mainfrom
feat/initial-workers-timezone
Closed

feat: add timezone utilities for Workers#1
rdlabo wants to merge 1 commit into
mainfrom
feat/initial-workers-timezone

Conversation

@rdlabo

@rdlabo rdlabo commented Aug 30, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add an unpublished @rdlabo/workers-timezone package with a module-instance default timezone.
  • Support IANA zones, DST gaps and overlaps, unusual offsets, local-date conversion, day boundaries, and calendar arithmetic.
  • Preserve the existing workers-hono-kit/business-time API names and Asia/Tokyo default for migration compatibility.
  • Add Node 20/22 CI and a packed-tarball runtime/type consumer smoke test.

Safety

  • private: true prevents npm publication at this stage.
  • No npm publish or release workflow is included.

Validation

  • npm run format:check
  • npm run typecheck
  • npm test (10 tests)
  • npm run build
  • npm run test:package

Review loop

  • Upper-management review: passed after fixing compatibility, date validation, year 0099, and output-range issues.
  • Independent acceptance review: passed after tarball consumer, world-timezone, DST, and invalid-input verification.

Follow-up before npm publication

  • Make this package the canonical implementation.
  • Change @rdlabo/workers-hono-kit/business-time to a deprecated re-export and remove duplicate logic.

@rdlabo

rdlabo commented Aug 30, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by the monorepo implementation in rdlabo-dev/workers-hono-kit#43.

@rdlabo rdlabo closed this Aug 30, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant