Skip to content

Explicitly import crypto - #1842

Merged
joshmgross merged 5 commits into
mainfrom
joshmgross/explicit-import-crypto
Oct 4, 2024
Merged

joshmgross merged 5 commits into
mainfrom
joshmgross/explicit-import-crypto

Conversation

@joshmgross

Copy link
Copy Markdown
Contributor

#1841

crypto has to be explicitly imported in versions before Node 19, so #1824 broke using these packages.

I've validated that importing crypto works as expected on Node 16, 18, and 20:

#1841 (comment)

@joshmgross
joshmgross requested review from a team as code owners October 4, 2024 20:00
@reemasardana

Copy link
Copy Markdown

I've validated that importing crypto works as expected on Node 16, 18, and 20:

Were these manual tests? Anything we can easily automate to prevent future accidental breakages like this?

@joshmgross

Copy link
Copy Markdown
Contributor Author

I've validated that importing crypto works as expected on Node 16, 18, and 20:

Were these manual tests? Anything we can easily automate to prevent future accidental breakages like this?

We can run tests against other Node versions besides the current support action Node version. I've validated that this catches the issue described in #1841 - #1843.

In the future we should be clear about what Node versions we support for the toolkit, but until then I think it's reasonable to validate that the toolkit at least works with what users currently expect.

@joshmgross
joshmgross merged commit d14afd7 into main Oct 4, 2024
@joshmgross
joshmgross deleted the joshmgross/explicit-import-crypto branch October 4, 2024 21:23
zemnmez-renovate-bot added a commit to zemn-me/monorepo that referenced this pull request Oct 4, 2024
github-merge-queue Bot pushed a commit to zemn-me/monorepo that referenced this pull request Oct 4, 2024
Derrick-MUGISHA pushed a commit to Derrick-MUGISHA/toolkit that referenced this pull request Oct 12, 2026
* Explicitly import `crypto`

* Add release notes for 1.11.1

* Fix crypto mock in test

* Fix `crypto` mock

* Lint
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.

5 participants