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

mdn browser definition is outdated #610

Open
maxired opened this issue Jan 10, 2024 · 3 comments
Open

mdn browser definition is outdated #610

maxired opened this issue Jan 10, 2024 · 3 comments

Comments

@maxired
Copy link

maxired commented Jan 10, 2024

Hi,

is seems that the mdn browser definition is outdated and cannot be updated.
From what I understand, this code does not import directly @mdn/browser-compat-data, but uses ast-metadata-inferer as intermediate layer.

The issue is that ast-metadata-inferer is packages with it's own compat.json file, build at release time, with previous version of @mdn/browser-compat-data.
this means that upgrading @mdn/browser-compat-data locally does not solve the issue

@lapwingcloud
Copy link

seems like this is the reason causing the linter not reporting the Array toReversed toSorted toSpliced methods

@Merri
Copy link

Merri commented Sep 18, 2024

Does this mean all browser features added after February 2023 are not being caught at the moment?

I was about to add eslint-plugin-compat to protect against a mistake I made (using toSpliced) but it does not catch it so I feel like the tool is not worth the added complexity for now.

@MattisAbrahamsson
Copy link

I opened a PR in ast-metadata-inferer here, let's hope it gets merged.

A plugin for linting browser supports should continually update the browser support information, otherwise what's the point

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

No branches or pull requests

4 participants