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

Chore: Deprecate Node 10.x support #336

Merged
merged 3 commits into from
Aug 24, 2021
Merged

Conversation

pixelbandito
Copy link
Contributor

This will semantically require a major version, since dropping support for Node 10.x is a breaking change.
However, an internal poll of known consumers indicates no one is using Node 10, and it's no longer a long-term support (LTS) version; so the impact should be minimal to non-existent.

@pixelbandito pixelbandito requested review from bkonuwa, dkordik, lihnick and wendigolabs and removed request for dkordik August 24, 2021 14:11
@@ -5,22 +5,19 @@ unless_exists: true
<% PascalName = h.changeCase.pascal(name) %>
import React from 'react';
import classNames from 'classnames';
import { ClassValue } from 'classnames/types';
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙄 This is something like the 3rd branch in which I've pushed this change. Hopefully this is the first one to merge to master.

@@ -15,7 +15,7 @@
"module": "dist/index.module.js",
"jsnext:main": "dist/index.es.js",
"engines": {
"node": ">=10"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The big thing! node 10 isn't even in maintenance LTS anymore.
https://nodejs.org/en/about/releases/

const [value, setValue] = useState<string | string[] | number | undefined>(
defaultValue
);
const [value, setValue] = useState<InputValue>(defaultValue);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was throwing a type error because defaultValue was being seen as readonly when it wasn't explicitly typed.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's funny, I was running into typing issues on Form, related to various typed inputs, and I think my hack to get it to pass was no bueno. I'll try to steal this...

Copy link
Contributor

@wendigolabs wendigolabs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🌮

@pixelbandito pixelbandito merged commit 8a26ef9 into master Aug 24, 2021
@pixelbandito pixelbandito deleted the v3-deprecate-node-10-support branch August 24, 2021 14:37
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.

2 participants