Skip to content

Commit d159f1c

Browse files
committed
Update Markdown formatting and add remark linter
1 parent 29df65e commit d159f1c

File tree

6 files changed

+3387
-277
lines changed

6 files changed

+3387
-277
lines changed

CHANGELOG.md

Lines changed: 104 additions & 105 deletions
Original file line numberDiff line numberDiff line change
@@ -4,143 +4,142 @@ All notable changes to this project will be documented in this file.
44

55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7-
---
7+
***
88

9-
### [0.5.0] (unreleased)
9+
### \[0.5.0] (unreleased)
1010

1111
#### Changed
1212

13-
- **[breaking]** Update the **`galeforce.lol.match`** from ~~`match-v4`~~ to **`match-v5`**
14-
- Remove ~~`galeforce.lol.match.tournament`~~
15-
- Update required parameters for `galeforce.lol.match.match`, `galeforce.lol.match.list`, `galeforce.lol.match.timeline` to conform to Riot `match-v5` specifications
16-
- Rewrite DTOs for match and timeline JSON responses
17-
- **[breaking]** Dropped support for Node versions *<12.0*
13+
* **\[breaking]** Update the **`galeforce.lol.match`** from ~~`match-v4`~~ to **`match-v5`**
14+
* Remove ~~`galeforce.lol.match.tournament`~~
15+
* Update required parameters for `galeforce.lol.match.match`, `galeforce.lol.match.list`, `galeforce.lol.match.timeline` to conform to Riot `match-v5` specifications
16+
* Rewrite DTOs for match and timeline JSON responses
17+
* **\[breaking]** Dropped support for Node versions *<12.0*
18+
* Fixed a bug preventing the library from being used in environments where `fs` is not available
1819

19-
### [0.4.0] (2021-06-22)
20+
### \[0.4.0] (2021-06-22)
2021

2122
#### Added
2223

23-
- Add significant rate limiting functionality using the **bottleneck** library
24-
- Support for a user-specified number of retry attempts after receiving *HTTP 429* errors
25-
- Automatic rate limiting with retry timing automatically determined based on response headers
26-
- New `max-concurrent` and `min-time` options for Riot API requests
27-
- Setting multiple Action properties simultaneously from an object using **`.set()`**
28-
>
29-
> ```typescript
30-
> const summonerData = await galeforce.lol.summoner().set({
31-
> region: galeforce.region.lol.NORTH_AMERICA,
32-
> summonerName: 'name'
33-
>}).exec();
34-
> ```
35-
- Expose the `Division`, `Tier`, `Game`, `Queue`, and `Region` enums directly via **`GaleforceModule.*`**
36-
> ```typescript
37-
> import GaleforceModule, { Region } from 'galeforce';
38-
>
39-
> console.log(Region.lol.NORTH_AMERICA) // na1
40-
> ```
41-
- Legends of Runeterra Data Dragon support under **`galeforce.lor.ddragon`**
24+
* Add significant rate limiting functionality using the **bottleneck** library
25+
* Support for a user-specified number of retry attempts after receiving *HTTP 429* errors
26+
* Automatic rate limiting with retry timing automatically determined based on response headers
27+
* New `max-concurrent` and `min-time` options for Riot API requests
28+
* Setting multiple Action properties simultaneously from an object using **`.set()`**
29+
> ```typescript
30+
> const summonerData = await galeforce.lol.summoner().set({
31+
> region: galeforce.region.lol.NORTH_AMERICA,
32+
> summonerName: 'name'
33+
> }).exec();
34+
> ```
35+
* Expose the `Division`, `Tier`, `Game`, `Queue`, and `Region` enums directly via **`GaleforceModule.*`**
36+
> ```typescript
37+
> import GaleforceModule, { Region } from 'galeforce';
38+
>
39+
> console.log(Region.lol.NORTH_AMERICA) // na1
40+
> ```
41+
* Legends of Runeterra Data Dragon support under **`galeforce.lor.ddragon`**
4242
4343
#### Changed
4444
45-
- **[breaking]** Update the structure of the config object passed into the `GaleforceModule()` constructor
46-
- Now merges the provided configuration object with a default object
47-
48-
```javascript
49-
{
50-
'riot-api': {
51-
key: undefined,
52-
},
53-
'rate-limit': {
54-
type: 'bottleneck',
55-
cache: {
56-
type: 'internal',
57-
'key-id': 'galeforce',
58-
uri: undefined,
45+
* **\[breaking]** Update the structure of the config object passed into the `GaleforceModule()` constructor
46+
* Now merges the provided configuration object with a default object
47+
48+
```javascript
49+
{
50+
'riot-api': {
51+
key: undefined,
5952
},
60-
options: {
61-
intervals: {},
62-
'max-concurrent': null,
63-
'min-time': 0,
64-
'retry-count-after-429': 3,
53+
'rate-limit': {
54+
type: 'bottleneck',
55+
cache: {
56+
type: 'internal',
57+
'key-id': 'galeforce',
58+
uri: undefined,
59+
},
60+
options: {
61+
intervals: {},
62+
'max-concurrent': null,
63+
'min-time': 0,
64+
'retry-count-after-429': 3,
65+
},
6566
},
66-
},
67-
debug: [],
68-
}
69-
```
70-
- **[breaking]** Rename enums to have singular names
71-
- ~~`galeforce.regions`~~ &#8594; **`galeforce.region`**
72-
- ~~`galeforce.queues`~~ &#8594; **`galeforce.queue`**
73-
- ~~`galeforce.tiers`~~ &#8594; **`galeforce.tier`**
74-
- ~~`galeforce.divisions`~~ &#8594; **`galeforce.division`**
75-
- ~~`galeforce.games`~~ &#8594; **`galeforce.game`**
76-
- Update the **`galeforce.region`** object to better represent available API regions
77-
- Add an `esports` routing value to associated Riot and Valorant region objects (check Riot documentation for endpoints where this is valid)
78-
- **[breaking]** Split off Legends of Runeterra request regions into their own **`galeforce.region.lor`** enum, which is now used in all `galeforce.lor.*` endpoints
79-
- Update `galeforce:rate-limit` debugging output
80-
- **[breaking]** Move existing League of Legends Data Dragon functionality from **`galeforce.ddragon`** to **`galeforce.lol.ddragon`**
81-
82-
### [0.3.0] (2021-05-03)
67+
debug: [],
68+
}
69+
```
70+
* **\[breaking]** Rename enums to have singular names
71+
* \~~`galeforce.regions`~~**`galeforce.region`**
72+
* \~~`galeforce.queues`~~**`galeforce.queue`**
73+
* \~~`galeforce.tiers`~~**`galeforce.tier`**
74+
* \~~`galeforce.divisions`~~**`galeforce.division`**
75+
* \~~`galeforce.games`~~**`galeforce.game`**
76+
* Update the **`galeforce.region`** object to better represent available API regions
77+
* Add an `esports` routing value to associated Riot and Valorant region objects (check Riot documentation for endpoints where this is valid)
78+
* **\[breaking]** Split off Legends of Runeterra request regions into their own **`galeforce.region.lor`** enum, which is now used in all `galeforce.lor.*` endpoints
79+
* Update `galeforce:rate-limit` debugging output
80+
* **\[breaking]** Move existing League of Legends Data Dragon functionality from **`galeforce.ddragon`** to **`galeforce.lol.ddragon`**
81+
82+
### \[0.3.0] (2021-05-03)
8383
8484
#### Added
8585
86-
- Live Client Data endpoint support under **`galeforce.lcd`**
87-
- Game Client endpoint information using **`galeforce.gc.swagger()`** and **`galeforce.gc.openAPI()`**
88-
- Support for an internal Javascript rate-limit cache using the **node-cache** library. (Use the *javascript* option in the `cache` section of your config.)
89-
- DTO interfaces for TypeScript are now public-facing and can be accessed directly via **`GaleforceModule.dto`** or as another export:
90-
>
91-
> ```typescript
92-
> import GaleforceModule from 'galeforce';
93-
>
94-
> const summonerData: GaleforceModule.dto.SummonerDTO = ...
95-
> // get summoner data
96-
> ```
97-
98-
> ```typescript
99-
> import GaleforceModule, { dto } from 'galeforce';
100-
>
101-
> const summonerData: dto.SummonerDTO = ...
102-
> // get summoner data
103-
> ```
104-
- Direct access to action URLs using the **`.URL()`** method
105-
>
106-
> ```typescript
107-
> const summonerURL = galeforce.lol.summoner().region(galeforce.regions.lol.NORTH_AMERICA).name('name').URL();
108-
> // https://na1.api.riotgames.com/lol/summoner/v4/summoners/by-name/name
109-
> ```
86+
* Live Client Data endpoint support under **`galeforce.lcd`**
87+
* Game Client endpoint information using **`galeforce.gc.swagger()`** and **`galeforce.gc.openAPI()`**
88+
* Support for an internal Javascript rate-limit cache using the **node-cache** library. (Use the *javascript* option in the `cache` section of your config.)
89+
* DTO interfaces for TypeScript are now public-facing and can be accessed directly via **`GaleforceModule.dto`** or as another export:
90+
91+
> ```typescript
92+
> import GaleforceModule from 'galeforce';
93+
>
94+
> const summonerData: GaleforceModule.dto.SummonerDTO = ...
95+
> // get summoner data
96+
> ```
97+
98+
> ```typescript
99+
> import GaleforceModule, { dto } from 'galeforce';
100+
>
101+
> const summonerData: dto.SummonerDTO = ...
102+
> // get summoner data
103+
> ```
104+
* Direct access to action URLs using the **`.URL()`** method
105+
> ```typescript
106+
> const summonerURL = galeforce.lol.summoner().region(galeforce.regions.lol.NORTH_AMERICA).name('name').URL();
107+
> // https://na1.api.riotgames.com/lol/summoner/v4/summoners/by-name/name
108+
> ```
110109
111110
#### Changed
112111
113-
- **[breaking]** Change the output of Data Dragon image and tarfile actions to a `Buffer` object.
114-
- Previous versions returned corrupted versions of the files which were unusable.
115-
- Riot API keys are no longer required in the `GaleforceModule()` constructor, and the `options` parameter is now optional.
112+
* **\[breaking]** Change the output of Data Dragon image and tarfile actions to a `Buffer` object.
113+
* Previous versions returned corrupted versions of the files which were unusable.
114+
* Riot API keys are no longer required in the `GaleforceModule()` constructor, and the `options` parameter is now optional.
116115
117-
> ```typescript
118-
> import GaleforceModule from 'galeforce';
119-
>
120-
> const galeforce = new GaleforceModule(); // now OK, but requests requiring an API key will return a 401 Unauthorized error.
121-
> ```
116+
> ```typescript
117+
> import GaleforceModule from 'galeforce';
118+
>
119+
> const galeforce = new GaleforceModule(); // now OK, but requests requiring an API key will return a 401 Unauthorized error.
120+
> ```
122121
123-
### [0.2.0] (2021-01-30)
122+
### \[0.2.0] (2021-01-30)
124123
125124
#### Added
126125
127-
- Debugging features for action, payload, riot-api, and rate-limit using the **debug** library.
128-
- Full Data Dragon endpoint support under **`galeforce.ddragon`**.
126+
* Debugging features for action, payload, riot-api, and rate-limit using the **debug** library.
127+
* Full Data Dragon endpoint support under **`galeforce.ddragon`**.
129128
130129
#### Changed
131130
132-
- **[breaking]** Rename the ~~`galeforce.*.match.matchlist`~~ functions to **`galeforce.*.match.list`**.
133-
- **[breaking]** Split ~~`galeforce.lol.mastery.summoner`~~ into **`galeforce.lol.mastery.champion`** and **`galeforce.lol.mastery.list`**.
134-
- **[breaking]** Change CommonJS / `require()` import method to no longer allow `.default`.
131+
* **\[breaking]** Rename the ~~`galeforce.*.match.matchlist`~~ functions to **`galeforce.*.match.list`**.
132+
* **\[breaking]** Split ~~`galeforce.lol.mastery.summoner`~~ into **`galeforce.lol.mastery.champion`** and **`galeforce.lol.mastery.list`**.
133+
* **\[breaking]** Change CommonJS / `require()` import method to no longer allow `.default`.
135134
136-
### [0.1.1] (2021-01-23)
135+
### \[0.1.1] (2021-01-23)
137136
138137
#### Changed
139138
140-
- Fix a major bug preventing the library from initializing properly on Node.js ≤ 13.
139+
* Fix a major bug preventing the library from initializing properly on Node.js ≤ 13.
141140
142-
### [0.1.0] (2021-01-23)
141+
### \[0.1.0] (2021-01-23)
143142
144143
#### Added
145144
146-
- Initial release.
145+
* Initial release.

CODE_OF_CONDUCT.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,22 @@ appearance, race, religion, or sexual identity and orientation.
1414
Examples of behavior that contributes to creating a positive environment
1515
include:
1616

17-
* Using welcoming and inclusive language
18-
* Being respectful of differing viewpoints and experiences
19-
* Gracefully accepting constructive criticism
20-
* Focusing on what is best for the community
21-
* Showing empathy towards other community members
17+
* Using welcoming and inclusive language
18+
* Being respectful of differing viewpoints and experiences
19+
* Gracefully accepting constructive criticism
20+
* Focusing on what is best for the community
21+
* Showing empathy towards other community members
2222

2323
Examples of unacceptable behavior by participants include:
2424

25-
* The use of sexualized language or imagery and unwelcome sexual attention or
26-
advances
27-
* Trolling, insulting/derogatory comments, and personal or political attacks
28-
* Public or private harassment
29-
* Publishing others' private information, such as a physical or electronic
30-
address, without explicit permission
31-
* Other conduct which could reasonably be considered inappropriate in a
32-
professional setting
25+
* The use of sexualized language or imagery and unwelcome sexual attention or
26+
advances
27+
* Trolling, insulting/derogatory comments, and personal or political attacks
28+
* Public or private harassment
29+
* Publishing others' private information, such as a physical or electronic
30+
address, without explicit permission
31+
* Other conduct which could reasonably be considered inappropriate in a
32+
professional setting
3333

3434
## Our Responsibilities
3535

0 commit comments

Comments
 (0)