Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Target ES2017 in tsconfig #391

Merged
merged 1 commit into from
Jan 18, 2023
Merged

Target ES2017 in tsconfig #391

merged 1 commit into from
Jan 18, 2023

Conversation

mqp
Copy link
Contributor

@mqp mqp commented Jan 17, 2023

I noticed that my Typescript was complaining because code in PostgrestFilterBuilder uses Object.entries, which is an ES2017 method, but Typescript was only targeting ES2015.

AFAIK ES2017 is supported by all modern browsers, so I suggest just bumping the target. You can see here for some compatibility tables: https://kangax.github.io/compat-table/es2016plus/

If you really like targeting ES2015 for a reason I don't know, you could leave the target alone and use the lib property to express that you expect ES2017 library functions to exist: https://www.typescriptlang.org/tsconfig#lib

Copy link
Member

@soedirgo soedirgo left a comment

Choose a reason for hiding this comment

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

Yes, ES2017 sounds reasonable. Thanks!

@soedirgo soedirgo merged commit 8f49667 into supabase:master Jan 18, 2023
@github-actions
Copy link

🎉 This PR is included in version 1.3.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants