Skip to content

Commit

Permalink
Combine Heartbeats (#575)
Browse files Browse the repository at this point in the history
* fix: updated packages and combined heartbeat messages into one

* fix: always use existing event ID

* chore: changeset

* fix: chat sdk

* fix: remove import
  • Loading branch information
0xcadams authored Aug 16, 2024
1 parent 857031d commit a3a5034
Show file tree
Hide file tree
Showing 16 changed files with 7,762 additions and 6,234 deletions.
8 changes: 8 additions & 0 deletions .changeset/lemon-panthers-brake.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
"@livepeer/core-react": patch
"@livepeer/core-web": patch
"@livepeer/react": patch
"@livepeer/core": patch
---

**Fix:** updated all dependencies and changed to have a single heartbeat event when multiple heartbeats are attempted to be sent.
18 changes: 9 additions & 9 deletions apps/docs-embed/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,23 @@
"@livepeer/react": "workspace:*",
"@radix-ui/react-popover": "^1.0.7",
"clsx": "^2.1.1",
"livepeer": "^3.2.4",
"livepeer": "^3.3.0",
"lucide-react": "^0.379.0",
"next": "14.2.3",
"next": "14.2.5",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"shiki": "^1.6.0",
"shiki": "^1.13.0",
"sonner": "^1.4.41",
"tailwind-merge": "^2.3.0",
"tailwind-merge": "^2.5.2",
"tailwindcss-animate": "^1.0.7"
},
"devDependencies": {
"@types/node": "^20.12.12",
"@types/node": "^22.3.0",
"@types/react": "^18.3.2",
"@types/react-dom": "^18.3.0",
"autoprefixer": "^10.4.19",
"postcss": "^8.4.38",
"tailwindcss": "^3.4.3",
"typescript": "^5.4.5"
"autoprefixer": "^10.4.20",
"postcss": "^8.4.41",
"tailwindcss": "^3.4.10",
"typescript": "^5.5.4"
}
}
16 changes: 8 additions & 8 deletions apps/lvpr-tv/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,22 @@
"@livepeer/react": "workspace:*",
"@radix-ui/react-popover": "^1.0.7",
"clsx": "^2.1.1",
"livepeer": "^3.2.4",
"livepeer": "^3.3.0",
"lucide-react": "^0.379.0",
"next": "14.2.3",
"next": "14.2.5",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"sonner": "^1.4.41",
"tailwind-merge": "^2.3.0",
"tailwind-merge": "^2.5.2",
"tailwindcss-animate": "^1.0.7"
},
"devDependencies": {
"@types/node": "^20.12.12",
"@types/node": "^22.3.0",
"@types/react": "^18.3.2",
"@types/react-dom": "^18.3.0",
"autoprefixer": "^10.4.19",
"postcss": "^8.4.38",
"tailwindcss": "^3.4.3",
"typescript": "^5.4.5"
"autoprefixer": "^10.4.20",
"postcss": "^8.4.41",
"tailwindcss": "^3.4.10",
"typescript": "^5.5.4"
}
}
16 changes: 8 additions & 8 deletions examples/next-pages/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,23 @@
"@livepeer/react": "workspace:*",
"@radix-ui/react-popover": "^1.0.7",
"clsx": "^2.1.1",
"livepeer": "^3.2.4",
"livepeer": "^3.3.0",
"lucide-react": "^0.379.0",
"next": "14.2.3",
"next": "14.2.5",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"sonner": "^1.4.41",
"tailwind-merge": "^2.3.0",
"tailwind-merge": "^2.5.2",
"tailwindcss-animate": "^1.0.7",
"zod": "^3.23.8"
},
"devDependencies": {
"@types/node": "^20.12.12",
"@types/node": "^22.3.0",
"@types/react": "^18.3.2",
"@types/react-dom": "^18.3.0",
"autoprefixer": "^10.4.19",
"postcss": "^8.4.38",
"tailwindcss": "^3.4.3",
"typescript": "^5.4.5"
"autoprefixer": "^10.4.20",
"postcss": "^8.4.41",
"tailwindcss": "^3.4.10",
"typescript": "^5.5.4"
}
}
16 changes: 8 additions & 8 deletions examples/next/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,23 @@
"@livepeer/react": "workspace:*",
"@radix-ui/react-popover": "^1.0.7",
"clsx": "^2.1.1",
"livepeer": "^3.2.4",
"livepeer": "^3.3.0",
"lucide-react": "^0.379.0",
"next": "14.2.3",
"next": "14.2.5",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"sonner": "^1.4.41",
"tailwind-merge": "^2.3.0",
"tailwind-merge": "^2.5.2",
"tailwindcss-animate": "^1.0.7",
"zod": "^3.23.8"
},
"devDependencies": {
"@types/node": "^20.12.12",
"@types/node": "^22.3.0",
"@types/react": "^18.3.2",
"@types/react-dom": "^18.3.0",
"autoprefixer": "^10.4.19",
"postcss": "^8.4.38",
"tailwindcss": "^3.4.3",
"typescript": "^5.4.5"
"autoprefixer": "^10.4.20",
"postcss": "^8.4.41",
"tailwindcss": "^3.4.10",
"typescript": "^5.5.4"
}
}
22 changes: 11 additions & 11 deletions examples/with-pubnub/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,34 +10,34 @@
"lint": "next lint"
},
"dependencies": {
"@fortawesome/free-solid-svg-icons": "^6.5.1",
"@fortawesome/free-solid-svg-icons": "^6.6.0",
"@fortawesome/react-fontawesome": "^0.2.2",
"@livepeer/react": "workspace:*",
"@pubnub/chat": "^0.7.0",
"@pubnub/chat": "^0.8.1",
"@radix-ui/react-popover": "^1.0.7",
"@types/react-modal": "^3.16.3",
"axios": "^1.7.2",
"axios": "^1.7.4",
"clsx": "^2.1.1",
"hexoid": "^1.0.0",
"livepeer": "^3.2.4",
"livepeer": "^3.3.0",
"lucide-react": "^0.379.0",
"next": "14.2.3",
"next": "14.2.5",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-loader-spinner": "^6.1.6",
"react-modal": "^3.16.1",
"sonner": "^1.4.41",
"tailwind-merge": "^2.3.0",
"tailwind-merge": "^2.5.2",
"tailwindcss-animate": "^1.0.7",
"zod": "^3.23.8"
},
"devDependencies": {
"@types/node": "^20.12.12",
"@types/node": "^22.3.0",
"@types/react": "^18.3.2",
"@types/react-dom": "^18.3.0",
"autoprefixer": "^10.4.19",
"postcss": "^8.4.38",
"tailwindcss": "^3.4.3",
"typescript": "^5.4.5"
"autoprefixer": "^10.4.20",
"postcss": "^8.4.41",
"tailwindcss": "^3.4.10",
"typescript": "^5.5.4"
}
}
2 changes: 1 addition & 1 deletion examples/with-pubnub/src/components/chat/Chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ export const Chat = ({ playbackId }: { playbackId: string }) => {
const user: User = (await chatInstance.getUser(userId)) ?? new User();

// Report a user
await user.report("Reported By User");
// await user.report("Reported By User");
};

/// As a admin you can mute another user. If you are the user that has been muted you will receive this event by listening to your userId as a channel
Expand Down
24 changes: 12 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,23 +29,23 @@
"@biomejs/biome": "^1.7.3",
"@changesets/changelog-github": "^0.5.0",
"@changesets/cli": "^2.27.3",
"@types/node": "20.12.12",
"@types/node": "22.3.0",
"@vitest/coverage-c8": "^0.33.0",
"@vitest/coverage-v8": "^1.6.0",
"@vitest/ui": "^1.6.0",
"c8": "^9.0.0",
"@vitest/coverage-v8": "^2.0.5",
"@vitest/ui": "^2.0.5",
"c8": "^10.1.2",
"dotenv-cli": "^7.4.2",
"glob": "^10.3.16",
"jsdom": "^24.0.0",
"lint-staged": "^15.2.4",
"rimraf": "^5.0.7",
"glob": "^11.0.0",
"jsdom": "^24.1.1",
"lint-staged": "^15.2.9",
"rimraf": "^6.0.1",
"simple-git-hooks": "^2.11.1",
"tsm": "^2.3.0",
"tsup": "^8.0.2",
"tsup": "^8.2.4",
"turbo": "^1.13.3",
"typescript": "^5.4.5",
"vite": "^5.2.11",
"vitest": "^1.6.0"
"typescript": "^5.5.4",
"vite": "^5.4.1",
"vitest": "^2.0.5"
},
"simple-git-hooks": {
"pre-commit": "pnpm lint-staged"
Expand Down
23 changes: 6 additions & 17 deletions packages/core-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@
"main": "./dist/index.cjs",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"files": [
"dist"
],
"files": ["dist"],
"exports": {
"./package.json": "./package.json",
".": {
Expand All @@ -31,12 +29,8 @@
},
"typesVersions": {
"*": {
"crypto": [
"./dist/crypto/index.d.ts"
],
"*": [
"./dist/index.d.ts"
]
"crypto": ["./dist/crypto/index.d.ts"],
"*": ["./dist/index.d.ts"]
}
},
"scripts": {
Expand All @@ -51,20 +45,15 @@
"peerDependenciesMeta": {},
"dependencies": {
"@livepeer/core": "workspace:*",
"zustand": "^4.5.2"
"zustand": "^4.5.5"
},
"devDependencies": {
"@testing-library/react": "^15.0.7",
"@testing-library/react": "^16.0.0",
"@testing-library/react-hooks": "^8.0.1",
"@types/react": "^18.3.2",
"@types/react-dom": "^18.3.0",
"react": "^18.3.1",
"react-dom": "^18.3.1"
},
"keywords": [
"livepeer",
"video",
"streaming",
"livestream"
]
"keywords": ["livepeer", "video", "streaming", "livestream"]
}
43 changes: 11 additions & 32 deletions packages/core-web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@
"main": "./dist/index.cjs",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"files": [
"dist"
],
"files": ["dist"],
"exports": {
"./package.json": "./package.json",
".": {
Expand Down Expand Up @@ -56,27 +54,13 @@
},
"typesVersions": {
"*": {
"broadcast": [
"./dist/broadcast/index.d.ts"
],
"browser": [
"./dist/browser/index.d.ts"
],
"external": [
"./dist/external/index.d.ts"
],
"hls": [
"./dist/hls/index.d.ts"
],
"media": [
"./dist/media/index.d.ts"
],
"webrtc": [
"./dist/webrtc/index.d.ts"
],
"*": [
"./dist/index.d.ts"
]
"broadcast": ["./dist/broadcast/index.d.ts"],
"browser": ["./dist/browser/index.d.ts"],
"external": ["./dist/external/index.d.ts"],
"hls": ["./dist/hls/index.d.ts"],
"media": ["./dist/media/index.d.ts"],
"webrtc": ["./dist/webrtc/index.d.ts"],
"*": ["./dist/index.d.ts"]
}
},
"scripts": {
Expand All @@ -87,13 +71,8 @@
},
"dependencies": {
"@livepeer/core": "workspace:*",
"hls.js": "^1.5.8",
"zustand": "^4.5.2"
"hls.js": "^1.5.14",
"zustand": "^4.5.5"
},
"keywords": [
"livepeer",
"video",
"streaming",
"livestream"
]
"keywords": ["livepeer", "video", "streaming", "livestream"]
}
Loading

0 comments on commit a3a5034

Please sign in to comment.