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

Complete recode (introduces breaking changes) #44

Merged
merged 32 commits into from
Mar 3, 2020
Merged

Conversation

SpraxDev
Copy link
Owner

@SpraxDev SpraxDev commented Feb 26, 2020

A small list of changes:

  • Recoded in TypeScript
    *Defeat the need of my Java-Backend by processing skin images directly in the API
  • Improved performance
  • Way better error handling and notifications sent to me (via Discord WebHook)
  • Improved database layout and queries
  • Store most Minecraft related things for later use (SkinDB and Mojang API downtime)
  • Don't mimic Mojang's API behavior and use 404 instead of 204 for non existing accounts
  • Request rendered skins
  • Automatically upgrade requested skins to 64x64 pixels (can be turned off)
  • Request full Minecraft user profile containing: uuip, uuid with hyphen, skinURL, capeURL, raw texture data, name history, ...
  • Request Mojang, OptiFine and LabyMod capes
  • Request skin renders by URL instead of Minecraft-User

Planned:

Minecraft-Route is fully functional but not done!
All Mojang/Minecraft Routes are not compatible with the old/current version of the API
@SpraxDev SpraxDev added the enhancement New feature or request label Feb 26, 2020
@SpraxDev SpraxDev self-assigned this Feb 26, 2020
@lgtm-com
Copy link

lgtm-com bot commented Feb 26, 2020

This pull request introduces 4 alerts when merging c3cfef3 into e9af242 - view on LGTM.com

new alerts:

  • 2 for Hard-coded credentials
  • 1 for Useless conditional
  • 1 for Unused variable, import, function or class

@lgtm-com
Copy link

lgtm-com bot commented Feb 26, 2020

This pull request introduces 4 alerts when merging fcdce90 into e9af242 - view on LGTM.com

new alerts:

  • 2 for Hard-coded credentials
  • 1 for Useless conditional
  • 1 for Unused variable, import, function or class

@lgtm-com
Copy link

lgtm-com bot commented Feb 26, 2020

This pull request introduces 4 alerts when merging 46ea6f7 into e9af242 - view on LGTM.com

new alerts:

  • 2 for Hard-coded credentials
  • 1 for Useless conditional
  • 1 for Unused variable, import, function or class

@SpraxDev SpraxDev changed the title Complete recode (breaking changes) Complete recode (introduces breaking changes) Mar 2, 2020
@SpraxDev SpraxDev marked this pull request as ready for review March 3, 2020 15:32
const SKIN_STEVE = require('fs').readFileSync('./storage/static/steve.png'),
SKIN_ALEX = require('fs').readFileSync('./storage/static/alex.png');

//FIXME: UUID '3126ba4c6uud424c877d1347fa974d23' belongs to user '_' but is not a valid UUID - API throws 500 because it detects it as invalid UUID (But should return the profile)
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't find that UUID - Looks like it changed because the User _ now has d324567b-6c91-4cee-8c30-872946b5a629
But the API is fine with that and does not encounter any errors

Can be used by services like UptimeRobot to determin online status
reorganize imports
@sonarcloud
Copy link

sonarcloud bot commented Mar 3, 2020

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@SpraxDev SpraxDev merged commit f72576d into master Mar 3, 2020
@SpraxDev SpraxDev deleted the complete-recode branch March 3, 2020 18:09
@SpraxDev
Copy link
Owner Author

SpraxDev commented Mar 3, 2020

Look at commit f72576d for full changelog

@SpraxDev SpraxDev added this to the Release v1.0 milestone Mar 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Complete recode (Pre-Release of version 1.0)
1 participant