From 5c18321085df33caa701b9f35ef24dd69629d115 Mon Sep 17 00:00:00 2001 From: Shashik Date: Wed, 27 Oct 2021 14:19:11 +0530 Subject: [PATCH 1/3] fix ownKey type issue --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 30ccb58..79cf695 100644 --- a/src/index.ts +++ b/src/index.ts @@ -179,7 +179,7 @@ export class Sakota implements ProxyHandler { /** * Proxy handler trap for `Reflect.ownKeys()`. */ - public ownKeys(obj: any): (KeyType)[] { + public ownKeys(obj: any): (string | symbol)[] { const keys = Reflect.ownKeys(obj); if (this.diff) { for (const key in this.diff.$set) { From a7a0063e1e6d1de31d5e3dee4949ea6a0f9700f7 Mon Sep 17 00:00:00 2001 From: Shashik Date: Wed, 27 Oct 2021 14:20:24 +0530 Subject: [PATCH 2/3] update the sakota version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 263f2ba..2134532 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@creately/sakota", - "version": "2.4.4", + "version": "2.4.5", "description": "Proxies js objects and records all changes made on an object without modifying the object.", "main": "dist/index.js", "typings": "dist/index.d.ts", From 94860f0250f9081ccea9e22ba3d5760fa7720782 Mon Sep 17 00:00:00 2001 From: Shashik Date: Wed, 27 Oct 2021 14:36:31 +0530 Subject: [PATCH 3/3] add a changelog --- changelog.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/changelog.md b/changelog.md index 28d8bf0..025005e 100644 --- a/changelog.md +++ b/changelog.md @@ -1,3 +1,7 @@ +# 2021-10-27 - v2.4.5 + + - Fix the ownKeys function type issue. + # 2021-05-14 - v2.4.4 - added `mergeChanges` and `unwrap` method to sakota