Skip to content

Commit

Permalink
remove structured clone polyfill
Browse files Browse the repository at this point in the history
  • Loading branch information
charkour committed Jan 19, 2025
1 parent 2e3fe24 commit bd5e01b
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 69 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:

strategy:
matrix:
node-version: [16.x, 22.x]
node-version: [17.x, 23.x]
zustand: [
4.2.0, # Oldest zustand TS supported
4.0.0, # Oldest zustand JS supported
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,5 +64,6 @@
"zustand": {
"optional": false
}
}
},
"packageManager": "[email protected]+sha512.b2dc20e2fc72b3e18848459b37359a32064663e5627a51e4c74b2c29dd8e8e0491483c3abb40789cfd578bf362fb6ba8261b05f0387d76792ed6e23ea3b1b6a0"
}
79 changes: 21 additions & 58 deletions pnpm-lock.yaml

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

2 changes: 0 additions & 2 deletions tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
"@testing-library/react": "16.2.0",
"@types/lodash.throttle": "4.1.9",
"@types/react-dom": "19.0.3",
"@types/ungap__structured-clone": "1.2.0",
"@ungap/structured-clone": "1.2.1",
"@vitest/coverage-v8": "3.0.2",
"@vitest/ui": "3.0.2",
"happy-dom": "16.6.0",
Expand Down
7 changes: 0 additions & 7 deletions tests/vitest.setup.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
import structuredClone from "@ungap/structured-clone";

if (!("structuredClone" in globalThis)) {
// @ts-expect-error
globalThis.structuredClone = structuredClone;
}

// https://github.com/pmndrs/zustand/blob/main/docs/guides/testing.md
import '@testing-library/jest-dom';
import { vi } from 'vitest';
Expand Down

0 comments on commit bd5e01b

Please sign in to comment.