René's URL Explorer Experiment


Title: fix(landing): avoid unpolyfilled ES2023 array methods (toSorted/toReversed) in client code by waleedlatif1 · Pull Request #5340 · simstudioai/sim · GitHub

Open Graph Title: fix(landing): avoid unpolyfilled ES2023 array methods (toSorted/toReversed) in client code by waleedlatif1 · Pull Request #5340 · simstudioai/sim

X Title: fix(landing): avoid unpolyfilled ES2023 array methods (toSorted/toReversed) in client code by waleedlatif1 · Pull Request #5340 · simstudioai/sim

Description: Summary Array.prototype.toSorted/toReversed (ES2023) require Safari 16+ / iOS 16+ and Next.js/SWC does not polyfill prototype methods (vercel/next.js#58421 was closed unmerged per maintainer policy). So the react-doctor pass in #5326 introduced a runtime TypeError: … toSorted is not a function on Safari 15 / iOS 15 — breaking sorting on the models page and the landing preview (logs/resource) plus the lifecycle monitor icon. Reverts the 6 call sites to [...arr].sort() / [...arr].reverse() — immutable (copies first), universally supported, and matching the existing codebase idiom (8 other [...x].sort() sites). Drops the "lib": ["ES2023", …] override in apps/sim/tsconfig.json that only existed to type-check toSorted; back on the inherited ES2022 lib, these methods no longer type-check, restoring the guardrail against re-introduction. Swept the entire repo (apps + packages): these were the only toSorted/toReversed/toSpliced usages — the issue exists nowhere else. Type of Change Bug fix Testing tsc --noEmit clean on the ES2022 baseline (0 errors), biome check clean, bun run lint clean. Verified no remaining ES2023 array-method usages repo-wide. Browser support + Next.js no-polyfill behavior validated against caniuse and the Next.js issue/PR threads. Checklist Code follows project style guidelines Self-reviewed my changes Tests added/updated and passing No new warnings introduced I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

Open Graph Description: Summary Array.prototype.toSorted/toReversed (ES2023) require Safari 16+ / iOS 16+ and Next.js/SWC does not polyfill prototype methods (vercel/next.js#58421 was closed unmerged per maintainer polic...

X Description: Summary Array.prototype.toSorted/toReversed (ES2023) require Safari 16+ / iOS 16+ and Next.js/SWC does not polyfill prototype methods (vercel/next.js#58421 was closed unmerged per maintainer polic...

Opengraph URL: https://github.com/simstudioai/sim/pull/5340

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:8ff54554-de51-2e8a-876c-f1ecd8da619c
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idDF0C:3FE8F2:D4CD1:12A4BC:6AFB466E
html-safe-nonce6ec8508791b1fb7edf5e94ceecdca36e80b3e777ed847d7626bcce7afc30a6f3
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERjBDOjNGRThGMjpENENEMToxMkE0QkM6NkFGQjQ2NkUiLCJ2aXNpdG9yX2lkIjoiNDE1NDY4NzYxODU5MzUzOTY5NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac9b766e0ac118058d9523b477bb728c8f789a4adf997f8a56c11568dfa1edba5d
hovercard-subject-tagpull_request:3974435295
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/simstudioai/sim/pull/5340/files
twitter:imagehttps://avatars.githubusercontent.com/u/40672544?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/40672544?s=400&v=4
og:image:altSummary Array.prototype.toSorted/toReversed (ES2023) require Safari 16+ / iOS 16+ and Next.js/SWC does not polyfill prototype methods (vercel/next.js#58421 was closed unmerged per maintainer polic...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noned849b928f455c800985398e7f1b659425adb312a5fa14fba5d9a14e62e9fe5dd
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/simstudioai/sim git https://github.com/simstudioai/sim.git
octolytics-dimension-user_id199344406
octolytics-dimension-user_loginsimstudioai
octolytics-dimension-repository_id912559512
octolytics-dimension-repository_nwosimstudioai/sim
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id912559512
octolytics-dimension-repository_network_root_nwosimstudioai/sim
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasea6c2f87cbcb6414452377b4967858ed6a66f1109
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/simstudioai/sim/pull/5340/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F5340%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F5340%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=simstudioai%2Fsim
Reloadhttps://github.com/simstudioai/sim/pull/5340/files
Reloadhttps://github.com/simstudioai/sim/pull/5340/files
Reloadhttps://github.com/simstudioai/sim/pull/5340/files
simstudioaihttps://github.com/simstudioai
simhttps://github.com/simstudioai/sim
Codehttps://github.com/simstudioai/sim
Issues129 (129)https://github.com/simstudioai/sim/issues
Pull requests199 (199)https://github.com/simstudioai/sim/pulls
Actionshttps://github.com/simstudioai/sim/actions
Projectshttps://github.com/simstudioai/sim/projects
Security and qualityhttps://github.com/simstudioai/sim/security
Insightshttps://github.com/simstudioai/sim/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fsimstudioai%2Fsim%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fsimstudioai%2Fsim%2Fissues%2Fnew%2Fchoose
waleedlatif1https://github.com/waleedlatif1
staginghttps://github.com/simstudioai/sim/tree/staging
fix-client-tosortedhttps://github.com/simstudioai/sim/tree/fix-client-tosorted
Conversation 3 https://github.com/simstudioai/sim/pull/5340
Commits 1 https://github.com/simstudioai/sim/pull/5340/commits
Checks 16 https://github.com/simstudioai/sim/pull/5340/checks
Files changed https://github.com/simstudioai/sim/pull/5340/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/5340/files
fix(landing): avoid unpolyfilled ES2023 array methods (toSorted/toReversed) in client code https://github.com/simstudioai/sim/pull/5340/files#top
Show all changes 1 commit https://github.com/simstudioai/sim/pull/5340/files
6677cb6 fix(landing): avoid unpolyfilled ES2023 array methods in client code waleedlatif1 Jul 1, 2026 https://github.com/simstudioai/sim/pull/5340/commits/6677cb6d294caaf6e204f0f10d9ce0018e9d4acf
Clear filters https://github.com/simstudioai/sim/pull/5340/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/5340/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/5340/files
landing-preview-logs.tsx https://github.com/simstudioai/sim/pull/5340/files#diff-5af441e530031114545a5bc40da64a481a17cd64b112aab23dbf70c52a3f5b23
landing-preview-resource.tsx https://github.com/simstudioai/sim/pull/5340/files#diff-407f854044a552b2eae77e488a8943078d0838c62287363f4f05b09e071c0b82
lifecycle-icons.tsx https://github.com/simstudioai/sim/pull/5340/files#diff-9e073e1b8b4a1ae5568bdffec0bbbcdffe202077551e52b9810dfe6b879030ef
page.tsx https://github.com/simstudioai/sim/pull/5340/files#diff-2631898a38db6ff414689fd75ce1040b400a0ad2d4f8abe0a5801cf432dc701a
model-comparison-charts.tsx https://github.com/simstudioai/sim/pull/5340/files#diff-5ddbf29996338dda679cd36880a9aaece49c95a865b79620dd0eae4d7fbf6ddd
utils.ts https://github.com/simstudioai/sim/pull/5340/files#diff-692b75aecafdf9301c14d7fa9d9d347fbc0700efb26d8b9f9e7479c1ca0e2c20
tsconfig.json https://github.com/simstudioai/sim/pull/5340/files#diff-65b35f420500f7effb2ef20ef00f527d9b4f06e0babe2fb1c270426a90ad6eee
...ding)/components/landing-preview/components/landing-preview-logs/landing-preview-logs.tsxhttps://github.com/simstudioai/sim/pull/5340/files#diff-5af441e530031114545a5bc40da64a481a17cd64b112aab23dbf70c52a3f5b23
View file https://github.com/simstudioai/sim/blob/6677cb6d294caaf6e204f0f10d9ce0018e9d4acf/apps/sim/app/(landing)/components/landing-preview/components/landing-preview-logs/landing-preview-logs.tsx
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/5340/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/5340/files#diff-5af441e530031114545a5bc40da64a481a17cd64b112aab23dbf70c52a3f5b23
https://github.com/simstudioai/sim/pull/5340/files#diff-5af441e530031114545a5bc40da64a481a17cd64b112aab23dbf70c52a3f5b23
...mponents/landing-preview/components/landing-preview-resource/landing-preview-resource.tsxhttps://github.com/simstudioai/sim/pull/5340/files#diff-407f854044a552b2eae77e488a8943078d0838c62287363f4f05b09e071c0b82
View file https://github.com/simstudioai/sim/blob/6677cb6d294caaf6e204f0f10d9ce0018e9d4acf/apps/sim/app/(landing)/components/landing-preview/components/landing-preview-resource/landing-preview-resource.tsx
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/5340/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/5340/files#diff-407f854044a552b2eae77e488a8943078d0838c62287363f4f05b09e071c0b82
https://github.com/simstudioai/sim/pull/5340/files#diff-407f854044a552b2eae77e488a8943078d0838c62287363f4f05b09e071c0b82
apps/sim/app/(landing)/components/lifecycle/components/lifecycle-icons/lifecycle-icons.tsxhttps://github.com/simstudioai/sim/pull/5340/files#diff-9e073e1b8b4a1ae5568bdffec0bbbcdffe202077551e52b9810dfe6b879030ef
View file https://github.com/simstudioai/sim/blob/6677cb6d294caaf6e204f0f10d9ce0018e9d4acf/apps/sim/app/(landing)/components/lifecycle/components/lifecycle-icons/lifecycle-icons.tsx
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/5340/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/5340/files#diff-9e073e1b8b4a1ae5568bdffec0bbbcdffe202077551e52b9810dfe6b879030ef
https://github.com/simstudioai/sim/pull/5340/files#diff-9e073e1b8b4a1ae5568bdffec0bbbcdffe202077551e52b9810dfe6b879030ef
apps/sim/app/(landing)/integrations/(shell)/[slug]/page.tsxhttps://github.com/simstudioai/sim/pull/5340/files#diff-2631898a38db6ff414689fd75ce1040b400a0ad2d4f8abe0a5801cf432dc701a
View file https://github.com/simstudioai/sim/blob/6677cb6d294caaf6e204f0f10d9ce0018e9d4acf/apps/sim/app/(landing)/integrations/(shell)/%5Bslug%5D/page.tsx
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/5340/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/5340/files#diff-2631898a38db6ff414689fd75ce1040b400a0ad2d4f8abe0a5801cf432dc701a
https://github.com/simstudioai/sim/pull/5340/files#diff-2631898a38db6ff414689fd75ce1040b400a0ad2d4f8abe0a5801cf432dc701a
apps/sim/app/(landing)/models/components/model-comparison-charts.tsxhttps://github.com/simstudioai/sim/pull/5340/files#diff-5ddbf29996338dda679cd36880a9aaece49c95a865b79620dd0eae4d7fbf6ddd
View file https://github.com/simstudioai/sim/blob/6677cb6d294caaf6e204f0f10d9ce0018e9d4acf/apps/sim/app/(landing)/models/components/model-comparison-charts.tsx
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/5340/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/5340/files#diff-5ddbf29996338dda679cd36880a9aaece49c95a865b79620dd0eae4d7fbf6ddd
https://github.com/simstudioai/sim/pull/5340/files#diff-5ddbf29996338dda679cd36880a9aaece49c95a865b79620dd0eae4d7fbf6ddd
apps/sim/app/(landing)/models/utils.tshttps://github.com/simstudioai/sim/pull/5340/files#diff-692b75aecafdf9301c14d7fa9d9d347fbc0700efb26d8b9f9e7479c1ca0e2c20
View file https://github.com/simstudioai/sim/blob/6677cb6d294caaf6e204f0f10d9ce0018e9d4acf/apps/sim/app/(landing)/models/utils.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/5340/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/5340/files#diff-692b75aecafdf9301c14d7fa9d9d347fbc0700efb26d8b9f9e7479c1ca0e2c20
https://github.com/simstudioai/sim/pull/5340/files#diff-692b75aecafdf9301c14d7fa9d9d347fbc0700efb26d8b9f9e7479c1ca0e2c20
apps/sim/tsconfig.jsonhttps://github.com/simstudioai/sim/pull/5340/files#diff-65b35f420500f7effb2ef20ef00f527d9b4f06e0babe2fb1c270426a90ad6eee
View file https://github.com/simstudioai/sim/blob/6677cb6d294caaf6e204f0f10d9ce0018e9d4acf/apps/sim/tsconfig.json
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/5340/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/5340/files#diff-65b35f420500f7effb2ef20ef00f527d9b4f06e0babe2fb1c270426a90ad6eee
https://github.com/simstudioai/sim/pull/5340/files#diff-65b35f420500f7effb2ef20ef00f527d9b4f06e0babe2fb1c270426a90ad6eee
Please reload this pagehttps://github.com/simstudioai/sim/pull/5340/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.