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

@thi.ng/transducers

Package Overview
Dependencies
Maintainers
1
Versions
331
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@thi.ng/transducers - npm Package Compare versions

Comparing version 8.9.11 to 8.9.12

1

auto-obj.d.ts

@@ -16,3 +16,2 @@ import type { IObjectOf } from "@thi.ng/api";

* @param prefix - shared prefix
* @param xs -
*/

@@ -19,0 +18,0 @@ export declare function autoObj<T>(prefix: string): Reducer<IObjectOf<T>, T>;

2

CHANGELOG.md
# Change Log
- **Last updated**: 2024-03-09T09:18:17Z
- **Last updated**: 2024-03-13T14:04:31Z
- **Generator**: [thi.ng/monopub](https://thi.ng/monopub)

@@ -5,0 +5,0 @@

@@ -32,3 +32,2 @@ import type { Predicate2 } from "@thi.ng/api";

* @param pred -
* @param src -
*/

@@ -35,0 +34,0 @@ export declare function converge<T>(pred?: Predicate2<T>): Transducer<T, T>;

@@ -39,5 +39,5 @@ /**

* @param steps -
* @param falloff -
* @param rate -
*/
export declare function curve(start: number, end: number, steps?: number, rate?: number): IterableIterator<number>;
//# sourceMappingURL=curve.d.ts.map

@@ -33,4 +33,4 @@ import type { Fn, Predicate2 } from "@thi.ng/api";

*
* @param query -
* @param opts -
* @param src -
*/

@@ -37,0 +37,0 @@ export declare function filterFuzzy<A, B>(query: ArrayLike<B>, opts?: Partial<FilterFuzzyOpts<A, B>>): Transducer<A, A>;

@@ -33,3 +33,2 @@ import type { DeepArrayValue, Fn, Nullable } from "@thi.ng/api";

* @param fn -
* @param src -
*/

@@ -36,0 +35,0 @@ export declare function flattenWith<A, B = DeepArrayValue<A>>(fn: Fn<any, MaybeIterable<any>>): Transducer<A, B>;

@@ -21,4 +21,2 @@ import type { DeepArrayValue } from "@thi.ng/api";

* ```
*
* @param src -
*/

@@ -25,0 +23,0 @@ export declare function flatten<A, B = DeepArrayValue<A>>(): Transducer<A, B>;

@@ -22,4 +22,2 @@ import type { Nullable } from "@thi.ng/api";

* ```
*
* @param src
*/

@@ -26,0 +24,0 @@ export declare function flatten1<T>(): Transducer<Nullable<Iterable<T>>, T>;

@@ -81,3 +81,3 @@ import type { Fn, Fn0, IObjectOf } from "@thi.ng/api";

*/
export declare const groupBinary: <T>(bits: number, key: Fn<T, number>, branch?: Fn0<IObjectOf<T[]>> | undefined, leaf?: Reducer<any, T> | undefined, left?: PropertyKey, right?: PropertyKey) => Reducer<any, T>;
export declare const groupBinary: <T>(bits: number, key: Fn<T, number>, branch?: Fn0<IObjectOf<T[]>>, leaf?: Reducer<any, T>, left?: PropertyKey, right?: PropertyKey) => Reducer<any, T>;
//# sourceMappingURL=group-binary.d.ts.map

@@ -9,3 +9,3 @@ import type { GroupByOpts } from "../api.js";

*/
export declare const __groupByOpts: <SRC, KEY, GROUP>(opts?: Partial<GroupByOpts<SRC, PropertyKey, GROUP>> | undefined) => GroupByOpts<SRC, KEY, GROUP>;
export declare const __groupByOpts: <SRC, KEY, GROUP>(opts?: Partial<GroupByOpts<SRC, PropertyKey, GROUP>>) => GroupByOpts<SRC, KEY, GROUP>;
//# sourceMappingURL=group-opts.d.ts.map

@@ -9,3 +9,3 @@ import type { SortOpts } from "../api.js";

*/
export declare const __sortOpts: <A, B>(opts?: Partial<SortOpts<A, B>> | undefined) => SortOpts<A, B>;
export declare const __sortOpts: <A, B>(opts?: Partial<SortOpts<A, B>>) => SortOpts<A, B>;
//# sourceMappingURL=sort-opts.d.ts.map

@@ -8,3 +8,2 @@ import type { Transducer, TransformSpec } from "./api.js";

* @param spec -
* @param src -
*/

@@ -11,0 +10,0 @@ export declare function mapDeep(spec: TransformSpec): Transducer<any, any>;

@@ -26,3 +26,2 @@ import type { Fn2, IObjectOf } from "@thi.ng/api";

* @param copy - if true (default), creates a shallow copy of each incoming value
* @param src -
*/

@@ -29,0 +28,0 @@ export declare function mapKeys(keys: IObjectOf<Fn2<any, any, any>>, copy?: boolean): Transducer<any, any>;

@@ -27,3 +27,2 @@ import type { Predicate } from "@thi.ng/api";

* @param pred - predicate function
* @param src -
*/

@@ -30,0 +29,0 @@ export declare function matchLast<T>(pred: Predicate<T>): Transducer<T, T>;

@@ -16,3 +16,2 @@ import type { Transducer } from "./api.js";

* @param period -
* @param src -
*/

@@ -19,0 +18,0 @@ export declare function movingAverage(period: number): Transducer<number, number>;

@@ -12,3 +12,2 @@ import type { SortOpts, Transducer } from "./api.js";

* @param opts -
* @param src -
*/

@@ -15,0 +14,0 @@ export declare function movingMedian<A, B>(n: number, opts?: Partial<SortOpts<A, B>>): Transducer<A, A>;

@@ -26,3 +26,2 @@ import type { IObjectOf } from "@thi.ng/api";

* @param rfn -
* @param src -
*/

@@ -29,0 +28,0 @@ export declare function multiplexObj<A, B>(xforms: IObjectOf<MultiplexTxLike<A, any>>, rfn?: Reducer<B, [PropertyKey, any]>): Transducer<A, B>;

{
"name": "@thi.ng/transducers",
"version": "8.9.11",
"version": "8.9.12",
"description": "Lightweight transducer implementations for ES6 / TypeScript",

@@ -43,17 +43,17 @@ "type": "module",

"dependencies": {
"@thi.ng/api": "^8.9.29",
"@thi.ng/arrays": "^2.8.7",
"@thi.ng/checks": "^3.5.2",
"@thi.ng/compare": "^2.2.25",
"@thi.ng/compose": "^2.1.68",
"@thi.ng/errors": "^2.4.20",
"@thi.ng/math": "^5.10.6",
"@thi.ng/random": "^3.6.36"
"@thi.ng/api": "^8.9.30",
"@thi.ng/arrays": "^2.8.8",
"@thi.ng/checks": "^3.5.3",
"@thi.ng/compare": "^2.2.26",
"@thi.ng/compose": "^2.1.69",
"@thi.ng/errors": "^2.5.0",
"@thi.ng/math": "^5.10.7",
"@thi.ng/random": "^3.6.37"
},
"devDependencies": {
"@microsoft/api-extractor": "^7.40.1",
"esbuild": "^0.20.0",
"@microsoft/api-extractor": "^7.42.3",
"esbuild": "^0.20.1",
"rimraf": "^5.0.5",
"typedoc": "^0.25.7",
"typescript": "^5.3.3"
"typedoc": "^0.25.12",
"typescript": "^5.4.2"
},

@@ -593,3 +593,3 @@ "keywords": [

},
"gitHead": "69100942474942f7446ac645d59d91e7dfc352f9\n"
"gitHead": "7f3fcbd6c0462b0ce45afa141fe163d1f297fd51\n"
}

@@ -31,4 +31,3 @@ import type { SortOpts, Transducer } from "./api.js";

* @param n - window size
* @param key - sort key lookup
* @param cmp - comparator
* @param opts -
*/

@@ -35,0 +34,0 @@ export declare function partitionSort<A, B>(n: number, opts?: Partial<SortOpts<A, B>>): Transducer<A, A>;

@@ -116,5 +116,3 @@ import type { Fn, IObjectOf } from "@thi.ng/api";

* @param keys - allowed label set
* @param keyfn - label extraction function
* @param reset - true if each tuple should contain only new values
* @param all - true if last tuple is allowed to be incomplete
* @param opts -
*/

@@ -121,0 +119,0 @@ export declare function partitionSync<T>(keys: PropertyKey[] | Set<PropertyKey>, opts?: Partial<PartitionSyncOpts<T>>): PartitionSync<T>;

@@ -14,4 +14,2 @@ import type { Transducer } from "./api.js";

* ```
*
* @param src -
*/

@@ -18,0 +16,0 @@ export declare function peek<T>(): Transducer<T[], T>;

@@ -23,3 +23,3 @@ /**

*
* @param src -
* @param a -
*/

@@ -26,0 +26,0 @@ export declare function permutations<A>(a: Iterable<A>): IterableIterator<[A]>;

@@ -11,3 +11,2 @@ import type { Fn } from "@thi.ng/api";

* @param tx -
* @param fx -
* @param xs -

@@ -14,0 +13,0 @@ */

@@ -18,3 +18,2 @@ import type { IRandom } from "@thi.ng/random";

* @param prob -
* @param src -
*/

@@ -21,0 +20,0 @@ export declare function sample<T>(prob: number): Transducer<T, T>;

@@ -45,3 +45,2 @@ import type { Reducer, Transducer } from "./api.js";

* @param init -
* @param src -
*/

@@ -48,0 +47,0 @@ export declare function scan<A, B>(rfn: Reducer<B, A>, init?: B): Transducer<A, B>;

@@ -26,3 +26,2 @@ import type { Transducer } from "./api.js";

* @param keys -
* @param src -
*/

@@ -29,0 +28,0 @@ export declare function selectKeys<T>(keys: PropertyKey[]): Transducer<T, any>;

@@ -27,3 +27,2 @@ import { type MaybeDeref } from "@thi.ng/api/deref";

* @param partial -
* @param src -
*/

@@ -30,0 +29,0 @@ export declare function slidingWindow<T>(size: MaybeDeref<number>, partial?: boolean): Transducer<T, T[]>;

@@ -16,4 +16,3 @@ import type { SortOpts, Transducer } from "./api.js";

* @param n -
* @param key -
* @param cmp -
* @param opts -
*/

@@ -20,0 +19,0 @@ export declare function streamSort<A, B>(n: number, opts?: Partial<SortOpts<A, B>>): Transducer<A, A>;

@@ -41,3 +41,2 @@ import type { Fn } from "@thi.ng/api";

* @param fields -
* @param src -
*/

@@ -44,0 +43,0 @@ export declare function struct<T>(fields: StructField[]): Transducer<any, T>;

@@ -15,3 +15,2 @@ import type { Transducer } from "./api.js";

* @param n -
* @param src -
*/

@@ -18,0 +17,0 @@ export declare function takeLast<T>(n: number): Transducer<T, T>;

@@ -18,3 +18,2 @@ import type { Predicate } from "@thi.ng/api";

* @param pred -
* @param src -
*/

@@ -21,0 +20,0 @@ export declare function takeWhile<T>(pred?: Predicate<T>): Transducer<T, T>;

@@ -18,3 +18,2 @@ import type { StatefulPredicate } from "@thi.ng/api";

* @param pred -
* @param src -
*/

@@ -21,0 +20,0 @@ export declare function throttle<T>(pred: StatefulPredicate<T>): Transducer<T, T>;

@@ -19,3 +19,2 @@ import type { Transducer } from "./api.js";

* @param opts -
* @param src -
*/

@@ -22,0 +21,0 @@ export declare function wordWrap(lineLength: number, opts?: Partial<WordWrapOpts>): Transducer<string, string[]>;

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