Comparing version 2.0.2 to 2.0.3
@@ -27,2 +27,3 @@ module.exports = { | ||
// Place to specify ESLint rules. Can be used to overwrite rules specified from the extended configs | ||
'@typescript-eslint/consistent-type-imports': 'error', | ||
'@typescript-eslint/explicit-function-return-type': 'off', | ||
@@ -29,0 +30,0 @@ '@typescript-eslint/explicit-module-boundary-types': 'off', |
# Changelog | ||
## [2.0.3] - 2023-03-16 | ||
- Pointing to new home at TypeScript OSS. | ||
## [2.0.2] - 2023-01-23 | ||
- Now including src folder into npm package so source maps can resolve properly. | ||
## [2.0.1] - 2023-01-11 | ||
- Updated codebase to TypeScript 4.9. | ||
## [2.0.0-alpha.x] - 2022-09-02 | ||
@@ -7,3 +19,3 @@ | ||
See notes below for more details on each. | ||
_See notes below for more details on each._ | ||
@@ -33,7 +45,7 @@ - Support for per-schema and hierarchical, validation mode preferences (overrides). | ||
- Added `schema.pick` and `schema.omit` which operate, like `schema.partial`, on `ObjectSchemas` to reduce the number of considered keys in an object schema. | ||
- `schema.pick` and `schema.omit` which operate, like `schema.partial`, on `ObjectSchemas` to reduce the number of considered keys in an object schema. | ||
## [1.4.2] - 2022-08-22 | ||
### Added | ||
### Changed | ||
@@ -46,3 +58,3 @@ - Date strings can now be deserialized using 1-9 sub-second digits, if sub-seconds are specified. | ||
- Fixed an issue where async validation of `schema.oneOf` in `"none"` validation mode with child elements that needed custom ser-des would short-circuit incorrectly causing the custom ser-des to be skipped. | ||
- An issue where async validation of `schema.oneOf` in `"none"` validation mode with child elements that needed custom ser-des would short-circuit incorrectly causing the custom ser-des to be skipped. | ||
@@ -53,3 +65,3 @@ ## [1.4.0] - 2022-08-08 | ||
- All schema types, except 'root', now have a `clone` function | ||
- All schema types, except 'root', now have a `clone` function. | ||
@@ -106,10 +118,12 @@ ### Removed | ||
- Bug with indirectly optional object and string schemas where extra values and functions (ex. map) were excluded in optional version of schema. | ||
- An issue with indirectly optional object and string schemas where extra values and functions (ex. map) were excluded in optional version of schema. | ||
## [1.0.1] - 2022-08-03 | ||
- Removed exported types `TreatUndefinedAsOptional`, `PickPossiblyUndefinedValues`, and `PickAlwaysDefinedValues`, which were causing TypeScript to erase important type information. | ||
### Removed | ||
- Exported types `TreatUndefinedAsOptional`, `PickPossiblyUndefinedValues`, and `PickAlwaysDefinedValues`, which were causing TypeScript to erase important type information. | ||
## [1.0.0] - 2022-08-02 | ||
- Initial official public release | ||
- Initial official public release. |
{ | ||
"name": "yaschema", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"description": "Yet another schema", | ||
@@ -13,4 +13,4 @@ "keywords": [ | ||
"types": "lib/index.d.ts", | ||
"repository": "https://github.com/Passfolio/yaschema.git", | ||
"homepage": "https://passfolio.github.io/yaschema/", | ||
"repository": "https://github.com/TypeScript-OSS/yaschema.git", | ||
"homepage": "https://typescript-oss.github.io/yaschema/", | ||
"license": "MIT", | ||
@@ -36,23 +36,23 @@ "private": false, | ||
"devDependencies": { | ||
"@types/jest": "^29.2.5", | ||
"@types/jest": "^29.4.4", | ||
"@types/lodash": "^4.14.191", | ||
"@typescript-eslint/eslint-plugin": "^5.48.1", | ||
"@typescript-eslint/parser": "^5.48.1", | ||
"@typescript-eslint/eslint-plugin": "^5.55.0", | ||
"@typescript-eslint/parser": "^5.55.0", | ||
"bignumber.js": "^9.1.1", | ||
"eslint": "8.31.0", | ||
"eslint-config-prettier": "^8.6.0", | ||
"eslint-import-resolver-typescript": "^3.5.2", | ||
"eslint-plugin-import": "^2.26.0", | ||
"eslint": "8.36.0", | ||
"eslint-config-prettier": "^8.7.0", | ||
"eslint-import-resolver-typescript": "^3.5.3", | ||
"eslint-plugin-import": "^2.27.5", | ||
"eslint-plugin-prefer-arrow": "^1.2.3", | ||
"eslint-plugin-prettier": "^4.0.0", | ||
"eslint-plugin-simple-import-sort": "^8.0.0", | ||
"eslint-plugin-simple-import-sort": "^10.0.0", | ||
"eslint-plugin-tsdoc": "^0.2.17", | ||
"jest": "29.3.1", | ||
"madge": "5.0.1", | ||
"prettier": "2.8.2", | ||
"jest": "29.5.0", | ||
"madge": "6.0.0", | ||
"prettier": "2.8.4", | ||
"trash-cli": "5.0.0", | ||
"ts-jest": "^29.0.3", | ||
"typedoc": "^0.23.24", | ||
"typescript": "4.9.4" | ||
"ts-jest": "^29.0.5", | ||
"typedoc": "^0.23.26", | ||
"typescript": "4.9.5" | ||
} | ||
} |
@@ -225,4 +225,2 @@ # yaschema | ||
[API Docs](https://passfolio.github.io/yaschema/) | ||
## Thanks | ||
@@ -232,5 +230,5 @@ | ||
yaschema is maintained by the team at [Passfolio](https://www.passfolio.com). | ||
[API Docs](https://typescript-oss.github.io/yaschema/) | ||
Be sure to check out our other [Open Source @ Passfolio](https://github.com/Passfolio) projects as well. | ||
Be sure to check out our other [TypeScript OSS](https://github.com/TypeScript-OSS) projects as well. | ||
@@ -237,0 +235,0 @@ <!-- Definitions --> |
@@ -11,3 +11,3 @@ # Security Policy | ||
Please report vulnerabilities to <security@passfolio.com> - which is private and monitored by our maintainers. We usually respond within 2-3 days, but if you believe your report is "critical", please include the word "critical" in your email subject. | ||
Please report vulnerabilities to <typescript.oss@gmail.com> - which is private and monitored by our maintainers. We usually respond within 2-3 days, but if you believe your report is "critical", please include the word "critical" in your email subject. | ||
@@ -14,0 +14,0 @@ When reporting an issue, where possible, please include: |
import { getMeaningfulTypeof } from '../../type-utils/get-meaningful-typeof'; | ||
import type { Range } from '../../types/range'; | ||
import type { Schema } from '../../types/schema'; | ||
import { ValidationMode } from '../../types/validation-options'; | ||
import type { ValidationMode } from '../../types/validation-options'; | ||
import { noError } from '../internal/consts'; | ||
@@ -6,0 +6,0 @@ import { makeInternalSchema } from '../internal/internal-schema-maker'; |
@@ -7,3 +7,4 @@ import type { CommonSchemaMeta, PureSchema } from '../../../types/pure-schema'; | ||
import { optional } from '../../marker-types/optional'; | ||
import { InternalSchema, InternalSchemaMakerArgs, setInternalSchemaMaker } from '../internal-schema-maker'; | ||
import type { InternalSchema, InternalSchemaMakerArgs } from '../internal-schema-maker'; | ||
import { setInternalSchemaMaker } from '../internal-schema-maker'; | ||
import type { InternalAsyncValidator, InternalValidator } from '../types/internal-validation'; | ||
@@ -10,0 +11,0 @@ import { isContainerType } from '../utils/is-container-type'; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
625455
9696
0
242