contentful / contentful-resolve-response

Resolve items & includes of a Contentful API response into a proper object graph

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

v1.8.0 Browser Compatibility

aaronhargrove-grub opened this issue · comments

Hello - the 1.8.0 release uses the regex /.*:spaces\/(?<spaceId>[^/]+)(?:\/environments\/(?<environmentId>[^/]+))?\/entries\/(?<entityId>[^/]+)$/ which has named capture groups. These are only compatible with browsers that support ES2018 and up. Was wondering if the browser support change was intentional? If not would it be possible to remove the group names since they aren't being used currently? The matching code is just using string.match. Thanks!

Hi, thanks for reporting. The issue is fixed in version 1.8.1.