Releases: Squiddleton/Fortnite-API
v2.0.2
v2.0.1
Typings
Replace zh-CN language with zh-Hans
v2.0.0
Features
Add Bean cosmetics and images
Add optional key argument for Client#stats()
Add response flags options for cosmetic and shop endpoints
Add ResponseFlags enum
Types
Re-type all nullable properties as optional
Add NewDisplayAsset#renderImages
Add ShopEntry#colors
Add default type generic to CosmeticSearchOptions
Update AnyCosmetic union type
Remove deprecated types
Update all types in accordance with Fortnite-API documentation
Refactors
Replace node-fetch package with the Node.js native Fetch API
- Node.js v18 or higher is now required.
Remove deprecated endpoints, functions, and types
Integrate Client#listCosmetics() into Client#cosmetics()
Rename Client#findCosmetic() to #brCosmeticsSearch()
Rename Client#filterCosmetics() to #brCosmeticsSearchAll()
Replace Client#brShop() and #newShop() with #shop()
v1.5.0
Features
Add endpoints for updated cosmetics, tracks, cars, instruments, LEGO, and updated shop
Add Client#cosmetics()
Add Client#newShop()
Types
Document LEGO images
Type MaterialInstance#scalings and #flags as nullable
Add BaseCosmetic and BaseShopEntry parent interfaces
Names
Rename Endpoints.CosmeticsList to Endpoints.BRCosmetics
Rename Endpoints.NewCosmetics to Endpoints.NewBRCosmetics
Rename Client#shop() to Client#brShop()
Rename Cosmetic to BRCosmetic
Rename NewCosmetics to NewBRCosmetics
Rename AllCosmeticsOptions to AllBRCosmeticsOptions
Rename Map to FortniteMap
- Note: Old names are still usable in v1.x.x versions, but they will be removed in the next major version.
Refactors
Sort imports alphabetically
Downgrade @types/node dependency to match minimum NodeJS version
Documentation
Fix Endpoints typo in README
Update README with new example for fetching BR cosmetics
v1.4.0
Typings
Add ShopEntry.layout
v1.3.0
Typings
Type ShopEntry.section as nullable
v1.2.0
Typings
Type CosmeticImages.icon as nullable
Type FortniteAPIError.code and RawFortniteAPIError.status as number (e.g., 500 Internal Server Error)
v1.1.1
Typings
Type <Playlist>.name as nullable
v1.1.0
Typings
Add named union types for all string unions
Add interfaces for all nested objects
Other
Specify minimum node version in package.json
v1.0.1
Bug Fixes
Type cosmetic variants as nullable