-
-
Notifications
You must be signed in to change notification settings - Fork 46
/
changelog.txt
250 lines (204 loc) · 12.2 KB
/
changelog.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
=====================
JokeAPI Changelog
- Version 2.3.3 -
=====================
[Planned for future releases]
- Allow definition of max requests per minute per each client (issue #37)
- Add positive flags and a "?whitelistFlags" param (issue #127)
- Add Unit Tests (issue #121)
- Serve docs with nginx to speed up page load times (issue #118)
[2.3.3] - (PR #TODO:)
- Moved dark jokes off the repository, permanent solution is still pending
[2.3.2] - Joke update (PR #341)
- Added new jokes
- Rewrote the submission script to make it much more streamlined (issue #340)
- Rewrote the add-joke script so it's easier for me to use
- Added a new info script to make working with JokeAPI easier for me
- Added a global CLI interface (issue #344)
- API now adjusts environment-dependent settings automatically (issue #343)
[2.3.1] - The Safe Mode Hotfix, because bugs exist for some reason (PR #214)
- Fixed bug "API Error 500 - Cannot read property 'msBeforeNext' of null" (issue #212)
- Fixed bug where API responded with Error 106 when using format=txt on endpoint /joke (issue #218)
- Re-flagged joke 79 (issue #220)
- API now automatically adds modification date <meta> tag to the docs (issue #223)
- /info endpoint now gives the number of safe jokes per language (issue #224)
- Added dependent jonathanbossenger/devdadjokes (issue #225)
- Added translations to joke submission parser
- Made static content not indexable by web crawlers
[2.3.0] - The Safe Mode Update
- JokeAPI now has its own domain - https://jokeapi.dev/
- Version 2 of the API should be called @ https://v2.jokeapi.dev/ but can also be called with the old domain and https://jokeapi.dev/
- The stage version is @ https://stage.jokeapi.dev/
- Version 3 will be available @ https://v3.jokeapi.dev/
- Implemented safe mode (issue #196)
- Added contributors to the documentation
- Added the blacklist flag "explicit" to filter out jokes containing explicit language
- Improved the documentation a little bit again
- Small sub-headers can now be linked to, too
- Added some unit tests to make JokeAPI more reliable
- Endpoint "/info"
- Endpoint "/langcode/{LANGUAGE}"
- Parameter "safe-mode" on Endpoint "/joke/{CATEGORY}"
- Added a URL parameter to dry-run the /submit endpoint (issue #187)
- API now tells clients how many requests they have left by providing some headers (issue #188)
- Added changelog generation in Markdown format (thanks to Sahithyan Kandathasan / issue #191)
- Changelog link in docs now redirects to the markdown file on GitHub (issue #192)
- Added a few category aliases
- Miscellaneous for Misc
- Coding for Programming
- Development for Programming
- Halloween for Spooky
- Renamed category "Miscellaneous" to "Misc" but kept old name "Miscellaneous" as an alias
- Added two new wrapper libraries
- sv443-joke-api for Node.js / TS (issue #190)
- jokeapi-go for Golang (issue #193)
- Updated C# code example in the docs (issue #207)
- Increased Rate Limiting budgets (issue #208)
- When using GET: from 60 to 120
- When using POST: from 3 to 5
[2.2.2] - The Seasonal Update
- Added some new seasonal categories (issue #180)
- Spooky (Halloween)
- Christmas (thanks for the suggestion Dan)
- Added dependent ToastIT-dev/PoshBot.Joker (issue #173)
- Added a bunch of joke submissions
- Reliability improvements in the documentation (issue #181)
- Added POST as a method to submit data to the API since it makes more sense than PUT (maybe deprecating that some time)
[2.2.1] - Version 2.2 Hotfix
- Added the Czech translation (PR #137) - provided by @ThatCopy (https://github.com/ThatCopy) - thanks :)
- Added a missing conversion mapping when using format `txt` and the `amount` parameter on endpoint `/joke` (issue #138)
- Fixed wrong URLs in the documentation's JavaScript
- Fixed crash when a client asks for a translation that doesn't exist
- Slightly improved the documentation
- Applied a few security patches
[2.2.0] - The Pun Update
- Added joke category "Pun" (issue #105)
- Added "?amount" parameter to joke endpoint so multiple jokes can be fetched at once (issue #126)
- Added support for jokes and error messages of different languages (issue #75)
- /langcode/{LANGUAGE} endpoint
- /languages endpoint
- "?lang=code" URL parameter
- Fixed ID caching (again, sigh) (issue #80)
- Added pm2 custom metrics (issue #91)
- Fixed HTTP 403 errors (issue #96)
- Remade the URL parser using a package (issue #97)
- Daemonized the API token refreshing (issue #102)
- Rate limiting joke submissions more harshly now (issue #104)
- Fixed error where the end of the payload were cut off, thus invalidating JSON (issue #119)
- Joke submission property order is now enforced, improving uniformity (issue #120)
- Joke submissions are now validated to make sure they don't contain fancy Unicode chars (issue #123)
[2.1.5] - 2020 Q3 general patch #2
- Ditched my botched rate limiting package for a "commercial" one (issue #113)
- Added API token section to documentation (issue #114)
- Client now receives a "Token-Valid" header with the value 0 or 1 depending on token validity (issue #115)
- Renamed "X-Auth-Token" header to "Authorization" so requests don't get blocked by Cloudflare (issue #117)
- Cleaned up a lot of code
[2.1.4] - 2020 Q3 general patch #1
- Fixed the IP getter module for like the 500th time now
[2.1.3] - 2020 Q2 general patch #1
- Added option to disable all console output but error messages (issue #72)
- The content of jokes in the joke submission form is now correctly escaped and can no longer mess up the page (issue #68)
- Fixed crash when parsing a malformatted URI (issue #69 (nice))
- Re-flagged some jokes
- Updated dependencies
[2.1.2] - Plain Text update
- Added file format "txt" to receive data as plain text
- Fixed the joke submission URL in the /info endpoint data
- Added HTTP error codes:
- 413 Payload Too Large
- 414 URI Too Long
[2.1.1] - Auth update hotfix
- Fixed incorrect error cause when using an out-of-range ID range parameter (see issue #54)
- Added submission form (https://v2.jokeapi.dev/#submit)
[2.1.0] - The auth update
- Added an authorization header to make whitelisting possible without needing to have a static IP
- Added the script "npm run add-token [amount]" to add one or more tokens
- Improved the documentation (see issue #52)
- Fixed a few bugs in the documentation
[2.0.1] - A few hotfixes for the big 2.0.0 updates and some very very minor features I wanted to add
- Hotfixed a few bugs from the big 2.0.0 update
- Fixed joke ID caching (to not serve the same jokes multiple times)
- Added three new commands that are run through CI and before contributing
- Enabled automated code fixing with ESLint
[2.0.0] - The complete rewrite - JokeAPI was completely rewritten and should now run like 100x better and be more easy to develop and maintain
- Massively improved the "Try it out" section in the docs
- Reformatted the jokes to always contain all flags
- Added support for selecting multiple categories at once (for example: "https://v2.jokeapi.dev/joke/Dark,Miscellaneous/")
- Massive performance improvements:
- The documentation page and some static content are now able to be served with gzip, deflate and brotli encoding, decreasing the required bandwidth and speeding up page loading time
- Reformatted the jokes to have the IDs beforehand, furthermore increasing performance and making it easier to know which joke ID belongs to which joke
- Now the documentation page runs on a daemon, meaning it will only be recompiled if a file has changed, massively improving JokeAPIs perfomance
- Static content like the stylesheet, client-side JS and images will now be loaded separately, through the "static" endpoint, decreasing page load time by an order of magnitude
- Added a few new URL parameters:
- Added the "?type" URL parameter to specify the type of the served joke ("single" or "twopart")
- Added the "?contains" URL parameter to only serve jokes that match the provided search query
- Added the "?idRange" URL parameter to get jokes from a single ID or an ID range (example: "https://v2.jokeapi.dev/joke/Any?id=50-75" or "...?id=15")
- Added the "racist" and "sexist" flags for better filtering of offensive jokes
- IP addresses are now hashed, protecting JokeAPI's users better and making it GDPR/DSGVO compliant
- Added multiple scripts that should be run before contributing to the project / that are run through GitHub's Continuous Integration:
- "npm run reformat" to reformat jokes from the old pre-2.0.0 syntax to the new 2.0.0 syntax
- "npm run reassign-ids" to make sure all jokes have the correct IDs
- "npm run validate-jokes" to make sure all jokes are in the correct format
- "npm run add-joke" to add a joke
- Renamed "category" endpoint to "joke"
- The submission of empty jokes will now be prevented
- Set up a new reverse proxy at "https://sv443.net/jokeapi/v2/" to let people slowly migrate to the new version
- Re-validated all jokes and removed duplicates and re-flagged them
- Added an analytics module that keeps track of everything and makes it possible for me to finally see some (anonymous) usage statistics (complies with the GDPR/DSGVO)
- Joke IDs will now be cached to prevent the same joke from being served multiple times in a row (this is not perfect yet but much better than before)
- The documentation page was completely rewritten and should now be easier to use and more concise
- Updated dependencies and added some new ones
- Updated the contributor guide (contributing.md file)
[1.1.2]
- joke categories are now case insensitive
- trailing slashes now don't produce an "invalid category" error anymore
[1.1.1]
- better IP getter for the rate limiting
- updated dependencies
- very small improvements to the console window
[1.1.0]
- switched to ReadStreams instead of just loading the entire file to RAM to massively improve request performance (more details in issue #2)
- this basically means it transmits the data over time, instead of loading it all to RAM and sending it at once
- added rate limiting to counter DoS attacks (yes I've been getting some of those *sigh*)
[1.0.0]
- turned the single endpoint into multiple endpoints
- "categories" to get all available categories
- "info" to get all information about JokeAPI
- "category/XY" to get a joke
- added flag filter to blacklist certain jokes
- added very sophisticated analytics
- added "Allow" header to all incoming requests to better support preflight requests
- added multiple file format support
- JSON
- XML
- YAML
- added JS and CSS injection into docs page to separate everything into three files (can be expanded to more files if needed)
- fixed minor style glitches on the docs page
- made the HTML and CSS of the docs way better
- "scroll to top" button
- smooth scroll
- anchors to make linking to a certain header possible
- turned "add joke" link into a button and moved it next to "scroll to top" button
- fixed @import's
- updated <meta>'s
- turned "blank_" into "_blank" (sigh)
- added flag filter to interactive example
- did even more internal detail work
- reformatted log files
- clearing certain log files after a threshold is reached
- updated dependencies
- made better and more uniformly formatted error messages
- added this changelog
[0.1.2]
- added "Dark" category
- added joke submission form
- improved interactive example
- modified gitignore
[0.1.1]
- added interactive example on docs page
- made icon on docs page smaller
- added wrapper script
[0.1.0]
- basic functionality
- 47 jokes
- category filter