Repository navigation
Update intl-tel-input w/ npm auto-update - #2228
Merged
Merged
Conversation
Map the three self-contained dist/js/*.mjs modules alongside the existing browser JS/CSS assets. They are supported by cdnjs and available on npm, but were omitted when the package switched from git to npm in cdnjs#2219. Existing versions need reingestion to gain the modules. Refs cdnjs#2114
Map the four dist/js/*.d.ts files that pair with the ESM builds, for consumers importing from a URL (e.g. Deno). cdnjs published intlTelInput.d.ts under the old git layout. css/styles.d.ts is left out: it only types CSS-module imports.
MattIPv4
reviewed
Nov 23, 2026
MattIPv4
approved these changes
Nov 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📎 clopy sim-ai
Change
Add
js/*.mjsandjs/*.d.tsto the existing npmdistfile map. The npm tarball ships three self-contained ESM builds (data.mjs,intlTelInput.mjs,intlTelInputWithUtils.mjs) and four matching declarations (data,intlTelInput,locale,utils), but the current map only selects JS, CSS, locales, and images. Existing paths and the default file are unchanged.The ESM builds can be imported straight from cdnjs with no bundler, and the declarations serve URL-import consumers such as Deno. cdnjs published
intlTelInput.d.tsunder the old git layout (e.g. 25.5.2).css/styles.d.tsis left out; it only types CSS-module imports.This does not restore the old git
build/,react/build/, orvue/build/paths. React and Vue now ship as separate npm packages (@intl-tel-input/react,@intl-tel-input/vue), which are not on cdnjs.Verification
.mjsand four.d.ts(90 total). The.mjsfiles also match on 28.0.0.node --check --input-type=moduleand have no external imports.Refs #2114. This only affects future imports; already-published versions keep their current files.