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

fix(javascript): prefix with node: for node packages #3608

Merged
merged 1 commit into from
Aug 28, 2024

Conversation

atinux
Copy link
Contributor

@atinux atinux commented Aug 28, 2024

🧭 What and Why

It is a best practice to prefix node packages with node:

Introduced in Node 18: https://stateful.com/blog/node-18-prefix-only-modules

This also ease support for edge-runtime like Cloudflare Workers (https://developers.cloudflare.com/workers/runtime-apis/nodejs/crypto/)

Changes included:

  • Update import from crypto to node:crypto

Verified

This commit was signed with the committer’s verified signature. The key has expired.
Moser-ss Stephane Moser
@shortcuts
Copy link
Member

thanks a lot for the contribution and the insight ❤️

@shortcuts shortcuts changed the title fix: prefix with node: for node packages fix(javascript): prefix with node: for node packages Aug 28, 2024
Copy link
Member

@shortcuts shortcuts left a comment

Choose a reason for hiding this comment

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

wonderful

@shortcuts shortcuts merged commit f8b7a77 into algolia:main Aug 28, 2024
10 of 13 checks passed
algolia-bot added a commit that referenced this pull request Aug 28, 2024

Verified

This commit was signed with the committer’s verified signature. The key has expired.
Moser-ss Stephane Moser
…kip ci]

Co-authored-by: Sébastien Chopin <seb@nuxtlabs.com>
algolia-bot added a commit to algolia/algoliasearch-client-javascript that referenced this pull request Aug 28, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
algolia/api-clients-automation#3608

Co-authored-by: algolia-bot <accounts+algolia-api-client-bot@algolia.com>
Co-authored-by: Sébastien Chopin <seb@nuxtlabs.com>
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.

None yet

2 participants