- fix node module resolution issues where on build node could not find the module.
- now both esm and commonjs are built to dist folder and working.
- move types to root
- fix esm and commonjs distributions
- update docs
- error handling check if json in request.
- fixes missing lastFm types
- distribute ESM and CommonJs
- new build scripts and commands
- fix missmatched types for Album and Track, added some optionals pity, but it works, that just how they give us the data.
- bug, release dist
- export esm modules modern js only.
- add all dts and dts map files to dist
- adds lastfm types to dist
- update all api functions from snake case to camel case.
- Updates npm dependencies.
- refactors request with new error handling and responses.
- updates getInfo, removes hte un-required params.
- Updates npm dependencies.
- Refactors request methods options and updates all callsites.
- Add nvmrc file for easy switching node version.
- Adds tests, using Playwright.
- Adds dotenv npm module as a new dependency.
- Put log back, some APIs do get Bad Request for MBIDs that don't exist, don't have solve for this yet, so not throwing any more as it grinds future request to a halt. This is a working version.
- Tidy up, removes console logs.
- Swops
node-fetch
forcross-fetch
for server and browser fetching support in one.
- Fix incorrect type on request method.
- Fix incorrect type on request method.
- Fix incorrect type import.
- Fix broken type, Track image type is an array of Images.
- update function declaration.
- re-add type declartion files for source code.
- Downgrade node-fetch to v2.6.7.
- Do not ship separate declaration files.
- TS now exports to CommonJs modules for better support older consumers.
- Forking repo README update.
- Fix local types.
- Update readme with current way of using the types.
- adds screenshot of it in use.
- Export types.
- Adds types file to distribution.
- Updates readme with types imports.
- Refactors types.d.ts to types.ts so can ship them with package and consumers can import them in their projects.
- Refactors config and methods to own modules.
- tsconfig, generate types to allow shipping types in one package, no need to DefinitleyTyped right now.
- update docs with new way of interacting with API.
- Initial project setup.