You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All types have been moved internally, from the typedefs folder to the type folder.
Card, CardWorld, Nation, Region, World, and WorldAssembly are no longer classes, but normal typedefs.
Minimum Node version set to 14.0.0 due to internal usage of the ?? operator and optional chaining.
Card type:
type property removed in favour of new category property.
flag, category, name, region, motto, and pretitle properties are now contained within a new depicted property.
Dispatch and ListDispatch types: Removed category property in favour of new distinct properties:
categoryTop, containing the top-level category.
categorySub, containing the subcategory.
DispatchSubcategory enum: Values themselves are now simply in the form [subcategory] instead of the combined [category]:[subcategory].
DumpMode enum: READ_REMOTE value removed in favour of REMOTE.
EmbassyData type: Removed in favour of the Embassy type:
Accordingly, the embassies property of a Region now is an Embassy[].
Added EmbassyPhase enum to describe Embassy states.
Issue type: Removed images property in favour of new distinct properties:
imageLarge, containing the large rectangular picture
imageSmall, containing the small square picture
IssueCommand class:
dismiss function removed.
answer function removed in favour of a new setOption function.
LegalityDecision type:
reason made nullable.
decision property removed in favour of new ruling property.
Market type: Removed type property in favour of new isAsk property.
Nation type:
freedoms property removed in favour of freedomDescriptions property.
freedomValues property removed in favour of new freedomScores property.
id property removed in favour of new dbID property.
NS object:
All command instantiation functions now only take the login credentials as parameters, and those are now optional as well. All further request customisation happens via newly introduced functions on the returned class instance.
Region type:
banned property removed in favour of new banlist property.
id property removed in favour of new dbID property.
foundedTime property removed in favour of new foundedTimestamp property.
RMBActivityAggregate type: Renamed to RMBActivity
World type:
censusScaleName property removed in favour of new censusScale property.
Removal of deprecated properties:
FreedomsData type: Removed in favour of FreedomsTextData type.
Nation type: freedoms removed in favour of freedomDescriptions.
NationShard enum: FREEDOM removed in favour of FREEDOM_DESCRIPTIONS.
Other changes
Plenty of missing properties added and faulty ones corrected in the typedefs.
Various new enums and typedefs added.
Types have been made available directly via the top-level export types.