From b618e73f139d82238eebc75da776af15cfbb156d Mon Sep 17 00:00:00 2001 From: Kevin Jahns Date: Mon, 6 Feb 2023 13:20:18 +0100 Subject: [PATCH] 0.2.61 --- README.md | 3 +++ package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 9d733fc..8dd5530 100644 --- a/README.md +++ b/README.md @@ -93,6 +93,8 @@ import module from 'lib0/[module].js' array.equalFlat(a: Array<ELEM>, b: Array<ELEM>): boolean
array.flatten(arr: Array<Array<ELEM>>): Array<ELEM>
array.isArray
+array.unique(arr: Array<T>): Array<T>
+array.uniqueBy(arr: Array<T>, mapper: function(T):M): Array<T>
[lib0/binary] Binary data constants. @@ -1282,6 +1284,7 @@ export const testMyFirstTest = tc => { testing.compareObjects(a: Object<K,V>, b: Object<K,V>, m: string)
testing.compare(a: T, b: T, message: string?, customCompare: function(any,T,T,string,any):boolean)
testing.assert(condition: boolean, message: string?)
+testing.promiseRejected(f: function():Promise<any>)
testing.fails(f: function():void)
testing.runTests(tests: Object<string, Object<string, function(module:testing.TestCase):void|Promise<any>>>)
testing.fail(reason: string)
diff --git a/package-lock.json b/package-lock.json index f2af4c5..0edd190 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "lib0", - "version": "0.2.60", + "version": "0.2.61", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "lib0", - "version": "0.2.60", + "version": "0.2.61", "license": "MIT", "dependencies": { "isomorphic.js": "^0.2.4" diff --git a/package.json b/package.json index f691427..24730b0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "lib0", - "version": "0.2.60", + "version": "0.2.61", "description": "", "sideEffects": false, "type": "module",