Bläddra i källkod

chore: bump version & readme & changelog

Sv443 2 år sedan
förälder
incheckning
56a82bf9e2
4 ändrade filer med 835 tillägg och 9 borttagningar
  1. 4 0
      README.md
  2. 8 1
      changelog.md
  3. 820 7
      package-lock.json
  4. 3 1
      package.json

+ 4 - 0
README.md

@@ -281,6 +281,10 @@ All routes support gzip and deflate compression.
 > `?preferLang=en`  
 > Sometimes the genius API and geniURL's filtering will rank song translations higher than the original song. This optional parameter can help with that.  
 > Specify a [two-character ISO 639-1 language code](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) here to tell geniURL to prefer results of that language.  
+>   
+> `?format=json/xml`  
+> Use this optional parameter to change the response format from the default (`json`) to `xml`  
+> The structure of the XML data is similar to the shown JSON data.
 > 
 > <br>
 > 

+ 8 - 1
changelog.md

@@ -1,5 +1,6 @@
 ## Version History:
-- [**1.2.0**](#v120)
+- [**1.3.0**](#v130)
+- [1.2.0](#v120)
 - [1.1.1](#v111)
 - [1.1.0](#v110)
 - [1.0.0](#v100)
@@ -8,6 +9,12 @@
 
 <br><br>
 
+### v1.3.0
+- Added endpoint `/translations/:songId` to receive info about a song's translations
+- Added parameter `?preferLang=en` to always rank results of a certain language higher than the rest
+
+<br>
+
 ### v1.2.0
 - Added `?threshold` parameter to change the fuzzy search threshold from its default of 0.6 ([#7](https://github.com/Sv443/geniURL/issues/7))
 - Added support for fuzzy searching when using `?q` instead of `?artist` and `?song` ([#8](https://github.com/Sv443/geniURL/issues/8))

Filskillnaden har hållts tillbaka eftersom den är för stor
+ 820 - 7
package-lock.json


+ 3 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "geniurl",
-  "version": "1.2.0",
+  "version": "1.3.0",
   "description": "Simple JSON and XML REST API to search for song metadata and the lyrics URL on genius.com",
   "main": "src/index.ts",
   "scripts": {
@@ -51,6 +51,8 @@
     "@types/express": "^4.17.14",
     "@types/node": "^18.11.3",
     "@types/tcp-port-used": "^1.0.1",
+    "@typescript-eslint/eslint-plugin": "^5.48.1",
+    "@typescript-eslint/parser": "^5.48.1",
     "dotenv": "^16.0.0",
     "eslint": "^8.9.0",
     "nodemon": "^2.0.20",

Vissa filer visades inte eftersom för många filer har ändrats