Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] main from LuanRT:main #48

Open
wants to merge 152 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
152 commits
Select commit Hold shift + click to select a range
47cad4c
chore: lint build scripts [skip ci]
LuanRT Jan 30, 2024
5c91c2a
chore: merge main
LuanRT Jan 30, 2024
0751793
Merge branch 'main' of https://github.com/LuanRT/YouTube.js
LuanRT Jan 30, 2024
89fa3b2
fix(Playlist): `items` getter failing if a playlist contains Shorts
LuanRT Feb 19, 2024
3e84775
Merge branch 'main' of https://github.com/LuanRT/YouTube.js
LuanRT Feb 19, 2024
2068dfb
fix(Session): Don't try to extract api version from service worker
LuanRT Feb 23, 2024
dac5eb7
chore(deps): bump undici from 5.27.0 to 5.28.3 (#599)
dependabot[bot] Feb 23, 2024
bff65f8
feat(Format): Support caption tracks in adaptive formats (#598)
absidue Feb 23, 2024
5fe91d6
chore(main): release 9.1.0 (#600)
github-actions[bot] Feb 23, 2024
c444843
chore: update workflows
LuanRT Feb 23, 2024
f6a7bcc
Merge branch 'main' of https://github.com/LuanRT/YouTube.js
LuanRT Feb 23, 2024
f95283b
chore: add `any-of-issue-labels` option to stale workflow
LuanRT Feb 23, 2024
7ca2a0c
feat(parser): Support LockupView and it's child nodes (#609)
absidue Feb 29, 2024
900f557
feat(parser): Support CommentView nodes (#614)
absidue Mar 25, 2024
e6f1f07
feat(Text): Support formatting and emojis in `fromAttributed` (#615)
absidue Mar 25, 2024
3170659
fix(Cache): handle the value read from the db correctly according to …
WhiteMinds Mar 25, 2024
4a9bd32
chore(LockupView): Remove debug logging (#617)
absidue Mar 25, 2024
776a156
Fix broken README links (#618)
AdamLearns Mar 25, 2024
28f53a6
chore: remove API key parameter
LuanRT Mar 25, 2024
213d78b
chore: remove home feed continuation test
LuanRT Mar 25, 2024
3972537
chore(tests): remove beforeAll for the home feed test
LuanRT Mar 25, 2024
92117ea
chore(tests): use `test` instead of `describe`
LuanRT Mar 25, 2024
45f33d8
refactor(MusicResponsiveListItem): Improve podcast and video/song par…
LuanRT Mar 25, 2024
d589365
fix(PlayerEndpoint): Workaround for "The following content is not ava…
LuanRT Mar 31, 2024
2029aec
feat: add support of cloudflare workers (#596)
ayoubqrt Mar 31, 2024
5ecfb08
chore(main): release 9.2.0 (#611)
github-actions[bot] Mar 31, 2024
d4a9387
chore(deps): bump undici from 5.28.3 to 5.28.4 (#627)
dependabot[bot] Apr 4, 2024
0107049
fix(toDash): Add missing transfer characteristics for h264 streams (#…
absidue Apr 9, 2024
0c2cdc1
chore(main): release 9.2.1 (#632)
github-actions[bot] Apr 9, 2024
66e34f9
fix(CommentThread): Replies not being parsed correctly
LuanRT Apr 11, 2024
a624963
docs(Comments): Update API ref
LuanRT Apr 11, 2024
1c08bfe
feat(CommentView): Implement comment interaction methods
LuanRT Apr 11, 2024
cd69ce7
chore(main): release 9.3.0 (#635)
github-actions[bot] Apr 11, 2024
4022d7a
Remove test code (#636)
ChunkyProgrammer Apr 12, 2024
064436c
feat(Format): Add `projection_type` and `stereo_layout` (#643)
absidue Apr 19, 2024
1ec2ea8
refactor(Music#getRelated): Return page contents directy
LuanRT Apr 19, 2024
592ddac
chore: Fix tests
LuanRT Apr 19, 2024
d48b9d0
chore(HTTPClient): Add X-Youtube-Client-Name and remove X-Origin head…
absidue Apr 25, 2024
1332188
chore(PlayerEndpoint): Remove outdated code
LuanRT Apr 29, 2024
0602dd2
Lint fix (#651)
iBicha Apr 29, 2024
7315fca
Add getPlaylists function (#650)
iBicha Apr 29, 2024
0ba8c54
feat(Format): Add `spatial_audio_type` (#647)
absidue Apr 29, 2024
ea82bea
feat(Parser): Add `MusicResponsiveHeader` node
LuanRT Apr 29, 2024
1b00e2c
chore(main): release 9.4.0 (#644)
github-actions[bot] Apr 29, 2024
8106654
Item section target_id fix (#655)
iBicha Apr 29, 2024
6bb2086
feat(Format): Add `is_drc` (#656)
absidue May 6, 2024
b6ce5f9
refactor(OAuth2)!: Rewrite auth module (#661)
LuanRT May 21, 2024
7660450
refactor(Innertube#getPlaylists)!: Return a `Feed` instance instead o…
LuanRT May 21, 2024
c82bb70
chore(HTTPClient): Remove env check when setting Android headers
LuanRT May 23, 2024
aa3f34c
chore: Fix browser example
LuanRT May 24, 2024
8e942ad
chore(docs): fix some markdown issues
LuanRT May 24, 2024
031ffb6
feat(toDash): Add support for stable volume/DRC (#662)
absidue May 28, 2024
b9d50da
chore: clean up
LuanRT Jun 3, 2024
8372b3d
Merge branch 'main' of https://github.com/LuanRT/YouTube.js
LuanRT Jun 3, 2024
000f3f0
refactor(Artist.ts): Change `sections` type to `ObservedArray<MusicCa…
LuanRT Jun 3, 2024
184df79
refactor(HTTPClient): Use `getCookie` fn to get `SAPISID` token
LuanRT Jun 3, 2024
4015a5e
chore(JsRuntime): Change log levels in evaluate function
LuanRT Jun 3, 2024
cf29664
perf(general): Add session cache and LZW compression (#663)
LuanRT Jun 3, 2024
7953296
feat(Session): Add `enable_session_cache` option (#664)
LuanRT Jun 3, 2024
583fd9f
fix(MusicResponsiveHeader): Add `Text` import
LuanRT Jun 3, 2024
b588554
chore: update docs [skip ci]
LuanRT Jun 3, 2024
384b80e
fix(Cache): Use `TextEncoder` to encode compressed data
LuanRT Jun 5, 2024
15f3b5f
fix(ButtonView): Rename `type` property to `button_type`
LuanRT Jun 5, 2024
5cdb9e1
fix(InfoPanelContainer): Use new attributed text prop
LuanRT Jun 7, 2024
978ab1e
chore(docs): fix typo [skip ci]
LuanRT Jun 7, 2024
3939405
chore(Player): Rephrase nsig failure message
LuanRT Jun 7, 2024
040a091
fix(FlexibleActionsView): Update actions array type to include `Toggl…
LuanRT Jun 8, 2024
b6cecb1
chore(docs): update readme
LuanRT Jun 9, 2024
2980a60
feat(Platform): Add support for `react-native` platform (#593)
nugmanoff Jun 9, 2024
9802483
chore(main): release 10.0.0 (#658)
github-actions[bot] Jun 9, 2024
4cbaa79
fix(InfoPanelContent): Update InfoPanelContent node to also support `…
LuanRT Jun 16, 2024
67376af
chore(Format): Clean up and add some extra fields
LuanRT Jun 16, 2024
14c3a06
fix(YTMusic): Add support for new header layouts
LuanRT Jun 21, 2024
055fa33
chore: lint
LuanRT Jun 21, 2024
fe95307
chore: fix tests
LuanRT Jun 21, 2024
d6fa134
chore(Playlist): Add `MusicResponsiveHeader` to header types
LuanRT Jun 22, 2024
e5aab9a
fix(toDash): Fix image representations not being spec compliant (#672)
absidue Jun 24, 2024
bd9f6ac
feat(toDash): Add option to include WebVTT or TTML captions (#673)
absidue Jun 25, 2024
a19511d
fix(FormatUtils): Throw an error if download requests fails
cjh980402 Jun 28, 2024
5a8fd3a
feat(Session): Add `configInfo` to InnerTube context
LuanRT Jul 1, 2024
858cdd1
feat(toDash): Add the "dub" role to translated captions (#677)
absidue Jul 1, 2024
84f90aa
fix(Session): Round UTC offset minutes
LuanRT Jul 1, 2024
efa7205
Merge branch 'main' of https://github.com/LuanRT/YouTube.js
LuanRT Jul 1, 2024
142a7d0
fix(Player): Fix extracting the n-token decipher algorithm (#682)
absidue Jul 10, 2024
62ac2f6
fix(proto): Update `Context` message
LuanRT Jul 10, 2024
7d03469
chore(main): release 10.1.0 (#669)
github-actions[bot] Jul 10, 2024
0f8f92a
fix(parser): ThumbnailView background color (#686)
iBicha Jul 11, 2024
a352dde
feat(Format): Add `is_secondary` for detecting secondary audio tracks…
absidue Jul 24, 2024
a5f6209
feature(proto): Add `comment_id` to commentSectionParams (#693)
gurumnyang Jul 24, 2024
6d0bc89
fix(parser): ignore MiniGameCardView node (#692)
iBicha Jul 24, 2024
090539b
feat(parser): add classdata to unhandled parse errors (#691)
iBicha Jul 24, 2024
3048f70
fix(Player): Fix extracting the n-token decipher algorithm again (#701)
absidue Jul 25, 2024
6765f4e
fix(Player): Bump cache version (#702)
LuanRT Jul 25, 2024
1e29019
chore(main): release 10.2.0 (#688)
github-actions[bot] Jul 25, 2024
a9bf225
feat(parser): Add `EomSettingsDisclaimer` node (#703)
dnicolson Jul 26, 2024
3153375
fix(HTTPClient): Adjust more context fields for the iOS client (#705)
absidue Jul 26, 2024
9b9fb82
refactor: Clean up & fix old code
LuanRT Jul 30, 2024
94a6765
chore: update tests
LuanRT Jul 30, 2024
5529a6a
chore(Player): Don't throw an error if nsig extraction fails
LuanRT Jul 30, 2024
a89a5ac
refactor(Player.ts): Handle nsig failure gracefully
LuanRT Jul 31, 2024
04369be
fix(Player): Address changes introduced by player id `20dfca59` (#712)
ArmelChesnais Jul 31, 2024
e55d4af
chore: lint
LuanRT Aug 1, 2024
d85fbc5
feat(PlaylistManager): Add ability to remove videos by set ID (#715)
dnicolson Aug 1, 2024
3b3cf1b
refactor(Player): Generate and parse player script's `AST` (#713)
LuanRT Aug 1, 2024
4f5635a
chore(main): release 10.3.0 (#704)
github-actions[bot] Aug 1, 2024
2c0bb23
fix(Search): Fix it occasionally returning only a small number of res…
absidue Aug 3, 2024
25d268b
chore: update livechat example
LuanRT Aug 6, 2024
c9f0ddd
feat(Player): Add support for Proof of Identity tokens (#708)
unixfox Aug 8, 2024
041aebc
chore: Rephrase `PoToken` description
LuanRT Aug 8, 2024
261f2ac
feat(Utils): Add `UMP` parser
LuanRT Aug 8, 2024
0e91a08
fix(PlayerEndpoint): Don't set `undefined` fields
LuanRT Aug 8, 2024
4942992
refactor: Throw an error if an invalid client is specified
LuanRT Aug 8, 2024
f1973c1
fix(Session): Visitor data not being used properly
LuanRT Aug 10, 2024
bb6e647
fix(Session): `PoToken` not being set correctly (#729)
cjh980402 Aug 11, 2024
7afc3da
fix(Session): Fix remote visitor data not gettting used (#731)
absidue Aug 12, 2024
4b60b97
feat(parser): Add `VideoAttributesSectionView` node (#732)
absidue Aug 12, 2024
f9ccba4
fix(ThumbnailOverlayResumePlayback): Update `percent_duration_watched…
dnicolson Aug 19, 2024
c14a687
chore: bump `eslint` to v9
LuanRT Aug 22, 2024
83801eb
chore: fix linter config
LuanRT Aug 23, 2024
2c43a57
chore: update tests
LuanRT Aug 23, 2024
2dae563
chore(docs): Minor rewording
LuanRT Aug 23, 2024
fcd00b0
fix(FormatOptions): `client` missing some values
LuanRT Aug 23, 2024
370cb0b
chore(eslint): Update `ignores`
LuanRT Aug 23, 2024
5a66d0b
chore: clean up some types [skip ci]
LuanRT Aug 23, 2024
bdff3ea
chore: lint [skip ci]
LuanRT Aug 23, 2024
cc0fc71
chore(package): Fix typo in `exports`
LuanRT Aug 23, 2024
05a6637
chore(package): Use `prepack` instead of `prepare`
LuanRT Aug 23, 2024
367a6f7
chore(package): Revert last commit
LuanRT Aug 23, 2024
d89909a
fix(examples): Use BgUtils to generate pot [skip ci]
LuanRT Aug 26, 2024
3612187
chore(examples): Fix proxy
LuanRT Aug 26, 2024
aaebcca
chore(deps-dev): bump vite from 3.2.8 to 3.2.10 in /examples/browser/…
dependabot[bot] Aug 27, 2024
93906e0
chore(docs): Mention `BgUtils` for generating PoTokens
LuanRT Aug 27, 2024
4fca6c3
chore(main): release 10.4.0 (#721)
github-actions[bot] Aug 27, 2024
094a96f
fix(parser): The icon_name property does not always exist in Thumbnai…
absidue Sep 11, 2024
bf6cc00
fix(ItemSection): FeedFilterChipBar parse error (#741)
dnicolson Sep 11, 2024
e1e76ee
feat(parser): Add `ShortsLockupView` and `BadgeView` nodes (#746)
absidue Sep 13, 2024
94bc596
refactor: Migrate to `ts-proto` (#752)
LuanRT Sep 16, 2024
0a5d3aa
refactor: Remove old UMP parser (#753)
LuanRT Sep 16, 2024
425027c
chore(examples/web): Use `UMP` (#754)
LuanRT Sep 16, 2024
7a39326
fix(Session): Set default values for `hl` and `gl` in context builder
LuanRT Sep 18, 2024
2e61b99
chore(deps-dev): bump vite in /examples/browser/web (#755)
dependabot[bot] Sep 19, 2024
5db449c
feat: extend music getInfo to allow MusicResponsiveListItem and Nav E…
Duell10111 Sep 19, 2024
eaf218f
feat: Add `WEB_EMBEDDED` client (#756)
unixfox Sep 19, 2024
f209315
chore: update GitHub Actions to use latest versions
LuanRT Sep 19, 2024
eb21af3
chore: update README [skip ci]
LuanRT Sep 19, 2024
00dd409
chore(main): release 10.5.0 (#749)
github-actions[bot] Sep 19, 2024
dd7f5cf
feat: Add `WEB_CREATOR` client (#757)
unixfox Sep 20, 2024
74659fd
chore: add proper documentation (#763)
LuanRT Sep 23, 2024
910c979
feat(ProtoUtils): Add support for creating NextParams (#762)
absidue Sep 23, 2024
d6cc801
chore(readme): reword
LuanRT Sep 23, 2024
289996a
chore(readme): simplify description
LuanRT Sep 23, 2024
5ff30e1
fix(toDash): Fix dash.js 4.x compatibility (#765)
absidue Sep 25, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore: fix linter config
  • Loading branch information
LuanRT committed Aug 23, 2024
commit 83801ebc37cb3296cbceb5c2fd81583a910f3682
5 changes: 1 addition & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,4 @@ deno/
# MacOS
.DS_Store

*.js
*.mjs
*.bin
!sabr.mjs
*.bin
111 changes: 111 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
import globals from "globals";
import pluginJs from "@eslint/js";
import tseslint from "typescript-eslint";

export default [
pluginJs.configs.recommended,
...tseslint.configs.recommended,
{
ignores: [
"deno.ts",
"**/dist/",
"**/test/",
"**/cache/",
"**/bundle/",
"**/examples/",
"**/src/proto/generated/",
"**/*.{js,mjs,cjs}",
"**/*.d.ts",
],
}, {
languageOptions: {
parserOptions: {
projectService: true,
tsconfigRootDir: import.meta.dirname,
},
globals: {
...globals.node,
...globals.browser,
}
},
rules: {
"max-len": ["error", {
code: 200,
ignoreComments: true,
ignoreTrailingComments: true,
ignoreStrings: true,
ignoreTemplateLiterals: true,
ignoreRegExpLiterals: true,
}], quotes: ["error", "single"],
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/consistent-type-imports": "error",
"@typescript-eslint/consistent-type-exports": "error",
'no-sparse-arrays': 'off',
"no-template-curly-in-string": "error",
"no-unreachable-loop": "error",
"no-unused-private-class-members": "off",
"no-prototype-builtins": "off",
"no-async-promise-executor": "off",
"no-case-declarations": "off",
"no-return-assign": "off",
"no-floating-decimal": "error",
"no-implied-eval": "error",
"arrow-spacing": "error",
"no-invalid-this": "error",
"no-lone-blocks": "off",
"no-new-func": "off",
"no-new-wrappers": "error",
"no-new": "error",
"no-void": "error",
"no-octal-escape": "error",
"no-self-compare": "error",
"no-sequences": "error",
"no-throw-literal": "error",
"no-unmodified-loop-condition": "error",
"no-useless-call": "error",
"no-useless-concat": "error",
"no-useless-escape": "error",
"no-useless-return": "error",
"no-else-return": "error",
"no-lonely-if": "error",
"no-undef-init": "error",
"no-unneeded-ternary": "error",
"no-var": "error",
"no-multi-spaces": "error",
"no-multiple-empty-lines": ["error", {
max: 1,
maxEOF: 0,
}],
"no-tabs": "error",
"brace-style": "error",
"new-parens": "error",
"space-infix-ops": "error",
"template-curly-spacing": "error",
"wrap-regex": "error",
"capitalized-comments": "error",
"prefer-template": "error",
"keyword-spacing": ["error", {
before: true,
}],
"object-curly-spacing": ["warn", "always"],
"array-bracket-spacing": ["error", "always"],
"arrow-parens": ["error", "always"],
"comma-dangle": ["error", "never"],
"comma-spacing": ["error", {
before: false,
after: true,
}],
"computed-property-spacing": ["error", "never"],
"func-call-spacing": ["error", "never"],
indent: ["error", 2, {
SwitchCase: 1,
}],
"key-spacing": ["error", {
beforeColon: false,
}],
semi: ["error", "always"],
"operator-assignment": ["error", "always"],
},
}
];