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

Updating TS version, ensuring packages work with node 12 and 16 #55

Merged
merged 4 commits into from
Jul 14, 2022

Conversation

austeja-bentley
Copy link
Contributor

@austeja-bentley austeja-bentley commented Jul 13, 2022

In this PR:

  • Updated the repository to support Node 12 to 16 versions:
    • Changes in rush.json
    • Removed usage of fs methods that are unsupported in Node 12
    • Updated release pipeline to run build on both Node 12 and Node 16 before release
  • Updated typescript version

Note: Ideally in pipelines we should specify to use the latest release of a major LTS version (16.x instead of 16.15.0) to use the release with latest security fixes. This is not the case now as the latest release of Node 16 includes npm version which in combination with that Node version produces build warnings on Windows:
image
Link to GitHub issue for npm/cli
None of the workarounds seem applicable for use in pipelines.

Note: I have disabled frontend integration tests on Node 12 builds because they consume time and resources and they also run in browser. There is no need to test if tests infrastructure works on different Node versions.

@austeja-bentley austeja-bentley marked this pull request as ready for review July 13, 2022 11:57
@@ -127,3 +128,7 @@ export async function uploadToUrl(
headers,
});
}

export function getRandomString(): string {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should add comment that this should be replaced by randomUUID() once we drop support for node.js 12/14.

@austeja-bentley austeja-bentley merged commit ff60a54 into main Jul 14, 2022
@austeja-bentley austeja-bentley deleted the node-update-squashed branch July 14, 2022 11:41
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