Skip to content
This repository was archived by the owner on Aug 18, 2020. It is now read-only.

RFC: Use io-ts to validate user input. #65

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,20 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [Unreleased](https://github.com/pusher/chatkit-server-node/compare/2.4.0...HEAD)
## [Unreleased](https://github.com/pusher/chatkit-server-node/compare/2.4.0...io-ts-validation)

### Fixes

- Update mixin-deep and set-value for security fixes

### Additions

- Add runtime validation of arguments with io-ts

### Changes

- Requires typescript 2.8.1

## [2.4.0](https://github.com/pusher/chatkit-server-node/compare/2.2.0...2.4.0)

### Additions
Expand Down
21 changes: 11 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@pusher/chatkit-server",
"description": "Pusher Chatkit server SDK",
"version": "2.4.0",
"version": "2.5.0",
"main": "target/src/index.js",
"license": "MIT",
"author": "Pusher",
Expand All @@ -16,31 +16,32 @@
},
"scripts": {
"build": "rm -rf target && tsc",
"test": "bash -c 'set -o pipefail; yarn test:build && yarn test:run | tap-colorize'",
"test": "bash -c 'set -o pipefail; yarn test:build && yarn test:run && yarn test:unit | tap-colorize'",
"test:build": "tsc -p tests",
"test:run": "node tests/target/tests/main.js",
"test:unit": "node tests/target/tests/unit.js",
"test:withSDKBuild": "yarn build && bash -c 'set -o pipefail; yarn test:build && yarn test:run | tap-colorize'",
"install-pkg": "if type yarn &> /dev/null; then yarn; else npm i; fi",
"publish-please": "publish-please",
"prepublishOnly": "publish-please guard"
},
"dependencies": {
"@pusher/platform-node": "~0.15.0",
"@pusher/platform-node": "~0.15.5",
"@types/got": "^9.4.0",
"fp-ts": "^2.3.1",
"got": "^9.6.0",
"jsonwebtoken": "^8.3.0"
"io-ts": "^2.0.2",
"jsonwebtoken": "^8.5.1"
},
"resolutions": {
"**/**/lodash": "^4.17.13"
},
"devDependencies": {
"@types/tape": "^4.2.32",
"babel-core": "^6.25.0",
"babel-preset-es2015": "^6.24.1",
"@types/tape": "^4.2.33",
"dts-bundle": "^0.7.3",
"publish-please": "^5.1.1",
"publish-please": "^5.5.1",
"tap-colorize": "^1.2.0",
"tape": "^4.9.1",
"typescript": "^2.6.1"
"tape": "^4.12.0",
"typescript": "^3.7.3"
}
}
Loading