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

Commit

Permalink
Fixed type bug in runtime.js
Browse files Browse the repository at this point in the history
1. Send function should be able to dispatch and empty message. The type did not allow that. Now it's typed as optional.
  • Loading branch information
Wobbabits committed Oct 25, 2019
1 parent a4d3f74 commit 20211f8
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# composi/core Changelog

## 2.5.4 (October 25, 2019)

### src/runtime.js

* Fixed issue where type for send required a parameter when in fact it is optional. Yes, you can just send an empty message, but then your update can only handle that one case. Works for very simple programs.

### tscofig.json

* Added tsconfig.json file. This simplified the NPM checkjs script to just 'tsc'.


## 2.5.3 (October 24, 2019)

### .vscode/settings.json
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@composi/core",
"version": "2.5.4",
"version": "2.5.5",
"description": "A JavaScript library for creating websites, PWAs and hybrid apps.",
"main": "src/index.js",
"module": "dist/composi-core.mjs",
Expand Down
2 changes: 1 addition & 1 deletion src/runtime.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @typedef {Object<string, any>} Message
* @prop {string} type
* @prop {any} [data]
* @typedef {(msg: Message) => Message} Send
* @typedef {(msg?: Message) => Message} Send
*/
/**
* @typedef {any} State Simple or complex types for application state.
Expand Down

0 comments on commit 20211f8

Please sign in to comment.