nintendo-switch-eshop
Advanced tools
Comparing version 7.1.3 to 8.0.0
@@ -5,2 +5,23 @@ # Changelog | ||
# [8.0.0](https://github.com/favna/nintendo-switch-eshop/compare/v7.1.3...v8.0.0) - (2024-04-29) | ||
## ๐ Refactor | ||
- Do not use `querystring` node internal for better browser bundle ([0d01ac0](https://github.com/favna/nintendo-switch-eshop/commit/0d01ac01036330a469286e55f3f59fadafbd6a26)) | ||
- Rework repository, update whole stack ([a26b37b](https://github.com/favna/nintendo-switch-eshop/commit/a26b37b9f24b4889dab47623883a6686955bff75)) | ||
## ๐ Bug Fixes | ||
- Configure package for proper bundle exports ([7e1c1df](https://github.com/favna/nintendo-switch-eshop/commit/7e1c1df147b1f9067aea692f9d4dd56664ae35c8)) | ||
## ๐ Documentation | ||
- Migrate to astro (#33) ([0f5d2c8](https://github.com/favna/nintendo-switch-eshop/commit/0f5d2c8b1fe949a8fc2ca5d21e2db46ffc61a2a1)) | ||
## ๐ Features | ||
- Ensure proper CJS and ESM bundles and add IIFE bundle ([3d009bc](https://github.com/favna/nintendo-switch-eshop/commit/3d009bc807d142a482be3d21ff79bc156dcebac9)) | ||
- Drop default export of `getGamesAmerica` ([9b93ed9](https://github.com/favna/nintendo-switch-eshop/commit/9b93ed9a8f7738294f37438420868e9f49c62418)) | ||
- ๐ฅ **BREAKING CHANGE:** `getGamesAmerica` is no longer default exported. Use a named import instead. | ||
# [7.1.3](https://github.com/favna/nintendo-switch-eshop/compare/v7.1.2...v7.1.3) - (2023-04-13) | ||
@@ -7,0 +28,0 @@ |
100
package.json
{ | ||
"name": "nintendo-switch-eshop", | ||
"version": "7.1.3", | ||
"version": "8.0.0", | ||
"workspaces": [ | ||
@@ -10,71 +10,74 @@ "documentation/" | ||
"license": "Apache-2.0", | ||
"main": "dist/index.js", | ||
"module": "dist/index.mjs", | ||
"types": "dist/index.d.ts", | ||
"type": "module", | ||
"main": "dist/cjs/index.cjs", | ||
"module": "dist/esm/index.mjs", | ||
"browser": "dist/iife/index.global.js", | ||
"unpkg": "dist/iife/index.global.js", | ||
"types": "dist/cjs/index.d.cts", | ||
"exports": { | ||
"import": "./dist/index.mjs", | ||
"require": "./dist/index.js", | ||
"types": "./dist/index.d.ts" | ||
"import": { | ||
"types": "./dist/esm/index.d.mts", | ||
"default": "./dist/esm/index.mjs" | ||
}, | ||
"require": { | ||
"types": "./dist/cjs/index.d.cts", | ||
"default": "./dist/cjs/index.cjs" | ||
}, | ||
"browser": "./dist/iife/index.global.js" | ||
}, | ||
"sideEffects": false, | ||
"homepage": "https://nintendo-switch-eshop.vercel.app", | ||
"homepage": "https://nintendo-switch-eshop.pages.dev", | ||
"scripts": { | ||
"test": "vitest run", | ||
"lint": "eslint src tests documentation/src --ext mjs,js,ts,tsx --fix", | ||
"typecheck": "tsc -p tsconfig.dev.json", | ||
"build": "tsup", | ||
"lint": "eslint src tests --ext mjs,js,ts,tsx --fix", | ||
"typecheck": "tsc -p tsconfig.typecheck.json", | ||
"build": "tsup && yarn build:rename-cjs-index", | ||
"build:rename-cjs-index": "node scripts/rename-cjs-index.mjs", | ||
"bump": "cliff-jumper", | ||
"check-update": "cliff-jumper --dry-run", | ||
"_postinstall": "husky install .github/husky", | ||
"prepack": "yarn build && pinst --disable", | ||
"postpack": "pinst --enable" | ||
"prepack": "yarn build" | ||
}, | ||
"dependencies": { | ||
"@sapphire/fetch": "^2.4.1", | ||
"@sapphire/result": "^2.6.1", | ||
"@types/country-data": "^0.0.2", | ||
"@sapphire/fetch": "^3.0.2", | ||
"@sapphire/result": "^2.6.6", | ||
"@types/country-data": "^0.0.5", | ||
"country-data": "^0.0.31", | ||
"fast-xml-parser": "^4.2.0" | ||
"fast-xml-parser": "^4.3.6" | ||
}, | ||
"devDependencies": { | ||
"@commitlint/cli": "^17.5.1", | ||
"@commitlint/config-conventional": "^17.4.4", | ||
"@favware/cliff-jumper": "^2.0.0", | ||
"@sapphire/eslint-config": "^4.4.1", | ||
"@sapphire/prettier-config": "^1.4.5", | ||
"@sapphire/ts-config": "^4.0.0", | ||
"@types/node": "^18.15.11", | ||
"@typescript-eslint/eslint-plugin": "^5.58.0", | ||
"@typescript-eslint/parser": "^5.58.0", | ||
"@vitest/coverage-c8": "^0.29.8", | ||
"@commitlint/cli": "^19.3.0", | ||
"@commitlint/config-conventional": "^19.2.2", | ||
"@favware/cliff-jumper": "^3.0.3", | ||
"@sapphire/eslint-config": "^5.0.4", | ||
"@sapphire/prettier-config": "^2.0.0", | ||
"@sapphire/ts-config": "^5.0.1", | ||
"@types/node": "^20.12.7", | ||
"@typescript-eslint/eslint-plugin": "^7.8.0", | ||
"@typescript-eslint/parser": "^7.8.0", | ||
"@vitest/coverage-v8": "^1.5.2", | ||
"common-tags": "^1.8.2", | ||
"cz-conventional-changelog": "^3.3.0", | ||
"eslint": "^8.38.0", | ||
"eslint-config-prettier": "^8.8.0", | ||
"eslint-plugin-prettier": "^4.2.1", | ||
"husky": "^8.0.3", | ||
"lint-staged": "^13.2.1", | ||
"pinst": "^3.0.0", | ||
"prettier": "^2.8.7", | ||
"pretty-quick": "^3.1.3", | ||
"eslint": "^8.57.0", | ||
"eslint-config-prettier": "^9.1.0", | ||
"eslint-plugin-prettier": "^5.1.3", | ||
"lint-staged": "^15.2.2", | ||
"prettier": "^3.2.5", | ||
"prettier-plugin-astro": "^0.13.0", | ||
"replace": "^1.2.2", | ||
"tsup": "^6.7.0", | ||
"typescript": "^5.0.4", | ||
"vitest": "^0.29.8" | ||
"tsup": "^8.0.2", | ||
"typescript": "^5.4.5", | ||
"vitest": "^1.5.2" | ||
}, | ||
"resolutions": { | ||
"@types/react": "^18.0.9", | ||
"@types/react-dom": "^18.0.4", | ||
"@types/react": "^18.3.1", | ||
"@types/react-dom": "^18.3.0", | ||
"async": "^2.6.4", | ||
"ansi-regex": "^5.0.1", | ||
"minimist": "^1.2.6" | ||
"minimist": "^1.2.8" | ||
}, | ||
"files": [ | ||
"dist/**/*.js*", | ||
"dist/**/*.mjs*", | ||
"dist/**/*.d*" | ||
"dist/" | ||
], | ||
"engines": { | ||
"node": ">=10", | ||
"npm": ">=6" | ||
"node": ">=v16" | ||
}, | ||
@@ -97,2 +100,3 @@ "keywords": [ | ||
"lint-staged": { | ||
"*": "prettier --ignore-unknown --write", | ||
"*.{mjs,js,ts}": "eslint --fix --ext mjs,js,ts" | ||
@@ -110,3 +114,3 @@ }, | ||
}, | ||
"packageManager": "yarn@3.2.1" | ||
"packageManager": "yarn@4.1.1" | ||
} |
<div align="center"> | ||
<a href="https://www.npmjs.com/package/nintendo-switch-eshop"><img src="https://nintendo-switch-eshop.vercel.app/img/nintendoeshop.png" height="100" alt="logo"/></a> | ||
<a href="https://www.npmjs.com/package/nintendo-switch-eshop"><img src="https://nintendo-switch-eshop.pages.dev/nintendoeshop.png" height="100" alt="logo"/></a> | ||
@@ -24,3 +24,2 @@ ## nintendo-switch-eshop | ||
npm install nintendo-switch-eshop | ||
# yarn add nintendo-switch-eshop | ||
``` | ||
@@ -32,6 +31,10 @@ | ||
const { getGamesAmerica, getGamesEurope, getGamesJapan, getQueriedGamesAmerica } = require('nintendo-switch-eshop'); | ||
// ES6 Style: import { getGamesAmerica, getGamesEurope, getGamesJapan, getQueriedGamesAmerica } from 'nintendo-switch-eshop'; | ||
// getGamesAmerica is also default exported: import getGamesAmerica from 'nintendo-switch-eshop'; | ||
``` | ||
Or with ES6 imports: | ||
```javascript | ||
import { getGamesAmerica, getGamesEurope, getGamesJapan, getQueriedGamesAmerica } from 'nintendo-switch-eshop'; | ||
``` | ||
**For calling functions with the correct parameters and syntax please refer to the documentation linked below** | ||
@@ -43,3 +46,3 @@ | ||
For the documentation go to https://nintendo-switch-eshop.vercel.app | ||
For the documentation go to https://nintendo-switch-eshop.pages.dev | ||
@@ -46,0 +49,0 @@ ## Contributors |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
1039391
22
12
1956
0
57
Yes
25
+ Added@sapphire/fetch@3.0.5(transitive)
+ Added@types/country-data@0.0.5(transitive)
- Removed@sapphire/fetch@2.4.2(transitive)
- Removed@types/country-data@0.0.2(transitive)
- Removedcross-fetch@4.1.0(transitive)
- Removednode-fetch@2.7.0(transitive)
- Removedtr46@0.0.3(transitive)
- Removedwebidl-conversions@3.0.1(transitive)
- Removedwhatwg-url@5.0.0(transitive)
Updated@sapphire/fetch@^3.0.2
Updated@sapphire/result@^2.6.6
Updated@types/country-data@^0.0.5
Updatedfast-xml-parser@^4.3.6