Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump ws from 7.2.3 to 7.5.10 #1

Closed
wants to merge 222 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
222 commits
Select commit Hold shift + click to select a range
047316f
upgrade to latest: docs-ts, prettier, typescript
gcanti Apr 4, 2020
4a0413c
switch to node 12, closes #437
gcanti Apr 6, 2020
e4291df
downgrade to [email protected]
gcanti Apr 7, 2020
af239bd
split Type into Decoder / Encoder, closes #336
gcanti Apr 16, 2020
3b285f5
version 2.2.0
gcanti Apr 16, 2020
8cb18ae
Docs: remove Type from index
gcanti Apr 16, 2020
f74d235
Fix broken link in README
tarikdemirci Apr 16, 2020
052d2b6
collect all errors while decoding, closes #449
gcanti Apr 20, 2020
970d2ca
Docs: add link to 2.2 issues
gcanti Apr 20, 2020
20a6718
Fix spelling error
eivindml Apr 23, 2020
4ec6b6c
Add closing parenthesis to codec law
mikkom Apr 30, 2020
8721bc9
add `DecodeError` interface
gcanti Apr 25, 2020
163d9ce
add tests about getters
gcanti Apr 25, 2020
478118b
move 2.1.x tests to its own folder
gcanti Apr 29, 2020
4ece661
add property based tests
gcanti Apr 29, 2020
9fde17c
add `Eq` experimental module
gcanti May 2, 2020
42a1000
Update test/Eq.ts
gcanti May 2, 2020
e9a608e
add `TypeOf` operator to Codec, Encoder, Eq and Guard, closes #462
gcanti May 4, 2020
6b53a89
Docs: how to extend the built-in `Schema`
gcanti May 5, 2020
d1c16b5
remove doctoc header
gcanti May 5, 2020
a06553e
Docs: better explain sum usage
gcanti May 18, 2020
ffe1429
upgrade to [email protected], fix #467
gcanti May 16, 2020
e4301b3
re-export Eq's URI
gcanti May 16, 2020
6c05e8e
add `WithRefinement` / `WithRefinement1` interfaces
gcanti May 16, 2020
26c1695
add `Type` experimental module
gcanti May 16, 2020
a1238e5
add `PEncoder` experimental module
gcanti May 18, 2020
fea04a0
implement Encoder via PEncoder
gcanti May 18, 2020
cfe1817
add namespaces to io-ts URIs
gcanti May 19, 2020
2305368
simplify interpreter
gcanti May 19, 2020
bce5a4a
add `JsonEncoder` experimental module
gcanti May 19, 2020
051e7af
refactor documentation
gcanti May 19, 2020
ef969be
- rename Encoder to JsonEncoder and change its fixed output type to Json
gcanti May 19, 2020
77ea096
ts 3.9.3
gcanti May 20, 2020
c59dc2f
remove useless constraint
gcanti May 20, 2020
f9ff107
update docs
gcanti May 20, 2020
6edd727
add pipeables
gcanti May 20, 2020
496ad67
add top level `of`
gcanti May 20, 2020
61cd392
split instances
gcanti May 21, 2020
73d92a0
use the built-in `Readonly` type in `readonly` combinator, closes #472
gcanti May 21, 2020
4a6543b
make Decoder module more tree shaking friendly and remove applicative…
gcanti May 21, 2020
32fb329
Docs: add missing TypeOf info
gcanti May 27, 2020
a1e46b4
remove the dependency on the `either` instance as a mean of improving…
gcanti May 27, 2020
2aa88a8
fix type information lost from nested decoder types, closes #479
gcanti Jun 14, 2020
baca458
upgrade to latest docs-ts
gcanti Jun 15, 2020
6526525
add support for non-`string` tag values to `sum`, closes #481
gcanti Jun 16, 2020
8ae6b36
`intersection` should accumulate all errors
gcanti Jun 16, 2020
b4c89af
POC DecoderT
gcanti Jun 20, 2020
969d5ce
DecoderT: add more combinators
gcanti Jun 20, 2020
29d3c38
DecoderT: add perf
gcanti Jun 20, 2020
b2b52ec
POC: FreeDecoder
gcanti Jun 21, 2020
fe1c3f7
make DecodeError polymorphic
gcanti Jun 21, 2020
2302447
remove Tree module
gcanti Jun 21, 2020
b4dacd9
remove FreeDecoder module
gcanti Jun 21, 2020
635bc8d
add TaskDecoder module
gcanti Jun 21, 2020
a56b46e
better `literal` signature
gcanti Jun 21, 2020
ead054d
add Decoder2 module
gcanti Jun 22, 2020
17e9a9a
handle nullable combinator
gcanti Jun 22, 2020
6f48433
better `union` signature, add union, intersection and refinement comb…
gcanti Jun 22, 2020
b4e5e8e
DecoderT: add sum combinator
gcanti Jun 22, 2020
02fe8a6
DecoderT: add lazy combinator
gcanti Jun 22, 2020
37d4e9e
remove useless `never`s decoders
gcanti Jun 22, 2020
e46ddcc
fix typo
gcanti Jun 22, 2020
b3460fe
remove never primitives
gcanti Jun 23, 2020
4fd7dab
DecoderT: add withExpected
gcanti Jun 23, 2020
7f295fa
DecoderT: add parse combinator
gcanti Jun 23, 2020
c1b5aff
add instances
gcanti Jun 23, 2020
2f306a9
TaskDecoder: add fromDecoder
gcanti Jun 23, 2020
3626a74
make intersections pipeables
gcanti Jun 23, 2020
c499186
make parse pipeable
gcanti Jun 23, 2020
6f1957d
make refinements pipeables
gcanti Jun 23, 2020
bc91d4e
add error API and update docs
gcanti Jun 23, 2020
9bf9d79
add /*#__PURE__*/ comments
gcanti Jun 24, 2020
79bf22e
remove useless functions in TaskDecoder
gcanti Jun 24, 2020
d6a76ec
DecoderT: fix refine signature
gcanti Jun 24, 2020
24273f6
DecoderT: fix nullable implementation
gcanti Jun 24, 2020
b61edaf
DecoderT: fix withExpected signature
gcanti Jun 24, 2020
f1fd92e
DecoderT: fix parse signature
gcanti Jun 24, 2020
2e4c08e
DecoderT: fix lazy signature
gcanti Jun 24, 2020
c5632b0
add Kleisli module
gcanti Jun 24, 2020
fb2c6d6
remove DecoderT module
gcanti Jun 24, 2020
ebd7c16
remove `withExpected` in favour of `mapLeftWithInput`
gcanti Jun 24, 2020
011f8e8
rename Kleisli to Kleisli2
gcanti Jun 24, 2020
1fde626
Kleisli2: add combinators
gcanti Jun 24, 2020
5203803
make `Json` type immutable
gcanti Jun 25, 2020
c8ea010
fix mapLeftWithInput and refine signatures
gcanti Jun 25, 2020
c3e01fd
add KleisliDecoder, KleisliTaskDecoder modules
gcanti Jun 25, 2020
ba38a9e
use Encode type-level tricks
gcanti Jun 25, 2020
a94a8f8
remove `as any` from KleisliDecoder and KleisliTaskDecoder
gcanti Jun 25, 2020
1cc9781
Kleisli: change pipe to compose
gcanti Jun 25, 2020
9692015
type, partial and sum should be loose while enforcing an object as input
gcanti Jun 25, 2020
55543c2
fix d.ts
gcanti Jun 25, 2020
b1b704e
better naming
gcanti Jun 26, 2020
ac43c19
remove `NaN` from `number` instances
gcanti Jun 26, 2020
12f4dc1
add disclaimers
gcanti Jun 26, 2020
e325e47
remove some module dependencies
gcanti Jun 26, 2020
5d538bb
update makdown docs
gcanti Jun 27, 2020
9472c08
add PURE comment
gcanti Jun 27, 2020
049c6d1
make JsonRecord readonly
gcanti Jun 29, 2020
dfe6522
Update index.md
zhuangya Jul 10, 2020
fa86e53
renaming
gcanti Jun 30, 2020
7c058b8
make UnknownDecoder module useless
gcanti Jul 1, 2020
8185618
make UnknownTaskDecoder module useless
gcanti Jul 1, 2020
af5333e
remove UnknnownDecoder module
gcanti Jul 1, 2020
e4541ac
remove UnknownTaskDecoder module
gcanti Jul 1, 2020
645c607
rename "items" to "item"
gcanti Jul 1, 2020
f628d1a
drop `type` in favour of `props`
gcanti Jul 1, 2020
9d1356d
drop `partial` in favour of `partialProps`
gcanti Jul 1, 2020
a05dd2c
rename `array` to `items`
gcanti Jul 1, 2020
7acb18d
rename `record` to `values`
gcanti Jul 1, 2020
0eb0207
drop `tuple` in favour of `components`
gcanti Jul 1, 2020
faf0419
drop `sum` in favour of `variants`
gcanti Jul 1, 2020
a2f44e6
drop `union` in favour of `members`
gcanti Jul 1, 2020
844d934
drop `array` in favour of `items`
gcanti Jul 1, 2020
13b937a
drop `record` in favour of `values`
gcanti Jul 1, 2020
381f4fa
renaming
gcanti Jul 1, 2020
a56ef36
update since tags
gcanti Jul 1, 2020
41bd78b
make `Guard` more general by adding a `I` type parameter
gcanti Jul 2, 2020
e1ea496
update Decoder.md
gcanti Jul 3, 2020
35a946b
update changelog
gcanti Jul 3, 2020
9d23727
remove `JsonCodec` module
gcanti Jul 3, 2020
5992564
Guard: add `zero` function
gcanti Jul 3, 2020
1e25eac
Encoder: change `id` category tag
gcanti Jul 3, 2020
d79767e
revert compose*
gcanti Jul 3, 2020
327cd9a
add `object` primitive
gcanti Jul 3, 2020
c53c707
bump version
gcanti Jul 9, 2020
5761b69
make `Codec` more general by adding a `I` type parameter
gcanti Jul 9, 2020
dcb0817
remove `JsonEncoder` module
gcanti Jul 9, 2020
7e19969
fix ktype, ksum signatures
gcanti Jul 9, 2020
cab210a
Codec: add ktype, kpartial, karray, krecord, ktuple, ksum
gcanti Jul 9, 2020
6f6c567
update changelog
gcanti Jul 10, 2020
0fbe4ae
renaming
gcanti Jul 10, 2020
79cfe76
add issue test
gcanti Jul 10, 2020
44789f4
split Schemable instances
gcanti Jul 11, 2020
c385e71
update changelog
gcanti Jul 13, 2020
a7283bd
remove `Object.freeze` calls, closes #497
gcanti Jul 16, 2020
923bd59
add `Wrap` member to DecodeError + add `withMessage` combinator to `D…
gcanti Jul 16, 2020
c88e2cc
update Schema.md
gcanti Aug 7, 2020
942aae4
update Decoder.md
gcanti Aug 7, 2020
6d1dcac
update Codec.md
gcanti Aug 7, 2020
004dfcd
tsconfig setup matching that of fp-ts
osdiab Aug 8, 2020
4659fb0
copy over fp-ts build scripts
osdiab Aug 8, 2020
fba4828
update all fp-ts usages in src
osdiab Aug 8, 2020
f5e1637
update all fp-ts usages in test (dont use lib)
osdiab Aug 8, 2020
61f6f9c
update all docs fp-ts imports
osdiab Aug 8, 2020
33b162d
remove import path rewrite, bump fp-ts peer dep
osdiab Aug 8, 2020
80ddfae
new build scripts
osdiab Aug 8, 2020
1190af0
gitignore /dist
osdiab Aug 8, 2020
f5ebc00
docs imports
osdiab Aug 8, 2020
a91714a
fp-ts import
osdiab Aug 8, 2020
ceeb325
Release scripts
osdiab Aug 8, 2020
05c28d4
release script source
osdiab Aug 8, 2020
3da455a
Revert "remove import path rewrite, bump fp-ts peer dep"
osdiab Aug 10, 2020
ef212f9
Revert "update all fp-ts usages in src"
osdiab Aug 10, 2020
a062aae
Revert "update all fp-ts usages in test (dont use lib)"
osdiab Aug 10, 2020
5f77c1e
Revert "update all docs fp-ts imports"
osdiab Aug 10, 2020
943397b
reintroduce import-path-rewrite for compatibility
osdiab Aug 10, 2020
8b29eb0
Revert "docs imports"
osdiab Aug 10, 2020
061c3b7
version 2.2.10
gcanti Aug 19, 2020
a53a60e
remove /lib prefix in docs
gcanti Aug 19, 2020
652b859
fix changelog
gcanti Aug 19, 2020
ed0b89a
remove pipeable module from docs
gcanti Aug 22, 2020
10295a4
fix Arbitrary signatures
gcanti Aug 22, 2020
547fa03
better interpreter signature
gcanti Aug 22, 2020
5a795ae
upgrade to [email protected]
gcanti Aug 22, 2020
a92e57f
change Schemable import in Type module
gcanti Aug 22, 2020
9e12d0c
change interpreter definition in docs
gcanti Aug 22, 2020
f19b679
add missing MySchemable1 definition to Schema.md
gcanti Sep 30, 2020
3a4dd71
Make toForest stack-safe
safareli Oct 3, 2020
5fa3462
add tests
safareli Oct 3, 2020
46999ba
version 2.2.11
gcanti Oct 5, 2020
ff59c8b
Experimental: make `sum` safer, closes #523
gcanti Oct 21, 2020
5847e81
Docs: Extracting static types from encoders
gcanti Nov 4, 2020
1de671b
Docs: InputOf operator example
gcanti Nov 4, 2020
2881d94
improve internal `mergeAll` function, closes #532
gcanti Nov 20, 2020
6ec25a9
add GitHub action
gcanti Nov 24, 2020
c2f8040
remove travis
gcanti Nov 24, 2020
5079181
upgrade typescript and dtslint versions
gcanti Dec 13, 2020
f13a10a
fix tests
gcanti Dec 13, 2020
d453902
Remove non null assertion in Decoder.toForest
safareli Jan 21, 2021
638d7c1
doc: exclude zero from set of positive integers
EricCrosson Jan 27, 2021
896eb9b
refactor docs
gcanti Jan 28, 2021
bc3f696
refactor docs
gcanti Jan 28, 2021
30a4115
upgrade dev deps
gcanti Jan 28, 2021
0163b6c
use Refinement<A, B> when possible
gcanti Jan 28, 2021
cd5a1b0
tests: fixes spelling errors in guards.ts
waynevanson Feb 3, 2021
eedc197
relax `UnknownRecord` check, closes #559
waynevanson Feb 3, 2021
41c5e10
Guard: more UnknownRecord tests
gcanti Feb 3, 2021
6e0c58b
bump version
gcanti Feb 3, 2021
b9ed384
add JsonSchema tests
gcanti Feb 12, 2021
ecb94e9
upgrade to latest docs-ts
gcanti Feb 14, 2021
192ccb8
fix build
gcanti Feb 14, 2021
a7952a6
upgrade to latest docs-ts
gcanti Feb 14, 2021
2dc13a8
Schemable: add readonly combinator, closes #525
gcanti Feb 17, 2021
f6691cd
deprecate `type` / `fromType` in favour of `struct` / `fromStruct`
gcanti Feb 17, 2021
1f1fb85
update docs
gcanti Feb 22, 2021
c245666
upgrade fp-ts to 2.5.0
gcanti Mar 6, 2021
b88a20c
version 2.2.16
gcanti Mar 8, 2021
920b21e
README: clarify the difference between stable and experimental module…
gcanti Mar 15, 2021
87f6b86
Fixed first codec law
emnlmn Apr 26, 2021
f19b0e8
Typo in index.md (#626)
lawson-ng Jan 19, 2022
1f23c7c
update dtslint
gcanti Mar 23, 2022
73d0ea7
Don't throw a TypeError when trying to decode a sum value that contai…
thewilkybarkid Jul 26, 2022
0ef9c7c
update CI node version
gcanti Jul 28, 2022
eae9114
version 2.2.17
gcanti Jul 28, 2022
63eea02
fix eslint warnings
gcanti Aug 4, 2022
9e8ef0e
fix `[email protected]` errors, closes #656, closes #647 (#657)
gcanti Aug 29, 2022
7069ed0
docs: remove david-dm.org from README
SukkaW Aug 31, 2022
4edbeb3
Object.prototype.toString removed from UnknownRecord.is
mlegenhausen Oct 6, 2022
e619fb1
version 2.2.19
gcanti Oct 6, 2022
e508b89
- undeprecate `FunctionType`, `FunctionC`, `Function`
gcanti Dec 3, 2022
e312a81
- undeprecate `NeverType`, `NeverC`, `never`
gcanti Dec 3, 2022
4b85202
undeprecate `AnyType`, `AnyC`, `any`
gcanti Dec 3, 2022
bdaf804
undeprecate `RefinementC`, `refinement`, `Integer`
gcanti Dec 3, 2022
9103e88
add refinement overload to allow custom branding, closes #373
gcanti Dec 3, 2022
dedb64e
reorder documentation to make it more beginner-friendly
phiresky Feb 12, 2023
0baeb15
update deps
gcanti Apr 26, 2023
616583d
switch to definitelytyped/dtslint
gcanti Jun 5, 2023
1236c93
"record.is" allows keys outside domain; "record.{en,de}code" allow bu…
tgfisher4 Dec 1, 2023
90a3d04
revert redundant exact optimization (already handled by 'type')
tgfisher4 Dec 1, 2023
4abb81c
exact . type -> strict; ignore '.DS_Store'
tgfisher4 Dec 3, 2023
0a0b0c3
version 2.2.21
gcanti Dec 3, 2023
b026dc4
Bump ws from 7.2.3 to 7.5.10
dependabot[bot] Jul 10, 2024
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
45 changes: 45 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"parserOptions": {
"project": "./tsconfig.json"
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"plugins": ["deprecation", "import", "simple-import-sort"],
"rules": {
"@typescript-eslint/array-type": [
"warn",
{
"default": "generic",
"readonly": "generic"
}
],
"@typescript-eslint/prefer-readonly": "warn",
"@typescript-eslint/member-delimiter-style": 0,
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-empty-interface": "off",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_"
}
],
"@typescript-eslint/prefer-as-const": "off",
"@typescript-eslint/ban-ts-comment": "off",
"prefer-rest-params": "off",
"prefer-spread": "off",
"deprecation/deprecation": "off",
"import/first": "error",
"import/no-cycle": "error",
"import/newline-after-import": "error",
"import/no-duplicates": "error",
"import/no-unresolved": "off",
"import/order": "off",
"simple-import-sort/imports": "error"
}
}
28 changes: 28 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Node.js CI

on:
push:
branches: [master]
pull_request:
branches: [master]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [16.17.1]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm run build --if-present
- run: npm test
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
*.log
node_modules
lib
es6
/dist
dev
coverage
declaration/out/src
.DS_Store
3 changes: 2 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"semi": false,
"singleQuote": true,
"printWidth": 120
"printWidth": 120,
"trailingComma": "none"
}
3 changes: 0 additions & 3 deletions .travis.yml

This file was deleted.

10 changes: 8 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
{
"typescript.tsdk": "./node_modules/typescript/lib"
}
"typescript.tsdk": "./node_modules/typescript/lib",
"editor.defaultFormatter": "esbenp.prettier-vscode",
"eslint.validate": ["typescript"],
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"files.insertFinalNewline": true
}
Loading