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 to Node 16 and drop support for Node 10 #1127

Merged
merged 3 commits into from
Nov 2, 2021
Merged

Update to Node 16 and drop support for Node 10 #1127

merged 3 commits into from
Nov 2, 2021

Conversation

joelanman
Copy link
Contributor

@joelanman joelanman commented Oct 27, 2021

Update from Node 14 to Node 16.

The current long term support (LTS) version of Node.js is now v16.

This commit updates the documentation to tell users to install Node v16, and also updates the tooling to use Node 16.

@govuk-design-system-ci govuk-design-system-ci temporarily deployed to govuk-prototype-kit-pr-1127 October 27, 2021 16:32 Inactive
@joelanman joelanman changed the title Update to node 16 Update to Node 16 Oct 27, 2021
@govuk-design-system-ci govuk-design-system-ci temporarily deployed to govuk-prototype-kit-pr-1127 October 27, 2021 16:55 Inactive
@joelanman
Copy link
Contributor Author

as this update required an update of gulp-sass, I think that means we don't need #1073 any more if this is merged

@govuk-design-system-ci govuk-design-system-ci temporarily deployed to govuk-prototype-kit-pr-1127 October 28, 2021 09:29 Inactive
@govuk-design-system-ci govuk-design-system-ci temporarily deployed to govuk-prototype-kit-pr-1127 October 28, 2021 09:42 Inactive
@govuk-design-system-ci govuk-design-system-ci temporarily deployed to govuk-prototype-kit-pr-1127 October 28, 2021 10:20 Inactive
@govuk-design-system-ci govuk-design-system-ci temporarily deployed to govuk-prototype-kit-pr-1127 October 28, 2021 11:09 Inactive
@lfdebrux lfdebrux changed the title Update to Node 16 Update to Node 16 and drop support for Node 10 Oct 28, 2021
@govuk-design-system-ci govuk-design-system-ci temporarily deployed to govuk-prototype-kit-pr-1127 October 28, 2021 11:56 Inactive
@domoscargin domoscargin linked an issue Oct 29, 2021 that may be closed by this pull request
4 tasks
@lfdebrux lfdebrux marked this pull request as ready for review November 2, 2021 09:22
@govuk-design-system-ci govuk-design-system-ci temporarily deployed to govuk-prototype-kit-pr-1127 November 2, 2021 09:25 Inactive
joelanman and others added 3 commits November 2, 2021 09:47
The current long term support (LTS) version of Node.js is now v16.

This commit updates the documentation to tell users to install Node v16,
and also updates the tooling to use Node 16.
gulp-sass v4 does not support Node v16, trying to install it results in
compile errors:

```
npm ERR! 1 error generated.
npm ERR! make: *** [Release/obj.target/binding/src/binding.o] Error 1
npm ERR! gyp ERR! build error
npm ERR! gyp ERR! stack Error: `make` failed with exit code: 2
```

This commit bumps [gulp-sass](https://github.com/dlmanning/gulp-sass) from 4.0.1 to 5.0.0:
  - [Release notes](https://github.com/dlmanning/gulp-sass/releases/tag/v5.0.0)
  - [Changelog](https://github.com/dlmanning/gulp-sass/blob/master/CHANGELOG.md)
  - [Commits](dlmanning/gulp-sass@v4.0.1...v5.0.0)

This version of gulp-sass includes a breaking change that removes
`node-sass` as a dependency, so as to be able to support other Sass
compilers. This commit therefore moves `node-sass` from being a dev
dependency to a normal dependency, as `gulp-sass` is a normal
dependency and requires `node-sass` to operate.

This commit also changes the import of `gulp-sass` to explicity set it
to use Node Sass, using the method suggested by the [migration
guide](https://www.npmjs.com/package/gulp-sass#migrating-to-version-5).

We also bumps [node-sass](https://github.com/sass/node-sass) from 4.14.1 to 5.0.0:
  - [Release notes](https://github.com/sass/node-sass/releases/tag/v5.0.0)
  - [Changelog](https://github.com/sass/node-sass/blob/master/CHANGELOG.md)
  - [Commits](sass/node-sass@v4.14.1...v5.0.0)

Both of these major version bump includes a breaking change dropping
support for Node.js versions less than 10, so we have to follow suite.
@govuk-design-system-ci govuk-design-system-ci temporarily deployed to govuk-prototype-kit-pr-1127 November 2, 2021 09:47 Inactive
Copy link
Contributor

@domoscargin domoscargin left a comment

Choose a reason for hiding this comment

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

Think this looks good. Great stuff!

@domoscargin domoscargin added this to the v10.0 milestone Nov 2, 2021
@joelanman joelanman merged commit 31c8edd into main Nov 2, 2021
@joelanman joelanman deleted the node-16 branch November 2, 2021 13:11
@lfdebrux lfdebrux mentioned this pull request Mar 1, 2022
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.

Decide which versions of Node we officially support
4 participants