effect 3.14.1 → 3.14.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/Schema.ts CHANGED
@@ -195,10 +195,10 @@ const makeStandardFailureFromParseIssue = (
195
195
  export const standardSchemaV1 = <A, I>(
196
196
  schema: Schema<A, I, never>,
197
197
  overrideOptions?: AST.ParseOptions
198
- ): StandardSchemaV1<I, A> => {
198
+ ): StandardSchemaV1<I, A> & SchemaClass<A, I, never> => {
199
199
  const decodeUnknown = ParseResult.decodeUnknown(schema, { errors: "all" })
200
- return {
201
- "~standard": {
200
+ return class StandardSchemaV1Class extends make<A, I, never>(schema.ast) {
201
+ static "~standard" = {
202
202
  version: 1,
203
203
  vendor: "effect",
204
204
  validate(value) {
@@ -4583,6 +4583,7 @@ export declare namespace Annotations {
4583
4583
  readonly equivalence?: (..._: any) => Equivalence.Equivalence<A>
4584
4584
  }
4585
4585
 
4586
+ // TODO(4.0): replace `readonly [P]` with `readonly []`
4586
4587
  /**
4587
4588
  * @since 3.10.0
4588
4589
  */
package/src/SchemaAST.ts CHANGED
@@ -339,6 +339,12 @@ export const getAnnotation: {
339
339
  */
340
340
  export const getBrandAnnotation = getAnnotation<BrandAnnotation>(BrandAnnotationId)
341
341
 
342
+ /**
343
+ * @category annotations
344
+ * @since 3.14.2
345
+ */
346
+ export const getSchemaIdAnnotation = getAnnotation<SchemaIdAnnotation>(SchemaIdAnnotationId)
347
+
342
348
  /**
343
349
  * @category annotations
344
350
  * @since 3.10.0
package/src/index.ts CHANGED
@@ -408,6 +408,7 @@ export * as Layer from "./Layer.js"
408
408
 
409
409
  /**
410
410
  * @since 3.14.0
411
+ * @experimental
411
412
  */
412
413
  export * as LayerMap from "./LayerMap.js"
413
414
 
@@ -1,4 +1,4 @@
1
- let moduleVersion = "3.14.1"
1
+ let moduleVersion = "3.14.2"
2
2
 
3
3
  export const getCurrentVersion = () => moduleVersion
4
4