6.0.5 • Published 4 months ago

idna-uts46-hx v6.0.5

Weekly downloads
110,140
License
MIT
Repository
github
Last release
4 months ago

IDNA-UTS #46 in JavaScript

npm version node semantic-release License: MIT PRs welcome

This module is a IDNA UTS46 connector library for javascript. In addition to the default functionality of tr46, we offer converting domain names to unicode / punycode considering the respective registry provider's behavior.

The JS Punycode converter library is a great tool for handling Unicode domain names, but it only implements the Punycode encoding of domain labels, not the full IDNA algorithm. In simple cases, a mere conversion to lowercase text before input would seem sufficient, but the real mapping for strings is far more complex. This library implements the full mapping for these strings, as defined by UTS #46.

Resources

v6 Notes & Migration Guide

With v6 we migrated our library to npm package tr46 as software dependency. By that step we use a library that is actively maintained in direction of correctly supporting the TR46 standard and supporting the latest Version of the Unicode Standard. Reinventing the wheel isn't useful and something we have time or resources for. We were able to dramatically decrease the number of lines of code on our end.

Improvements

  • method toUnicode comes with auto-detection of transitionalProcessing setting based on the provided domain name input
  • method toAscii comes with auto-detection of transitionalProcessing setting based on the provided domain name input

Breaking Changes

In general, we don't see a blocker for upgrading to v6. Still, consider the below changes.

Performance

Runtime performance of v6 compared to v5 has slightly improved. The compression for the underlying idna mapping table is superfluous, tr46 covers it well.

New Labels for Options

The below configuration options for the methods toUnicodeand toAscii must be renamed in case you're using them:

Option, oldOption, new
transitionaltransitionalProcessing
useStd3ASCIIuseSTD3ASCIIRules
verifyDnsLengthverifyDNSLength

Behavior

Earlier versions kept option transitional by default to false which is now automatically detected and results may therefore differ. This affects the toAscii method.

The toUnicode function did not allow for a options parameter in earlier versions, now it follows the exemplary way of package tr46.

Authors

Thanks for the below former contributions:

  • Initial work done by jcranmer.
  • v5: Migration of the IDNA Mapping Table's Build Process from Python to NodeJS5 by dawsbot
  • v5: Performance Improvements for the Browser Bundle's Page Load by dawsbot

See also the list of contributors who participated in this project.

License

MIT

web3y@fildomains/fnsjs@kns/js-sdkviem-bundle-testviem-test-bundle@everything-registry/sub-chunk-1894temporaenimwan-wns-namehashweb3xweb3x-esweb3nsshowgallerysekula-name-servicesekula-test-libtest-solidity-npmvap-vns-namehashlnsjsloading-animatedgnssdknaturescot-utilsopenxswap-sdkpuffs-ens-namehashpixiu-swap-corepixiuswap-libs-sdkquooditquadratic-sdkqudratic-uisof-ens-namehash@ansdomain/ensjs@ansdomain/ansjs@afria/afria-libraries@alayanetwork/web3x@chakra-swap/core@bonsaiswap-lib/lib@bonsaiswapv3/core@bonsaiswapv3/deploy@deamtest/ens-namehash@didhubdev/core@daouniverse/dnsjsyongjun-sdkzona-xzwj-name-converterts-chainverosedzkm-libzkmns-lib@hazae41/cubane@findeth/networks@fksyuan/web3x@eliteswap/v2-core@friendlymarket/cns-sdk@fubhy/viem-test-bundle@glink/bnssdk@innoswap/core@krobinalpha/ens-namehash@leapwallet/name-matcha@litedexdev/litedex-core-swap@materia-dex/materia-contracts-proxy@netgum/utils@nirin100/quadratic-protocol@nirin100/quadratic-sdk@nodeberry/solidity-payment-processor@mavrykdynamics/mavryk-domains-core@jamo/web3-eth-ens@kodinghandle/bullswap-lib@hexonet/ispapi-apiconnector@dwns/core@igniswap/igni-swap-lib@olympfin/olymp-swap-lib@opdomains/ensjs@opdomains/onsjs@polywrap/uts46-plugin-js@sudophunk/fulido@spheron/fnslib@devdomains/ensjs@borealisswap/borealis-swap-lib@tezos-domains/core@temple-wallet/tezos-sapling-js@thismr/bitmindtest-core@zalastax/nolb-idnadipisciest@xswap/v2-core@web3identity/web3ns@yak-spirit/yak-swap-ui@web3api/uts46-plugin-js@wtree-id/eth-ens-namehash-ts@unitdomains/unitdomainsjs@uhhhh2/web3x@uhhhh2/web3x-esdate-to-block-ethdynamics-contracts-xeaquedoloribuscemento-paidcotrader-dex-sdketh-utilsevenietconsectetureth-ens-namehasheth-ens-namehash-msens-collectionsenefti-galeri
6.0.5

4 months ago

6.0.4

8 months ago

6.0.3

9 months ago

6.0.1

9 months ago

6.0.0

9 months ago

6.0.2

9 months ago

5.1.2

1 year ago

5.1.1

1 year ago

5.1.0

1 year ago

5.0.6

2 years ago

5.0.5

2 years ago

5.0.4

2 years ago

5.0.3

2 years ago

5.0.2

2 years ago

5.0.1

2 years ago

5.0.0

2 years ago

5.0.7

2 years ago

4.1.0

2 years ago

4.1.2

2 years ago

4.1.1

2 years ago

4.0.4

2 years ago

4.0.1

2 years ago

4.0.3

2 years ago

4.0.2

2 years ago

3.5.0

3 years ago

3.4.1

3 years ago

4.0.0

3 years ago

3.4.0

4 years ago

3.3.1

4 years ago

3.3.0

5 years ago

3.2.2

5 years ago

3.2.1

5 years ago

3.2.0

6 years ago

3.1.1

6 years ago

3.1.0

6 years ago

3.0.0

6 years ago

1.0.0

6 years ago

2.3.1

7 years ago

2.3.0

7 years ago

2.2.1

7 years ago

2.2.0

7 years ago

2.1.2

7 years ago

2.1.1

7 years ago

2.1.0

7 years ago

2.0.2

8 years ago

2.0.1

8 years ago

2.0.0

8 years ago