-
Notifications
You must be signed in to change notification settings - Fork 48
Upgrade all dependencies #58
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
Conversation
Hi, could you also bump the patch version of the package? |
Thanks! |
Hi! A user seems to have a problem with this version 1.2.5, @isackender. Coul it be possible that the package is broken? Preventively I unpublished the 1.2.5 from NPM. Still the lib can be found in this GH repo under the |
Hi, yes, as @Naramsim pointed out, my project broke two days ago. My code is: <script src="https://unpkg.com/pokeapi-js-wrapper@1.2.5/dist/index.js"></script>
<!-- Service worker -->
<script src="pokeapi-js-wrapper-sw.js"></script>
<!-- Initialize js wrapper -->
<script>
const customOptions = {
protocol: "https",
versionPath: "/api/v2/",
cache: true,
timeout: 5 * 1000, // 5s
cacheImages: true
};
const P = new Pokedex.Pokedex(customOptions);
</script>
<!-- Project code -->
<script src="/scripts/main.js"></script> Which gives me this error (using Firefox):
When I switch to a previous version it works again perfectly (1.2.3 or 1.2.4 work fine). <script src="https://unpkg.com/pokeapi-js-wrapper@1.2.3/dist/index.js"></script> |
I've seen something like this when I was using a React package. Uninstalling or downgrading the broken dependency in this package should fix it. |
I remember I had issues upgrading axios, because maybe it became a pure ESM package. Maybe that's the issue |
@Naramsim @climaxmba @isackender,
Removing Is this package supposed to be used in Node/browser/both? |
Sure @lbineau, this package is meant for the browser only. There is a different package that's meant for Node. |
Here you go #61 |
There are a lot of security issues raised by this package so I've upgraded all dependencies.
Only
chai
packages couldn't be upgraded to the latestmajor
version because it is using ESM. I only sticked with the latestminor
version.I've
npm run test
andnpm run build
and everything seems to work.