Skip to content

[TS] Model Date construction and calendar operations - #444

Merged
CaelmBleidd merged 10 commits into
mainfrom
caelmbleidd/stdlib-date-pr391
Oct 13, 2026
Merged

CaelmBleidd merged 10 commits into
mainfrom
caelmbleidd/stdlib-date-pr391

Conversation

@CaelmBleidd

@CaelmBleidd CaelmBleidd commented Oct 2, 2026 •

Copy link
Copy Markdown
Member

Date builtin models execute bundled TypeScript algorithms for numeric constructors, UTC/getters/setters and valueOf. Clock-dependent calls require an explicit fixed clock. Runtime builtin identity preserves project Date shadowing, and timestamp storage is isolated from user properties.

Independent branch against main; carries the small shared model-adapter/dependency API. Required missing or explicit undefined arguments produce NaN; omitted optional setter arguments keep their defaults. Guarded dynamic primitive arguments are supported. Copy construction reads the private timestamp and creates an independent Date.

Validation: 50 focused Date source/artifact, catalog, model execution and SDK identity tests passed. detektMain and detektTest passed on the published head. Fresh GitHub CI remains the broader validation gate.

Review focus: required versus optional argument handling, guarded fake values, timestamp copying and builtin identity. Local-time methods intentionally use UTC; DST, string parsing and arbitrary object coercion remain unsupported.

Rebased onto main 1d2abda while preserving runtime field typing and native typed-array declarations together with private Date timestamp storage. On final 117a4a0, 57 Date, artifact, model-dispatch, runtime-boundary and super-constructor tests passed without skips; Detekt main/test passed. Full CI run 38378469844 passed on this exact head.

@CaelmBleidd CaelmBleidd changed the title [4/12] Model Date calls and calendar arithmetic [TS] Model Date construction and calendar operations Oct 2, 2026
@CaelmBleidd
CaelmBleidd marked this pull request as ready for review October 2, 2026 16:13
@CaelmBleidd
CaelmBleidd force-pushed the caelmbleidd/stdlib-date-pr391 branch from c689890 to 46cbcd9 Compare October 2, 2026 16:45
@CaelmBleidd
CaelmBleidd force-pushed the caelmbleidd/stdlib-sequences-pr391 branch 2 times, most recently from 004570f to a928cc6 Compare October 7, 2026 23:02
@CaelmBleidd
CaelmBleidd force-pushed the caelmbleidd/stdlib-date-pr391 branch from 46cbcd9 to 9e2c2b2 Compare October 7, 2026 23:02
@CaelmBleidd
CaelmBleidd force-pushed the caelmbleidd/stdlib-sequences-pr391 branch from a928cc6 to 7903bbd Compare October 11, 2026 06:51
@CaelmBleidd
CaelmBleidd force-pushed the caelmbleidd/stdlib-date-pr391 branch from 9e2c2b2 to 6c274ff Compare October 11, 2026 06:51
@CaelmBleidd
CaelmBleidd force-pushed the caelmbleidd/stdlib-sequences-pr391 branch from 7903bbd to 625f41f Compare October 12, 2026 13:26
@CaelmBleidd
CaelmBleidd force-pushed the caelmbleidd/stdlib-date-pr391 branch from 6c274ff to 3dcce10 Compare October 12, 2026 13:26
@CaelmBleidd
CaelmBleidd force-pushed the caelmbleidd/stdlib-sequences-pr391 branch from 8c95ba9 to ff86b66 Compare October 12, 2026 16:47
@CaelmBleidd
CaelmBleidd force-pushed the caelmbleidd/stdlib-date-pr391 branch from 3dcce10 to 687d967 Compare October 12, 2026 17:16
@CaelmBleidd
CaelmBleidd changed the base branch from caelmbleidd/stdlib-sequences-pr391 to main October 12, 2026 17:17
@CaelmBleidd
CaelmBleidd force-pushed the caelmbleidd/stdlib-date-pr391 branch from d6be607 to 117a4a0 Compare October 13, 2026 09:44
@CaelmBleidd
CaelmBleidd force-pushed the caelmbleidd/stdlib-date-pr391 branch from 117a4a0 to 7d730cd Compare October 13, 2026 19:17
@CaelmBleidd
CaelmBleidd merged commit 9e294b9 into main Oct 13, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant