square / square/web-sdk

Mention browsers supported or add optional chaining support for old browsers

Open
#169 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
TypeScript
Stars
21
Forks
14
PR merge metrics
No merged PRs in 30d

Description

Is your feature request related to a problem? Please describe.

Hello Square Team, recently a customer raised an issue with us saying that Square payments is breaking on his mobile device that runs Safari 12.1.2.

I was able to reproduce the issue via Browserstack

From what I can see, it looks like Safari 12.1.2 does not support optional chaining in JS. See the image below:

Screenshot 2023-05-22 at 7 17 13 PM

Describe the solution you'd like

Add support for optional chaining or specify minimum browser versions supported. This will help us to inform customers to update their systems.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no files or tests. Start by reviewing the SDK's browser support and TypeScript build configuration, then reproduce the failure on Safari 12.1.2; done means either compatibility is restored or the minimum supported browser versions are clearly documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, typescript
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.