Socket
Socket
Sign inDemoInstall

@effect/schema

Package Overview
Dependencies
Maintainers
3
Versions
328
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@effect/schema - npm Package Compare versions

Comparing version 0.18.0 to 0.19.0

2

package.json
{
"name": "@effect/schema",
"version": "0.18.0",
"version": "0.19.0",
"license": "MIT",

@@ -5,0 +5,0 @@ "repository": {

@@ -1302,3 +1302,3 @@ <h3 align="center">

readonly a: string;
readonly b: number | null | undefined;
readonly b: number | null;
}, {

@@ -1316,7 +1316,7 @@ readonly a: string;

const parse = S.parse(schema);
parse({ a: "hello", b: undefined }); // { a: "hello", b: none() }
parse({ a: "hello", b: null }); // { a: "hello", b: none() }
parse({ a: "hello", b: 1 }); // { a: "hello", b: some(1) }
parse({ a: "hello" }); // throws key "b" is missing
parse({ a: "hello", b: undefined }); // throws
parse({ a: "hello" }); // throws (key "b" is missing)

@@ -1545,1 +1545,48 @@ // encoding

The MIT License (MIT)
# Contributing Guidelines
Thank you for considering contributing to our project! Here are some guidelines to help you get started:
## Reporting Bugs
If you have found a bug, please open an issue on our [issue tracker](https://github.com/Effect-TS/schema/issues) and provide as much detail as possible. This should include:
- A clear and concise description of the problem
- Steps to reproduce the problem
- The expected behavior
- The actual behavior
- Any relevant error messages or logs
## Suggesting Enhancements
If you have an idea for an enhancement or a new feature, please open an issue on our [issue tracker](https://github.com/Effect-TS/schema/issues) and provide as much detail as possible. This should include:
- A clear and concise description of the enhancement or feature
- Any potential benefits or use cases
- Any potential drawbacks or trade-offs
## Pull Requests
We welcome contributions via pull requests! Here are some guidelines to help you get started:
1. Fork the repository and clone it to your local machine.
2. Create a new branch for your changes: `git checkout -b my-new-feature`
3. Install dependencies: `pnpm install` (`pnpm@8.x`)
4. Make your changes and add tests if applicable.
5. Run the tests: `pnpm test`
6. Commit your changes: `git commit -am 'Add some feature'`
7. Push your changes to your fork: `git push origin my-new-feature`
8. Open a pull request against our `main` branch.
### Pull Request Guidelines
- Please make sure your changes are consistent with the project's existing style and conventions.
- Please write clear commit messages and include a summary of your changes in the pull request description.
- Please make sure all tests pass and add new tests as necessary.
- If your change requires documentation, please update the relevant documentation.
- Please be patient! We will do our best to review your pull request as soon as possible.
## License
By contributing to this project, you agree that your contributions will be licensed under the project's [MIT License](./LICENSE).

@@ -941,3 +941,3 @@ /**

*/
export declare const optionFromNullable: <I, A>(value: Schema<I, A>) => Schema<I | null | undefined, Option<A>>;
export declare const optionFromNullable: <I, A>(value: Schema<I, A>) => Schema<I | null, Option<A>>;
/**

@@ -944,0 +944,0 @@ * @category type id

@@ -1506,3 +1506,3 @@ "use strict";

exports.option = option;
const optionFromNullable = value => transform(union(_undefined, _null, value), to(optionFromSelf(value)), O.fromNullable, O.getOrNull);
const optionFromNullable = value => transform(nullable(value), to(optionFromSelf(value)), O.fromNullable, O.getOrNull);
// ---------------------------------------------

@@ -1509,0 +1509,0 @@ // data/ReadonlyArray

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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