Skip to content

Commit c4e4515

Browse files
committed
feat!: rename package from @triyanox/react-video to video-kit
BREAKING CHANGE: Package has been renamed from @triyanox/react-video to video-kit This is a major version bump (v1.0.0) that renames the package for better discoverability and removes the scope prefix. Changes: - Renamed package from @triyanox/react-video to video-kit - Updated repository URLs from triyanox/react-video to chaqchase/video-kit - Updated homepage from react-video.achaq.dev to video-kit.chaqchase.com - Updated all import statements and documentation - Set up changeset for automated publishing - Updated GitHub Actions workflow for release automation Migration: Users should: 1. Uninstall: npm uninstall @triyanox/react-video 2. Install: npm install video-kit 3. Update imports: Change '@triyanox/react-video' to 'video-kit' The old package will be deprecated on npm with a migration notice.
1 parent 489d20c commit c4e4515

File tree

14 files changed

+241
-302
lines changed

14 files changed

+241
-302
lines changed

.changeset/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"commit": false,
55
"fixed": [],
66
"linked": [],
7-
"access": "restricted",
7+
"access": "public",
88
"baseBranch": "main",
99
"updateInternalDependencies": "patch",
1010
"ignore": []
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
"video-kit": major
3+
---
4+
5+
# Package Renamed: @triyanox/react-video → video-kit
6+
7+
This is a major release marking the rename of the package from `@triyanox/react-video` to `video-kit`.
8+
9+
## Breaking Changes
10+
11+
- Package name changed from `@triyanox/react-video` to `video-kit`
12+
- Import statements must be updated:
13+
```diff
14+
- import { Video } from '@triyanox/react-video';
15+
+ import { Video } from 'video-kit';
16+
```
17+
- Installation command changed:
18+
```diff
19+
- npm install @triyanox/react-video
20+
+ npm install video-kit
21+
```
22+
23+
## Migration Guide
24+
25+
1. Uninstall the old package: `npm uninstall @triyanox/react-video`
26+
2. Install the new package: `npm install video-kit`
27+
3. Update all import statements in your code from `@triyanox/react-video` to `video-kit`
28+
29+
## Repository Updates
30+
31+
- GitHub repository: `chaqchase/video-kit` (previously `triyanox/react-video`)
32+
- Homepage: `https://video-kit.chaqchase.com`
33+
34+
All functionality remains the same. This is purely a rebranding/rename.

.github/workflows/release.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,23 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- name: Checkout Repo
16-
uses: actions/checkout@v2
16+
uses: actions/checkout@v4
1717

18-
- name: Setup Node.js 18.x
19-
uses: actions/setup-node@v2
18+
- name: Setup Node.js
19+
uses: actions/setup-node@v4
2020
with:
21-
node-version: 20.x
21+
node-version: 18
2222

23-
- name: Setup pnpm
24-
run: npm install -g pnpm
23+
- name: Install pnpm
24+
uses: pnpm/action-setup@v2
25+
with:
26+
version: 8.9.0
2527

2628
- name: Install Dependencies
27-
run: pnpm i
29+
run: pnpm install --frozen-lockfile
30+
31+
- name: Build packages
32+
run: pnpm build
2833

2934
- name: Create Release PR or Publish Packages
3035
id: changesets

README.md

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,22 @@
1-
# `@triyanox/react-video` a unified customizable video playback experience across all browsers for react
1+
# `video-kit` a unified customizable video playback experience across all browsers for react
22

3-
<img src="https://raw.githubusercontent.com/triyanox/react-video/main/assets/cover.png" alt="react-video banner"
4-
title="react-video" align="center" height="auto" width="100%"/>
3+
<img src="https://raw.githubusercontent.com/chaqchase/video-kit/main/assets/cover.png" alt="video-kit banner"
4+
title="video-kit" align="center" height="auto" width="100%"/>
55

66
## Introduction
77

8-
The `@triyanox/react-video` component is a highly customizable and easy-to-use React component for playing video content in your react applications inspired by apple tv video player. It offers extensive control over video playback and is fully compatible with TailwindCSS, allowing for seamless styling integration.
8+
The `video-kit` component is a highly customizable and easy-to-use React component for playing video content in your react applications inspired by apple tv video player. It offers extensive control over video playback and is fully compatible with TailwindCSS, allowing for seamless styling integration.
99

1010
## Installation
1111

1212
To install the component, use the following command:
1313

1414
```bash
15-
pnpm add @triyanox/react-video
15+
npm install video-kit
16+
# or
17+
pnpm add video-kit
18+
# or
19+
yarn add video-kit
1620
```
1721

1822
## Usage
@@ -22,7 +26,7 @@ pnpm add @triyanox/react-video
2226
You can use the video component simply by importing `Video` from the package
2327

2428
```tsx
25-
import { Video } from "@triyanox/react-video";
29+
import { Video } from "video-kit";
2630

2731
export default function Page() {
2832
return (
@@ -81,7 +85,7 @@ You can use the video component simply by importing `Video` from the package
8185

8286
```javascript
8387
import React from 'react';
84-
import { Video } from '@triyanox/react-video';
88+
import { Video } from 'video-kit';
8589

8690
// Import custom icons (assuming these are available in your project)
8791
import {

apps/web/app/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ export default function RootLayout({
9393
<Link
9494
target="_blank"
9595
className="text-default-900"
96-
href="https://achaq.dev"
96+
href="https://chaqchase.com"
9797
>
9898
Mohamed Achaq
9999
</Link>

apps/web/app/page.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,18 @@ import { Input } from '@nextui-org/input';
77
import { Select, SelectItem } from '@nextui-org/select';
88
import { Snippet } from '@nextui-org/snippet';
99
import { Switch } from '@nextui-org/switch';
10-
import { Video } from '@triyanox/react-video';
10+
import { Video } from 'video-kit';
1111
import { AnimatePresence, motion } from 'framer-motion';
1212
import Link from 'next/link';
1313
import { useState } from 'react';
1414
import { useForm } from 'react-hook-form';
1515
import { z } from 'zod';
1616

1717
const packages = [
18-
{ label: 'pnpm', value: 'pnpm add @triyanox/react-video' },
19-
{ label: 'npm', value: 'npm add @triyanox/react-video' },
20-
{ label: 'yarn', value: 'yarn add @triyanox/react-video' },
21-
{ label: 'bun', value: 'bun add @triyanox/react-video' },
18+
{ label: 'pnpm', value: 'pnpm add video-kit' },
19+
{ label: 'npm', value: 'npm add video-kit' },
20+
{ label: 'yarn', value: 'yarn add video-kit' },
21+
{ label: 'bun', value: 'bun add video-kit' },
2222
];
2323

2424
const schema = z.object({
@@ -35,7 +35,7 @@ const schema = z.object({
3535

3636
export default function Home() {
3737
const [value, setValue] = useState<Selection>(
38-
new Set(['pnpm add @triyanox/react-video']) as unknown as Selection,
38+
new Set(['pnpm add video-kit']) as unknown as Selection,
3939
);
4040
const [loading, setLoading] = useState(true);
4141

@@ -56,7 +56,7 @@ export default function Home() {
5656
return (
5757
<section className="flex flex-col items-center justify-center gap-4 py-8">
5858
<div className="flex w-full justify-center items-center flex-col gap-4 px-4">
59-
<h3 className={title()}>@triyanox/react-video</h3>
59+
<h3 className={title()}>video-kit</h3>
6060
<p className={subtitle({ class: 'text-center' })}>
6161
A highly customizable react video component for your app
6262
</p>
@@ -192,7 +192,7 @@ export default function Home() {
192192
className="bg-default-900 text-default-100 mt-4"
193193
as={Link}
194194
size="lg"
195-
href="https://github.com/triyanox/react-video"
195+
href="https://github.com/chaqchase/video-kit"
196196
>
197197
Read Docs <GithubIcon className="text-default-100" />
198198
</Button>

apps/web/components/navbar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export const Navbar = () => {
2929
size="md"
3030
variant="light"
3131
>
32-
<p className="font-bold text-inherit">@triyanox/react-video</p>
32+
<p className="font-bold text-inherit">video-kit</p>
3333
</Button>
3434
</NavbarBrand>
3535
</NavbarContent>

apps/web/config/site.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
export type SiteConfig = typeof siteConfig;
22

33
export const siteConfig = {
4-
name: "React Video",
4+
name: "Video Kit",
55
description: "A react video component inspired by the ios video player",
66
navItems: [
77
{
@@ -10,8 +10,8 @@ export const siteConfig = {
1010
},
1111
],
1212
links: {
13-
github: "https://github.com/triyanox/react-video",
13+
github: "https://github.com/chaqchase/video-kit",
1414
twitter: "https://twitter.com/ac__haq",
15-
docs: "https://github.com/triyanox/react-video",
15+
docs: "https://github.com/chaqchase/video-kit",
1616
},
1717
};

apps/web/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"@nextui-org/theme": "2.1.17",
2626
"@react-aria/ssr": "^3.8.0",
2727
"@react-aria/visually-hidden": "^3.8.6",
28-
"@triyanox/react-video": "workspace:^",
28+
"video-kit": "workspace:^",
2929
"@types/node": "20.5.7",
3030
"@types/react": "18.2.21",
3131
"@types/react-dom": "18.2.7",

packages/core/README.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,19 @@
1-
# `@triyanox/react-video` a unified customizable video playback experience across all browsers for react
1+
# `video-kit` a unified customizable video playback experience across all browsers for react
22

33
## Introduction
44

5-
The `@triyanox/react-video` component is a highly customizable and easy-to-use React component for playing video content in your react applications inspired by apple tv video player. It offers extensive control over video playback and is fully compatible with TailwindCSS, allowing for seamless styling integration.
5+
The `video-kit` component is a highly customizable and easy-to-use React component for playing video content in your react applications inspired by apple tv video player. It offers extensive control over video playback and is fully compatible with TailwindCSS, allowing for seamless styling integration.
66

77
## Installation
88

99
To install the component, use the following command:
1010

1111
```bash
12-
pnpm add @triyanox/react-video
12+
npm install video-kit
13+
# or
14+
pnpm add video-kit
15+
# or
16+
yarn add video-kit
1317
```
1418

1519
## Usage
@@ -19,7 +23,7 @@ pnpm add @triyanox/react-video
1923
You can use the video component simply by importing `Video` from the package
2024

2125
```tsx
22-
import { Video } from "@triyanox/react-video";
26+
import { Video } from "video-kit";
2327

2428
export default function Page() {
2529
return (
@@ -78,7 +82,7 @@ You can use the video component simply by importing `Video` from the package
7882

7983
```javascript
8084
import React from 'react';
81-
import { Video } from '@triyanox/react-video';
85+
import { Video } from 'video-kit';
8286

8387
// Import custom icons (assuming these are available in your project)
8488
import {

0 commit comments

Comments
 (0)