Releases: bromne/typescript-optional
Releases · bromne/typescript-optional
2.0.1
2.0.1-alpha
typescript-optional@2.0.0
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.toJSON
forJSON.stringify
. (breaking change) Optional#map
now represents that it exactly returns a value whose payload is non-null
type. (breaking change)Optional#isPresent
andOptional#isEmpty
are now method instead of accessor to adapt to the style of Java'sisPresent
. (breaking change)- The supported version of TypeScript is now
3
from2
. (breaking change) Optional
is 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
let
withconst
for constants in effect. - add to README.