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

Update json5 to 2.2.x #198

Merged
merged 2 commits into from May 2, 2022
Merged

Update json5 to 2.2.x #198

merged 2 commits into from May 2, 2022

Conversation

stianjensen
Copy link
Contributor

The new version bundles typescript types.

@airarrazaval
Copy link

airarrazaval commented Mar 22, 2022

json5@2.2.0 has a vulnerability inherited by one of its dependencies (minimist).

https://security.snyk.io/vuln/SNYK-JS-MINIMIST-2429795

This must be updated to json5@2.2.1 which removes minimist as dependency. Also update to minimist@1.2.6 which solves this vulnerability si required (see PR #197)

The new version bundles typescript types.
@stianjensen
Copy link
Contributor Author

Updated

@jonaskello
Copy link
Member

Upgrade of json5 from 1.x to 2.x was previously attempted in #158 and then reverted in #173. I'm not sure if we can upgrade to 2.x.

@stianjensen
Copy link
Contributor Author

Ah! Node 4 has been unsupported for 4 years, so I didn't realize that was still breaking. I guess whenever you're shipping a new major version, then.

@jonaskello jonaskello reopened this May 2, 2022
@jonaskello
Copy link
Member

Let's merge this now when we are doing a new major.

@F3n67u
Copy link
Contributor

F3n67u commented May 4, 2022

This breaking change will potentially block https://github.com/import-js/eslint-plugin-import and https://github.com/alexgorbatchev/eslint-import-resolver-typescript to upgrade to 4..0.0 as far as I know. Those package's minimum nodejs version is v4.

@stianjensen
Copy link
Contributor Author

This breaking change will potentially block https://github.com/import-js/eslint-plugin-import and https://github.com/alexgorbatchev/eslint-import-resolver-typescript to upgrade to 4..0.0 as far as I know. Those package's minimum nodejs version is v4.

Node 4 has been unsupported for 4(!) years now, so I really hope no one is still using that in production and are also depending on new versions of those packages still supporting it.

eslint itself doesn't support anything below 12 as of version 8, and anyone on old eslint version can also continue using old versions of eslint-plugin-import if they have to.

@F3n67u
Copy link
Contributor

F3n67u commented May 4, 2022

This breaking change will potentially block https://github.com/import-js/eslint-plugin-import and https://github.com/alexgorbatchev/eslint-import-resolver-typescript to upgrade to 4..0.0 as far as I know. Those package's minimum nodejs version is v4.

Node 4 has been unsupported for 4(!) years now, so I really hope no one is still using that in production and are also depending on new versions of those packages still supporting it.

eslint itself doesn't support anything below 12 as of version 8, and anyone on old eslint version can also continue using old versions of eslint-plugin-import if they have to.

I agree with you. I make draft pr to bump tsconfig-paths version to v4 on import-js/eslint-plugin-import#2447 and import-js/eslint-import-resolver-typescript#104 to collect some feedback.

@ljharb
Copy link

ljharb commented May 5, 2022

@stianjensen being unsupported is irrelevant; eslint-plugin-import supports down to eslint 2 (and associated node version) and will continue to do so.

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

Successfully merging this pull request may close these issues.

None yet

5 participants