@ix-xs/twitch.api 2.0.2 → 2.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/README.md +21 -5
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to `@ix-xs/twitch.api` are documented here. This project
|
|
4
4
|
adheres to [Semantic Versioning](https://semver.org).
|
|
5
5
|
|
|
6
|
+
## 2.0.3
|
|
7
|
+
|
|
8
|
+
### Documentation
|
|
9
|
+
|
|
10
|
+
- The README, which is also the npm page, now links to the documentation
|
|
11
|
+
site (in English and in French), to the reference and to the repository.
|
|
12
|
+
No change to the code.
|
|
13
|
+
|
|
6
14
|
## 2.0.2
|
|
7
15
|
|
|
8
16
|
### Fixed
|
package/README.md
CHANGED
|
@@ -11,8 +11,15 @@ _Every Helix endpoint. Every EventSub event. Fully typed. Zero dependencies._
|
|
|
11
11
|
[](https://github.com/ix-xs/twitch.api/actions)
|
|
12
12
|
[](https://nodejs.org)
|
|
13
13
|
[](#)
|
|
14
|
-
[](
|
|
15
|
-
[](
|
|
14
|
+
[](https://github.com/ix-xs/twitch.api/blob/main/package.json)
|
|
15
|
+
[](https://github.com/ix-xs/twitch.api/blob/main/LICENSE)
|
|
16
|
+
|
|
17
|
+
**[Documentation](https://ix-xs.github.io/twitch.api/)** ·
|
|
18
|
+
[Quick start](https://ix-xs.github.io/twitch.api/quick-start/) ·
|
|
19
|
+
[API reference](https://ix-xs.github.io/twitch.api/reference/overview/) ·
|
|
20
|
+
[Recipes](https://ix-xs.github.io/twitch.api/recipes/chat-bot/) ·
|
|
21
|
+
[Troubleshooting](https://ix-xs.github.io/twitch.api/help/troubleshooting/) ·
|
|
22
|
+
[GitHub](https://github.com/ix-xs/twitch.api)
|
|
16
23
|
|
|
17
24
|
</div>
|
|
18
25
|
|
|
@@ -38,6 +45,8 @@ for await (const stream of twitch.streams.get({ language: "fr" })) {
|
|
|
38
45
|
|
|
39
46
|
No token to fetch, no header to set, no cursor to carry around, no `429` to catch. You call a method, you get typed data.
|
|
40
47
|
|
|
48
|
+
This page is the short tour. The [documentation site](https://ix-xs.github.io/twitch.api/) has the guides, complete programs to copy and the reference of every method and event type, in English and [in French](https://ix-xs.github.io/twitch.api/fr/).
|
|
49
|
+
|
|
41
50
|
## What you get
|
|
42
51
|
|
|
43
52
|
| | |
|
|
@@ -471,11 +480,11 @@ const twitch = new Twitch({ clientId, clientSecret, baseUrl: "http://localhost:8
|
|
|
471
480
|
| `twitch.whispers` | Whispers |
|
|
472
481
|
| `twitch.auth` | Tokens and OAuth flows |
|
|
473
482
|
|
|
474
|
-
Every method has an example and a link to the official reference in its documentation: hover it in your editor.
|
|
483
|
+
Every method has an example and a link to the official reference in its documentation: hover it in your editor. The [reference](https://ix-xs.github.io/twitch.api/reference/overview/) lists them all, with their parameters, what they return and the token they need, and the [event types](https://ix-xs.github.io/twitch.api/reference/event-types/) page does the same for EventSub.
|
|
475
484
|
|
|
476
485
|
## Coming from version 1
|
|
477
486
|
|
|
478
|
-
Version 2 is a rewrite. The main differences:
|
|
487
|
+
Version 2 is a rewrite. The [migration page](https://ix-xs.github.io/twitch.api/help/migrating-from-v1/) has the details and a before and after example. The main differences:
|
|
479
488
|
|
|
480
489
|
- The client is a named export and takes `clientId` / `clientSecret`: `new Twitch({ clientId, clientSecret })`.
|
|
481
490
|
- No `initialize()`. Tokens are fetched when needed, and nothing is written to `node_modules` anymore.
|
|
@@ -499,6 +508,13 @@ Version 2 is a rewrite. The main differences:
|
|
|
499
508
|
| `client.getGames(names)` | `twitch.games.get({ name })` |
|
|
500
509
|
| `client.getVideos(login)` | `twitch.videos.get({ user_id })` |
|
|
501
510
|
|
|
511
|
+
## Links
|
|
512
|
+
|
|
513
|
+
- [Documentation](https://ix-xs.github.io/twitch.api/), also [in French](https://ix-xs.github.io/twitch.api/fr/)
|
|
514
|
+
- [Source code and issues](https://github.com/ix-xs/twitch.api) on GitHub
|
|
515
|
+
- [Changelog](https://github.com/ix-xs/twitch.api/blob/main/CHANGELOG.md)
|
|
516
|
+
- [Package](https://www.npmjs.com/package/@ix-xs/twitch.api) on npm
|
|
517
|
+
|
|
502
518
|
## License
|
|
503
519
|
|
|
504
|
-
[MIT](
|
|
520
|
+
[MIT](https://github.com/ix-xs/twitch.api/blob/main/LICENSE)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ix-xs/twitch.api",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.3",
|
|
4
4
|
"description": "The whole Twitch API, typed. A zero-dependency client for JavaScript and TypeScript: all 149 Helix endpoints and 83 EventSub events, with tokens, rate limits, pagination and reconnects handled for you.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"twitch",
|