Skip to content

Releases: toreda/types

v2.14.0

20 May 22:11
Compare
Choose a tag to compare

Added

  • LangCode identifying localization language used in other localization systems.
  • Entity Lifecycle types: LifecycleEntity, LifecycleEntityData, LifecycleEntityDelegate, and LifecycleEntityPhase.
  • Addon Lifecycle types: LifecycleAddon, LifecycleAddonData, LifecycleAddonDelegate, and LifecycleAddonPhase.
  • cnxWillReconnect, cnxDidReconnect, cnxWillInit, cnxDidInit, cnxWillLoad, and cnxDidLoad added connection lifecycle flow.

v2.13.1

16 May 00:27
Compare
Choose a tag to compare

Fixed

  • Erroneous 'src/' prefix in LifecycleNetworkCnxDelegate removed and replace with correct relative path. Could break imports before fix.

v2.10.1

13 Apr 03:03
Compare
Choose a tag to compare

Fixed

  • Iterable incorrectly required forEach: ArrayFunc<T, U> which defines forEach as a single array function, when it should have defined ArrayFunc as the fn argument applied to each item in forEach.
  • Iterable previously required three arguments ItemT, ReturnT, and NextT. The third argument NextT now defaults to undefined and is considered optional.

v2.10.0

10 Apr 02:26
Compare
Choose a tag to compare

Added

  • Added minimist and marked packages to yarn resolutions to resolve CVEs flagged by Github.
  • Updated all dev dependencies to latest.
  • Performed yarn upgrade.

v2.9.1

10 Apr 02:24
Compare
Choose a tag to compare

New Types

  • Runnable<ArgT, ReturnT> interface for classes which implement a runnable task interface.
  • RunnableTask<ArgT, ReturnT> type signature for asynchronous functions invoked by Runnable classes.
  • RunnableTaskSync<ArgT, ReturnT> type signature for synchronous functions invoked by Runnable classes. Prefer async tasks whenever possible.

v2.8.0

10 Apr 02:23
Compare
Choose a tag to compare

New Types

Cryptocurrency Units

  • AAVE
  • ADA
  • ALGO
  • APE
  • ATOM
  • AVAX
  • AXS
  • BCH
  • BCN
  • BNB
  • BTC
  • BTM
  • BTM
  • BTT
  • BTT
  • BUSD
  • CAKE
  • CDAI
  • CEL
  • CELO
  • Coins
  • CUSDC
  • DAI
  • DASH
  • DGB
  • DOGE
  • DOT
  • ENJ
  • EOS
  • ETH
  • FIL
  • FLO
  • FLOW
  • FTM
  • FTX
  • FTX
  • GALA
  • GRT
  • Hashrate
  • HBAR
  • KCS
  • KSM
  • LINK
  • LRC
  • LTC
  • LUNA
  • MANA
  • MATIC
  • MKR
  • NEAR
  • NEXO
  • RVN
  • SAND
  • SHIB
  • SOL
  • STX
  • SYS
  • Tokens
  • TRX
  • TUSD
  • UNI
  • USDC
  • USDT
  • VET
  • VTC
  • WAVES
  • WBTC
  • WETH
  • ZEC
  • XLM
  • XMR
  • XRD
  • XRP
  • XTZ
  • XVG
  • ZEN
  • ZIL
  • ICP

Scientific Units

  • Amperes
  • Degrees
  • Katals
  • Farads
  • Hertz
  • Joules
  • Kelvin
  • Kilograms
  • Mole
  • Newtons
  • Ohms
  • Radians
  • Sieverts
  • Telsas

Data Units

  • Bits
  • Bytes
  • Kilobytes
  • Kilobits
  • Megabytes
  • Gigabytes
  • Petabytes
  • Megabits
  • Gigabits
  • Exabytes
  • Terabytes
  • Terabits

Data-rate Units

  • bps
  • Bps
  • Mbps
  • MBps
  • Gbps
  • GBps
  • Tbps
  • TBps
  • Pbps
  • PBps

Size and Distance

Imperial

  • Feet
  • FluidOunces
  • Gallons
  • Grams
  • Inches
  • Miles
  • Ounces
  • Pounds
  • Yards

Metric

  • Centimeters

  • Decimeters

  • Femtometers

  • Gigameters

  • Kilometers

  • Megameters

  • Meters

  • Micrometers

  • Micrometers

  • Millimeters

  • Nanometers

  • Picometers

  • Terameters

  • HashStr to express hash string values.

  • HashAlg to express unique identifiers for hashing algorithms, e.g. sha256. Does not comfort to a specific format e.g. sha256 vs sha-256, only that the stored value uniquely identifies a hashing algorithm.

  • FileSize to express file sizes in bytes or other units.

  • PublicKey to identify properties containing public key data, but does not describe algorithm, length, or other specific properties about the key.

  • PrivateKey to identify properties containing private key data, but does not describe algorithm, length, or other specific properties about the key.

v2.7.0

10 Apr 02:23
Compare
Choose a tag to compare

Added

  • Serializable for classes which need both serialize() and toData() function support.

v2.6.0

03 Jan 09:10
Compare
Choose a tag to compare

Added

  • LifecycleServerDelegate for server-side classes using lifecycles.
  • LifecycleClientDelegate for client-side classes using lifecycles.
  • LifecyclePhaseId as an expressive type to clarify the purpose of some name & id args used in lifecycle functions.
  • Itor for Iterators which contain a next call.
  • ItorItem for values returned by Itor.next().
  • Clearable for objects offering .clear() functionality.
  • Resettable for objects offering state reset via .reset().
  • Visitor<NodeT> for Visitor functions used in Graph and Tree search algorithms. Returns Promise<NodeT | null>, allowing the function to return the next node or indicate there are no more nodes.
  • ArrayFunc<T, U> used by .forEach(...) calls on Iterable objects.

Release v2.4.1

08 Nov 08:18
Compare
Choose a tag to compare

Full Changelog: v1.2.2...v2.4.1

Added

  • Optional<T, K> generic type which takes an interface T to make all properties optional except for one or more keys provided for k. For example: Optional<MyInterface, 'one' | 'two'> makes all properties on interface MyInterface optional except for keys which exactly match one or two.

Updated

  • All dev packages updated to latest available.

Removed

  • gulp-eslint is no longer required during build.

Release v1.2.2

06 Sep 09:16
Compare
Choose a tag to compare

Release v1.2.2 focused on reducing the number of dependencies and upgrading packages causing issues further up the dependency chain.

  • No changes to exported types.
  • Moved del package from dependencies to devDependencies. It's used only during the build.
  • @toreda/build-tools removed from dependencies. Build flow converted into a minimal & bare gulp build.
  • Removed eslint & linting from build flow. Not ideal, but made it possible to eliminate some problematic dependencies.