Skip to content

fix: Safari 26.4 timeline export support#551

Merged
jlfwong merged 1 commit into
jlfwong:mainfrom
agurtovoy:main
May 15, 2026
Merged

fix: Safari 26.4 timeline export support#551
jlfwong merged 1 commit into
jlfwong:mainfrom
agurtovoy:main

Conversation

@agurtovoy
Copy link
Copy Markdown
Contributor

@agurtovoy agurtovoy commented May 13, 2026

First of all, thanks for the great tool, super helpful!

At some point Safari changed its export format without bumping up the version. This PR adds support for Safari 26.4 timeline export while remaining backward compatible with the older format.

Comment thread src/import/safari.ts
sampleDurations: number[]
}
| {
samples: Sample[]
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.

The new format moves sampleStackTraces and sampleDurations into the samples array (e.g. samples: [{ stackTraces: [], durations: []}])

@agurtovoy
Copy link
Copy Markdown
Contributor Author

Quick demo showing that this doesn't break support for the old format:

Kapture.2026-05-13.at.16.51.58.mp4

@jlfwong
Copy link
Copy Markdown
Owner

jlfwong commented May 14, 2026

Hi @agurtovoy! Thanks for the patch. Can you please add a snapshot test that imports the newly added sample/profiles/Safari/26.4/simple.html-recording.json?

@agurtovoy
Copy link
Copy Markdown
Contributor Author

@jlfwong Done!

@coveralls
Copy link
Copy Markdown

Coverage Status

coverage: 43.805% (+0.07%) from 43.737% — agurtovoy:main into jlfwong:main

@jlfwong jlfwong merged commit fe804e6 into jlfwong:main May 15, 2026
8 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.

3 participants