Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3,429 changes: 1,749 additions & 1,680 deletions .github/actions/javascript/isDeployChecklistLocked/index.js

Large diffs are not rendered by default.

3,427 changes: 1,748 additions & 1,679 deletions .github/actions/javascript/proposalPoliceComment/index.js

Large diffs are not rendered by default.

8 changes: 5 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@
"@shopify/react-native-skia": "^2.11.2",
"@ua/react-native-airship": "26.7.0",
"array.prototype.tosorted": "^1.1.4",
"awesome-phonenumber": "^5.4.0",
"awesome-phonenumber": "6.11.0",
"canvas-size": "^1.2.6",
"canvaskit-wasm": "0.41.0",
"d3-scale": "^4.0.2",
Expand Down Expand Up @@ -372,6 +372,7 @@
},
"overrides": {
"typescript": "$typescript",
"awesome-phonenumber": "$awesome-phonenumber",
"@typescript-eslint/eslint-plugin": "8.58.1",
"@typescript-eslint/parser": "8.58.1",
"@typescript-eslint/typescript-estree": "8.61.0",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
diff --git a/node_modules/awesome-phonenumber/index-esm.mjs b/node_modules/awesome-phonenumber/index-esm.mjs
index 803ef1a..880a73b 100644
index f1e3257..ab60425 100644
--- a/node_modules/awesome-phonenumber/index-esm.mjs
+++ b/node_modules/awesome-phonenumber/index-esm.mjs
@@ -623,6 +623,8 @@ const {
@@ -628,6 +628,8 @@ const {

const parsePhoneNumber = ( ...args ) =>
{
Expand Down
2 changes: 1 addition & 1 deletion patches/awesome-phonenumber/details.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# `awesome-phonenumber` patches

### [awesome-phonenumber+5.4.0+001+support-worklet.patch](awesome-phonenumber+5.4.0+001+support-worklet.patch)
### [awesome-phonenumber+6.11.0+001+support-worklet.patch](awesome-phonenumber+6.11.0+001+support-worklet.patch)

- Reason:

Expand Down
22 changes: 22 additions & 0 deletions tests/unit/ValidationUtilsTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -683,6 +683,28 @@ describe('ValidationUtils', () => {
expect(isValidPhoneNumber('+12018675309')).toBe(true);
});

test('Should return true for a US phone number in a recently added area code', () => {
// Given a phone number in the 983 area code, which libphonenumber only recognizes since v8.13.30
const phoneNumber = '+19833330123';

// When we validate it
const isValid = isValidPhoneNumber(phoneNumber);

// Then it is accepted, so users with newer area codes can save it in their personal details
expect(isValid).toBe(true);
});

test('Should return false for a US phone number with an area code that is not in use', () => {
// Given a 10-digit US phone number whose area code starts with 1, which no US area code does
const phoneNumber = '+11234567890';

// When we validate it
const isValid = isValidPhoneNumber(phoneNumber);

// Then it is still rejected, because the library keeps treating invalid numbers as not possible
expect(isValid).toBe(false);
});

test('Should return true for a Canadian phone number', () => {
expect(isValidPhoneNumber('+14165551234')).toBe(true);
});
Expand Down
Loading