Releases: bromne/typescript-optional
Releases · bromne/typescript-optional
2.0.1
2.0.1-alpha
[email protected] has been abandoned because of a problem.
- Fixed problem about deployment.
- Fixed README.
2.0.0
Because this release contain breaking changes against the last release (v1.8.0), the major version has been changed to 2 from 1.
Features / Interface
- Added method
Optional.toJSONforJSON.stringify. (breaking change) Optional#mapnow represents that it exactly returns a value whose payload is non-nulltype. (breaking change)Optional#isPresentandOptional#isEmptyare now method instead of accessor to adapt to the style of Java'sisPresent. (breaking change)- The supported version of TypeScript is now
3from2. (breaking change) Optionalis now exported as non-default. (breaking change)
Changes for Development
- Changed directory structure of test.
- Changed directory structure exported to
node_modules. - Abandoned using istanbul directly and introduce nyc and ts-node for testing and coverage.
- Introduced TSLint.
- Publish for npm is performed automatically from Travis CI.
1.8.0
Features
- introduce
Option<T>type. - add method
Optional.from. - add method
Optional.toOption. - add method
Optional.orNull. - add method
Optional.orUndefined. - add method
Optional.matches.
Improvements
- fix descriptions of tests.
- fix JSDoc document.
- replace keyword
letwithconstfor constants in effect. - add to README.