Skip to content

refactor: land the remaining pieces of #646 - #669

Open
shiva wants to merge 5 commits into
cloudevents:mainfrom
shiva:chore/646-remaining
Open

shiva wants to merge 5 commits into
cloudevents:mainfrom
shiva:chore/646-remaining

Conversation

@shiva

@shiva shiva commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

Last of the changes from #646

Everything else in that PR is already on main: the dependency and typing fixes via #661, the extension header fix via #666.

Closes #646

kings1ay3r and others added 5 commits November 6, 2026 14:13
Date.parse returns NaN for an unparseable string, so test that directly
and return the current time, instead of building a Date and comparing
its string form to "Invalid Date". No behavior change. The NaN check
is the form blackakula suggested in the review of cloudevents#646.

A comment marks the fallback to the current time as deprecated: the
spec requires RFC 3339, and v11 will throw a ValidationError instead.

Split from cloudevents#646.

Signed-off-by: Kevin Mathew Sunny <tokevins@protonmail.com>
new Date(undefined).toISOString() throws a RangeError, so a scenario
without a time attribute crashed the step instead of failing the
assertion. Compare ISO strings only when both sides have a time, and
compare the raw values otherwise.

Split from cloudevents#646.

Signed-off-by: Kevin Mathew Sunny <tokevins@protonmail.com>
Split from cloudevents#646.

Signed-off-by: Kevin Mathew Sunny <tokevins@protonmail.com>
Release-As: 10.1.0
Signed-off-by: Shiva <shiv@shiv.me>

This branch has not been deployed

No deployments
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.

2 participants