This repository has been archived by the owner on Nov 6, 2021. It is now read-only.
Releases: lmmfranco/nintendo-switch-eshop
Releases · lmmfranco/nintendo-switch-eshop
v2.2.7
v2.2.6
v2.2.5
v2.2.3
2.2.1
Fixes and Restructures
Fixes
- Fixed
getGamesAmerica
to use the new Algolia based API. At last! Many thanks to @endy124 for their work on this!
Changed
- Restructured project
- Now produces optimal bundles with Rollup
- Proper JSDoc generation
- Keeping a changelog
- Cleaner editorconfig and thus coding style
- GitHub issue and pull request and a contributing guide
- Better CircleCI configuration
Hotfix: country-data types in dependencies
🔥 Hotfix
- Moved
@types/country-data
to devDependencies thinking that would be okay but apparently it is not as it breaks TypeScript builds. So sorry! This should fix these kind of errors that were present in v2.1.0:
$ tsc
node_modules/nintendo-switch-eshop/dist/interfaces.d.ts:1:25 - error TS7016: Could not find a declaration file for module 'country-data'. '/home/favna/dev/ribbon/node_modules/country-data/index.js' implicitly has an 'any' type.
Try `npm install @types/country-data` if it exists or add a new declaration (.d.ts) file containing `declare module 'country-data';`
1 import { Country } from 'country-data';
~~~~~~~~~~~~~~
Found 1 error.
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
➜ ribbon git:(master)
Fixes galore
This releases fixes various issues that cropped up in the lib during conversion to TypeScript
🛠 Bugfixes & enhancements
- Get rid of Gulp for development environment => NPM Scripts suffice just fine
- Move
@types
to devDependencies where they belong => No more installed along with the package - Change to terser-folder => Better ES6 support
- Fixed looping in
getGamesAmerica
=> The lib loops for you again now, sorry for breaking that! - Fixed looping in
getPrices
=> Related to the other looping issue, now fixed again!
🎉 Features
- Expose
GameUS
,GameEU
andGameJP
interface for TypeScript users - Allow for the
getGamesAmerica
shop
property to be'unfiltered'
. This will remove the property from the API request and return everything possible
🧪 Testing
- We now also test that looping of
getGamesAmerica
works properly
Rebuild from group up
Please Note:
This update is entirely breaking to anyone previously using v1.x versions of this lib. Please view the new usage documentation in the README
- Reworked in TypeScript (builds are still in JS)
- Auto generated
.d.ts
for the TypeScript users - Type safety as well
- Auto generated
- Lib now uses async/await instead of Promises
- NPM installs are minified and mangled (with UglifyJS)
- Syntax for importing is changed
Q: Where is 2.0.0?
A: In the void because we forgot to update the README