Skip to content

Commit f8758fd

Browse files
committed
release: v2.0.1
1 parent f467b63 commit f8758fd

3 files changed

Lines changed: 16 additions & 3 deletions

File tree

docs/changelog.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
# Changelog
22

3+
## v2.0.1
4+
5+
This patch fixes the following problem:
6+
7+
- When specifying `required: false` and `default` options for a property schema, after parsing, the returned value type does not contain the **undefined** type.
8+
- Updated generics for `PropertySchema`, `PropertySchemaRaw` types and `.createPropertySchema()`, `.usePropertySchema()` functions.
9+
- Added new types `PropertyDefaultRaw` and `PropertyDefaultNormalize`.
10+
- Updated documentation for the patch. See:
11+
- [PropertySchema](api/types/property-schema.md)
12+
- [PropertySchemaRaw](api/types/property-schema-raw.md)
13+
- [PropertySchemaReturn](api/types/property-schema-return.md)
14+
- [TypeScript Support](guide/advanced/typescript.md)
15+
316
## v2.0.0
417

518
The main goal of this release is to add the ability to validate nested objects. However, almost everything had to be rewritten in the process. From new:

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@dmitrytavern/object-parser",
3-
"version": "2.0.0",
3+
"version": "2.0.1",
44
"description": "Parsing an object without pain",
55
"author": {
66
"name": "Dmitry Tavern",

0 commit comments

Comments
 (0)