Skip to content

Releases: bromne/typescript-optional

2.0.1

05 Jan 17:54
73157e0
Compare
Choose a tag to compare

No changes from the pre-release (2.0.1-alpha).

2.0.1-alpha

05 Jan 17:31
5442f1f
Compare
Choose a tag to compare
2.0.1-alpha Pre-release
Pre-release

typescript-optional@2.0.0 has been abandoned because of a problem.

  • Fixed problem about deployment.
  • Fixed README.

2.0.0

04 Jan 10:31
94a5fd6
Compare
Choose a tag to compare

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 for JSON.stringify. (breaking change)
  • Optional#map now represents that it exactly returns a value whose payload is non-null type. (breaking change)
  • Optional#isPresent and Optional#isEmpty are now method instead of accessor to adapt to the style of Java's isPresent. (breaking change)
  • The supported version of TypeScript is now 3 from 2. (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

27 Jun 09:35
4e7f20c
Compare
Choose a tag to compare

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 with const for constants in effect.
  • add to README.

1.7.0

27 Jun 08:53
Compare
Choose a tag to compare

Improvements

  • support JSDoc document for all methods.
  • fix descriptions of tests.

1.6.1

27 Jun 08:50
Compare
Choose a tag to compare

Improvements

  • fix descriptions of tests.
  • make tests more strictly using assert.strictEqual instead of assert.equal.
  • replace keyword let with const for constants in effect.

1.6.0

27 Jun 08:42
Compare
Choose a tag to compare
v1.6.0

add static method Optional.of as a superset of Optional in Java 8+. O…