Skip to content
This repository was archived by the owner on Sep 3, 2022. It is now read-only.

Commit d0ae7d0

Browse files
committed
Update for tagged union.
1. Added in error checking for if the user tries to create a tagged union with a message "match". Since the object returned by the union function also has a match method, this can be problematic and impossible to type correctly. Union checks the provided types and if it finds "match" it logs a console error.
1 parent e2ca6d8 commit d0ae7d0

10 files changed

+22
-11
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# composi/core Changelog
22

3+
## 2.6.3 (November 28, 2019)
4+
5+
### src/union.js
6+
7+
* Added error checking for when user tries to use "match" as a method. The union function produces and object that always has a match method, so trying to create a tagged union that can handle a "match" message can be problematic. The developer will now get a console error message warning not to create a union with type "match".
8+
39
## 2.6.2 (November 26, 2019)
410

511
### .prettierignore

dist/composi-core.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/composi-core.js.gz

97 Bytes
Binary file not shown.

dist/composi-core.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)