Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tokilabs/lang
Extends TypeScript/Javascript with basic classes and functions
https://github.com/tokilabs/lang
Last synced: about 1 month ago
JSON representation
Extends TypeScript/Javascript with basic classes and functions
- Host: GitHub
- URL: https://github.com/tokilabs/lang
- Owner: tokilabs
- License: mit
- Created: 2017-03-31T01:08:21.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-05-04T00:19:31.000Z (over 1 year ago)
- Last Synced: 2024-10-22T16:41:42.244Z (2 months ago)
- Language: TypeScript
- Homepage: http://labs.toki.network/lang/
- Size: 821 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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://tokilabs.github.io/lang
## Changelog
### v1.0.6
- Add compatibility with Commonjs and ESM
### v1.0.4
- Update multiple dependencies
### v1.0.3
- Adds registerPackagePath feature to FQN
### v1.0.2
- Updates Class-transformer version from 0.1.8 to 0.3.1
### v1.0.1
- Removes broken mixin Sortable
- Fixes Guid and NanoGuid exports### v1.0.0
- Adds NanoGuid class
### 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