Skip to content

Commit

Permalink
chore: upgrade dependencies with vulnerability issues (#302)
Browse files Browse the repository at this point in the history
* fix: πŸ› postcss & sharp vulnerability

* chore: πŸ€– upgrade dotlottie-js

* chore: πŸ€– audit fix

* chore: πŸ€– update lock file

* fix: πŸ› DotLottieStateMachineSchema._parse method changed

---------

Co-authored-by: Afsal <[email protected]>
  • Loading branch information
theashraf and afsalz authored Jan 19, 2024
1 parent 3731d4f commit 970e565
Show file tree
Hide file tree
Showing 6 changed files with 1,228 additions and 1,020 deletions.
2 changes: 1 addition & 1 deletion apps/dotlottie-playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"preview": "vite preview"
},
"dependencies": {
"@dotlottie/dotlottie-js": "0.5.2",
"@dotlottie/dotlottie-js": "^0.6.2",
"@dotlottie/react-player": "workspace:^",
"@lottiefiles/lottie-types": "^1.2.0",
"@monaco-editor/react": "^4.5.1",
Expand Down
2 changes: 1 addition & 1 deletion apps/dotlottie-playground/src/hooks/use-dotlottie.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export const DotLottieProvider: React.FC<{ children: ReactNode }> = ({ children

const requiresValidStateMachineSchema = useCallback((stateMachine: DotLottieStateMachine) => {
try {
DotLottieStateMachineSchema.parse(stateMachine);
DotLottieStateMachineSchema._parse(stateMachine);
} catch (error) {
toast('Invalid state schema. Please verify the json.', { type: 'error' });
throw error;
Expand Down
17 changes: 17 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,22 @@
"typescript": "4.7.4",
"zx": "7.2.2"
},
"pnpm": {
"overrides": {
"d3-color@<3.1.0": ">=3.1.0",
"@braintree/sanitize-url@<6.0.0": ">=6.0.0",
"@braintree/sanitize-url@<6.0.1": ">=6.0.1",
"mermaid@>=8.0.0 <9.1.2": ">=9.1.2",
"@cypress/request@<=2.88.12": ">=3.0.0",
"undici@<5.26.2": ">=5.26.2",
"zod@<=3.22.2": ">=3.22.3",
"next@>=0.9.9 <13.4.20-canary.13": ">=13.4.20-canary.13",
"minimatch@<3.0.5": ">=3.0.5",
"vite@>=4.4.0 <4.4.12": ">=4.4.12",
"@babel/traverse@<7.23.2": ">=7.23.2",
"semver@>=7.0.0 <7.5.2": ">=7.5.2",
"postcss@<8.4.31": ">=8.4.31"
}
},
"packageManager": "[email protected]"
}
2 changes: 1 addition & 1 deletion packages/common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"type-check": "tsc --noEmit"
},
"dependencies": {
"@dotlottie/dotlottie-js": "0.6.0",
"@dotlottie/dotlottie-js": "^0.6.2",
"@lottiefiles/relottie": "1.0.0",
"@lottiefiles/relottie-style": "0.4.3",
"@preact/signals-core": "^1.2.3",
Expand Down
4 changes: 2 additions & 2 deletions packages/react-player/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@
"@types/react": "^16.8.0",
"@types/react-dom": "^16.8.0",
"@vitejs/plugin-react": "^3.1.0",
"autoprefixer": "^10.4.14",
"autoprefixer": "^10.4.17",
"axe-core": "^4.7.2",
"cypress": "^12.11.0",
"cypress-axe": "^1.4.0",
"postcss": "^8.4.31",
"postcss": "^8.4.33",
"react": "^16.8.0",
"react-dom": "^16.8.0",
"react-use": "^17.4.0",
Expand Down
Loading

0 comments on commit 970e565

Please sign in to comment.