🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

@cashfarm/lang

Package Overview
Dependencies
Maintainers
3
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cashfarm/lang

Extends TypeScript/Javascript with basic classes and functions

latest
Source
npmnpm
Version
0.8.4
Version published
Maintainers
3
Created
Source

The lang package

Languages are awesome! Well... most of them are. And that's the case for TypeScript.

Sometimes there are a couple things we miss though...

And, when that happens, instead of complaining about it, we create a lang package :)

Check the API documentation at http://cashfarm.github.io/lang

Changelog

v0.8.1

  • Add deserializeArray method for use with JSON array strings

v0.8.0

  • [BREAKING CHANGE] Removes the ExtendedObject class
  • New (de)serialization methods: serialize, deserialize, primitify and classify
  • Decorators for controlling serialization

v0.7.1

  • Add FQN decorator and decorate package's classes
  • Move symbols into Symbols object
  • Add default value ({}) for ConcreteType type parameter

v0.7

  • Add FQN support (parseFQN() and requireByFQN())
  • Add StringWrapper and NumberWrapper classes for easy primitive subclassing
  • Add Exception class which properly extends native Error
  • Add Constructor type
  • Add tests for Decimal, FQN and Guid
  • Improve code documentation and add API documentation
  • Refactor Decimal and Guid classes to extend wrappers
  • Deprecated ExtendedObject and serialization decorators

Breaking Changes

  • OrderDirection enum values are now 'ASC' and 'DESC' (previously 1 and -1 respectivelly)
  • Removed IEnumerable and Iterator interfaces
  • Sortable class is now a mixin

Keywords

shiny

FAQs

Package last updated on 06 Jan 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts