Skip to content

Drop support for Node.js v12 & add support for Node.js v18#342

Merged
paescuj merged 9 commits intoopen-cli-tools:mainfrom
paescuj:drop-node12-support-node18
Nov 26, 2022
Merged

Drop support for Node.js v12 & add support for Node.js v18#342
paescuj merged 9 commits intoopen-cli-tools:mainfrom
paescuj:drop-node12-support-node18

Conversation

@paescuj
Copy link
Collaborator

@paescuj paescuj commented Aug 3, 2022

Node.js v12 is EOL, so we should move away from it and support Node.js v18 (in "Active" state) instead.

See https://nodejs.org/en/about/releases/.

This is a breaking change and must be released under a new major version!

@gustavohenke What do you think about moving to pure ESM? This would also enable us to use newer versions of chalk and supports-color which are pure ESM as well.
Something else that we might consider is transpiling / bundling...

@paescuj paescuj marked this pull request as ready for review August 3, 2022 10:16
@coveralls
Copy link

coveralls commented Aug 3, 2022

Coverage Status

Coverage decreased (-0.06%) to 99.587% when pulling 583a02a on paescuj:drop-node12-support-node18 into a320866 on open-cli-tools:main.

@paescuj paescuj marked this pull request as draft August 3, 2022 10:23
This was referenced Aug 10, 2022
@gustavohenke
Copy link
Member

What do you think about moving to pure ESM?

I like this idea with caveats.

Node.js did a really awful job with the CJS/ESM compatibility, and going full ESM means never being useable in CJS codebases again (last I checked, that was the case at least).

So my main point is: can we still support CJS codebases via transpiling somehow?

It will also mean updating all imports to have file extensions. It's a one-off, but it'll be massive anyway.

enable us to use newer versions of chalk and supports-color

I'd be happy to find alternative packages that work as well as these if we can't find any other way

@paescuj paescuj mentioned this pull request Aug 22, 2022
@paescuj

This comment was marked as outdated.

@paescuj paescuj marked this pull request as ready for review August 23, 2022 12:16
@paescuj paescuj marked this pull request as draft August 23, 2022 19:30
@paescuj paescuj mentioned this pull request Aug 24, 2022
@paescuj
Copy link
Collaborator Author

paescuj commented Aug 24, 2022

I came up with #366 as an initial attempt...

@paescuj
Copy link
Collaborator Author

paescuj commented Nov 13, 2022

@gustavohenke How do you feel about merging this along with #354? We can then treat #366 separately and merge it at a later time.

@paescuj paescuj marked this pull request as ready for review November 14, 2022 01:12
@paescuj paescuj added this to the v8 milestone Nov 18, 2022
Copy link
Member

@gustavohenke gustavohenke left a comment

Choose a reason for hiding this comment

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

How do you feel about merging this along with #354?

Will revisit #354, but this one LGTM

@paescuj
Copy link
Collaborator Author

paescuj commented Nov 26, 2022

How do you feel about merging this along with #354?

Will revisit #354, but this one LGTM

Nice! 💪 I've just included Node.js 19 in the tests and did a small syntactical clean-up in the package.json and tsconfig.json files.

I'm now going to update #354.

@paescuj paescuj merged commit 8e7af9d into open-cli-tools:main Nov 26, 2022
@paescuj paescuj deleted the drop-node12-support-node18 branch November 26, 2022 20:29
@gustavohenke gustavohenke mentioned this pull request Mar 15, 2023
renovate bot referenced this pull request in creatorsgarten/contentsgarten Mar 30, 2023
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [concurrently](https://togithub.com/open-cli-tools/concurrently) |
[`^7.2.2` ->
`^8.0.0`](https://renovatebot.com/diffs/npm/concurrently/7.6.0/8.0.1) |
[![age](https://badges.renovateapi.com/packages/npm/concurrently/8.0.1/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/concurrently/8.0.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/concurrently/8.0.1/compatibility-slim/7.6.0)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/concurrently/8.0.1/confidence-slim/7.6.0)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>open-cli-tools/concurrently</summary>

###
[`v8.0.1`](https://togithub.com/open-cli-tools/concurrently/releases/tag/v8.0.1)

[Compare
Source](https://togithub.com/open-cli-tools/concurrently/compare/v8.0.0...v8.0.1)

##### What's Changed

- Fix release workflow by
[@&#8203;paescuj](https://togithub.com/paescuj) in
[https://github.com/open-cli-tools/concurrently/pull/408](https://togithub.com/open-cli-tools/concurrently/pull/408)
- Update dependencies by [@&#8203;paescuj](https://togithub.com/paescuj)
in
[https://github.com/open-cli-tools/concurrently/pull/409](https://togithub.com/open-cli-tools/concurrently/pull/409)

**Full Changelog**:
open-cli-tools/concurrently@v8.0.0...v8.0.1

###
[`v8.0.0`](https://togithub.com/open-cli-tools/concurrently/releases/tag/v8.0.0)

[Compare
Source](https://togithub.com/open-cli-tools/concurrently/compare/v7.6.0...v8.0.0)

#### What's Changed

- **Breaking change:** Drop support for Node.js v12 & add support for
Node.js v18 by [@&#8203;paescuj](https://togithub.com/paescuj) in
[https://github.com/open-cli-tools/concurrently/pull/342](https://togithub.com/open-cli-tools/concurrently/pull/342)
- Add support for Bun by
[@&#8203;jakeboone02](https://togithub.com/jakeboone02) in
[https://github.com/open-cli-tools/concurrently/pull/406](https://togithub.com/open-cli-tools/concurrently/pull/406)
- Add `--kill-signal` option by
[@&#8203;paulsmithkc](https://togithub.com/paulsmithkc) in
[https://github.com/open-cli-tools/concurrently/pull/402](https://togithub.com/open-cli-tools/concurrently/pull/402)
- Fixed broken link in the readme by
[@&#8203;abstractpoint](https://togithub.com/abstractpoint) in
[https://github.com/open-cli-tools/concurrently/pull/390](https://togithub.com/open-cli-tools/concurrently/pull/390)

#### New Contributors

- [@&#8203;abstractpoint](https://togithub.com/abstractpoint) made their
first contribution in
[https://github.com/open-cli-tools/concurrently/pull/390](https://togithub.com/open-cli-tools/concurrently/pull/390)
- [@&#8203;jakeboone02](https://togithub.com/jakeboone02) made their
first contribution in
[https://github.com/open-cli-tools/concurrently/pull/406](https://togithub.com/open-cli-tools/concurrently/pull/406)
- [@&#8203;paulsmithkc](https://togithub.com/paulsmithkc) made their
first contribution in
[https://github.com/open-cli-tools/concurrently/pull/402](https://togithub.com/open-cli-tools/concurrently/pull/402)

**Full Changelog**:
open-cli-tools/concurrently@v7.6.0...v8.0.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://app.renovatebot.com/dashboard#github/creatorsgarten/contentsgarten).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4yMi4xIiwidXBkYXRlZEluVmVyIjoiMzUuMjIuMSJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
renovate bot referenced this pull request in zarf-dev/zarf Mar 31, 2023
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [concurrently](https://togithub.com/open-cli-tools/concurrently) |
[`7.6.0` ->
`8.0.1`](https://renovatebot.com/diffs/npm/concurrently/7.6.0/8.0.1) |
[![age](https://badges.renovateapi.com/packages/npm/concurrently/8.0.1/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/concurrently/8.0.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/concurrently/8.0.1/compatibility-slim/7.6.0)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/concurrently/8.0.1/confidence-slim/7.6.0)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>open-cli-tools/concurrently</summary>

###
[`v8.0.1`](https://togithub.com/open-cli-tools/concurrently/releases/tag/v8.0.1)

[Compare
Source](https://togithub.com/open-cli-tools/concurrently/compare/v8.0.0...v8.0.1)

#### What's Changed

- Fix release workflow by
[@&#8203;paescuj](https://togithub.com/paescuj) in
[https://github.com/open-cli-tools/concurrently/pull/408](https://togithub.com/open-cli-tools/concurrently/pull/408)
- Update dependencies by [@&#8203;paescuj](https://togithub.com/paescuj)
in
[https://github.com/open-cli-tools/concurrently/pull/409](https://togithub.com/open-cli-tools/concurrently/pull/409)

**Full Changelog**:
open-cli-tools/concurrently@v8.0.0...v8.0.1

###
[`v8.0.0`](https://togithub.com/open-cli-tools/concurrently/releases/tag/v8.0.0)

[Compare
Source](https://togithub.com/open-cli-tools/concurrently/compare/v7.6.0...v8.0.0)

#### What's Changed

- **Breaking change:** Drop support for Node.js v12 & add support for
Node.js v18 by [@&#8203;paescuj](https://togithub.com/paescuj) in
[https://github.com/open-cli-tools/concurrently/pull/342](https://togithub.com/open-cli-tools/concurrently/pull/342)
- Add support for Bun by
[@&#8203;jakeboone02](https://togithub.com/jakeboone02) in
[https://github.com/open-cli-tools/concurrently/pull/406](https://togithub.com/open-cli-tools/concurrently/pull/406)
- Add `--kill-signal` option by
[@&#8203;paulsmithkc](https://togithub.com/paulsmithkc) in
[https://github.com/open-cli-tools/concurrently/pull/402](https://togithub.com/open-cli-tools/concurrently/pull/402)
- Fixed broken link in the readme by
[@&#8203;abstractpoint](https://togithub.com/abstractpoint) in
[https://github.com/open-cli-tools/concurrently/pull/390](https://togithub.com/open-cli-tools/concurrently/pull/390)

#### New Contributors

- [@&#8203;abstractpoint](https://togithub.com/abstractpoint) made their
first contribution in
[https://github.com/open-cli-tools/concurrently/pull/390](https://togithub.com/open-cli-tools/concurrently/pull/390)
- [@&#8203;jakeboone02](https://togithub.com/jakeboone02) made their
first contribution in
[https://github.com/open-cli-tools/concurrently/pull/406](https://togithub.com/open-cli-tools/concurrently/pull/406)
- [@&#8203;paulsmithkc](https://togithub.com/paulsmithkc) made their
first contribution in
[https://github.com/open-cli-tools/concurrently/pull/402](https://togithub.com/open-cli-tools/concurrently/pull/402)

**Full Changelog**:
open-cli-tools/concurrently@v7.6.0...v8.0.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://app.renovatebot.com/dashboard#github/defenseunicorns/zarf).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4yMi4xIiwidXBkYXRlZEluVmVyIjoiMzUuMjIuMSJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants