Skip to content

Commit

Permalink
fix(uni): ensure deserialization cache hash doesnt block react native
Browse files Browse the repository at this point in the history
  • Loading branch information
uladkasach committed Nov 28, 2024
1 parent 3ed2c40 commit b7b1694
Show file tree
Hide file tree
Showing 4 changed files with 88 additions and 171 deletions.
177 changes: 52 additions & 125 deletions package-lock.json

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

5 changes: 1 addition & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,7 @@
"@types/yup": "^0.29.6",
"change-case": "^4.1.2",
"cross-sha256": "^1.2.0",
"hash-fns": "^1.0.1",
"simple-in-memory-cache": "^0.3.3",
"type-fns": "^1.17.0",
"with-simple-caching": "^0.12.0"
"type-fns": "^1.17.0"
},
"devDependencies": {
"@commitlint/cli": "19.3.0",
Expand Down
4 changes: 1 addition & 3 deletions src/manipulation/serde/deserialize.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,6 @@ describe('deserialize', () => {
);
await deserialize(document, {
with: [Spaceship, Spaceport, Robot, Captain],
cache: false,
});
const { duration: durationWithSchema } = stopwatchWithSchema.stop();

Expand All @@ -328,7 +327,6 @@ describe('deserialize', () => {
);
await deserialize(document, {
with: [Spaceship, Spaceport, Robot, Captain],
cache: false,
skip: {
schema: true,
},
Expand All @@ -340,7 +338,7 @@ describe('deserialize', () => {
);
});

it('should be instant on repeat attempts, due to in memory cache', async () => {
it.skip('should be instant on repeat attempts, due to in memory cache', async () => {
// define the choices
const shipA = new Spaceship({
serialNumber: '__SHIP_A__',
Expand Down
Loading

0 comments on commit b7b1694

Please sign in to comment.