Skip to content

Snowbridge 5.2.0#1830

Open
Piotr Poniedziałek (pondzix) wants to merge 5 commits into
mainfrom
snowbridge_5.2.0
Open

Snowbridge 5.2.0#1830
Piotr Poniedziałek (pondzix) wants to merge 5 commits into
mainfrom
snowbridge_5.2.0

Conversation

@pondzix

Copy link
Copy Markdown
Contributor

What changed?

Snowbridge 5.2.0 features

Why?

Snowbridge 5.2.0 release

@claude

claude Bot commented Jun 16, 2026

Copy link
Copy Markdown

Documentation style review

I reviewed the diff against CLAUDE.md and the prose style guide. This PR is clean — no material issues to flag.

  • The new parseTimestamp() documentation follows the established pattern of the adjacent allUnstruct() entry exactly: a bullet definition followed by numbered examples in js code blocks.
  • Code formatting is correct throughout (Date, RangeError, collector_tstamp, layout), and "JavaScript" is correctly cased.
  • The link to Go reference time syntax is descriptively worded and doesn't lead with the link; the URL returns HTTP 200.
  • The componentVersions.js version bump is mechanical and fine.

Nice, well-structured addition. 🤖

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jun 16, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
documentation b004c21 Commit Preview URL

Branch Preview URL
Jun 17 2026, 01:07 PM

}
```

* `parseTimestamp(timestampStr, layout)` parses a timestamp string into a JavaScript `Date`. The `layout` argument is optional and defaults to `2006-01-02 15:04:05.999`, the format used by Snowplow enriched event timestamp fields such as `collector_tstamp`. To parse a different format, pass a `layout` using [Go reference time syntax](https://pkg.go.dev/time#pkg-constants), where each component of the reference time `Mon Jan 2 15:04:05 MST 2006` stands for that part of the timestamp. The function throws a `RangeError` if the input does not match the layout.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seeing 2006 is a bit weird but I can’t think of a better solution (other than 1234-05-06 12:34:56.999)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In go Mon Jan 2 15:04:05 MST 2006 (or 01/02 03:04:05PM '06 -0700) is the special reference time and you build your layout based on that.

Comment thread docs/destinations/forwarding-events/reference/index.md Outdated
Comment thread docs/destinations/forwarding-events/reference/index.md Outdated
Comment thread docs/destinations/forwarding-events/reference/index.md Outdated
Co-authored-by: Nick <nick.stanch@snowplowanalytics.com>
Co-authored-by: Nick <nick.stanch@snowplowanalytics.com>
Co-authored-by: Nick <nick.stanch@snowplowanalytics.com>
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