Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

yaschema

Package Overview
Dependencies
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yaschema - npm Package Versions

1235

1.2.2

Diff

bwestphal
published 1.4.0 •

Changelog

Source

[1.4.0] - 2022-08-08

Added

  • All schema types, except 'root', now have a clone function.

Removed

  • Distinct 'partial' schema type, since schema.partial just generates a new object schema type with each field marked as optional.
bwestphal
published 1.3.1 •

Changelog

Source

[1.3.1] - 2022-08-08

Changed

  • The arguments to Schema.setDescription and Schema.setExample are now optional, so they can be used to clear a previously set description or example, respectively.
bwestphal
published 1.3.0 •

Changelog

Source

[1.3.0] - 2022-08-06

Added

  • For schema.boolean, schema.number, and schema.restrictedNumber, added allowedSerializationForms metadata and a setAllowedSerializationForms function to set (replace) that metadata. These allow for boolean or numeric types that serialize as string or string/boolean (ex. for use in query params).

Removed

  • The CommonSchemaOptions type and the ability to directly pass those options (i.e. description and example) during initial schema creation, because it was very inconsistent.
bwestphal
published 1.2.1 •

Changelog

Source

[1.2.1] - 2022-08-04

Added

  • Missing metadata (expectedTypeName on NotSchema and uniqueName on UpgradedSchema)
bwestphal
published 1.2.0 •

Changelog

Source

[1.2.0] - 2022-08-03

Changed

  • How schema.partial works. It now uses schema.object more directly, resulting in better type inference.

Removed

  • ObjectSchema.partial()
bwestphal
published 1.1.1 •

Changelog

Source

[1.1.1] - 2022-08-03

Removed

  • Exported type InferRecordOfSchemasFromRecordOfValues, which was causing TypeScript to erase important type information.
bwestphal
published 1.1.0 •

Changelog

Source

[1.1.0] - 2022-08-03

Changed

  • Changed SchemaType 'restricted-number' to 'restrictedNumber' for better consistency with other multi-word type IDs.

Fixed

  • An issue with indirectly optional object and string schemas where extra values and functions (ex. map) were excluded in optional version of schema.
bwestphal
published 1.0.1 •

Changelog

Source

[1.0.1] - 2022-08-03

Removed

  • Exported types TreatUndefinedAsOptional, PickPossiblyUndefinedValues, and PickAlwaysDefinedValues, which were causing TypeScript to erase important type information.
bwestphal
published 1.0.0 •

Changelog

Source

[1.0.0] - 2022-08-02

  • Initial official public release.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc