Skip to content

Ensure stable browser compatibility#44

Merged
kytta merged 4 commits intomasterfrom
fix/browser-compatibility
Sep 29, 2020
Merged

Ensure stable browser compatibility#44
kytta merged 4 commits intomasterfrom
fix/browser-compatibility

Conversation

@kytta
Copy link
Owner

@kytta kytta commented Sep 29, 2020

Surprisingly, there is no tool at the moment that would either a) provide lightweight polyfills for missing functions; or b) alert developers when they use unsupported features. https://github.com/amilajack/eslint-plugin-compat is alright, but isn't bug-free at the moment.

This PR contains lots of manual fixes to ensure great browser compatibility. The code was tested on BrowserStack to make sure that all browsers, defined by the cover 96% Browserslist query, support it. Basically it runs on every modern Chrome, FF, Safari and Opera version as well as IE up to version 9. Thus, this issue closes #43.

Also extract Window and Navigator redefinitions to global.d.ts
@kytta kytta added the enhancement New feature or request label Sep 29, 2020
@kytta kytta added this to the 1.2.0 milestone Sep 29, 2020
@kytta kytta self-assigned this Sep 29, 2020
@qlty-cloud-legacy
Copy link

qlty-cloud-legacy bot commented Sep 29, 2020

Code Climate has analyzed commit 07ff58f and detected 1 issue on this pull request.

Here's the issue category breakdown:

Category Count
Complexity 1

View more on Code Climate.

@github-actions
Copy link

github-actions bot commented Sep 29, 2020

size-limit report

Path Size
./dist/vavilon.min.js 939 B (+1.28% 🔺)

@kytta kytta merged commit 6fac831 into master Sep 29, 2020
@kytta kytta deleted the fix/browser-compatibility branch September 29, 2020 23:16
This was referenced Sep 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Compiled code includes non-ES5 (and definitely non-ES3) code

1 participant