Skip to content

Frequently asked questions

If you have a question that is not addressed in this FAQ section, we encourage you to reach out to us by opening an issue in our GitHub repository.

Is this an official package?

No, this package is unofficial and is not affiliated with or endorsed by MobyGames. While it utilizes the official MobyGames API endpoints to retrieve information, it is important to note that it is not developed or maintained by MobyGames organization itself.

Why don’t you support CommonJS?

This is a complex question, and it involves several factors. While there are bundlers available that can handle both CommonJS (CJS) and ECMAScript Modules (ESM), it often leads to complications. One of the challenges is that bundlers may sometimes ship incorrect types due to developer misconfigurations or limitations in emitting declaration files correctly. This can require additional plugins, configurations, and tools to fix the issues.

Moreover, there is a strong belief in embracing the new standard and moving away from CommonJS. It’s not that CommonJS is inherently bad, but rather that we prefer to focus on writing modern code without the need for additional installations or workarounds. By adopting ESM, we can leverage the latest language features, improve code modularity, and benefit from the advancements in the JavaScript ecosystem.

We understand that there may be projects or legacy systems still using CommonJS, and we encourage developers to consider migrating to ESM when feasible. However, for the purposes of this package, we have chosen to prioritize ESM support to align with modern development practices and to streamline the development experience.

Why is a minimum Node.js version of 18.19.1 and 20.8.1 required?

Versions below 18.x are no longer maintained and have reached their end-of-life. We explicitly support Node.js versions from 18.19.1 || 20.8.1 onwards, as they are part of the LTS (Long-Term Support) and ensure a stable development environment. The decision to require a minimum Node.js version of 18.19.1 is motivated by the adoption of the new URL parser, named Ada. This parser is compliant with the WHATWG URL Specification and brings a performance improvement of more than 100% compared to the existing implementation.

It’s important to note that odd versions like 19 and 21 are not supported, primarily because they are considered unstable and should not be used in production. By focusing on these LTS versions and avoiding unstable releases, we aim to provide our users with a secure, reliable, and high-quality package that leverages the latest advancements in Node.js.