supabase / postgrest-js

Isomorphic JavaScript client for PostgREST.
https://supabase.com
MIT License
967 stars 130 forks source link

Target ES2017 in tsconfig #391

Closed mqp closed 1 year ago

mqp commented 1 year ago

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

github-actions[bot] commented 1 year ago

:tada: This PR is included in version 1.3.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: