Skip to content

Commit bf4db8f

Browse files
committed
chore: Migrated to latest dependencies
1 parent c7d13d4 commit bf4db8f

File tree

16 files changed

+14705
-595
lines changed

16 files changed

+14705
-595
lines changed

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
public-hoist-pattern[]=*@heroui/*

apps/app/src/components/Form.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import cn from "clsx";
33
import { useEffect, useState } from "react";
44
import { useForm } from "react-hook-form";
55
import { Controller } from "react-hook-form";
6-
import type { InputProps } from "@heroui/input";
6+
import type { InputProps } from "@heroui/react";
77
import type { Control } from "react-hook-form";
88

99
interface FormProps<T extends FieldRecord> {

apps/app/src/routes/(dashboard)/_layout/assets.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
1-
import {
2-
Drawer,
3-
DrawerBody,
4-
DrawerContent,
5-
DrawerHeader,
6-
} from "@heroui/drawer";
1+
import { Drawer, DrawerBody, DrawerContent, DrawerHeader } from "@heroui/react";
72
import { assetsPaginatedSchema, toParams } from "@superstreamer/api/client";
83
import {
94
createFileRoute,

apps/app/src/routes/(dashboard)/_layout/storage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { BreadcrumbItem, Breadcrumbs } from "@heroui/breadcrumbs";
1+
import { BreadcrumbItem, Breadcrumbs } from "@heroui/react";
22
import { toParams } from "@superstreamer/api/client";
33
import { createFileRoute, Link } from "@tanstack/react-router";
44
import { zodSearchValidator } from "@tanstack/router-zod-adapter";

apps/app/src/routes/auth/_layout/sign-in.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Card, CardBody, CardHeader } from "@heroui/card";
1+
import { Card, CardBody, CardHeader } from "@heroui/react";
22
import {
33
createFileRoute,
44
useNavigate,

apps/app/tailwind.config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ export default {
55
content: [
66
"./src/**/*.{ts,tsx}",
77
"../../node_modules/@heroui/theme/dist/**/*.{js,ts,jsx,tsx}",
8-
"../../node_modules/@superstreamer/player/dist/**/*.{js,ts,jsx,tsx}",
98
],
109
theme: {
1110
extend: {

package.json

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,7 @@
88
"install-bin": "bun run --filter=\"@superstreamer/*\" install-bin"
99
},
1010
"devDependencies": {
11-
"@changesets/cli": "^2.27.9"
11+
"@changesets/cli": "^2.28.1"
1212
},
13-
"workspaces": [
14-
"apps/*",
15-
"packages/*",
16-
"extern/*",
17-
"docs/*"
18-
]
13+
"packageManager": "[email protected]+sha512.2d92c86b7928dc8284f53494fb4201f983da65f0fb4f0d40baafa5cf628fa31dae3e5968f12466f17df7e97310e30f343a648baea1b9b350685dafafffdf5808"
1914
}

packages/config/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"@eslint/js": "^9.12.0",
77
"@typescript-eslint/parser": "^8.12.2",
88
"eslint-config-prettier": "^9.1.0",
9+
"eslint-import-resolver-node": "^0.3.9",
910
"eslint-plugin-import": "^2.31.0",
1011
"eslint-plugin-prettier": "^5.2.1",
1112
"typescript-eslint": "^8.10.0"

packages/player/package.json

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,22 @@
1616
"dist"
1717
],
1818
"scripts": {
19-
"dev": "tsup --watch",
19+
"dev": "tsup --watch 'src/**/*.(ts,tsx)'",
2020
"build": "tsc && tsup",
2121
"lint": "tsc && eslint",
2222
"typedoc": "typedoc --tsconfig tsconfig.typedoc.json"
2323
},
2424
"dependencies": {
25-
"hls.js": "^1.6.0-beta.4",
26-
"tseep": "^1.3.1",
27-
"shared": "workspace:*"
25+
"hls.js": "^1.6.2",
26+
"tseep": "^1.3.1"
2827
},
2928
"devDependencies": {
3029
"config": "workspace:*",
31-
"eslint": "^9.13.0",
32-
"tsup": "^8.3.5",
33-
"typedoc": "^0.26.8",
34-
"typedoc-plugin-markdown": "^4.2.9",
35-
"typescript": "^5.6.3"
30+
"eslint": "^9.25.0",
31+
"tsup": "^8.4.0",
32+
"typedoc": "^0.26.11",
33+
"typedoc-plugin-markdown": "^4.6.2",
34+
"typescript": "^5.8.3"
3635
},
3736
"repository": {
3837
"type": "git",

packages/player/src/helpers.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,3 +198,12 @@ const langCodes: Record<string, string> = {
198198
yo: "Yorùbá",
199199
zu: "isiZulu",
200200
};
201+
202+
export function assert<T>(
203+
value: T,
204+
message = "value is null",
205+
): asserts value is NonNullable<T> {
206+
if (value === null || value === undefined) {
207+
throw Error(message);
208+
}
209+
}

0 commit comments

Comments
 (0)