Skip to content

Commit

Permalink
Bump minimum expensify-common version (#612)
Browse files Browse the repository at this point in the history
  • Loading branch information
Skalakid authored Feb 3, 2025
1 parent a0ee51e commit be8552b
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 19 deletions.
10 changes: 5 additions & 5 deletions example/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1509,7 +1509,7 @@ PODS:
- React-logger (= 0.76.3)
- React-perflogger (= 0.76.3)
- React-utils (= 0.76.3)
- RNLiveMarkdown (0.1.218):
- RNLiveMarkdown (0.1.229):
- DoubleConversion
- glog
- hermes-engine
Expand All @@ -1529,10 +1529,10 @@ PODS:
- ReactCodegen
- ReactCommon/turbomodule/bridging
- ReactCommon/turbomodule/core
- RNLiveMarkdown/newarch (= 0.1.218)
- RNLiveMarkdown/newarch (= 0.1.229)
- RNReanimated/worklets
- Yoga
- RNLiveMarkdown/newarch (0.1.218):
- RNLiveMarkdown/newarch (0.1.229):
- DoubleConversion
- glog
- hermes-engine
Expand Down Expand Up @@ -1913,10 +1913,10 @@ SPEC CHECKSUMS:
React-utils: 2bcaf4f4dfe361344bce2fae428603d518488630
ReactCodegen: 3a85e3cb68c92f16b2ffcf192e30364d78f8ccb9
ReactCommon: 89c87b343deacc8610b099ac764848f0ce937e3e
RNLiveMarkdown: cc674559a93c1f503ed6aac341a66346f05ef153
RNLiveMarkdown: 11cf762d7ab0c9535f0a66e5b2dbd7faeda35a45
RNReanimated: 97d6090ccdf33859f28cc6d394fb4fd799e75d29
SocketRocket: d4aabe649be1e368d1318fdf28a022d714d65748
Yoga: f6dc1b6029519815d5516a1241821c6a9074af6d
Yoga: 3deb2471faa9916c8a82dda2a22d3fba2620ad37

PODFILE CHECKSUM: 9b81b0f7bfba9e6fb4fa10efe8319f7860794e08

Expand Down
2 changes: 1 addition & 1 deletion example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"start": "react-native start"
},
"dependencies": {
"expensify-common": "2.0.108",
"expensify-common": "2.0.115",
"react": "18.3.1",
"react-native": "0.76.3",
"react-native-reanimated": "3.16.4"
Expand Down
17 changes: 11 additions & 6 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-promise": "^6.1.1",
"eslint-plugin-tsdoc": "^0.2.17",
"expensify-common": "2.0.108",
"expensify-common": "2.0.115",
"jest": "^29.6.3",
"jest-environment-jsdom": "^29.7.0",
"nodemon": "^3.1.3",
Expand All @@ -103,7 +103,7 @@
"typescript": "~5.3.3"
},
"peerDependencies": {
"expensify-common": ">=2.0.108",
"expensify-common": ">=2.0.115",
"react": "*",
"react-native": "*",
"react-native-reanimated": ">=3.16.4"
Expand Down
4 changes: 1 addition & 3 deletions src/__tests__/parseExpensiMark.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -371,10 +371,8 @@ describe('trailing whitespace', () => {

test('with whitespace between syntax', () => {
expect('> > > Hello world').toBeParsedAs([
{type: 'blockquote', start: 0, length: 17, depth: 3},
{type: 'blockquote', start: 0, length: 17},
{type: 'syntax', start: 0, length: 1},
{type: 'syntax', start: 2, length: 1},
{type: 'syntax', start: 4, length: 1},
]);
});

Expand Down
10 changes: 8 additions & 2 deletions src/__tests__/webParser.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -205,9 +205,15 @@ test('separate blockquotes', () => {
);
});

test('nested blockquotes', () => {
test('blockquote with whitespace between syntaxes', () => {
expect('> > > > Lorem ipsum dolor sit amet').toBeParsedAsHTML(
'<p data-type="line" data-id="0"><span data-type="blockquote" data-id="0,0"><span data-type="blockquote" data-id="0,0,0"><span data-type="blockquote" data-id="0,0,0,0"><span data-type="blockquote" data-id="0,0,0,0,0"><span data-type="syntax" data-id="0,0,0,0,0,0"><span data-type="text" data-id="0,0,0,0,0,0,0">&gt;</span></span><span data-type="text" data-id="0,0,0,0,0,1"> </span><span data-type="syntax" data-id="0,0,0,0,0,2"><span data-type="text" data-id="0,0,0,0,0,2,0">&gt;</span></span><span data-type="text" data-id="0,0,0,0,0,3"> </span><span data-type="syntax" data-id="0,0,0,0,0,4"><span data-type="text" data-id="0,0,0,0,0,4,0">&gt;</span></span><span data-type="text" data-id="0,0,0,0,0,5"> </span><span data-type="syntax" data-id="0,0,0,0,0,6"><span data-type="text" data-id="0,0,0,0,0,6,0">&gt;</span></span><span data-type="text" data-id="0,0,0,0,0,7"> Lorem ipsum dolor sit amet</span></span></span></span></span></p>',
'<p data-type="line" data-id="0"><span data-type="blockquote" data-id="0,0"><span data-type="syntax" data-id="0,0,0"><span data-type="text" data-id="0,0,0,0">&gt;</span></span><span data-type="text" data-id="0,0,1"> &gt; &gt; &gt; Lorem ipsum dolor sit amet</span></span></p>',
);
});

test('nested blockquotes', () => {
expect('>>>> Lorem ipsum dolor sit amet').toBeParsedAsHTML(
'<p data-type="line" data-id="0"><span data-type="blockquote" data-id="0,0"><span data-type="blockquote" data-id="0,0,0"><span data-type="blockquote" data-id="0,0,0,0"><span data-type="syntax" data-id="0,0,0,0,0"><span data-type="text" data-id="0,0,0,0,0,0">&gt;</span></span><span data-type="syntax" data-id="0,0,0,0,1"><span data-type="text" data-id="0,0,0,0,1,0">&gt;</span></span><span data-type="syntax" data-id="0,0,0,0,2"><span data-type="text" data-id="0,0,0,0,2,0">&gt;</span></span><span data-type="text" data-id="0,0,0,0,3">&gt; Lorem ipsum dolor sit amet</span></span></span></span></p>',
);
});

Expand Down

0 comments on commit be8552b

Please sign in to comment.