fortepiano 0.1.3 → 0.1.4

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/CHANGELOG.md CHANGED
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
4
4
 
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
+ ## [0.1.4](https://github.com/facile-it/fortepiano/compare/v0.1.3...v0.1.4) - 2022-06-24
8
+
9
+ ### Security
10
+
11
+ - Fix CVE-2022-33987.
12
+
7
13
  ## [0.1.3](https://github.com/facile-it/fortepiano/compare/v0.1.2...v0.1.3) - 2022-05-31
8
14
 
9
15
  ### Added
@@ -69,13 +75,16 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
69
75
  - Replace `struct` type with `Struct`.
70
76
  - Rename `GeneratorL` module to `Yield`.
71
77
  - Use `cause` property to record wrapped errors (inspired by TC39).
72
- - Decode from Json and then from the given codec in the `get` function of the `Redis` module.
73
78
 
74
79
  ### Deprecated
75
80
 
76
81
  - Deprecate `struct` (use `Struct` instead).
77
82
  - Deprecate `GeneratorL` module (use `Yield` instead).
78
83
 
84
+ ### Fixed
85
+
86
+ - Decode from Json and then from the given codec in the `get` function of the `Redis` module.
87
+
79
88
  ## [0.1.2](https://github.com/facile-it/fortepiano/compare/v0.1.1...v0.1.2) - 2022-04-29
80
89
 
81
90
  ### Added
package/Console.d.ts CHANGED
@@ -6,7 +6,7 @@ export declare const info: (...as: ReadonlyArray<unknown>) => IO.IO<void>;
6
6
  export declare const log: (...as: ReadonlyArray<unknown>) => IO.IO<void>;
7
7
  export declare const trace: (...as: ReadonlyArray<unknown>) => IO.IO<void>;
8
8
  export declare const warn: (...as: ReadonlyArray<unknown>) => IO.IO<void>;
9
- export declare const assert: (condition?: boolean | undefined, ...as: ReadonlyArray<unknown>) => IO.IO<void>;
9
+ export declare const assert: (condition?: boolean, ...as: ReadonlyArray<unknown>) => IO.IO<void>;
10
10
  export declare const count: (a?: unknown) => IO.IO<void>;
11
11
  export declare const countReset: (a?: unknown) => IO.IO<void>;
12
12
  export declare const group: (...as: ReadonlyArray<unknown>) => IO.IO<void>;
package/Type.d.ts CHANGED
@@ -4,10 +4,10 @@ export declare const numeric: t.Type<number, number, unknown>;
4
4
  export declare function literal<V extends number | string>(value: V, name?: string): t.LiteralC<V>;
5
5
  export declare function literal(regExp: RegExp, name?: string): t.StringC;
6
6
  export declare const struct: t.Type<object, object, unknown>;
7
- export declare const nullable: <C extends t.Mixed>(codec: C, name?: string | undefined) => t.UnionC<[C, t.UndefinedC]>;
7
+ export declare const nullable: <C extends t.Mixed>(codec: C, name?: string) => t.UnionC<[C, t.UndefinedC]>;
8
8
  export declare const alias: <C extends t.Mixed>(name: string, codec: C) => t.Type<t.TypeOf<C>, t.OutputOf<C>, t.InputOf<C>>;
9
9
  export declare function literalUnion<A extends number | string, B extends {
10
10
  readonly [K in A]: null;
11
11
  }>(strings: Readonly<[A, A, ...ReadonlyArray<A>]>, name?: string): t.KeyofC<B>;
12
- export declare const lax: <P extends t.Props>(props: P, name?: string | undefined) => t.Type<{ [K in keyof P]?: t.TypeOf<P[K]> | undefined; }, { [K_1 in keyof P]?: t.OutputOf<P[K_1]> | undefined; }, unknown>;
12
+ export declare const lax: <P extends t.Props>(props: P, name?: string) => t.Type<{ [K in keyof P]?: t.TypeOf<P[K]> | undefined; }, { [K_1 in keyof P]?: t.OutputOf<P[K_1]> | undefined; }, unknown>;
13
13
  export declare const decode: <C extends t.Mixed>(codec: C) => (u: unknown) => E.Either<Error, t.TypeOf<C>>;
@@ -1,4 +1,4 @@
1
1
  import { Lazy } from 'fp-ts/function';
2
2
  import * as $C from '../Cache';
3
- declare const _storage: (storage: Lazy<Storage>, name?: string | undefined, ttl?: number) => $C.Cache;
3
+ declare const _storage: (storage: Lazy<Storage>, name?: string, ttl?: number) => $C.Cache;
4
4
  export { _storage as storage };
package/lib/Console.d.ts CHANGED
@@ -6,7 +6,7 @@ export declare const info: (...as: ReadonlyArray<unknown>) => IO.IO<void>;
6
6
  export declare const log: (...as: ReadonlyArray<unknown>) => IO.IO<void>;
7
7
  export declare const trace: (...as: ReadonlyArray<unknown>) => IO.IO<void>;
8
8
  export declare const warn: (...as: ReadonlyArray<unknown>) => IO.IO<void>;
9
- export declare const assert: (condition?: boolean | undefined, ...as: ReadonlyArray<unknown>) => IO.IO<void>;
9
+ export declare const assert: (condition?: boolean, ...as: ReadonlyArray<unknown>) => IO.IO<void>;
10
10
  export declare const count: (a?: unknown) => IO.IO<void>;
11
11
  export declare const countReset: (a?: unknown) => IO.IO<void>;
12
12
  export declare const group: (...as: ReadonlyArray<unknown>) => IO.IO<void>;
package/lib/Type.d.ts CHANGED
@@ -4,10 +4,10 @@ export declare const numeric: t.Type<number, number, unknown>;
4
4
  export declare function literal<V extends number | string>(value: V, name?: string): t.LiteralC<V>;
5
5
  export declare function literal(regExp: RegExp, name?: string): t.StringC;
6
6
  export declare const struct: t.Type<object, object, unknown>;
7
- export declare const nullable: <C extends t.Mixed>(codec: C, name?: string | undefined) => t.UnionC<[C, t.UndefinedC]>;
7
+ export declare const nullable: <C extends t.Mixed>(codec: C, name?: string) => t.UnionC<[C, t.UndefinedC]>;
8
8
  export declare const alias: <C extends t.Mixed>(name: string, codec: C) => t.Type<t.TypeOf<C>, t.OutputOf<C>, t.InputOf<C>>;
9
9
  export declare function literalUnion<A extends number | string, B extends {
10
10
  readonly [K in A]: null;
11
11
  }>(strings: Readonly<[A, A, ...ReadonlyArray<A>]>, name?: string): t.KeyofC<B>;
12
- export declare const lax: <P extends t.Props>(props: P, name?: string | undefined) => t.Type<{ [K in keyof P]?: t.TypeOf<P[K]> | undefined; }, { [K_1 in keyof P]?: t.OutputOf<P[K_1]> | undefined; }, unknown>;
12
+ export declare const lax: <P extends t.Props>(props: P, name?: string) => t.Type<{ [K in keyof P]?: t.TypeOf<P[K]> | undefined; }, { [K_1 in keyof P]?: t.OutputOf<P[K_1]> | undefined; }, unknown>;
13
13
  export declare const decode: <C extends t.Mixed>(codec: C) => (u: unknown) => E.Either<Error, t.TypeOf<C>>;
@@ -1,4 +1,4 @@
1
1
  import { Lazy } from 'fp-ts/function';
2
2
  import * as $C from '../Cache';
3
- declare const _storage: (storage: Lazy<Storage>, name?: string | undefined, ttl?: number) => $C.Cache;
3
+ declare const _storage: (storage: Lazy<Storage>, name?: string, ttl?: number) => $C.Cache;
4
4
  export { _storage as storage };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fortepiano",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "Playing actual music over fp-ts notes",
5
5
  "keywords": [
6
6
  "typescript",