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

@effect/schema

Package Overview
Dependencies
Maintainers
3
Versions
335
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.30.0 to 0.30.1

2

package.json
{
"name": "@effect/schema",
"version": "0.30.0",
"version": "0.30.1",
"license": "MIT",

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

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

name: S.string,
age: S.number,
age: S.number
});

@@ -123,3 +123,3 @@ ```

name: S.string,
age: S.number,
age: S.number
});

@@ -189,3 +189,3 @@

name: S.string,
age: S.number,
age: S.number
});

@@ -197,3 +197,3 @@

age: 40,
email: "bob@example.com",
email: "bob@example.com"
})

@@ -209,3 +209,3 @@ );

age: 40,
email: "bob@example.com",
email: "bob@example.com"
},

@@ -233,3 +233,3 @@ { onExcessProperty: "error" }

name: S.string,
age: S.number,
age: S.number
});

@@ -241,3 +241,3 @@

age: "abc",
email: "bob@example.com",
email: "bob@example.com"
},

@@ -269,3 +269,3 @@ { errors: "all", onExcessProperty: "error" }

name: S.string,
age: Age,
age: Age
});

@@ -292,3 +292,3 @@

name: S.string,
age: S.number,
age: S.number
});

@@ -318,3 +318,3 @@

name: S.string,
age: S.number,
age: S.number
});

@@ -337,3 +337,3 @@

name: S.string,
age: S.number,
age: S.number
});

@@ -373,3 +373,3 @@

name: S.string,
age: S.string.pipe(S.numberFromString, S.int()),
age: S.string.pipe(S.numberFromString, S.int())
});

@@ -409,3 +409,3 @@

name: S.string,
age: S.number,
age: S.number
});

@@ -633,3 +633,3 @@

Apple,
Banana,
Banana
}

@@ -706,3 +706,3 @@

kind: S.literal("circle"),
radius: S.number,
radius: S.number
});

@@ -712,3 +712,3 @@

kind: S.literal("square"),
sideLength: S.number,
sideLength: S.number
});

@@ -733,7 +733,7 @@

const Circle = S.struct({
radius: S.number,
radius: S.number
});
const Square = S.struct({
sideLength: S.number,
sideLength: S.number
});

@@ -753,7 +753,7 @@

const Circle = S.struct({
radius: S.number,
radius: S.number
});
const Square = S.struct({
sideLength: S.number,
sideLength: S.number
});

@@ -780,3 +780,3 @@

kind: "circle",
radius: 10,
radius: 10
});

@@ -786,3 +786,3 @@

kind: "square",
sideLength: 10,
sideLength: 10
});

@@ -808,3 +808,3 @@ ```

kind: "circle",
radius: 10,
radius: 10
});

@@ -816,3 +816,3 @@

kind: "circle",
radius: 10,
radius: 10
})

@@ -883,3 +883,3 @@ ).toEqual({ radius: 10 });

// the use of S.optional should be the last step in the pipeline and not preceeded by other combinators like S.nullable
c: S.boolean.pipe(S.optional, S.nullable), // type checker error
c: S.boolean.pipe(S.optional, S.nullable) // type checker error
});

@@ -892,3 +892,3 @@ ```

S.struct({
c: S.boolean.pipe(S.nullable, S.optional), // ok
c: S.boolean.pipe(S.nullable, S.optional) // ok
});

@@ -946,3 +946,3 @@ ```

name: S.string,
age: S.number,
age: S.number
});

@@ -1056,3 +1056,3 @@

name: S.string,
subcategories: S.array(Category),
subcategories: S.array(Category)
})

@@ -1080,3 +1080,3 @@ );

type: S.literal("expression"),
value: S.union(S.number, Operation),
value: S.union(S.number, Operation)
})

@@ -1090,3 +1090,3 @@ );

left: Expression,
right: Expression,
right: Expression
})

@@ -1177,3 +1177,3 @@ );

}),
catch: (e) => new Error(String(e)),
catch: (e) => new Error(String(e))
});

@@ -1357,3 +1357,3 @@

a: S.string,
b: S.optionFromNullable(S.number),
b: S.optionFromNullable(S.number)
});

@@ -1404,3 +1404,3 @@

[2, "b"],
[3, "c"],
[3, "c"]
]); // new Map([[1, "a"], [2, "b"], [3, "c"]])

@@ -1418,3 +1418,3 @@ ```

S.filter((s) => s.length >= 10, {
message: () => "a string at least 10 characters long",
message: () => "a string at least 10 characters long"
})

@@ -1439,3 +1439,3 @@ );

description:
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua",
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua"
})

@@ -1624,5 +1624,6 @@ );

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.
6. Create a changeset for your changes: before committing your changes, create a changeset to document the modifications. This helps in tracking and communicating the changes effectively. To create a changeset, run the following command: `pnpm changeset`.
7. Commit your changes: after creating the changeset, commit your changes with a descriptive commit message: `git commit -am 'Add some feature'`.
8. Push your changes to your fork: `git push origin my-new-feature`.
9. Open a pull request against our `main` branch.

@@ -1629,0 +1630,0 @@ ### Pull Request Guidelines

@@ -1508,2 +1508,3 @@ "use strict";

const instanceOf = (constructor, options) => {
const annotations = toAnnotations(options);
const schema = declare([], struct({}), () => input => input instanceof constructor ? PR.success(input) : PR.failure(PR.type(schema.ast, input)), {

@@ -1515,3 +1516,3 @@ [AST.TypeAnnotationId]: InstanceOfTypeId,

[AST.DescriptionAnnotationId]: `an instance of ${constructor.name}`,
...options
...annotations
});

@@ -1518,0 +1519,0 @@ return schema;

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