Skip to content

2.4.0

Latest
Compare
Choose a tag to compare
@github-actions github-actions released this 14 Apr 21:40
· 1 commit to main since this release
e147ad8

Ext

  • Added export VideoService as enum (earlier only as type)
  • Added support custom VideoService type for VOTClient
  • Added support unlisted embed and groups/channels/album/showcase videos for Vimeo
  • Fixed invalid VideoService type in videoData property
  • Fixed /client/disk for Yandex Disk
  • Fixed Kodik decrypt url
  • Replaced disable eslint rules to declare global for global vars from page
  • Fixed Vimeo bug where getVideoData didn’t retrieve the correct data for private players when extraInfo was disabled.
  • Rework getVideoId for Vimeo Helper

Node

  • Added export VideoService as enum (earlier only as type)
  • Added support custom VideoService type for VOTClient
  • Added support unlisted embed and groups/channels/album/showcase videos for Vimeo
  • Fixed Kodik decrypt url
  • Fixed Vimeo bug where getVideoData didn’t retrieve the correct data for private players when extraInfo was disabled.
  • Rework getVideoId for Vimeo Helper

Core

  • Added support custom VideoService type for VOTClient
import VOTClient from "@vot.js/node";

// enum
enum CustomVideoService {
  example = "example",
  test = "test",
}
const client = new VOTClient<CustomVideoService>();
await client.translateVideo({
  videoData: {
    url: "https://example.com/123",
    host: CustomVideoService.example,
    videoId: "123",
  },
});

// literal union
type OtherVideoService = "example" | "test";
const otherClient = new VOTClient<OtherVideoService>();
await otherClient.translateVideo({
  videoData: {
    url: "https://example.com/123",
    host: "test",
    videoId: "123",
  },
});
  • Removed "X-Use-Snake-Case": "Yes" for VOT Backend

Shared

  • Bump component version

Workspace

  • Disabled update proto file in Github Actions build
  • Updated PornTN test url
  • Updated Vimeo test urls
  • Replaced bun spawn pretty-quick to prettier in update:config script
  • Bump depends

Full Changelog: 2.3.12...2.4.0