Skip to content

Commit

Permalink
feat: switch to @ungap/structured-clone
Browse files Browse the repository at this point in the history
  • Loading branch information
wobsoriano committed Jan 24, 2023
1 parent cbb71b3 commit f6c7fca
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 59 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
"pinia": ">=2.0.14"
},
"dependencies": {
"@ungap/structured-clone": "^1.0.1",
"broadcast-channel": "^4.20.2",
"realistic-structured-clone": "^3.0.0",
"vue-demi": "^0.13.11"
},
"devDependencies": {
Expand Down
65 changes: 9 additions & 56 deletions pnpm-lock.yaml

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

2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { watch } from 'vue-demi';
import type { MethodType } from 'broadcast-channel';
import { BroadcastChannel as BroadcastChannelImpl } from 'broadcast-channel';
import type { PiniaPluginContext, Store } from 'pinia';
import structuredClone from 'realistic-structured-clone';
import structuredClone from '@ungap/structured-clone';

/**
* Share state across browser tabs.
Expand Down
2 changes: 1 addition & 1 deletion types.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
declare module 'realistic-structured-clone' {
declare module '@ungap/structured-clone' {
const structuredClone: <T>(obj: T) => T

export default structuredClone
Expand Down

0 comments on commit f6c7fca

Please sign in to comment.